configure 890 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036
  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. bin_prefix_relpath
  605. cmake_prefix_relpath
  606. INSTALL_SDL2_CONFIG
  607. LIBUSB_LIBS
  608. LIBUSB_CFLAGS
  609. IBUS_LIBS
  610. IBUS_CFLAGS
  611. DBUS_LIBS
  612. DBUS_CFLAGS
  613. LIBGBM_LIBS
  614. LIBGBM_CFLAGS
  615. LIBDRM_LIBS
  616. LIBDRM_CFLAGS
  617. DIRECTFB_LIBS
  618. DIRECTFB_CFLAGS
  619. X_EXTRA_LIBS
  620. X_LIBS
  621. X_PRE_LIBS
  622. X_CFLAGS
  623. XMKMF
  624. RPI_LIBS
  625. RPI_CFLAGS
  626. DECOR_LIBS
  627. DECOR_CFLAGS
  628. FUSIONSOUND_LIBS
  629. FUSIONSOUND_CFLAGS
  630. ARTSCONFIG
  631. PULSEAUDIO_LIBS
  632. PULSEAUDIO_CFLAGS
  633. PIPEWIRE_LIBS
  634. PIPEWIRE_CFLAGS
  635. ESD_LIBS
  636. ESD_CFLAGS
  637. ESD_CONFIG
  638. JACK_LIBS
  639. JACK_CFLAGS
  640. ALSA_LIBS
  641. ALSA_CFLAGS
  642. POW_LIB
  643. LIBOBJS
  644. ALLOCA
  645. LIBTOOLLINKERTAG
  646. LINKER
  647. PKG_CONFIG_LIBDIR
  648. PKG_CONFIG_PATH
  649. PKG_CONFIG
  650. SET_MAKE
  651. INSTALL_DATA
  652. INSTALL_SCRIPT
  653. INSTALL_PROGRAM
  654. CXXCPP
  655. ac_ct_CXX
  656. CXXFLAGS
  657. CXX
  658. LT_AGE
  659. LT_REVISION
  660. LT_CURRENT
  661. LT_RELEASE
  662. RC
  663. CPP
  664. LT_SYS_LIBRARY_PATH
  665. OTOOL64
  666. OTOOL
  667. LIPO
  668. NMEDIT
  669. DSYMUTIL
  670. MANIFEST_TOOL
  671. AWK
  672. RANLIB
  673. STRIP
  674. ac_ct_AR
  675. AR
  676. LN_S
  677. NM
  678. ac_ct_DUMPBIN
  679. DUMPBIN
  680. LD
  681. FGREP
  682. EGREP
  683. GREP
  684. SED
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. host_os
  693. host_vendor
  694. host_cpu
  695. host
  696. build_os
  697. build_vendor
  698. build_cpu
  699. build
  700. LIBTOOL
  701. OBJDUMP
  702. DLLTOOL
  703. AS
  704. SDL_VERSION
  705. SDL_BINARY_AGE
  706. SDL_INTERFACE_AGE
  707. SDL_MICRO_VERSION
  708. SDL_MINOR_VERSION
  709. SDL_MAJOR_VERSION
  710. target_alias
  711. host_alias
  712. build_alias
  713. LIBS
  714. ECHO_T
  715. ECHO_N
  716. ECHO_C
  717. DEFS
  718. mandir
  719. localedir
  720. libdir
  721. psdir
  722. pdfdir
  723. dvidir
  724. htmldir
  725. infodir
  726. docdir
  727. oldincludedir
  728. includedir
  729. localstatedir
  730. sharedstatedir
  731. sysconfdir
  732. datadir
  733. datarootdir
  734. libexecdir
  735. sbindir
  736. bindir
  737. program_transform_name
  738. prefix
  739. exec_prefix
  740. PACKAGE_URL
  741. PACKAGE_BUGREPORT
  742. PACKAGE_STRING
  743. PACKAGE_VERSION
  744. PACKAGE_TARNAME
  745. PACKAGE_NAME
  746. PATH_SEPARATOR
  747. SHELL'
  748. ac_subst_files=''
  749. ac_user_opts='
  750. enable_option_checking
  751. enable_shared
  752. enable_static
  753. with_pic
  754. enable_fast_install
  755. with_aix_soname
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. enable_largefile
  760. enable_assertions
  761. enable_dependency_tracking
  762. enable_libc
  763. enable_gcc_atomics
  764. enable_atomic
  765. enable_audio
  766. enable_video
  767. enable_render
  768. enable_events
  769. enable_joystick
  770. enable_haptic
  771. enable_hidapi
  772. enable_sensor
  773. enable_power
  774. enable_filesystem
  775. enable_threads
  776. enable_timers
  777. enable_file
  778. enable_misc
  779. enable_locale
  780. enable_loadso
  781. enable_cpuinfo
  782. enable_assembly
  783. enable_ssemath
  784. enable_mmx
  785. enable_3dnow
  786. enable_sse
  787. enable_sse2
  788. enable_sse3
  789. enable_altivec
  790. enable_oss
  791. enable_alsa
  792. with_alsa_prefix
  793. with_alsa_inc_prefix
  794. enable_alsatest
  795. enable_alsa_shared
  796. enable_jack
  797. enable_jack_shared
  798. enable_esd
  799. with_esd_prefix
  800. with_esd_exec_prefix
  801. enable_esdtest
  802. enable_esd_shared
  803. enable_pipewire
  804. enable_pipewire_shared
  805. enable_pulseaudio
  806. enable_pulseaudio_shared
  807. enable_arts
  808. enable_arts_shared
  809. enable_nas
  810. enable_nas_shared
  811. enable_sndio
  812. enable_sndio_shared
  813. enable_fusionsound
  814. enable_fusionsound_shared
  815. enable_diskaudio
  816. enable_dummyaudio
  817. enable_libsamplerate
  818. enable_libsamplerate_shared
  819. enable_arm_simd
  820. enable_arm_neon
  821. enable_video_wayland
  822. enable_video_wayland_qt_touch
  823. enable_wayland_shared
  824. enable_libdecor
  825. enable_libdecor_shared
  826. enable_video_rpi
  827. enable_video_x11
  828. with_x
  829. enable_x11_shared
  830. enable_video_x11_xcursor
  831. enable_video_x11_xdbe
  832. enable_video_x11_xinput
  833. enable_video_x11_xfixes
  834. enable_video_x11_xrandr
  835. enable_video_x11_scrnsaver
  836. enable_video_x11_xshape
  837. enable_video_vivante
  838. enable_video_cocoa
  839. enable_video_metal
  840. enable_render_metal
  841. enable_video_directfb
  842. enable_directfb_shared
  843. enable_video_kmsdrm
  844. enable_kmsdrm_shared
  845. enable_video_dummy
  846. enable_video_offscreen
  847. enable_video_opengl
  848. enable_video_opengles
  849. enable_video_opengles1
  850. enable_video_opengles2
  851. enable_video_vulkan
  852. enable_libudev
  853. enable_dbus
  854. enable_ime
  855. enable_ibus
  856. enable_fcitx
  857. enable_joystick_mfi
  858. enable_pthreads
  859. enable_pthread_sem
  860. enable_directx
  861. enable_xinput
  862. enable_wasapi
  863. enable_hidapi_joystick
  864. enable_hidapi_libusb
  865. enable_clock_gettime
  866. enable_rpath
  867. enable_backgrounding_signal
  868. enable_foregrounding_signal
  869. enable_joystick_virtual
  870. enable_render_d3d
  871. enable_sdl2_config
  872. '
  873. ac_precious_vars='build_alias
  874. host_alias
  875. target_alias
  876. CC
  877. CFLAGS
  878. LDFLAGS
  879. LIBS
  880. CPPFLAGS
  881. LT_SYS_LIBRARY_PATH
  882. CPP
  883. CXX
  884. CXXFLAGS
  885. CCC
  886. CXXCPP
  887. PKG_CONFIG
  888. PKG_CONFIG_PATH
  889. PKG_CONFIG_LIBDIR
  890. JACK_CFLAGS
  891. JACK_LIBS
  892. PIPEWIRE_CFLAGS
  893. PIPEWIRE_LIBS
  894. PULSEAUDIO_CFLAGS
  895. PULSEAUDIO_LIBS
  896. FUSIONSOUND_CFLAGS
  897. FUSIONSOUND_LIBS
  898. DECOR_CFLAGS
  899. DECOR_LIBS
  900. RPI_CFLAGS
  901. RPI_LIBS
  902. XMKMF
  903. DIRECTFB_CFLAGS
  904. DIRECTFB_LIBS
  905. LIBDRM_CFLAGS
  906. LIBDRM_LIBS
  907. LIBGBM_CFLAGS
  908. LIBGBM_LIBS
  909. DBUS_CFLAGS
  910. DBUS_LIBS
  911. IBUS_CFLAGS
  912. IBUS_LIBS
  913. LIBUSB_CFLAGS
  914. LIBUSB_LIBS'
  915. # Initialize some variables set by options.
  916. ac_init_help=
  917. ac_init_version=false
  918. ac_unrecognized_opts=
  919. ac_unrecognized_sep=
  920. # The variables have the same names as the options, with
  921. # dashes changed to underlines.
  922. cache_file=/dev/null
  923. exec_prefix=NONE
  924. no_create=
  925. no_recursion=
  926. prefix=NONE
  927. program_prefix=NONE
  928. program_suffix=NONE
  929. program_transform_name=s,x,x,
  930. silent=
  931. site=
  932. srcdir=
  933. verbose=
  934. x_includes=NONE
  935. x_libraries=NONE
  936. # Installation directory options.
  937. # These are left unexpanded so users can "make install exec_prefix=/foo"
  938. # and all the variables that are supposed to be based on exec_prefix
  939. # by default will actually change.
  940. # Use braces instead of parens because sh, perl, etc. also accept them.
  941. # (The list follows the same order as the GNU Coding Standards.)
  942. bindir='${exec_prefix}/bin'
  943. sbindir='${exec_prefix}/sbin'
  944. libexecdir='${exec_prefix}/libexec'
  945. datarootdir='${prefix}/share'
  946. datadir='${datarootdir}'
  947. sysconfdir='${prefix}/etc'
  948. sharedstatedir='${prefix}/com'
  949. localstatedir='${prefix}/var'
  950. includedir='${prefix}/include'
  951. oldincludedir='/usr/include'
  952. docdir='${datarootdir}/doc/${PACKAGE}'
  953. infodir='${datarootdir}/info'
  954. htmldir='${docdir}'
  955. dvidir='${docdir}'
  956. pdfdir='${docdir}'
  957. psdir='${docdir}'
  958. libdir='${exec_prefix}/lib'
  959. localedir='${datarootdir}/locale'
  960. mandir='${datarootdir}/man'
  961. ac_prev=
  962. ac_dashdash=
  963. for ac_option
  964. do
  965. # If the previous option needs an argument, assign it.
  966. if test -n "$ac_prev"; then
  967. eval $ac_prev=\$ac_option
  968. ac_prev=
  969. continue
  970. fi
  971. case $ac_option in
  972. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  973. *=) ac_optarg= ;;
  974. *) ac_optarg=yes ;;
  975. esac
  976. # Accept the important Cygnus configure options, so we can diagnose typos.
  977. case $ac_dashdash$ac_option in
  978. --)
  979. ac_dashdash=yes ;;
  980. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  981. ac_prev=bindir ;;
  982. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  983. bindir=$ac_optarg ;;
  984. -build | --build | --buil | --bui | --bu)
  985. ac_prev=build_alias ;;
  986. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  987. build_alias=$ac_optarg ;;
  988. -cache-file | --cache-file | --cache-fil | --cache-fi \
  989. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  990. ac_prev=cache_file ;;
  991. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  992. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  993. cache_file=$ac_optarg ;;
  994. --config-cache | -C)
  995. cache_file=config.cache ;;
  996. -datadir | --datadir | --datadi | --datad)
  997. ac_prev=datadir ;;
  998. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  999. datadir=$ac_optarg ;;
  1000. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1001. | --dataroo | --dataro | --datar)
  1002. ac_prev=datarootdir ;;
  1003. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1004. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1005. datarootdir=$ac_optarg ;;
  1006. -disable-* | --disable-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid feature name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "enable_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval enable_$ac_useropt=no ;;
  1021. -docdir | --docdir | --docdi | --doc | --do)
  1022. ac_prev=docdir ;;
  1023. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1024. docdir=$ac_optarg ;;
  1025. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1026. ac_prev=dvidir ;;
  1027. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1028. dvidir=$ac_optarg ;;
  1029. -enable-* | --enable-*)
  1030. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1031. # Reject names that are not valid shell variable names.
  1032. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1033. as_fn_error $? "invalid feature name: $ac_useropt"
  1034. ac_useropt_orig=$ac_useropt
  1035. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1036. case $ac_user_opts in
  1037. *"
  1038. "enable_$ac_useropt"
  1039. "*) ;;
  1040. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1041. ac_unrecognized_sep=', ';;
  1042. esac
  1043. eval enable_$ac_useropt=\$ac_optarg ;;
  1044. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1045. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1046. | --exec | --exe | --ex)
  1047. ac_prev=exec_prefix ;;
  1048. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1049. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1050. | --exec=* | --exe=* | --ex=*)
  1051. exec_prefix=$ac_optarg ;;
  1052. -gas | --gas | --ga | --g)
  1053. # Obsolete; use --with-gas.
  1054. with_gas=yes ;;
  1055. -help | --help | --hel | --he | -h)
  1056. ac_init_help=long ;;
  1057. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1058. ac_init_help=recursive ;;
  1059. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1060. ac_init_help=short ;;
  1061. -host | --host | --hos | --ho)
  1062. ac_prev=host_alias ;;
  1063. -host=* | --host=* | --hos=* | --ho=*)
  1064. host_alias=$ac_optarg ;;
  1065. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1066. ac_prev=htmldir ;;
  1067. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1068. | --ht=*)
  1069. htmldir=$ac_optarg ;;
  1070. -includedir | --includedir | --includedi | --included | --include \
  1071. | --includ | --inclu | --incl | --inc)
  1072. ac_prev=includedir ;;
  1073. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1074. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1075. includedir=$ac_optarg ;;
  1076. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1077. ac_prev=infodir ;;
  1078. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1079. infodir=$ac_optarg ;;
  1080. -libdir | --libdir | --libdi | --libd)
  1081. ac_prev=libdir ;;
  1082. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1083. libdir=$ac_optarg ;;
  1084. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1085. | --libexe | --libex | --libe)
  1086. ac_prev=libexecdir ;;
  1087. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1088. | --libexe=* | --libex=* | --libe=*)
  1089. libexecdir=$ac_optarg ;;
  1090. -localedir | --localedir | --localedi | --localed | --locale)
  1091. ac_prev=localedir ;;
  1092. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1093. localedir=$ac_optarg ;;
  1094. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1095. | --localstate | --localstat | --localsta | --localst | --locals)
  1096. ac_prev=localstatedir ;;
  1097. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1098. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1099. localstatedir=$ac_optarg ;;
  1100. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1101. ac_prev=mandir ;;
  1102. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1103. mandir=$ac_optarg ;;
  1104. -nfp | --nfp | --nf)
  1105. # Obsolete; use --without-fp.
  1106. with_fp=no ;;
  1107. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1108. | --no-cr | --no-c | -n)
  1109. no_create=yes ;;
  1110. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1111. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1112. no_recursion=yes ;;
  1113. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1114. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1115. | --oldin | --oldi | --old | --ol | --o)
  1116. ac_prev=oldincludedir ;;
  1117. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1118. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1119. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1120. oldincludedir=$ac_optarg ;;
  1121. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1122. ac_prev=prefix ;;
  1123. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1124. prefix=$ac_optarg ;;
  1125. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1126. | --program-pre | --program-pr | --program-p)
  1127. ac_prev=program_prefix ;;
  1128. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1129. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1130. program_prefix=$ac_optarg ;;
  1131. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1132. | --program-suf | --program-su | --program-s)
  1133. ac_prev=program_suffix ;;
  1134. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1135. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1136. program_suffix=$ac_optarg ;;
  1137. -program-transform-name | --program-transform-name \
  1138. | --program-transform-nam | --program-transform-na \
  1139. | --program-transform-n | --program-transform- \
  1140. | --program-transform | --program-transfor \
  1141. | --program-transfo | --program-transf \
  1142. | --program-trans | --program-tran \
  1143. | --progr-tra | --program-tr | --program-t)
  1144. ac_prev=program_transform_name ;;
  1145. -program-transform-name=* | --program-transform-name=* \
  1146. | --program-transform-nam=* | --program-transform-na=* \
  1147. | --program-transform-n=* | --program-transform-=* \
  1148. | --program-transform=* | --program-transfor=* \
  1149. | --program-transfo=* | --program-transf=* \
  1150. | --program-trans=* | --program-tran=* \
  1151. | --progr-tra=* | --program-tr=* | --program-t=*)
  1152. program_transform_name=$ac_optarg ;;
  1153. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1154. ac_prev=pdfdir ;;
  1155. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1156. pdfdir=$ac_optarg ;;
  1157. -psdir | --psdir | --psdi | --psd | --ps)
  1158. ac_prev=psdir ;;
  1159. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1160. psdir=$ac_optarg ;;
  1161. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1162. | -silent | --silent | --silen | --sile | --sil)
  1163. silent=yes ;;
  1164. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1165. ac_prev=sbindir ;;
  1166. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1167. | --sbi=* | --sb=*)
  1168. sbindir=$ac_optarg ;;
  1169. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1170. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1171. | --sharedst | --shareds | --shared | --share | --shar \
  1172. | --sha | --sh)
  1173. ac_prev=sharedstatedir ;;
  1174. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1175. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1176. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1177. | --sha=* | --sh=*)
  1178. sharedstatedir=$ac_optarg ;;
  1179. -site | --site | --sit)
  1180. ac_prev=site ;;
  1181. -site=* | --site=* | --sit=*)
  1182. site=$ac_optarg ;;
  1183. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1184. ac_prev=srcdir ;;
  1185. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1186. srcdir=$ac_optarg ;;
  1187. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1188. | --syscon | --sysco | --sysc | --sys | --sy)
  1189. ac_prev=sysconfdir ;;
  1190. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1191. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1192. sysconfdir=$ac_optarg ;;
  1193. -target | --target | --targe | --targ | --tar | --ta | --t)
  1194. ac_prev=target_alias ;;
  1195. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1196. target_alias=$ac_optarg ;;
  1197. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1198. verbose=yes ;;
  1199. -version | --version | --versio | --versi | --vers | -V)
  1200. ac_init_version=: ;;
  1201. -with-* | --with-*)
  1202. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1205. as_fn_error $? "invalid package name: $ac_useropt"
  1206. ac_useropt_orig=$ac_useropt
  1207. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1208. case $ac_user_opts in
  1209. *"
  1210. "with_$ac_useropt"
  1211. "*) ;;
  1212. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1213. ac_unrecognized_sep=', ';;
  1214. esac
  1215. eval with_$ac_useropt=\$ac_optarg ;;
  1216. -without-* | --without-*)
  1217. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1218. # Reject names that are not valid shell variable names.
  1219. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1220. as_fn_error $? "invalid package name: $ac_useropt"
  1221. ac_useropt_orig=$ac_useropt
  1222. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1223. case $ac_user_opts in
  1224. *"
  1225. "with_$ac_useropt"
  1226. "*) ;;
  1227. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1228. ac_unrecognized_sep=', ';;
  1229. esac
  1230. eval with_$ac_useropt=no ;;
  1231. --x)
  1232. # Obsolete; use --with-x.
  1233. with_x=yes ;;
  1234. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1235. | --x-incl | --x-inc | --x-in | --x-i)
  1236. ac_prev=x_includes ;;
  1237. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1238. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1239. x_includes=$ac_optarg ;;
  1240. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1241. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1242. ac_prev=x_libraries ;;
  1243. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1244. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1245. x_libraries=$ac_optarg ;;
  1246. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1247. Try \`$0 --help' for more information"
  1248. ;;
  1249. *=*)
  1250. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1251. # Reject names that are not valid shell variable names.
  1252. case $ac_envvar in #(
  1253. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1254. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1255. esac
  1256. eval $ac_envvar=\$ac_optarg
  1257. export $ac_envvar ;;
  1258. *)
  1259. # FIXME: should be removed in autoconf 3.0.
  1260. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1261. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1262. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1263. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1264. ;;
  1265. esac
  1266. done
  1267. if test -n "$ac_prev"; then
  1268. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1269. as_fn_error $? "missing argument to $ac_option"
  1270. fi
  1271. if test -n "$ac_unrecognized_opts"; then
  1272. case $enable_option_checking in
  1273. no) ;;
  1274. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1275. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1276. esac
  1277. fi
  1278. # Check all directory arguments for consistency.
  1279. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1280. datadir sysconfdir sharedstatedir localstatedir includedir \
  1281. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1282. libdir localedir mandir
  1283. do
  1284. eval ac_val=\$$ac_var
  1285. # Remove trailing slashes.
  1286. case $ac_val in
  1287. */ )
  1288. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1289. eval $ac_var=\$ac_val;;
  1290. esac
  1291. # Be sure to have absolute directory names.
  1292. case $ac_val in
  1293. [\\/$]* | ?:[\\/]* ) continue;;
  1294. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1295. esac
  1296. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1297. done
  1298. # There might be people who depend on the old broken behavior: `$host'
  1299. # used to hold the argument of --host etc.
  1300. # FIXME: To remove some day.
  1301. build=$build_alias
  1302. host=$host_alias
  1303. target=$target_alias
  1304. # FIXME: To remove some day.
  1305. if test "x$host_alias" != x; then
  1306. if test "x$build_alias" = x; then
  1307. cross_compiling=maybe
  1308. elif test "x$build_alias" != "x$host_alias"; then
  1309. cross_compiling=yes
  1310. fi
  1311. fi
  1312. ac_tool_prefix=
  1313. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1314. test "$silent" = yes && exec 6>/dev/null
  1315. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1316. ac_ls_di=`ls -di .` &&
  1317. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1318. as_fn_error $? "working directory cannot be determined"
  1319. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1320. as_fn_error $? "pwd does not report name of working directory"
  1321. # Find the source files, if location was not specified.
  1322. if test -z "$srcdir"; then
  1323. ac_srcdir_defaulted=yes
  1324. # Try the directory containing this script, then the parent directory.
  1325. ac_confdir=`$as_dirname -- "$as_myself" ||
  1326. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1327. X"$as_myself" : 'X\(//\)[^/]' \| \
  1328. X"$as_myself" : 'X\(//\)$' \| \
  1329. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1330. $as_echo X"$as_myself" |
  1331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1332. s//\1/
  1333. q
  1334. }
  1335. /^X\(\/\/\)[^/].*/{
  1336. s//\1/
  1337. q
  1338. }
  1339. /^X\(\/\/\)$/{
  1340. s//\1/
  1341. q
  1342. }
  1343. /^X\(\/\).*/{
  1344. s//\1/
  1345. q
  1346. }
  1347. s/.*/./; q'`
  1348. srcdir=$ac_confdir
  1349. if test ! -r "$srcdir/$ac_unique_file"; then
  1350. srcdir=..
  1351. fi
  1352. else
  1353. ac_srcdir_defaulted=no
  1354. fi
  1355. if test ! -r "$srcdir/$ac_unique_file"; then
  1356. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1357. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1358. fi
  1359. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1360. ac_abs_confdir=`(
  1361. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1362. pwd)`
  1363. # When building in place, set srcdir=.
  1364. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1365. srcdir=.
  1366. fi
  1367. # Remove unnecessary trailing slashes from srcdir.
  1368. # Double slashes in file names in object file debugging info
  1369. # mess up M-x gdb in Emacs.
  1370. case $srcdir in
  1371. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1372. esac
  1373. for ac_var in $ac_precious_vars; do
  1374. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1375. eval ac_env_${ac_var}_value=\$${ac_var}
  1376. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1378. done
  1379. #
  1380. # Report the --help message.
  1381. #
  1382. if test "$ac_init_help" = "long"; then
  1383. # Omit some internal or obsolete options to make the list less imposing.
  1384. # This message is too long to be a string in the A/UX 3.1 sh.
  1385. cat <<_ACEOF
  1386. \`configure' configures this package to adapt to many kinds of systems.
  1387. Usage: $0 [OPTION]... [VAR=VALUE]...
  1388. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1389. VAR=VALUE. See below for descriptions of some of the useful variables.
  1390. Defaults for the options are specified in brackets.
  1391. Configuration:
  1392. -h, --help display this help and exit
  1393. --help=short display options specific to this package
  1394. --help=recursive display the short help of all the included packages
  1395. -V, --version display version information and exit
  1396. -q, --quiet, --silent do not print \`checking ...' messages
  1397. --cache-file=FILE cache test results in FILE [disabled]
  1398. -C, --config-cache alias for \`--cache-file=config.cache'
  1399. -n, --no-create do not create output files
  1400. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1401. Installation directories:
  1402. --prefix=PREFIX install architecture-independent files in PREFIX
  1403. [$ac_default_prefix]
  1404. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1405. [PREFIX]
  1406. By default, \`make install' will install all the files in
  1407. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1408. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1409. for instance \`--prefix=\$HOME'.
  1410. For better control, use the options below.
  1411. Fine tuning of the installation directories:
  1412. --bindir=DIR user executables [EPREFIX/bin]
  1413. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1414. --libexecdir=DIR program executables [EPREFIX/libexec]
  1415. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1416. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1417. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1418. --libdir=DIR object code libraries [EPREFIX/lib]
  1419. --includedir=DIR C header files [PREFIX/include]
  1420. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1421. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1422. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1423. --infodir=DIR info documentation [DATAROOTDIR/info]
  1424. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1425. --mandir=DIR man documentation [DATAROOTDIR/man]
  1426. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1427. --htmldir=DIR html documentation [DOCDIR]
  1428. --dvidir=DIR dvi documentation [DOCDIR]
  1429. --pdfdir=DIR pdf documentation [DOCDIR]
  1430. --psdir=DIR ps documentation [DOCDIR]
  1431. _ACEOF
  1432. cat <<\_ACEOF
  1433. X features:
  1434. --x-includes=DIR X include files are in DIR
  1435. --x-libraries=DIR X library files are in DIR
  1436. System types:
  1437. --build=BUILD configure for building on BUILD [guessed]
  1438. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1439. _ACEOF
  1440. fi
  1441. if test -n "$ac_init_help"; then
  1442. cat <<\_ACEOF
  1443. Optional Features:
  1444. --disable-option-checking ignore unrecognized --enable/--with options
  1445. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1446. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1447. --enable-shared[=PKGS] build shared libraries [default=yes]
  1448. --enable-static[=PKGS] build static libraries [default=yes]
  1449. --enable-fast-install[=PKGS]
  1450. optimize for fast installation [default=yes]
  1451. --disable-libtool-lock avoid locking (might break parallel builds)
  1452. --disable-largefile omit support for large files
  1453. --enable-assertions Enable internal sanity checks
  1454. (auto/disabled/release/enabled/paranoid)
  1455. [default=auto]
  1456. --enable-dependency-tracking
  1457. Use gcc -MMD -MT dependency tracking [default=yes]
  1458. --enable-libc Use the system C library [default=yes]
  1459. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1460. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1461. --enable-audio Enable the audio subsystem [default=yes]
  1462. --enable-video Enable the video subsystem [default=yes]
  1463. --enable-render Enable the render subsystem [default=yes]
  1464. --enable-events Enable the events subsystem [default=yes]
  1465. --enable-joystick Enable the joystick subsystem [default=yes]
  1466. --enable-haptic Enable the haptic (force feedback) subsystem
  1467. [default=yes]
  1468. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1469. --enable-sensor Enable the sensor subsystem [default=yes]
  1470. --enable-power Enable the power subsystem [default=yes]
  1471. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1472. --enable-threads Enable the threading subsystem [default=yes]
  1473. --enable-timers Enable the timer subsystem [default=yes]
  1474. --enable-file Enable the file subsystem [default=yes]
  1475. --enable-misc Enable the misc subsystem [default=yes]
  1476. --enable-locale Enable the locale subsystem [default=yes]
  1477. --enable-loadso Enable the shared object loading subsystem
  1478. [default=yes]
  1479. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1480. --enable-assembly Enable assembly routines [default=yes]
  1481. --enable-ssemath Allow GCC to use SSE floating point math
  1482. [default=maybe]
  1483. --enable-mmx use MMX assembly routines [default=yes]
  1484. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1485. --enable-sse use SSE assembly routines [default=yes]
  1486. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1487. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1488. --enable-altivec use Altivec assembly routines [default=yes]
  1489. --enable-oss support the OSS audio API [default=maybe]
  1490. --enable-alsa support the ALSA audio API [default=yes]
  1491. --disable-alsatest Do not try to compile and run a test Alsa program
  1492. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1493. --enable-jack use JACK audio [default=yes]
  1494. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1495. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1496. --disable-esdtest Do not try to compile and run a test ESD program
  1497. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1498. --enable-pipewire use Pipewire audio [default=yes]
  1499. --enable-pipewire-shared
  1500. dynamically load Pipewire support [default=yes]
  1501. --enable-pulseaudio use PulseAudio [default=yes]
  1502. --enable-pulseaudio-shared
  1503. dynamically load PulseAudio support [default=yes]
  1504. --enable-arts support the Analog Real Time Synthesizer
  1505. [default=yes]
  1506. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1507. --enable-nas support the NAS audio API [default=yes]
  1508. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1509. --enable-sndio support the sndio audio API [default=yes]
  1510. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1511. --enable-fusionsound use FusionSound audio driver [default=no]
  1512. --enable-fusionsound-shared
  1513. dynamically load fusionsound audio support
  1514. [default=yes]
  1515. --enable-diskaudio support the disk writer audio driver [default=yes]
  1516. --enable-dummyaudio support the dummy audio driver [default=yes]
  1517. --enable-libsamplerate use libsamplerate for audio rate conversion
  1518. [default=yes]
  1519. --enable-libsamplerate-shared
  1520. dynamically load libsamplerate [default=yes]
  1521. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1522. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1523. --enable-video-wayland use Wayland video driver [default=yes]
  1524. --enable-video-wayland-qt-touch
  1525. QtWayland server support for Wayland video driver
  1526. [default=yes]
  1527. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1528. --enable-libdecor use libdecor for Wayland client-side decorations
  1529. [default=yes]
  1530. --enable-libdecor-shared
  1531. dynamically load libdecor [default=yes]
  1532. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1533. --enable-video-x11 use X11 video driver [default=yes]
  1534. --enable-x11-shared dynamically load X11 support [default=maybe]
  1535. --enable-video-x11-xcursor
  1536. enable X11 Xcursor support [default=yes]
  1537. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1538. --enable-video-x11-xinput
  1539. enable X11 XInput extension for manymouse, tablets,
  1540. etc [default=yes]
  1541. --enable-video-x11-xfixes
  1542. enable X11 Xfixes support [default=yes]
  1543. --enable-video-x11-xrandr
  1544. enable X11 Xrandr extension for fullscreen
  1545. [default=yes]
  1546. --enable-video-x11-scrnsaver
  1547. enable X11 screensaver extension [default=yes]
  1548. --enable-video-x11-xshape
  1549. enable X11 XShape support [default=yes]
  1550. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1551. --enable-video-cocoa use Cocoa video driver [default=yes]
  1552. --enable-video-metal include Metal support [default=yes]
  1553. --enable-render-metal enable the Metal render driver [default=yes]
  1554. --enable-video-directfb use DirectFB video driver [default=no]
  1555. --enable-directfb-shared
  1556. dynamically load directfb support [default=yes]
  1557. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1558. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1559. --enable-video-dummy use dummy video driver [default=yes]
  1560. --enable-video-offscreen
  1561. use offscreen video driver [default=no]
  1562. --enable-video-opengl include OpenGL support [default=yes]
  1563. --enable-video-opengles include OpenGL ES support [default=yes]
  1564. --enable-video-opengles1
  1565. include OpenGL ES 1.1 support [default=yes]
  1566. --enable-video-opengles2
  1567. include OpenGL ES 2.0 support [default=yes]
  1568. --enable-video-vulkan include Vulkan support [default=yes]
  1569. --enable-libudev enable libudev support [default=yes]
  1570. --enable-dbus enable D-Bus support [default=yes]
  1571. --enable-ime enable IME support [default=yes]
  1572. --enable-ibus enable IBus support [default=yes]
  1573. --enable-fcitx enable fcitx support [default=yes]
  1574. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1575. --enable-pthreads use POSIX threads for multi-threading
  1576. [default=maybe]
  1577. --enable-pthread-sem use pthread semaphores [default=maybe]
  1578. --enable-directx use DirectX for Windows audio/video [default=yes]
  1579. --enable-xinput use Xinput for Windows [default=yes]
  1580. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1581. --enable-hidapi-joystick
  1582. use HIDAPI for low level joystick drivers
  1583. [default=yes]
  1584. --enable-hidapi-libusb use libusb for low level joystick drivers
  1585. [default=maybe]
  1586. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1587. UNIX [default=yes]
  1588. --enable-rpath use an rpath when linking SDL [default=yes]
  1589. --enable-backgrounding-signal
  1590. number to use for magic backgrounding signal or 'no'
  1591. [default=no]
  1592. --enable-foregrounding-signal
  1593. number to use for magic foregrounding signal or 'no'
  1594. [default=no]
  1595. --enable-joystick-virtual
  1596. enable virtual joystick APIs [default=yes]
  1597. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1598. --enable-sdl2-config Install sdl2-config [default=yes]
  1599. Optional Packages:
  1600. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1601. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1602. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1603. both]
  1604. --with-aix-soname=aix|svr4|both
  1605. shared library versioning (aka "SONAME") variant to
  1606. provide on AIX, [default=aix].
  1607. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1608. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1609. compiler's sysroot if not specified).
  1610. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1611. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1612. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1613. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1614. --with-x use the X Window System
  1615. Some influential environment variables:
  1616. CC C compiler command
  1617. CFLAGS C compiler flags
  1618. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1619. nonstandard directory <lib dir>
  1620. LIBS libraries to pass to the linker, e.g. -l<library>
  1621. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1622. you have headers in a nonstandard directory <include dir>
  1623. LT_SYS_LIBRARY_PATH
  1624. User-defined run-time library search path.
  1625. CPP C preprocessor
  1626. CXX C++ compiler command
  1627. CXXFLAGS C++ compiler flags
  1628. CXXCPP C++ preprocessor
  1629. PKG_CONFIG path to pkg-config utility
  1630. PKG_CONFIG_PATH
  1631. directories to add to pkg-config's search path
  1632. PKG_CONFIG_LIBDIR
  1633. path overriding pkg-config's built-in search path
  1634. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1635. JACK_LIBS linker flags for JACK, overriding pkg-config
  1636. PIPEWIRE_CFLAGS
  1637. C compiler flags for PIPEWIRE, overriding pkg-config
  1638. PIPEWIRE_LIBS
  1639. linker flags for PIPEWIRE, overriding pkg-config
  1640. PULSEAUDIO_CFLAGS
  1641. C compiler flags for PULSEAUDIO, overriding pkg-config
  1642. PULSEAUDIO_LIBS
  1643. linker flags for PULSEAUDIO, overriding pkg-config
  1644. FUSIONSOUND_CFLAGS
  1645. C compiler flags for FUSIONSOUND, overriding pkg-config
  1646. FUSIONSOUND_LIBS
  1647. linker flags for FUSIONSOUND, overriding pkg-config
  1648. DECOR_CFLAGS
  1649. C compiler flags for DECOR, overriding pkg-config
  1650. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1651. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1652. RPI_LIBS linker flags for RPI, overriding pkg-config
  1653. XMKMF Path to xmkmf, Makefile generator for X Window System
  1654. DIRECTFB_CFLAGS
  1655. C compiler flags for DIRECTFB, overriding pkg-config
  1656. DIRECTFB_LIBS
  1657. linker flags for DIRECTFB, overriding pkg-config
  1658. LIBDRM_CFLAGS
  1659. C compiler flags for LIBDRM, overriding pkg-config
  1660. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1661. LIBGBM_CFLAGS
  1662. C compiler flags for LIBGBM, overriding pkg-config
  1663. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1664. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1665. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1666. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1667. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1668. LIBUSB_CFLAGS
  1669. C compiler flags for LIBUSB, overriding pkg-config
  1670. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1671. Use these variables to override the choices made by `configure' or to help
  1672. it to find libraries and programs with nonstandard names/locations.
  1673. Report bugs to the package provider.
  1674. _ACEOF
  1675. ac_status=$?
  1676. fi
  1677. if test "$ac_init_help" = "recursive"; then
  1678. # If there are subdirs, report their specific --help.
  1679. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1680. test -d "$ac_dir" ||
  1681. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1682. continue
  1683. ac_builddir=.
  1684. case "$ac_dir" in
  1685. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1686. *)
  1687. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1688. # A ".." for each directory in $ac_dir_suffix.
  1689. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1690. case $ac_top_builddir_sub in
  1691. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1692. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1693. esac ;;
  1694. esac
  1695. ac_abs_top_builddir=$ac_pwd
  1696. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1697. # for backward compatibility:
  1698. ac_top_builddir=$ac_top_build_prefix
  1699. case $srcdir in
  1700. .) # We are building in place.
  1701. ac_srcdir=.
  1702. ac_top_srcdir=$ac_top_builddir_sub
  1703. ac_abs_top_srcdir=$ac_pwd ;;
  1704. [\\/]* | ?:[\\/]* ) # Absolute name.
  1705. ac_srcdir=$srcdir$ac_dir_suffix;
  1706. ac_top_srcdir=$srcdir
  1707. ac_abs_top_srcdir=$srcdir ;;
  1708. *) # Relative name.
  1709. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1710. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1711. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1712. esac
  1713. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1714. cd "$ac_dir" || { ac_status=$?; continue; }
  1715. # Check for guested configure.
  1716. if test -f "$ac_srcdir/configure.gnu"; then
  1717. echo &&
  1718. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1719. elif test -f "$ac_srcdir/configure"; then
  1720. echo &&
  1721. $SHELL "$ac_srcdir/configure" --help=recursive
  1722. else
  1723. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1724. fi || ac_status=$?
  1725. cd "$ac_pwd" || { ac_status=$?; break; }
  1726. done
  1727. fi
  1728. test -n "$ac_init_help" && exit $ac_status
  1729. if $ac_init_version; then
  1730. cat <<\_ACEOF
  1731. configure
  1732. generated by GNU Autoconf 2.69
  1733. Copyright (C) 2012 Free Software Foundation, Inc.
  1734. This configure script is free software; the Free Software Foundation
  1735. gives unlimited permission to copy, distribute and modify it.
  1736. _ACEOF
  1737. exit
  1738. fi
  1739. ## ------------------------ ##
  1740. ## Autoconf initialization. ##
  1741. ## ------------------------ ##
  1742. # ac_fn_c_try_compile LINENO
  1743. # --------------------------
  1744. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1745. ac_fn_c_try_compile ()
  1746. {
  1747. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1748. rm -f conftest.$ac_objext
  1749. if { { ac_try="$ac_compile"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_compile") 2>conftest.err
  1757. ac_status=$?
  1758. if test -s conftest.err; then
  1759. grep -v '^ *+' conftest.err >conftest.er1
  1760. cat conftest.er1 >&5
  1761. mv -f conftest.er1 conftest.err
  1762. fi
  1763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1764. test $ac_status = 0; } && {
  1765. test -z "$ac_c_werror_flag" ||
  1766. test ! -s conftest.err
  1767. } && test -s conftest.$ac_objext; then :
  1768. ac_retval=0
  1769. else
  1770. $as_echo "$as_me: failed program was:" >&5
  1771. sed 's/^/| /' conftest.$ac_ext >&5
  1772. ac_retval=1
  1773. fi
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_c_try_compile
  1777. # ac_fn_c_try_link LINENO
  1778. # -----------------------
  1779. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1780. ac_fn_c_try_link ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. rm -f conftest.$ac_objext conftest$ac_exeext
  1784. if { { ac_try="$ac_link"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. $as_echo "$ac_try_echo"; } >&5
  1791. (eval "$ac_link") 2>conftest.err
  1792. ac_status=$?
  1793. if test -s conftest.err; then
  1794. grep -v '^ *+' conftest.err >conftest.er1
  1795. cat conftest.er1 >&5
  1796. mv -f conftest.er1 conftest.err
  1797. fi
  1798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1799. test $ac_status = 0; } && {
  1800. test -z "$ac_c_werror_flag" ||
  1801. test ! -s conftest.err
  1802. } && test -s conftest$ac_exeext && {
  1803. test "$cross_compiling" = yes ||
  1804. test -x conftest$ac_exeext
  1805. }; then :
  1806. ac_retval=0
  1807. else
  1808. $as_echo "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=1
  1811. fi
  1812. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1813. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1814. # interfere with the next link command; also delete a directory that is
  1815. # left behind by Apple's compiler. We do this before executing the actions.
  1816. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_c_try_link
  1820. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1821. # -------------------------------------------------------
  1822. # Tests whether HEADER exists and can be compiled using the include files in
  1823. # INCLUDES, setting the cache variable VAR accordingly.
  1824. ac_fn_c_check_header_compile ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1828. $as_echo_n "checking for $2... " >&6; }
  1829. if eval \${$3+:} false; then :
  1830. $as_echo_n "(cached) " >&6
  1831. else
  1832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1833. /* end confdefs.h. */
  1834. $4
  1835. #include <$2>
  1836. _ACEOF
  1837. if ac_fn_c_try_compile "$LINENO"; then :
  1838. eval "$3=yes"
  1839. else
  1840. eval "$3=no"
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1843. fi
  1844. eval ac_res=\$$3
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1846. $as_echo "$ac_res" >&6; }
  1847. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1848. } # ac_fn_c_check_header_compile
  1849. # ac_fn_c_try_cpp LINENO
  1850. # ----------------------
  1851. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1852. ac_fn_c_try_cpp ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1856. case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo"; } >&5
  1862. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1863. ac_status=$?
  1864. if test -s conftest.err; then
  1865. grep -v '^ *+' conftest.err >conftest.er1
  1866. cat conftest.er1 >&5
  1867. mv -f conftest.er1 conftest.err
  1868. fi
  1869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1870. test $ac_status = 0; } > conftest.i && {
  1871. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1872. test ! -s conftest.err
  1873. }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=1
  1879. fi
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. as_fn_set_status $ac_retval
  1882. } # ac_fn_c_try_cpp
  1883. # ac_fn_c_try_run LINENO
  1884. # ----------------------
  1885. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1886. # that executables *can* be run.
  1887. ac_fn_c_try_run ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. if { { ac_try="$ac_link"
  1891. case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897. (eval "$ac_link") 2>&5
  1898. ac_status=$?
  1899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1900. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1901. { { case "(($ac_try" in
  1902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1903. *) ac_try_echo=$ac_try;;
  1904. esac
  1905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1906. $as_echo "$ac_try_echo"; } >&5
  1907. (eval "$ac_try") 2>&5
  1908. ac_status=$?
  1909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1910. test $ac_status = 0; }; }; then :
  1911. ac_retval=0
  1912. else
  1913. $as_echo "$as_me: program exited with status $ac_status" >&5
  1914. $as_echo "$as_me: failed program was:" >&5
  1915. sed 's/^/| /' conftest.$ac_ext >&5
  1916. ac_retval=$ac_status
  1917. fi
  1918. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. as_fn_set_status $ac_retval
  1921. } # ac_fn_c_try_run
  1922. # ac_fn_c_check_func LINENO FUNC VAR
  1923. # ----------------------------------
  1924. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1925. ac_fn_c_check_func ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1929. $as_echo_n "checking for $2... " >&6; }
  1930. if eval \${$3+:} false; then :
  1931. $as_echo_n "(cached) " >&6
  1932. else
  1933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1934. /* end confdefs.h. */
  1935. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1936. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1937. #define $2 innocuous_$2
  1938. /* System header to define __stub macros and hopefully few prototypes,
  1939. which can conflict with char $2 (); below.
  1940. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1941. <limits.h> exists even on freestanding compilers. */
  1942. #ifdef __STDC__
  1943. # include <limits.h>
  1944. #else
  1945. # include <assert.h>
  1946. #endif
  1947. #undef $2
  1948. /* Override any GCC internal prototype to avoid an error.
  1949. Use char because int might match the return type of a GCC
  1950. builtin and then its argument prototype would still apply. */
  1951. #ifdef __cplusplus
  1952. extern "C"
  1953. #endif
  1954. char $2 ();
  1955. /* The GNU C library defines this for functions which it implements
  1956. to always fail with ENOSYS. Some functions are actually named
  1957. something starting with __ and the normal name is an alias. */
  1958. #if defined __stub_$2 || defined __stub___$2
  1959. choke me
  1960. #endif
  1961. int
  1962. main ()
  1963. {
  1964. return $2 ();
  1965. ;
  1966. return 0;
  1967. }
  1968. _ACEOF
  1969. if ac_fn_c_try_link "$LINENO"; then :
  1970. eval "$3=yes"
  1971. else
  1972. eval "$3=no"
  1973. fi
  1974. rm -f core conftest.err conftest.$ac_objext \
  1975. conftest$ac_exeext conftest.$ac_ext
  1976. fi
  1977. eval ac_res=\$$3
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1979. $as_echo "$ac_res" >&6; }
  1980. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1981. } # ac_fn_c_check_func
  1982. # ac_fn_cxx_try_compile LINENO
  1983. # ----------------------------
  1984. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1985. ac_fn_cxx_try_compile ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. rm -f conftest.$ac_objext
  1989. if { { ac_try="$ac_compile"
  1990. case "(($ac_try" in
  1991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1992. *) ac_try_echo=$ac_try;;
  1993. esac
  1994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1995. $as_echo "$ac_try_echo"; } >&5
  1996. (eval "$ac_compile") 2>conftest.err
  1997. ac_status=$?
  1998. if test -s conftest.err; then
  1999. grep -v '^ *+' conftest.err >conftest.er1
  2000. cat conftest.er1 >&5
  2001. mv -f conftest.er1 conftest.err
  2002. fi
  2003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2004. test $ac_status = 0; } && {
  2005. test -z "$ac_cxx_werror_flag" ||
  2006. test ! -s conftest.err
  2007. } && test -s conftest.$ac_objext; then :
  2008. ac_retval=0
  2009. else
  2010. $as_echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_retval=1
  2013. fi
  2014. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2015. as_fn_set_status $ac_retval
  2016. } # ac_fn_cxx_try_compile
  2017. # ac_fn_cxx_try_cpp LINENO
  2018. # ------------------------
  2019. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2020. ac_fn_cxx_try_cpp ()
  2021. {
  2022. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2023. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2024. case "(($ac_try" in
  2025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2026. *) ac_try_echo=$ac_try;;
  2027. esac
  2028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2029. $as_echo "$ac_try_echo"; } >&5
  2030. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2031. ac_status=$?
  2032. if test -s conftest.err; then
  2033. grep -v '^ *+' conftest.err >conftest.er1
  2034. cat conftest.er1 >&5
  2035. mv -f conftest.er1 conftest.err
  2036. fi
  2037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2038. test $ac_status = 0; } > conftest.i && {
  2039. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2040. test ! -s conftest.err
  2041. }; then :
  2042. ac_retval=0
  2043. else
  2044. $as_echo "$as_me: failed program was:" >&5
  2045. sed 's/^/| /' conftest.$ac_ext >&5
  2046. ac_retval=1
  2047. fi
  2048. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2049. as_fn_set_status $ac_retval
  2050. } # ac_fn_cxx_try_cpp
  2051. # ac_fn_cxx_try_link LINENO
  2052. # -------------------------
  2053. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2054. ac_fn_cxx_try_link ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. rm -f conftest.$ac_objext conftest$ac_exeext
  2058. if { { ac_try="$ac_link"
  2059. case "(($ac_try" in
  2060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2061. *) ac_try_echo=$ac_try;;
  2062. esac
  2063. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2064. $as_echo "$ac_try_echo"; } >&5
  2065. (eval "$ac_link") 2>conftest.err
  2066. ac_status=$?
  2067. if test -s conftest.err; then
  2068. grep -v '^ *+' conftest.err >conftest.er1
  2069. cat conftest.er1 >&5
  2070. mv -f conftest.er1 conftest.err
  2071. fi
  2072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2073. test $ac_status = 0; } && {
  2074. test -z "$ac_cxx_werror_flag" ||
  2075. test ! -s conftest.err
  2076. } && test -s conftest$ac_exeext && {
  2077. test "$cross_compiling" = yes ||
  2078. test -x conftest$ac_exeext
  2079. }; then :
  2080. ac_retval=0
  2081. else
  2082. $as_echo "$as_me: failed program was:" >&5
  2083. sed 's/^/| /' conftest.$ac_ext >&5
  2084. ac_retval=1
  2085. fi
  2086. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2087. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2088. # interfere with the next link command; also delete a directory that is
  2089. # left behind by Apple's compiler. We do this before executing the actions.
  2090. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2091. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2092. as_fn_set_status $ac_retval
  2093. } # ac_fn_cxx_try_link
  2094. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2095. # -------------------------------------------------------
  2096. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2097. # the include files in INCLUDES and setting the cache variable VAR
  2098. # accordingly.
  2099. ac_fn_c_check_header_mongrel ()
  2100. {
  2101. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2102. if eval \${$3+:} false; then :
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2104. $as_echo_n "checking for $2... " >&6; }
  2105. if eval \${$3+:} false; then :
  2106. $as_echo_n "(cached) " >&6
  2107. fi
  2108. eval ac_res=\$$3
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2110. $as_echo "$ac_res" >&6; }
  2111. else
  2112. # Is the header compilable?
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2114. $as_echo_n "checking $2 usability... " >&6; }
  2115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2116. /* end confdefs.h. */
  2117. $4
  2118. #include <$2>
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. ac_header_compiler=yes
  2122. else
  2123. ac_header_compiler=no
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2127. $as_echo "$ac_header_compiler" >&6; }
  2128. # Is the header present?
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2130. $as_echo_n "checking $2 presence... " >&6; }
  2131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2132. /* end confdefs.h. */
  2133. #include <$2>
  2134. _ACEOF
  2135. if ac_fn_c_try_cpp "$LINENO"; then :
  2136. ac_header_preproc=yes
  2137. else
  2138. ac_header_preproc=no
  2139. fi
  2140. rm -f conftest.err conftest.i conftest.$ac_ext
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2142. $as_echo "$ac_header_preproc" >&6; }
  2143. # So? What about this header?
  2144. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2145. yes:no: )
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2147. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2149. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2150. ;;
  2151. no:yes:* )
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2153. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2155. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2157. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2159. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2161. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2162. ;;
  2163. esac
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2165. $as_echo_n "checking for $2... " >&6; }
  2166. if eval \${$3+:} false; then :
  2167. $as_echo_n "(cached) " >&6
  2168. else
  2169. eval "$3=\$ac_header_compiler"
  2170. fi
  2171. eval ac_res=\$$3
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2173. $as_echo "$ac_res" >&6; }
  2174. fi
  2175. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2176. } # ac_fn_c_check_header_mongrel
  2177. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2178. # -------------------------------------------
  2179. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2180. # variable VAR accordingly.
  2181. ac_fn_c_check_type ()
  2182. {
  2183. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2185. $as_echo_n "checking for $2... " >&6; }
  2186. if eval \${$3+:} false; then :
  2187. $as_echo_n "(cached) " >&6
  2188. else
  2189. eval "$3=no"
  2190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2191. /* end confdefs.h. */
  2192. $4
  2193. int
  2194. main ()
  2195. {
  2196. if (sizeof ($2))
  2197. return 0;
  2198. ;
  2199. return 0;
  2200. }
  2201. _ACEOF
  2202. if ac_fn_c_try_compile "$LINENO"; then :
  2203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2204. /* end confdefs.h. */
  2205. $4
  2206. int
  2207. main ()
  2208. {
  2209. if (sizeof (($2)))
  2210. return 0;
  2211. ;
  2212. return 0;
  2213. }
  2214. _ACEOF
  2215. if ac_fn_c_try_compile "$LINENO"; then :
  2216. else
  2217. eval "$3=yes"
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2222. fi
  2223. eval ac_res=\$$3
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2225. $as_echo "$ac_res" >&6; }
  2226. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2227. } # ac_fn_c_check_type
  2228. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2229. # ----------------------------------------------------
  2230. # Tries to find if the field MEMBER exists in type AGGR, after including
  2231. # INCLUDES, setting cache variable VAR accordingly.
  2232. ac_fn_c_check_member ()
  2233. {
  2234. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2236. $as_echo_n "checking for $2.$3... " >&6; }
  2237. if eval \${$4+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2241. /* end confdefs.h. */
  2242. $5
  2243. int
  2244. main ()
  2245. {
  2246. static $2 ac_aggr;
  2247. if (ac_aggr.$3)
  2248. return 0;
  2249. ;
  2250. return 0;
  2251. }
  2252. _ACEOF
  2253. if ac_fn_c_try_compile "$LINENO"; then :
  2254. eval "$4=yes"
  2255. else
  2256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2257. /* end confdefs.h. */
  2258. $5
  2259. int
  2260. main ()
  2261. {
  2262. static $2 ac_aggr;
  2263. if (sizeof ac_aggr.$3)
  2264. return 0;
  2265. ;
  2266. return 0;
  2267. }
  2268. _ACEOF
  2269. if ac_fn_c_try_compile "$LINENO"; then :
  2270. eval "$4=yes"
  2271. else
  2272. eval "$4=no"
  2273. fi
  2274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2275. fi
  2276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2277. fi
  2278. eval ac_res=\$$4
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2280. $as_echo "$ac_res" >&6; }
  2281. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2282. } # ac_fn_c_check_member
  2283. cat >config.log <<_ACEOF
  2284. This file contains any messages produced by compilers while
  2285. running configure, to aid debugging if configure makes a mistake.
  2286. It was created by $as_me, which was
  2287. generated by GNU Autoconf 2.69. Invocation command line was
  2288. $ $0 $@
  2289. _ACEOF
  2290. exec 5>>config.log
  2291. {
  2292. cat <<_ASUNAME
  2293. ## --------- ##
  2294. ## Platform. ##
  2295. ## --------- ##
  2296. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2297. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2298. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2299. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2300. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2301. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2302. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2303. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2304. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2305. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2306. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2307. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2308. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2309. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2310. _ASUNAME
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. $as_echo "PATH: $as_dir"
  2317. done
  2318. IFS=$as_save_IFS
  2319. } >&5
  2320. cat >&5 <<_ACEOF
  2321. ## ----------- ##
  2322. ## Core tests. ##
  2323. ## ----------- ##
  2324. _ACEOF
  2325. # Keep a trace of the command line.
  2326. # Strip out --no-create and --no-recursion so they do not pile up.
  2327. # Strip out --silent because we don't want to record it for future runs.
  2328. # Also quote any args containing shell meta-characters.
  2329. # Make two passes to allow for proper duplicate-argument suppression.
  2330. ac_configure_args=
  2331. ac_configure_args0=
  2332. ac_configure_args1=
  2333. ac_must_keep_next=false
  2334. for ac_pass in 1 2
  2335. do
  2336. for ac_arg
  2337. do
  2338. case $ac_arg in
  2339. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2340. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2341. | -silent | --silent | --silen | --sile | --sil)
  2342. continue ;;
  2343. *\'*)
  2344. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2345. esac
  2346. case $ac_pass in
  2347. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2348. 2)
  2349. as_fn_append ac_configure_args1 " '$ac_arg'"
  2350. if test $ac_must_keep_next = true; then
  2351. ac_must_keep_next=false # Got value, back to normal.
  2352. else
  2353. case $ac_arg in
  2354. *=* | --config-cache | -C | -disable-* | --disable-* \
  2355. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2356. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2357. | -with-* | --with-* | -without-* | --without-* | --x)
  2358. case "$ac_configure_args0 " in
  2359. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2360. esac
  2361. ;;
  2362. -* ) ac_must_keep_next=true ;;
  2363. esac
  2364. fi
  2365. as_fn_append ac_configure_args " '$ac_arg'"
  2366. ;;
  2367. esac
  2368. done
  2369. done
  2370. { ac_configure_args0=; unset ac_configure_args0;}
  2371. { ac_configure_args1=; unset ac_configure_args1;}
  2372. # When interrupted or exit'd, cleanup temporary files, and complete
  2373. # config.log. We remove comments because anyway the quotes in there
  2374. # would cause problems or look ugly.
  2375. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2376. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2377. trap 'exit_status=$?
  2378. # Save into config.log some information that might help in debugging.
  2379. {
  2380. echo
  2381. $as_echo "## ---------------- ##
  2382. ## Cache variables. ##
  2383. ## ---------------- ##"
  2384. echo
  2385. # The following way of writing the cache mishandles newlines in values,
  2386. (
  2387. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in #(
  2390. *${as_nl}*)
  2391. case $ac_var in #(
  2392. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2393. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2394. esac
  2395. case $ac_var in #(
  2396. _ | IFS | as_nl) ;; #(
  2397. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2398. *) { eval $ac_var=; unset $ac_var;} ;;
  2399. esac ;;
  2400. esac
  2401. done
  2402. (set) 2>&1 |
  2403. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2404. *${as_nl}ac_space=\ *)
  2405. sed -n \
  2406. "s/'\''/'\''\\\\'\'''\''/g;
  2407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2408. ;; #(
  2409. *)
  2410. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2411. ;;
  2412. esac |
  2413. sort
  2414. )
  2415. echo
  2416. $as_echo "## ----------------- ##
  2417. ## Output variables. ##
  2418. ## ----------------- ##"
  2419. echo
  2420. for ac_var in $ac_subst_vars
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. $as_echo "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. if test -n "$ac_subst_files"; then
  2430. $as_echo "## ------------------- ##
  2431. ## File substitutions. ##
  2432. ## ------------------- ##"
  2433. echo
  2434. for ac_var in $ac_subst_files
  2435. do
  2436. eval ac_val=\$$ac_var
  2437. case $ac_val in
  2438. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2439. esac
  2440. $as_echo "$ac_var='\''$ac_val'\''"
  2441. done | sort
  2442. echo
  2443. fi
  2444. if test -s confdefs.h; then
  2445. $as_echo "## ----------- ##
  2446. ## confdefs.h. ##
  2447. ## ----------- ##"
  2448. echo
  2449. cat confdefs.h
  2450. echo
  2451. fi
  2452. test "$ac_signal" != 0 &&
  2453. $as_echo "$as_me: caught signal $ac_signal"
  2454. $as_echo "$as_me: exit $exit_status"
  2455. } >&5
  2456. rm -f core *.core core.conftest.* &&
  2457. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2458. exit $exit_status
  2459. ' 0
  2460. for ac_signal in 1 2 13 15; do
  2461. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2462. done
  2463. ac_signal=0
  2464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2465. rm -f -r conftest* confdefs.h
  2466. $as_echo "/* confdefs.h */" > confdefs.h
  2467. # Predefined preprocessor variables.
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_NAME "$PACKAGE_NAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_STRING "$PACKAGE_STRING"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2482. _ACEOF
  2483. cat >>confdefs.h <<_ACEOF
  2484. #define PACKAGE_URL "$PACKAGE_URL"
  2485. _ACEOF
  2486. # Let the site file select an alternate cache file if it wants to.
  2487. # Prefer an explicitly selected file to automatically selected ones.
  2488. ac_site_file1=NONE
  2489. ac_site_file2=NONE
  2490. if test -n "$CONFIG_SITE"; then
  2491. # We do not want a PATH search for config.site.
  2492. case $CONFIG_SITE in #((
  2493. -*) ac_site_file1=./$CONFIG_SITE;;
  2494. */*) ac_site_file1=$CONFIG_SITE;;
  2495. *) ac_site_file1=./$CONFIG_SITE;;
  2496. esac
  2497. elif test "x$prefix" != xNONE; then
  2498. ac_site_file1=$prefix/share/config.site
  2499. ac_site_file2=$prefix/etc/config.site
  2500. else
  2501. ac_site_file1=$ac_default_prefix/share/config.site
  2502. ac_site_file2=$ac_default_prefix/etc/config.site
  2503. fi
  2504. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2505. do
  2506. test "x$ac_site_file" = xNONE && continue
  2507. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2509. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2510. sed 's/^/| /' "$ac_site_file" >&5
  2511. . "$ac_site_file" \
  2512. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2513. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2514. as_fn_error $? "failed to load site script $ac_site_file
  2515. See \`config.log' for more details" "$LINENO" 5; }
  2516. fi
  2517. done
  2518. if test -r "$cache_file"; then
  2519. # Some versions of bash will fail to source /dev/null (special files
  2520. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2521. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2523. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2524. case $cache_file in
  2525. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2526. *) . "./$cache_file";;
  2527. esac
  2528. fi
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2531. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2532. >$cache_file
  2533. fi
  2534. # Check that the precious variables saved in the cache have kept the same
  2535. # value.
  2536. ac_cache_corrupted=false
  2537. for ac_var in $ac_precious_vars; do
  2538. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2539. eval ac_new_set=\$ac_env_${ac_var}_set
  2540. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2541. eval ac_new_val=\$ac_env_${ac_var}_value
  2542. case $ac_old_set,$ac_new_set in
  2543. set,)
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2545. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2546. ac_cache_corrupted=: ;;
  2547. ,set)
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2550. ac_cache_corrupted=: ;;
  2551. ,);;
  2552. *)
  2553. if test "x$ac_old_val" != "x$ac_new_val"; then
  2554. # differences in whitespace do not lead to failure.
  2555. ac_old_val_w=`echo x $ac_old_val`
  2556. ac_new_val_w=`echo x $ac_new_val`
  2557. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2559. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2560. ac_cache_corrupted=:
  2561. else
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2563. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2564. eval $ac_var=\$ac_old_val
  2565. fi
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2567. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2569. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2570. fi;;
  2571. esac
  2572. # Pass precious variables to config.status.
  2573. if test "$ac_new_set" = set; then
  2574. case $ac_new_val in
  2575. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2576. *) ac_arg=$ac_var=$ac_new_val ;;
  2577. esac
  2578. case " $ac_configure_args " in
  2579. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2580. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2581. esac
  2582. fi
  2583. done
  2584. if $ac_cache_corrupted; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2586. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2588. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2589. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2590. fi
  2591. ## -------------------- ##
  2592. ## Main body of script. ##
  2593. ## -------------------- ##
  2594. ac_ext=c
  2595. ac_cpp='$CPP $CPPFLAGS'
  2596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2599. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2600. ac_aux_dir=
  2601. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2602. if test -f "$ac_dir/install-sh"; then
  2603. ac_aux_dir=$ac_dir
  2604. ac_install_sh="$ac_aux_dir/install-sh -c"
  2605. break
  2606. elif test -f "$ac_dir/install.sh"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/install.sh -c"
  2609. break
  2610. elif test -f "$ac_dir/shtool"; then
  2611. ac_aux_dir=$ac_dir
  2612. ac_install_sh="$ac_aux_dir/shtool install -c"
  2613. break
  2614. fi
  2615. done
  2616. if test -z "$ac_aux_dir"; then
  2617. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2618. fi
  2619. # These three variables are undocumented and unsupported,
  2620. # and are intended to be withdrawn in a future Autoconf release.
  2621. # They can cause serious problems if a builder's source tree is in a directory
  2622. # whose full name contains unusual characters.
  2623. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2624. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2625. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2626. orig_CFLAGS="$CFLAGS"
  2627. # See docs/release_checklist.md
  2628. SDL_MAJOR_VERSION=2
  2629. SDL_MINOR_VERSION=23
  2630. SDL_MICRO_VERSION=0
  2631. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2632. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2633. case "$SDL_MINOR_VERSION" in #(
  2634. *[02468]) :
  2635. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2636. *) :
  2637. SDL_INTERFACE_AGE=0 ;; #(
  2638. *) :
  2639. ;;
  2640. esac
  2641. # libtool versioning
  2642. case `pwd` in
  2643. *\ * | *\ *)
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2645. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2646. esac
  2647. macro_version='2.4.6'
  2648. macro_revision='2.4.6'
  2649. ltmain=$ac_aux_dir/ltmain.sh
  2650. # Make sure we can run config.sub.
  2651. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2652. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2654. $as_echo_n "checking build system type... " >&6; }
  2655. if ${ac_cv_build+:} false; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. ac_build_alias=$build_alias
  2659. test "x$ac_build_alias" = x &&
  2660. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2661. test "x$ac_build_alias" = x &&
  2662. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2663. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2664. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2665. fi
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2667. $as_echo "$ac_cv_build" >&6; }
  2668. case $ac_cv_build in
  2669. *-*-*) ;;
  2670. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2671. esac
  2672. build=$ac_cv_build
  2673. ac_save_IFS=$IFS; IFS='-'
  2674. set x $ac_cv_build
  2675. shift
  2676. build_cpu=$1
  2677. build_vendor=$2
  2678. shift; shift
  2679. # Remember, the first character of IFS is used to create $*,
  2680. # except with old shells:
  2681. build_os=$*
  2682. IFS=$ac_save_IFS
  2683. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2685. $as_echo_n "checking host system type... " >&6; }
  2686. if ${ac_cv_host+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test "x$host_alias" = x; then
  2690. ac_cv_host=$ac_cv_build
  2691. else
  2692. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2693. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2694. fi
  2695. fi
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2697. $as_echo "$ac_cv_host" >&6; }
  2698. case $ac_cv_host in
  2699. *-*-*) ;;
  2700. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2701. esac
  2702. host=$ac_cv_host
  2703. ac_save_IFS=$IFS; IFS='-'
  2704. set x $ac_cv_host
  2705. shift
  2706. host_cpu=$1
  2707. host_vendor=$2
  2708. shift; shift
  2709. # Remember, the first character of IFS is used to create $*,
  2710. # except with old shells:
  2711. host_os=$*
  2712. IFS=$ac_save_IFS
  2713. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2714. # Backslashify metacharacters that are still active within
  2715. # double-quoted strings.
  2716. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2717. # Same as above, but do not quote variable references.
  2718. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2719. # Sed substitution to delay expansion of an escaped shell variable in a
  2720. # double_quote_subst'ed string.
  2721. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2722. # Sed substitution to delay expansion of an escaped single quote.
  2723. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2724. # Sed substitution to avoid accidental globbing in evaled expressions
  2725. no_glob_subst='s/\*/\\\*/g'
  2726. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2727. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2728. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2730. $as_echo_n "checking how to print strings... " >&6; }
  2731. # Test print first, because it will be a builtin if present.
  2732. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2733. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2734. ECHO='print -r --'
  2735. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2736. ECHO='printf %s\n'
  2737. else
  2738. # Use this function as a fallback that always works.
  2739. func_fallback_echo ()
  2740. {
  2741. eval 'cat <<_LTECHO_EOF
  2742. $1
  2743. _LTECHO_EOF'
  2744. }
  2745. ECHO='func_fallback_echo'
  2746. fi
  2747. # func_echo_all arg...
  2748. # Invoke $ECHO with all args, space-separated.
  2749. func_echo_all ()
  2750. {
  2751. $ECHO ""
  2752. }
  2753. case $ECHO in
  2754. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2755. $as_echo "printf" >&6; } ;;
  2756. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2757. $as_echo "print -r" >&6; } ;;
  2758. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2759. $as_echo "cat" >&6; } ;;
  2760. esac
  2761. ac_ext=c
  2762. ac_cpp='$CPP $CPPFLAGS'
  2763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2766. if test -n "$ac_tool_prefix"; then
  2767. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2768. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if ${ac_cv_prog_CC+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2784. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. if test -z "$ac_cv_prog_CC"; then
  2803. ac_ct_CC=$CC
  2804. # Extract the first word of "gcc", so it can be a program name with args.
  2805. set dummy gcc; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$ac_ct_CC"; then
  2812. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2821. ac_cv_prog_ac_ct_CC="gcc"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. fi
  2829. fi
  2830. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2831. if test -n "$ac_ct_CC"; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2833. $as_echo "$ac_ct_CC" >&6; }
  2834. else
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. $as_echo "no" >&6; }
  2837. fi
  2838. if test "x$ac_ct_CC" = x; then
  2839. CC=""
  2840. else
  2841. case $cross_compiling:$ac_tool_warned in
  2842. yes:)
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2845. ac_tool_warned=yes ;;
  2846. esac
  2847. CC=$ac_ct_CC
  2848. fi
  2849. else
  2850. CC="$ac_cv_prog_CC"
  2851. fi
  2852. if test -z "$CC"; then
  2853. if test -n "$ac_tool_prefix"; then
  2854. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2855. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2857. $as_echo_n "checking for $ac_word... " >&6; }
  2858. if ${ac_cv_prog_CC+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. if test -n "$CC"; then
  2862. ac_cv_prog_CC="$CC" # Let the user override the test.
  2863. else
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2871. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. fi
  2879. fi
  2880. CC=$ac_cv_prog_CC
  2881. if test -n "$CC"; then
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2883. $as_echo "$CC" >&6; }
  2884. else
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. fi
  2888. fi
  2889. fi
  2890. if test -z "$CC"; then
  2891. # Extract the first word of "cc", so it can be a program name with args.
  2892. set dummy cc; ac_word=$2
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2894. $as_echo_n "checking for $ac_word... " >&6; }
  2895. if ${ac_cv_prog_CC+:} false; then :
  2896. $as_echo_n "(cached) " >&6
  2897. else
  2898. if test -n "$CC"; then
  2899. ac_cv_prog_CC="$CC" # Let the user override the test.
  2900. else
  2901. ac_prog_rejected=no
  2902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2903. for as_dir in $PATH
  2904. do
  2905. IFS=$as_save_IFS
  2906. test -z "$as_dir" && as_dir=.
  2907. for ac_exec_ext in '' $ac_executable_extensions; do
  2908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2909. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2910. ac_prog_rejected=yes
  2911. continue
  2912. fi
  2913. ac_cv_prog_CC="cc"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. if test $ac_prog_rejected = yes; then
  2921. # We found a bogon in the path, so make sure we never use it.
  2922. set dummy $ac_cv_prog_CC
  2923. shift
  2924. if test $# != 0; then
  2925. # We chose a different compiler from the bogus one.
  2926. # However, it has the same basename, so the bogon will be chosen
  2927. # first if we set CC to just the basename; use the full file name.
  2928. shift
  2929. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2930. fi
  2931. fi
  2932. fi
  2933. fi
  2934. CC=$ac_cv_prog_CC
  2935. if test -n "$CC"; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2937. $as_echo "$CC" >&6; }
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. fi
  2942. fi
  2943. if test -z "$CC"; then
  2944. if test -n "$ac_tool_prefix"; then
  2945. for ac_prog in cl.exe
  2946. do
  2947. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2948. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2950. $as_echo_n "checking for $ac_word... " >&6; }
  2951. if ${ac_cv_prog_CC+:} false; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. if test -n "$CC"; then
  2955. ac_cv_prog_CC="$CC" # Let the user override the test.
  2956. else
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. for as_dir in $PATH
  2959. do
  2960. IFS=$as_save_IFS
  2961. test -z "$as_dir" && as_dir=.
  2962. for ac_exec_ext in '' $ac_executable_extensions; do
  2963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2964. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2966. break 2
  2967. fi
  2968. done
  2969. done
  2970. IFS=$as_save_IFS
  2971. fi
  2972. fi
  2973. CC=$ac_cv_prog_CC
  2974. if test -n "$CC"; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2976. $as_echo "$CC" >&6; }
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. fi
  2981. test -n "$CC" && break
  2982. done
  2983. fi
  2984. if test -z "$CC"; then
  2985. ac_ct_CC=$CC
  2986. for ac_prog in cl.exe
  2987. do
  2988. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2989. set dummy $ac_prog; ac_word=$2
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2991. $as_echo_n "checking for $ac_word... " >&6; }
  2992. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2993. $as_echo_n "(cached) " >&6
  2994. else
  2995. if test -n "$ac_ct_CC"; then
  2996. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2997. else
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. for as_dir in $PATH
  3000. do
  3001. IFS=$as_save_IFS
  3002. test -z "$as_dir" && as_dir=.
  3003. for ac_exec_ext in '' $ac_executable_extensions; do
  3004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3005. ac_cv_prog_ac_ct_CC="$ac_prog"
  3006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3007. break 2
  3008. fi
  3009. done
  3010. done
  3011. IFS=$as_save_IFS
  3012. fi
  3013. fi
  3014. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3015. if test -n "$ac_ct_CC"; then
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3017. $as_echo "$ac_ct_CC" >&6; }
  3018. else
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3020. $as_echo "no" >&6; }
  3021. fi
  3022. test -n "$ac_ct_CC" && break
  3023. done
  3024. if test "x$ac_ct_CC" = x; then
  3025. CC=""
  3026. else
  3027. case $cross_compiling:$ac_tool_warned in
  3028. yes:)
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3031. ac_tool_warned=yes ;;
  3032. esac
  3033. CC=$ac_ct_CC
  3034. fi
  3035. fi
  3036. fi
  3037. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3039. as_fn_error $? "no acceptable C compiler found in \$PATH
  3040. See \`config.log' for more details" "$LINENO" 5; }
  3041. # Provide some information about the compiler.
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3043. set X $ac_compile
  3044. ac_compiler=$2
  3045. for ac_option in --version -v -V -qversion; do
  3046. { { ac_try="$ac_compiler $ac_option >&5"
  3047. case "(($ac_try" in
  3048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3049. *) ac_try_echo=$ac_try;;
  3050. esac
  3051. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3052. $as_echo "$ac_try_echo"; } >&5
  3053. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3054. ac_status=$?
  3055. if test -s conftest.err; then
  3056. sed '10a\
  3057. ... rest of stderr output deleted ...
  3058. 10q' conftest.err >conftest.er1
  3059. cat conftest.er1 >&5
  3060. fi
  3061. rm -f conftest.er1 conftest.err
  3062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3063. test $ac_status = 0; }
  3064. done
  3065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3066. /* end confdefs.h. */
  3067. int
  3068. main ()
  3069. {
  3070. ;
  3071. return 0;
  3072. }
  3073. _ACEOF
  3074. ac_clean_files_save=$ac_clean_files
  3075. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3076. # Try to create an executable without -o first, disregard a.out.
  3077. # It will help us diagnose broken compilers, and finding out an intuition
  3078. # of exeext.
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3080. $as_echo_n "checking whether the C compiler works... " >&6; }
  3081. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3082. # The possible output files:
  3083. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3084. ac_rmfiles=
  3085. for ac_file in $ac_files
  3086. do
  3087. case $ac_file in
  3088. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3089. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3090. esac
  3091. done
  3092. rm -f $ac_rmfiles
  3093. if { { ac_try="$ac_link_default"
  3094. case "(($ac_try" in
  3095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3096. *) ac_try_echo=$ac_try;;
  3097. esac
  3098. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3099. $as_echo "$ac_try_echo"; } >&5
  3100. (eval "$ac_link_default") 2>&5
  3101. ac_status=$?
  3102. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3103. test $ac_status = 0; }; then :
  3104. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3105. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3106. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3107. # so that the user can short-circuit this test for compilers unknown to
  3108. # Autoconf.
  3109. for ac_file in $ac_files ''
  3110. do
  3111. test -f "$ac_file" || continue
  3112. case $ac_file in
  3113. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3114. ;;
  3115. [ab].out )
  3116. # We found the default executable, but exeext='' is most
  3117. # certainly right.
  3118. break;;
  3119. *.* )
  3120. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3121. then :; else
  3122. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3123. fi
  3124. # We set ac_cv_exeext here because the later test for it is not
  3125. # safe: cross compilers may not add the suffix if given an `-o'
  3126. # argument, so we may need to know it at that point already.
  3127. # Even if this section looks crufty: it has the advantage of
  3128. # actually working.
  3129. break;;
  3130. * )
  3131. break;;
  3132. esac
  3133. done
  3134. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3135. else
  3136. ac_file=''
  3137. fi
  3138. if test -z "$ac_file"; then :
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3140. $as_echo "no" >&6; }
  3141. $as_echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3145. as_fn_error 77 "C compiler cannot create executables
  3146. See \`config.log' for more details" "$LINENO" 5; }
  3147. else
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3149. $as_echo "yes" >&6; }
  3150. fi
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3152. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3154. $as_echo "$ac_file" >&6; }
  3155. ac_exeext=$ac_cv_exeext
  3156. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3157. ac_clean_files=$ac_clean_files_save
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3159. $as_echo_n "checking for suffix of executables... " >&6; }
  3160. if { { ac_try="$ac_link"
  3161. case "(($ac_try" in
  3162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3163. *) ac_try_echo=$ac_try;;
  3164. esac
  3165. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3166. $as_echo "$ac_try_echo"; } >&5
  3167. (eval "$ac_link") 2>&5
  3168. ac_status=$?
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3170. test $ac_status = 0; }; then :
  3171. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3172. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3173. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3174. # `rm'.
  3175. for ac_file in conftest.exe conftest conftest.*; do
  3176. test -f "$ac_file" || continue
  3177. case $ac_file in
  3178. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3179. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3180. break;;
  3181. * ) break;;
  3182. esac
  3183. done
  3184. else
  3185. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3186. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3187. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3188. See \`config.log' for more details" "$LINENO" 5; }
  3189. fi
  3190. rm -f conftest conftest$ac_cv_exeext
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3192. $as_echo "$ac_cv_exeext" >&6; }
  3193. rm -f conftest.$ac_ext
  3194. EXEEXT=$ac_cv_exeext
  3195. ac_exeext=$EXEEXT
  3196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end confdefs.h. */
  3198. #include <stdio.h>
  3199. int
  3200. main ()
  3201. {
  3202. FILE *f = fopen ("conftest.out", "w");
  3203. return ferror (f) || fclose (f) != 0;
  3204. ;
  3205. return 0;
  3206. }
  3207. _ACEOF
  3208. ac_clean_files="$ac_clean_files conftest.out"
  3209. # Check that the compiler produces executables we can run. If not, either
  3210. # the compiler is broken, or we cross compile.
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3212. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3213. if test "$cross_compiling" != yes; then
  3214. { { ac_try="$ac_link"
  3215. case "(($ac_try" in
  3216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3217. *) ac_try_echo=$ac_try;;
  3218. esac
  3219. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3220. $as_echo "$ac_try_echo"; } >&5
  3221. (eval "$ac_link") 2>&5
  3222. ac_status=$?
  3223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3224. test $ac_status = 0; }
  3225. if { ac_try='./conftest$ac_cv_exeext'
  3226. { { case "(($ac_try" in
  3227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3228. *) ac_try_echo=$ac_try;;
  3229. esac
  3230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3231. $as_echo "$ac_try_echo"; } >&5
  3232. (eval "$ac_try") 2>&5
  3233. ac_status=$?
  3234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3235. test $ac_status = 0; }; }; then
  3236. cross_compiling=no
  3237. else
  3238. if test "$cross_compiling" = maybe; then
  3239. cross_compiling=yes
  3240. else
  3241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3243. as_fn_error $? "cannot run C compiled programs.
  3244. If you meant to cross compile, use \`--host'.
  3245. See \`config.log' for more details" "$LINENO" 5; }
  3246. fi
  3247. fi
  3248. fi
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3250. $as_echo "$cross_compiling" >&6; }
  3251. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3252. ac_clean_files=$ac_clean_files_save
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3254. $as_echo_n "checking for suffix of object files... " >&6; }
  3255. if ${ac_cv_objext+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3259. /* end confdefs.h. */
  3260. int
  3261. main ()
  3262. {
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. rm -f conftest.o conftest.obj
  3268. if { { ac_try="$ac_compile"
  3269. case "(($ac_try" in
  3270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3271. *) ac_try_echo=$ac_try;;
  3272. esac
  3273. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3274. $as_echo "$ac_try_echo"; } >&5
  3275. (eval "$ac_compile") 2>&5
  3276. ac_status=$?
  3277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3278. test $ac_status = 0; }; then :
  3279. for ac_file in conftest.o conftest.obj conftest.*; do
  3280. test -f "$ac_file" || continue;
  3281. case $ac_file in
  3282. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3283. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3284. break;;
  3285. esac
  3286. done
  3287. else
  3288. $as_echo "$as_me: failed program was:" >&5
  3289. sed 's/^/| /' conftest.$ac_ext >&5
  3290. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3291. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3292. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3293. See \`config.log' for more details" "$LINENO" 5; }
  3294. fi
  3295. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3298. $as_echo "$ac_cv_objext" >&6; }
  3299. OBJEXT=$ac_cv_objext
  3300. ac_objext=$OBJEXT
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3302. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3303. if ${ac_cv_c_compiler_gnu+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3307. /* end confdefs.h. */
  3308. int
  3309. main ()
  3310. {
  3311. #ifndef __GNUC__
  3312. choke me
  3313. #endif
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. if ac_fn_c_try_compile "$LINENO"; then :
  3319. ac_compiler_gnu=yes
  3320. else
  3321. ac_compiler_gnu=no
  3322. fi
  3323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3324. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3325. fi
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3327. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3328. if test $ac_compiler_gnu = yes; then
  3329. GCC=yes
  3330. else
  3331. GCC=
  3332. fi
  3333. ac_test_CFLAGS=${CFLAGS+set}
  3334. ac_save_CFLAGS=$CFLAGS
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3336. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3337. if ${ac_cv_prog_cc_g+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. ac_save_c_werror_flag=$ac_c_werror_flag
  3341. ac_c_werror_flag=yes
  3342. ac_cv_prog_cc_g=no
  3343. CFLAGS="-g"
  3344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3345. /* end confdefs.h. */
  3346. int
  3347. main ()
  3348. {
  3349. ;
  3350. return 0;
  3351. }
  3352. _ACEOF
  3353. if ac_fn_c_try_compile "$LINENO"; then :
  3354. ac_cv_prog_cc_g=yes
  3355. else
  3356. CFLAGS=""
  3357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3358. /* end confdefs.h. */
  3359. int
  3360. main ()
  3361. {
  3362. ;
  3363. return 0;
  3364. }
  3365. _ACEOF
  3366. if ac_fn_c_try_compile "$LINENO"; then :
  3367. else
  3368. ac_c_werror_flag=$ac_save_c_werror_flag
  3369. CFLAGS="-g"
  3370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3371. /* end confdefs.h. */
  3372. int
  3373. main ()
  3374. {
  3375. ;
  3376. return 0;
  3377. }
  3378. _ACEOF
  3379. if ac_fn_c_try_compile "$LINENO"; then :
  3380. ac_cv_prog_cc_g=yes
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. ac_c_werror_flag=$ac_save_c_werror_flag
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3390. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3391. if test "$ac_test_CFLAGS" = set; then
  3392. CFLAGS=$ac_save_CFLAGS
  3393. elif test $ac_cv_prog_cc_g = yes; then
  3394. if test "$GCC" = yes; then
  3395. CFLAGS="-g -O2"
  3396. else
  3397. CFLAGS="-g"
  3398. fi
  3399. else
  3400. if test "$GCC" = yes; then
  3401. CFLAGS="-O2"
  3402. else
  3403. CFLAGS=
  3404. fi
  3405. fi
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3407. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3408. if ${ac_cv_prog_cc_c89+:} false; then :
  3409. $as_echo_n "(cached) " >&6
  3410. else
  3411. ac_cv_prog_cc_c89=no
  3412. ac_save_CC=$CC
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. #include <stdarg.h>
  3416. #include <stdio.h>
  3417. struct stat;
  3418. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3419. struct buf { int x; };
  3420. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3421. static char *e (p, i)
  3422. char **p;
  3423. int i;
  3424. {
  3425. return p[i];
  3426. }
  3427. static char *f (char * (*g) (char **, int), char **p, ...)
  3428. {
  3429. char *s;
  3430. va_list v;
  3431. va_start (v,p);
  3432. s = g (p, va_arg (v,int));
  3433. va_end (v);
  3434. return s;
  3435. }
  3436. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3437. function prototypes and stuff, but not '\xHH' hex character constants.
  3438. These don't provoke an error unfortunately, instead are silently treated
  3439. as 'x'. The following induces an error, until -std is added to get
  3440. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3441. array size at least. It's necessary to write '\x00'==0 to get something
  3442. that's true only with -std. */
  3443. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3444. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3445. inside strings and character constants. */
  3446. #define FOO(x) 'x'
  3447. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3448. int test (int i, double x);
  3449. struct s1 {int (*f) (int a);};
  3450. struct s2 {int (*f) (double a);};
  3451. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3452. int argc;
  3453. char **argv;
  3454. int
  3455. main ()
  3456. {
  3457. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3463. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3464. do
  3465. CC="$ac_save_CC $ac_arg"
  3466. if ac_fn_c_try_compile "$LINENO"; then :
  3467. ac_cv_prog_cc_c89=$ac_arg
  3468. fi
  3469. rm -f core conftest.err conftest.$ac_objext
  3470. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3471. done
  3472. rm -f conftest.$ac_ext
  3473. CC=$ac_save_CC
  3474. fi
  3475. # AC_CACHE_VAL
  3476. case "x$ac_cv_prog_cc_c89" in
  3477. x)
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3479. $as_echo "none needed" >&6; } ;;
  3480. xno)
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3482. $as_echo "unsupported" >&6; } ;;
  3483. *)
  3484. CC="$CC $ac_cv_prog_cc_c89"
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3486. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3487. esac
  3488. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3489. fi
  3490. ac_ext=c
  3491. ac_cpp='$CPP $CPPFLAGS'
  3492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3496. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3497. if ${ac_cv_path_SED+:} false; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3501. for ac_i in 1 2 3 4 5 6 7; do
  3502. ac_script="$ac_script$as_nl$ac_script"
  3503. done
  3504. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3505. { ac_script=; unset ac_script;}
  3506. if test -z "$SED"; then
  3507. ac_path_SED_found=false
  3508. # Loop through the user's path and test for each of PROGNAME-LIST
  3509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3510. for as_dir in $PATH
  3511. do
  3512. IFS=$as_save_IFS
  3513. test -z "$as_dir" && as_dir=.
  3514. for ac_prog in sed gsed; do
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3517. as_fn_executable_p "$ac_path_SED" || continue
  3518. # Check for GNU ac_path_SED and select it if it is found.
  3519. # Check for GNU $ac_path_SED
  3520. case `"$ac_path_SED" --version 2>&1` in
  3521. *GNU*)
  3522. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3523. *)
  3524. ac_count=0
  3525. $as_echo_n 0123456789 >"conftest.in"
  3526. while :
  3527. do
  3528. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3529. mv "conftest.tmp" "conftest.in"
  3530. cp "conftest.in" "conftest.nl"
  3531. $as_echo '' >> "conftest.nl"
  3532. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3533. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3534. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3535. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3536. # Best one so far, save it but keep looking for a better one
  3537. ac_cv_path_SED="$ac_path_SED"
  3538. ac_path_SED_max=$ac_count
  3539. fi
  3540. # 10*(2^10) chars as input seems more than enough
  3541. test $ac_count -gt 10 && break
  3542. done
  3543. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3544. esac
  3545. $ac_path_SED_found && break 3
  3546. done
  3547. done
  3548. done
  3549. IFS=$as_save_IFS
  3550. if test -z "$ac_cv_path_SED"; then
  3551. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3552. fi
  3553. else
  3554. ac_cv_path_SED=$SED
  3555. fi
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3558. $as_echo "$ac_cv_path_SED" >&6; }
  3559. SED="$ac_cv_path_SED"
  3560. rm -f conftest.sed
  3561. test -z "$SED" && SED=sed
  3562. Xsed="$SED -e 1s/^X//"
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3564. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3565. if ${ac_cv_path_GREP+:} false; then :
  3566. $as_echo_n "(cached) " >&6
  3567. else
  3568. if test -z "$GREP"; then
  3569. ac_path_GREP_found=false
  3570. # Loop through the user's path and test for each of PROGNAME-LIST
  3571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3572. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3573. do
  3574. IFS=$as_save_IFS
  3575. test -z "$as_dir" && as_dir=.
  3576. for ac_prog in grep ggrep; do
  3577. for ac_exec_ext in '' $ac_executable_extensions; do
  3578. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3579. as_fn_executable_p "$ac_path_GREP" || continue
  3580. # Check for GNU ac_path_GREP and select it if it is found.
  3581. # Check for GNU $ac_path_GREP
  3582. case `"$ac_path_GREP" --version 2>&1` in
  3583. *GNU*)
  3584. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3585. *)
  3586. ac_count=0
  3587. $as_echo_n 0123456789 >"conftest.in"
  3588. while :
  3589. do
  3590. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3591. mv "conftest.tmp" "conftest.in"
  3592. cp "conftest.in" "conftest.nl"
  3593. $as_echo 'GREP' >> "conftest.nl"
  3594. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3595. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3596. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3597. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3598. # Best one so far, save it but keep looking for a better one
  3599. ac_cv_path_GREP="$ac_path_GREP"
  3600. ac_path_GREP_max=$ac_count
  3601. fi
  3602. # 10*(2^10) chars as input seems more than enough
  3603. test $ac_count -gt 10 && break
  3604. done
  3605. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3606. esac
  3607. $ac_path_GREP_found && break 3
  3608. done
  3609. done
  3610. done
  3611. IFS=$as_save_IFS
  3612. if test -z "$ac_cv_path_GREP"; then
  3613. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3614. fi
  3615. else
  3616. ac_cv_path_GREP=$GREP
  3617. fi
  3618. fi
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3620. $as_echo "$ac_cv_path_GREP" >&6; }
  3621. GREP="$ac_cv_path_GREP"
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3623. $as_echo_n "checking for egrep... " >&6; }
  3624. if ${ac_cv_path_EGREP+:} false; then :
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3628. then ac_cv_path_EGREP="$GREP -E"
  3629. else
  3630. if test -z "$EGREP"; then
  3631. ac_path_EGREP_found=false
  3632. # Loop through the user's path and test for each of PROGNAME-LIST
  3633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3634. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3635. do
  3636. IFS=$as_save_IFS
  3637. test -z "$as_dir" && as_dir=.
  3638. for ac_prog in egrep; do
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3641. as_fn_executable_p "$ac_path_EGREP" || continue
  3642. # Check for GNU ac_path_EGREP and select it if it is found.
  3643. # Check for GNU $ac_path_EGREP
  3644. case `"$ac_path_EGREP" --version 2>&1` in
  3645. *GNU*)
  3646. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3647. *)
  3648. ac_count=0
  3649. $as_echo_n 0123456789 >"conftest.in"
  3650. while :
  3651. do
  3652. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3653. mv "conftest.tmp" "conftest.in"
  3654. cp "conftest.in" "conftest.nl"
  3655. $as_echo 'EGREP' >> "conftest.nl"
  3656. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3657. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3658. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3659. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3660. # Best one so far, save it but keep looking for a better one
  3661. ac_cv_path_EGREP="$ac_path_EGREP"
  3662. ac_path_EGREP_max=$ac_count
  3663. fi
  3664. # 10*(2^10) chars as input seems more than enough
  3665. test $ac_count -gt 10 && break
  3666. done
  3667. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3668. esac
  3669. $ac_path_EGREP_found && break 3
  3670. done
  3671. done
  3672. done
  3673. IFS=$as_save_IFS
  3674. if test -z "$ac_cv_path_EGREP"; then
  3675. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3676. fi
  3677. else
  3678. ac_cv_path_EGREP=$EGREP
  3679. fi
  3680. fi
  3681. fi
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3683. $as_echo "$ac_cv_path_EGREP" >&6; }
  3684. EGREP="$ac_cv_path_EGREP"
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3686. $as_echo_n "checking for fgrep... " >&6; }
  3687. if ${ac_cv_path_FGREP+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3691. then ac_cv_path_FGREP="$GREP -F"
  3692. else
  3693. if test -z "$FGREP"; then
  3694. ac_path_FGREP_found=false
  3695. # Loop through the user's path and test for each of PROGNAME-LIST
  3696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3697. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3698. do
  3699. IFS=$as_save_IFS
  3700. test -z "$as_dir" && as_dir=.
  3701. for ac_prog in fgrep; do
  3702. for ac_exec_ext in '' $ac_executable_extensions; do
  3703. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3704. as_fn_executable_p "$ac_path_FGREP" || continue
  3705. # Check for GNU ac_path_FGREP and select it if it is found.
  3706. # Check for GNU $ac_path_FGREP
  3707. case `"$ac_path_FGREP" --version 2>&1` in
  3708. *GNU*)
  3709. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3710. *)
  3711. ac_count=0
  3712. $as_echo_n 0123456789 >"conftest.in"
  3713. while :
  3714. do
  3715. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3716. mv "conftest.tmp" "conftest.in"
  3717. cp "conftest.in" "conftest.nl"
  3718. $as_echo 'FGREP' >> "conftest.nl"
  3719. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3720. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3721. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3722. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3723. # Best one so far, save it but keep looking for a better one
  3724. ac_cv_path_FGREP="$ac_path_FGREP"
  3725. ac_path_FGREP_max=$ac_count
  3726. fi
  3727. # 10*(2^10) chars as input seems more than enough
  3728. test $ac_count -gt 10 && break
  3729. done
  3730. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3731. esac
  3732. $ac_path_FGREP_found && break 3
  3733. done
  3734. done
  3735. done
  3736. IFS=$as_save_IFS
  3737. if test -z "$ac_cv_path_FGREP"; then
  3738. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3739. fi
  3740. else
  3741. ac_cv_path_FGREP=$FGREP
  3742. fi
  3743. fi
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3746. $as_echo "$ac_cv_path_FGREP" >&6; }
  3747. FGREP="$ac_cv_path_FGREP"
  3748. test -z "$GREP" && GREP=grep
  3749. # Check whether --with-gnu-ld was given.
  3750. if test "${with_gnu_ld+set}" = set; then :
  3751. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3752. else
  3753. with_gnu_ld=no
  3754. fi
  3755. ac_prog=ld
  3756. if test yes = "$GCC"; then
  3757. # Check if gcc -print-prog-name=ld gives a path.
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3759. $as_echo_n "checking for ld used by $CC... " >&6; }
  3760. case $host in
  3761. *-*-mingw*)
  3762. # gcc leaves a trailing carriage return, which upsets mingw
  3763. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3764. *)
  3765. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3766. esac
  3767. case $ac_prog in
  3768. # Accept absolute paths.
  3769. [\\/]* | ?:[\\/]*)
  3770. re_direlt='/[^/][^/]*/\.\./'
  3771. # Canonicalize the pathname of ld
  3772. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3773. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3774. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3775. done
  3776. test -z "$LD" && LD=$ac_prog
  3777. ;;
  3778. "")
  3779. # If it fails, then pretend we aren't using GCC.
  3780. ac_prog=ld
  3781. ;;
  3782. *)
  3783. # If it is relative, then search for the first ld in PATH.
  3784. with_gnu_ld=unknown
  3785. ;;
  3786. esac
  3787. elif test yes = "$with_gnu_ld"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3789. $as_echo_n "checking for GNU ld... " >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3792. $as_echo_n "checking for non-GNU ld... " >&6; }
  3793. fi
  3794. if ${lt_cv_path_LD+:} false; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. if test -z "$LD"; then
  3798. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3799. for ac_dir in $PATH; do
  3800. IFS=$lt_save_ifs
  3801. test -z "$ac_dir" && ac_dir=.
  3802. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3803. lt_cv_path_LD=$ac_dir/$ac_prog
  3804. # Check to see if the program is GNU ld. I'd rather use --version,
  3805. # but apparently some variants of GNU ld only accept -v.
  3806. # Break only if it was the GNU/non-GNU ld that we prefer.
  3807. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3808. *GNU* | *'with BFD'*)
  3809. test no != "$with_gnu_ld" && break
  3810. ;;
  3811. *)
  3812. test yes != "$with_gnu_ld" && break
  3813. ;;
  3814. esac
  3815. fi
  3816. done
  3817. IFS=$lt_save_ifs
  3818. else
  3819. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3820. fi
  3821. fi
  3822. LD=$lt_cv_path_LD
  3823. if test -n "$LD"; then
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3825. $as_echo "$LD" >&6; }
  3826. else
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3828. $as_echo "no" >&6; }
  3829. fi
  3830. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3832. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3833. if ${lt_cv_prog_gnu_ld+:} false; then :
  3834. $as_echo_n "(cached) " >&6
  3835. else
  3836. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3837. case `$LD -v 2>&1 </dev/null` in
  3838. *GNU* | *'with BFD'*)
  3839. lt_cv_prog_gnu_ld=yes
  3840. ;;
  3841. *)
  3842. lt_cv_prog_gnu_ld=no
  3843. ;;
  3844. esac
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3847. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3848. with_gnu_ld=$lt_cv_prog_gnu_ld
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3850. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3851. if ${lt_cv_path_NM+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. if test -n "$NM"; then
  3855. # Let the user override the test.
  3856. lt_cv_path_NM=$NM
  3857. else
  3858. lt_nm_to_check=${ac_tool_prefix}nm
  3859. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3860. lt_nm_to_check="$lt_nm_to_check nm"
  3861. fi
  3862. for lt_tmp_nm in $lt_nm_to_check; do
  3863. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3864. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3865. IFS=$lt_save_ifs
  3866. test -z "$ac_dir" && ac_dir=.
  3867. tmp_nm=$ac_dir/$lt_tmp_nm
  3868. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3869. # Check to see if the nm accepts a BSD-compat flag.
  3870. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3871. # nm: unknown option "B" ignored
  3872. # Tru64's nm complains that /dev/null is an invalid object file
  3873. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3874. case $build_os in
  3875. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3876. *) lt_bad_file=/dev/null ;;
  3877. esac
  3878. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3879. *$lt_bad_file* | *'Invalid file or object type'*)
  3880. lt_cv_path_NM="$tmp_nm -B"
  3881. break 2
  3882. ;;
  3883. *)
  3884. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3885. */dev/null*)
  3886. lt_cv_path_NM="$tmp_nm -p"
  3887. break 2
  3888. ;;
  3889. *)
  3890. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3891. continue # so that we can try to find one that supports BSD flags
  3892. ;;
  3893. esac
  3894. ;;
  3895. esac
  3896. fi
  3897. done
  3898. IFS=$lt_save_ifs
  3899. done
  3900. : ${lt_cv_path_NM=no}
  3901. fi
  3902. fi
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3904. $as_echo "$lt_cv_path_NM" >&6; }
  3905. if test no != "$lt_cv_path_NM"; then
  3906. NM=$lt_cv_path_NM
  3907. else
  3908. # Didn't find any BSD compatible name lister, look for dumpbin.
  3909. if test -n "$DUMPBIN"; then :
  3910. # Let the user override the test.
  3911. else
  3912. if test -n "$ac_tool_prefix"; then
  3913. for ac_prog in dumpbin "link -dump"
  3914. do
  3915. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3916. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3918. $as_echo_n "checking for $ac_word... " >&6; }
  3919. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. if test -n "$DUMPBIN"; then
  3923. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3924. else
  3925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3926. for as_dir in $PATH
  3927. do
  3928. IFS=$as_save_IFS
  3929. test -z "$as_dir" && as_dir=.
  3930. for ac_exec_ext in '' $ac_executable_extensions; do
  3931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3932. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3934. break 2
  3935. fi
  3936. done
  3937. done
  3938. IFS=$as_save_IFS
  3939. fi
  3940. fi
  3941. DUMPBIN=$ac_cv_prog_DUMPBIN
  3942. if test -n "$DUMPBIN"; then
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3944. $as_echo "$DUMPBIN" >&6; }
  3945. else
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3947. $as_echo "no" >&6; }
  3948. fi
  3949. test -n "$DUMPBIN" && break
  3950. done
  3951. fi
  3952. if test -z "$DUMPBIN"; then
  3953. ac_ct_DUMPBIN=$DUMPBIN
  3954. for ac_prog in dumpbin "link -dump"
  3955. do
  3956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3957. set dummy $ac_prog; ac_word=$2
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3959. $as_echo_n "checking for $ac_word... " >&6; }
  3960. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3961. $as_echo_n "(cached) " >&6
  3962. else
  3963. if test -n "$ac_ct_DUMPBIN"; then
  3964. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3965. else
  3966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3967. for as_dir in $PATH
  3968. do
  3969. IFS=$as_save_IFS
  3970. test -z "$as_dir" && as_dir=.
  3971. for ac_exec_ext in '' $ac_executable_extensions; do
  3972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3973. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3975. break 2
  3976. fi
  3977. done
  3978. done
  3979. IFS=$as_save_IFS
  3980. fi
  3981. fi
  3982. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3983. if test -n "$ac_ct_DUMPBIN"; then
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3985. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3986. else
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3988. $as_echo "no" >&6; }
  3989. fi
  3990. test -n "$ac_ct_DUMPBIN" && break
  3991. done
  3992. if test "x$ac_ct_DUMPBIN" = x; then
  3993. DUMPBIN=":"
  3994. else
  3995. case $cross_compiling:$ac_tool_warned in
  3996. yes:)
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3999. ac_tool_warned=yes ;;
  4000. esac
  4001. DUMPBIN=$ac_ct_DUMPBIN
  4002. fi
  4003. fi
  4004. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4005. *COFF*)
  4006. DUMPBIN="$DUMPBIN -symbols -headers"
  4007. ;;
  4008. *)
  4009. DUMPBIN=:
  4010. ;;
  4011. esac
  4012. fi
  4013. if test : != "$DUMPBIN"; then
  4014. NM=$DUMPBIN
  4015. fi
  4016. fi
  4017. test -z "$NM" && NM=nm
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4019. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4020. if ${lt_cv_nm_interface+:} false; then :
  4021. $as_echo_n "(cached) " >&6
  4022. else
  4023. lt_cv_nm_interface="BSD nm"
  4024. echo "int some_variable = 0;" > conftest.$ac_ext
  4025. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4026. (eval "$ac_compile" 2>conftest.err)
  4027. cat conftest.err >&5
  4028. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4029. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4030. cat conftest.err >&5
  4031. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4032. cat conftest.out >&5
  4033. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4034. lt_cv_nm_interface="MS dumpbin"
  4035. fi
  4036. rm -f conftest*
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4039. $as_echo "$lt_cv_nm_interface" >&6; }
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4041. $as_echo_n "checking whether ln -s works... " >&6; }
  4042. LN_S=$as_ln_s
  4043. if test "$LN_S" = "ln -s"; then
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4045. $as_echo "yes" >&6; }
  4046. else
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4048. $as_echo "no, using $LN_S" >&6; }
  4049. fi
  4050. # find the maximum length of command line arguments
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4052. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4053. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4054. $as_echo_n "(cached) " >&6
  4055. else
  4056. i=0
  4057. teststring=ABCD
  4058. case $build_os in
  4059. msdosdjgpp*)
  4060. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4061. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4062. # during glob expansion). Even if it were fixed, the result of this
  4063. # check would be larger than it should be.
  4064. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4065. ;;
  4066. gnu*)
  4067. # Under GNU Hurd, this test is not required because there is
  4068. # no limit to the length of command line arguments.
  4069. # Libtool will interpret -1 as no limit whatsoever
  4070. lt_cv_sys_max_cmd_len=-1;
  4071. ;;
  4072. cygwin* | mingw* | cegcc*)
  4073. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4074. # about 5 minutes as the teststring grows exponentially.
  4075. # Worse, since 9x/ME are not pre-emptively multitasking,
  4076. # you end up with a "frozen" computer, even though with patience
  4077. # the test eventually succeeds (with a max line length of 256k).
  4078. # Instead, let's just punt: use the minimum linelength reported by
  4079. # all of the supported platforms: 8192 (on NT/2K/XP).
  4080. lt_cv_sys_max_cmd_len=8192;
  4081. ;;
  4082. mint*)
  4083. # On MiNT this can take a long time and run out of memory.
  4084. lt_cv_sys_max_cmd_len=8192;
  4085. ;;
  4086. amigaos*)
  4087. # On AmigaOS with pdksh, this test takes hours, literally.
  4088. # So we just punt and use a minimum line length of 8192.
  4089. lt_cv_sys_max_cmd_len=8192;
  4090. ;;
  4091. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4092. # This has been around since 386BSD, at least. Likely further.
  4093. if test -x /sbin/sysctl; then
  4094. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4095. elif test -x /usr/sbin/sysctl; then
  4096. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4097. else
  4098. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4099. fi
  4100. # And add a safety zone
  4101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4102. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4103. ;;
  4104. interix*)
  4105. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4106. lt_cv_sys_max_cmd_len=196608
  4107. ;;
  4108. os2*)
  4109. # The test takes a long time on OS/2.
  4110. lt_cv_sys_max_cmd_len=8192
  4111. ;;
  4112. osf*)
  4113. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4114. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4115. # nice to cause kernel panics so lets avoid the loop below.
  4116. # First set a reasonable default.
  4117. lt_cv_sys_max_cmd_len=16384
  4118. #
  4119. if test -x /sbin/sysconfig; then
  4120. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4121. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4122. esac
  4123. fi
  4124. ;;
  4125. sco3.2v5*)
  4126. lt_cv_sys_max_cmd_len=102400
  4127. ;;
  4128. sysv5* | sco5v6* | sysv4.2uw2*)
  4129. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4130. if test -n "$kargmax"; then
  4131. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4132. else
  4133. lt_cv_sys_max_cmd_len=32768
  4134. fi
  4135. ;;
  4136. *)
  4137. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4138. if test -n "$lt_cv_sys_max_cmd_len" && \
  4139. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4140. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4141. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4142. else
  4143. # Make teststring a little bigger before we do anything with it.
  4144. # a 1K string should be a reasonable start.
  4145. for i in 1 2 3 4 5 6 7 8; do
  4146. teststring=$teststring$teststring
  4147. done
  4148. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4149. # If test is not a shell built-in, we'll probably end up computing a
  4150. # maximum length that is only half of the actual maximum length, but
  4151. # we can't tell.
  4152. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4153. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4154. test 17 != "$i" # 1/2 MB should be enough
  4155. do
  4156. i=`expr $i + 1`
  4157. teststring=$teststring$teststring
  4158. done
  4159. # Only check the string length outside the loop.
  4160. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4161. teststring=
  4162. # Add a significant safety factor because C++ compilers can tack on
  4163. # massive amounts of additional arguments before passing them to the
  4164. # linker. It appears as though 1/2 is a usable value.
  4165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4166. fi
  4167. ;;
  4168. esac
  4169. fi
  4170. if test -n "$lt_cv_sys_max_cmd_len"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4172. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4175. $as_echo "none" >&6; }
  4176. fi
  4177. max_cmd_len=$lt_cv_sys_max_cmd_len
  4178. : ${CP="cp -f"}
  4179. : ${MV="mv -f"}
  4180. : ${RM="rm -f"}
  4181. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4182. lt_unset=unset
  4183. else
  4184. lt_unset=false
  4185. fi
  4186. # test EBCDIC or ASCII
  4187. case `echo X|tr X '\101'` in
  4188. A) # ASCII based system
  4189. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4190. lt_SP2NL='tr \040 \012'
  4191. lt_NL2SP='tr \015\012 \040\040'
  4192. ;;
  4193. *) # EBCDIC based system
  4194. lt_SP2NL='tr \100 \n'
  4195. lt_NL2SP='tr \r\n \100\100'
  4196. ;;
  4197. esac
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4199. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4200. if ${lt_cv_to_host_file_cmd+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. case $host in
  4204. *-*-mingw* )
  4205. case $build in
  4206. *-*-mingw* ) # actually msys
  4207. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4208. ;;
  4209. *-*-cygwin* )
  4210. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4211. ;;
  4212. * ) # otherwise, assume *nix
  4213. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4214. ;;
  4215. esac
  4216. ;;
  4217. *-*-cygwin* )
  4218. case $build in
  4219. *-*-mingw* ) # actually msys
  4220. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4221. ;;
  4222. *-*-cygwin* )
  4223. lt_cv_to_host_file_cmd=func_convert_file_noop
  4224. ;;
  4225. * ) # otherwise, assume *nix
  4226. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4227. ;;
  4228. esac
  4229. ;;
  4230. * ) # unhandled hosts (and "normal" native builds)
  4231. lt_cv_to_host_file_cmd=func_convert_file_noop
  4232. ;;
  4233. esac
  4234. fi
  4235. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4237. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4239. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4240. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. #assume ordinary cross tools, or native build.
  4244. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4245. case $host in
  4246. *-*-mingw* )
  4247. case $build in
  4248. *-*-mingw* ) # actually msys
  4249. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4250. ;;
  4251. esac
  4252. ;;
  4253. esac
  4254. fi
  4255. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4257. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4259. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4260. if ${lt_cv_ld_reload_flag+:} false; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. lt_cv_ld_reload_flag='-r'
  4264. fi
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4266. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4267. reload_flag=$lt_cv_ld_reload_flag
  4268. case $reload_flag in
  4269. "" | " "*) ;;
  4270. *) reload_flag=" $reload_flag" ;;
  4271. esac
  4272. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4273. case $host_os in
  4274. cygwin* | mingw* | pw32* | cegcc*)
  4275. if test yes != "$GCC"; then
  4276. reload_cmds=false
  4277. fi
  4278. ;;
  4279. darwin*)
  4280. if test yes = "$GCC"; then
  4281. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4282. else
  4283. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4284. fi
  4285. ;;
  4286. esac
  4287. if test -n "$ac_tool_prefix"; then
  4288. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4289. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4291. $as_echo_n "checking for $ac_word... " >&6; }
  4292. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. if test -n "$OBJDUMP"; then
  4296. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4297. else
  4298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4299. for as_dir in $PATH
  4300. do
  4301. IFS=$as_save_IFS
  4302. test -z "$as_dir" && as_dir=.
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4305. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4307. break 2
  4308. fi
  4309. done
  4310. done
  4311. IFS=$as_save_IFS
  4312. fi
  4313. fi
  4314. OBJDUMP=$ac_cv_prog_OBJDUMP
  4315. if test -n "$OBJDUMP"; then
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4317. $as_echo "$OBJDUMP" >&6; }
  4318. else
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4320. $as_echo "no" >&6; }
  4321. fi
  4322. fi
  4323. if test -z "$ac_cv_prog_OBJDUMP"; then
  4324. ac_ct_OBJDUMP=$OBJDUMP
  4325. # Extract the first word of "objdump", so it can be a program name with args.
  4326. set dummy objdump; ac_word=$2
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4328. $as_echo_n "checking for $ac_word... " >&6; }
  4329. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4330. $as_echo_n "(cached) " >&6
  4331. else
  4332. if test -n "$ac_ct_OBJDUMP"; then
  4333. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4334. else
  4335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4336. for as_dir in $PATH
  4337. do
  4338. IFS=$as_save_IFS
  4339. test -z "$as_dir" && as_dir=.
  4340. for ac_exec_ext in '' $ac_executable_extensions; do
  4341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4342. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4344. break 2
  4345. fi
  4346. done
  4347. done
  4348. IFS=$as_save_IFS
  4349. fi
  4350. fi
  4351. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4352. if test -n "$ac_ct_OBJDUMP"; then
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4354. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4355. else
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4357. $as_echo "no" >&6; }
  4358. fi
  4359. if test "x$ac_ct_OBJDUMP" = x; then
  4360. OBJDUMP="false"
  4361. else
  4362. case $cross_compiling:$ac_tool_warned in
  4363. yes:)
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4366. ac_tool_warned=yes ;;
  4367. esac
  4368. OBJDUMP=$ac_ct_OBJDUMP
  4369. fi
  4370. else
  4371. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4372. fi
  4373. test -z "$OBJDUMP" && OBJDUMP=objdump
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4375. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4376. if ${lt_cv_deplibs_check_method+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4380. lt_cv_file_magic_test_file=
  4381. lt_cv_deplibs_check_method='unknown'
  4382. # Need to set the preceding variable on all platforms that support
  4383. # interlibrary dependencies.
  4384. # 'none' -- dependencies not supported.
  4385. # 'unknown' -- same as none, but documents that we really don't know.
  4386. # 'pass_all' -- all dependencies passed with no checks.
  4387. # 'test_compile' -- check by making test program.
  4388. # 'file_magic [[regex]]' -- check by looking for files in library path
  4389. # that responds to the $file_magic_cmd with a given extended regex.
  4390. # If you have 'file' or equivalent on your system and you're not sure
  4391. # whether 'pass_all' will *always* work, you probably want this one.
  4392. case $host_os in
  4393. aix[4-9]*)
  4394. lt_cv_deplibs_check_method=pass_all
  4395. ;;
  4396. beos*)
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. bsdi[45]*)
  4400. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4401. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4402. lt_cv_file_magic_test_file=/shlib/libc.so
  4403. ;;
  4404. cygwin*)
  4405. # func_win32_libid is a shell function defined in ltmain.sh
  4406. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4407. lt_cv_file_magic_cmd='func_win32_libid'
  4408. lt_cv_deplibs_check_method=pass_all # SDL customization
  4409. ;;
  4410. mingw* | pw32*)
  4411. # Base MSYS/MinGW do not provide the 'file' command needed by
  4412. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4413. # unless we find 'file', for example because we are cross-compiling.
  4414. if ( file / ) >/dev/null 2>&1; then
  4415. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4416. lt_cv_file_magic_cmd='func_win32_libid'
  4417. else
  4418. # Keep this pattern in sync with the one in func_win32_libid.
  4419. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4420. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4421. fi
  4422. lt_cv_deplibs_check_method=pass_all # SDL customization
  4423. ;;
  4424. cegcc*)
  4425. # use the weaker test based on 'objdump'. See mingw*.
  4426. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4427. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4428. ;;
  4429. darwin* | rhapsody*)
  4430. lt_cv_deplibs_check_method=pass_all
  4431. ;;
  4432. freebsd* | dragonfly* | midnightbsd*)
  4433. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4434. case $host_cpu in
  4435. i*86 )
  4436. # Not sure whether the presence of OpenBSD here was a mistake.
  4437. # Let's accept both of them until this is cleared up.
  4438. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4439. lt_cv_file_magic_cmd=/usr/bin/file
  4440. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4441. ;;
  4442. esac
  4443. else
  4444. lt_cv_deplibs_check_method=pass_all
  4445. fi
  4446. ;;
  4447. haiku*)
  4448. lt_cv_deplibs_check_method=pass_all
  4449. ;;
  4450. hpux10.20* | hpux11*)
  4451. lt_cv_file_magic_cmd=/usr/bin/file
  4452. case $host_cpu in
  4453. ia64*)
  4454. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4455. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4456. ;;
  4457. hppa*64*)
  4458. 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]'
  4459. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4460. ;;
  4461. *)
  4462. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4463. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4464. ;;
  4465. esac
  4466. ;;
  4467. interix[3-9]*)
  4468. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4469. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4470. ;;
  4471. irix5* | irix6* | nonstopux*)
  4472. case $LD in
  4473. *-32|*"-32 ") libmagic=32-bit;;
  4474. *-n32|*"-n32 ") libmagic=N32;;
  4475. *-64|*"-64 ") libmagic=64-bit;;
  4476. *) libmagic=never-match;;
  4477. esac
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. # This must be glibc/ELF.
  4481. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. netbsd*)
  4485. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4486. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4487. else
  4488. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4489. fi
  4490. ;;
  4491. newos6*)
  4492. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4493. lt_cv_file_magic_cmd=/usr/bin/file
  4494. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4495. ;;
  4496. *nto* | *qnx*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. openbsd* | bitrig*)
  4500. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4501. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4502. else
  4503. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4504. fi
  4505. ;;
  4506. osf3* | osf4* | osf5*)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. rdos*)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. solaris*)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. sysv4 | sysv4.3*)
  4519. case $host_vendor in
  4520. motorola)
  4521. 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]'
  4522. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4523. ;;
  4524. ncr)
  4525. lt_cv_deplibs_check_method=pass_all
  4526. ;;
  4527. sequent)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4530. ;;
  4531. sni)
  4532. lt_cv_file_magic_cmd='/bin/file'
  4533. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4534. lt_cv_file_magic_test_file=/lib/libc.so
  4535. ;;
  4536. siemens)
  4537. lt_cv_deplibs_check_method=pass_all
  4538. ;;
  4539. pc)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. esac
  4543. ;;
  4544. tpf*)
  4545. lt_cv_deplibs_check_method=pass_all
  4546. ;;
  4547. os2*)
  4548. lt_cv_deplibs_check_method=pass_all
  4549. ;;
  4550. esac
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4553. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4554. file_magic_glob=
  4555. want_nocaseglob=no
  4556. if test "$build" = "$host"; then
  4557. case $host_os in
  4558. mingw* | pw32*)
  4559. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4560. want_nocaseglob=yes
  4561. else
  4562. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4563. fi
  4564. ;;
  4565. esac
  4566. fi
  4567. file_magic_cmd=$lt_cv_file_magic_cmd
  4568. deplibs_check_method=$lt_cv_deplibs_check_method
  4569. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4570. if test -n "$ac_tool_prefix"; then
  4571. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4572. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4574. $as_echo_n "checking for $ac_word... " >&6; }
  4575. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if test -n "$DLLTOOL"; then
  4579. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4580. else
  4581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4582. for as_dir in $PATH
  4583. do
  4584. IFS=$as_save_IFS
  4585. test -z "$as_dir" && as_dir=.
  4586. for ac_exec_ext in '' $ac_executable_extensions; do
  4587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4588. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4590. break 2
  4591. fi
  4592. done
  4593. done
  4594. IFS=$as_save_IFS
  4595. fi
  4596. fi
  4597. DLLTOOL=$ac_cv_prog_DLLTOOL
  4598. if test -n "$DLLTOOL"; then
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4600. $as_echo "$DLLTOOL" >&6; }
  4601. else
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4603. $as_echo "no" >&6; }
  4604. fi
  4605. fi
  4606. if test -z "$ac_cv_prog_DLLTOOL"; then
  4607. ac_ct_DLLTOOL=$DLLTOOL
  4608. # Extract the first word of "dlltool", so it can be a program name with args.
  4609. set dummy dlltool; ac_word=$2
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4611. $as_echo_n "checking for $ac_word... " >&6; }
  4612. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4613. $as_echo_n "(cached) " >&6
  4614. else
  4615. if test -n "$ac_ct_DLLTOOL"; then
  4616. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4617. else
  4618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4619. for as_dir in $PATH
  4620. do
  4621. IFS=$as_save_IFS
  4622. test -z "$as_dir" && as_dir=.
  4623. for ac_exec_ext in '' $ac_executable_extensions; do
  4624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4625. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4627. break 2
  4628. fi
  4629. done
  4630. done
  4631. IFS=$as_save_IFS
  4632. fi
  4633. fi
  4634. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4635. if test -n "$ac_ct_DLLTOOL"; then
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4637. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4638. else
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4640. $as_echo "no" >&6; }
  4641. fi
  4642. if test "x$ac_ct_DLLTOOL" = x; then
  4643. DLLTOOL="false"
  4644. else
  4645. case $cross_compiling:$ac_tool_warned in
  4646. yes:)
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4649. ac_tool_warned=yes ;;
  4650. esac
  4651. DLLTOOL=$ac_ct_DLLTOOL
  4652. fi
  4653. else
  4654. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4655. fi
  4656. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4658. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4659. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4663. case $host_os in
  4664. cygwin* | mingw* | pw32* | cegcc*)
  4665. # two different shell functions defined in ltmain.sh;
  4666. # decide which one to use based on capabilities of $DLLTOOL
  4667. case `$DLLTOOL --help 2>&1` in
  4668. *--identify-strict*)
  4669. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4670. ;;
  4671. *)
  4672. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4673. ;;
  4674. esac
  4675. ;;
  4676. *)
  4677. # fallback: assume linklib IS sharedlib
  4678. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4679. ;;
  4680. esac
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4683. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4684. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4685. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4686. if test -n "$ac_tool_prefix"; then
  4687. for ac_prog in ar
  4688. do
  4689. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4690. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4692. $as_echo_n "checking for $ac_word... " >&6; }
  4693. if ${ac_cv_prog_AR+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. if test -n "$AR"; then
  4697. ac_cv_prog_AR="$AR" # Let the user override the test.
  4698. else
  4699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4700. for as_dir in $PATH
  4701. do
  4702. IFS=$as_save_IFS
  4703. test -z "$as_dir" && as_dir=.
  4704. for ac_exec_ext in '' $ac_executable_extensions; do
  4705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4706. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4708. break 2
  4709. fi
  4710. done
  4711. done
  4712. IFS=$as_save_IFS
  4713. fi
  4714. fi
  4715. AR=$ac_cv_prog_AR
  4716. if test -n "$AR"; then
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4718. $as_echo "$AR" >&6; }
  4719. else
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4721. $as_echo "no" >&6; }
  4722. fi
  4723. test -n "$AR" && break
  4724. done
  4725. fi
  4726. if test -z "$AR"; then
  4727. ac_ct_AR=$AR
  4728. for ac_prog in ar
  4729. do
  4730. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4731. set dummy $ac_prog; ac_word=$2
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4733. $as_echo_n "checking for $ac_word... " >&6; }
  4734. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4735. $as_echo_n "(cached) " >&6
  4736. else
  4737. if test -n "$ac_ct_AR"; then
  4738. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4739. else
  4740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4741. for as_dir in $PATH
  4742. do
  4743. IFS=$as_save_IFS
  4744. test -z "$as_dir" && as_dir=.
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4747. ac_cv_prog_ac_ct_AR="$ac_prog"
  4748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4749. break 2
  4750. fi
  4751. done
  4752. done
  4753. IFS=$as_save_IFS
  4754. fi
  4755. fi
  4756. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4757. if test -n "$ac_ct_AR"; then
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4759. $as_echo "$ac_ct_AR" >&6; }
  4760. else
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4762. $as_echo "no" >&6; }
  4763. fi
  4764. test -n "$ac_ct_AR" && break
  4765. done
  4766. if test "x$ac_ct_AR" = x; then
  4767. AR="false"
  4768. else
  4769. case $cross_compiling:$ac_tool_warned in
  4770. yes:)
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4773. ac_tool_warned=yes ;;
  4774. esac
  4775. AR=$ac_ct_AR
  4776. fi
  4777. fi
  4778. : ${AR=ar}
  4779. : ${AR_FLAGS=cru}
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4781. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4782. if ${lt_cv_ar_at_file+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. lt_cv_ar_at_file=no
  4786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4787. /* end confdefs.h. */
  4788. int
  4789. main ()
  4790. {
  4791. ;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. if ac_fn_c_try_compile "$LINENO"; then :
  4796. echo conftest.$ac_objext > conftest.lst
  4797. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4798. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4799. (eval $lt_ar_try) 2>&5
  4800. ac_status=$?
  4801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4802. test $ac_status = 0; }
  4803. if test 0 -eq "$ac_status"; then
  4804. # Ensure the archiver fails upon bogus file names.
  4805. rm -f conftest.$ac_objext libconftest.a
  4806. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4807. (eval $lt_ar_try) 2>&5
  4808. ac_status=$?
  4809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4810. test $ac_status = 0; }
  4811. if test 0 -ne "$ac_status"; then
  4812. lt_cv_ar_at_file=@
  4813. fi
  4814. fi
  4815. rm -f conftest.* libconftest.a
  4816. fi
  4817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4818. fi
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4820. $as_echo "$lt_cv_ar_at_file" >&6; }
  4821. if test no = "$lt_cv_ar_at_file"; then
  4822. archiver_list_spec=
  4823. else
  4824. archiver_list_spec=$lt_cv_ar_at_file
  4825. fi
  4826. if test -n "$ac_tool_prefix"; then
  4827. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4828. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4830. $as_echo_n "checking for $ac_word... " >&6; }
  4831. if ${ac_cv_prog_STRIP+:} false; then :
  4832. $as_echo_n "(cached) " >&6
  4833. else
  4834. if test -n "$STRIP"; then
  4835. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840. IFS=$as_save_IFS
  4841. test -z "$as_dir" && as_dir=.
  4842. for ac_exec_ext in '' $ac_executable_extensions; do
  4843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4844. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846. break 2
  4847. fi
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. fi
  4852. fi
  4853. STRIP=$ac_cv_prog_STRIP
  4854. if test -n "$STRIP"; then
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4856. $as_echo "$STRIP" >&6; }
  4857. else
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4859. $as_echo "no" >&6; }
  4860. fi
  4861. fi
  4862. if test -z "$ac_cv_prog_STRIP"; then
  4863. ac_ct_STRIP=$STRIP
  4864. # Extract the first word of "strip", so it can be a program name with args.
  4865. set dummy strip; ac_word=$2
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4867. $as_echo_n "checking for $ac_word... " >&6; }
  4868. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4869. $as_echo_n "(cached) " >&6
  4870. else
  4871. if test -n "$ac_ct_STRIP"; then
  4872. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4873. else
  4874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4875. for as_dir in $PATH
  4876. do
  4877. IFS=$as_save_IFS
  4878. test -z "$as_dir" && as_dir=.
  4879. for ac_exec_ext in '' $ac_executable_extensions; do
  4880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4881. ac_cv_prog_ac_ct_STRIP="strip"
  4882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4883. break 2
  4884. fi
  4885. done
  4886. done
  4887. IFS=$as_save_IFS
  4888. fi
  4889. fi
  4890. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4891. if test -n "$ac_ct_STRIP"; then
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4893. $as_echo "$ac_ct_STRIP" >&6; }
  4894. else
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4896. $as_echo "no" >&6; }
  4897. fi
  4898. if test "x$ac_ct_STRIP" = x; then
  4899. STRIP=":"
  4900. else
  4901. case $cross_compiling:$ac_tool_warned in
  4902. yes:)
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4905. ac_tool_warned=yes ;;
  4906. esac
  4907. STRIP=$ac_ct_STRIP
  4908. fi
  4909. else
  4910. STRIP="$ac_cv_prog_STRIP"
  4911. fi
  4912. test -z "$STRIP" && STRIP=:
  4913. if test -n "$ac_tool_prefix"; then
  4914. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4915. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4917. $as_echo_n "checking for $ac_word... " >&6; }
  4918. if ${ac_cv_prog_RANLIB+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. if test -n "$RANLIB"; then
  4922. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4923. else
  4924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4925. for as_dir in $PATH
  4926. do
  4927. IFS=$as_save_IFS
  4928. test -z "$as_dir" && as_dir=.
  4929. for ac_exec_ext in '' $ac_executable_extensions; do
  4930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4931. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4933. break 2
  4934. fi
  4935. done
  4936. done
  4937. IFS=$as_save_IFS
  4938. fi
  4939. fi
  4940. RANLIB=$ac_cv_prog_RANLIB
  4941. if test -n "$RANLIB"; then
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4943. $as_echo "$RANLIB" >&6; }
  4944. else
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4946. $as_echo "no" >&6; }
  4947. fi
  4948. fi
  4949. if test -z "$ac_cv_prog_RANLIB"; then
  4950. ac_ct_RANLIB=$RANLIB
  4951. # Extract the first word of "ranlib", so it can be a program name with args.
  4952. set dummy ranlib; ac_word=$2
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4954. $as_echo_n "checking for $ac_word... " >&6; }
  4955. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. if test -n "$ac_ct_RANLIB"; then
  4959. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4960. else
  4961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4962. for as_dir in $PATH
  4963. do
  4964. IFS=$as_save_IFS
  4965. test -z "$as_dir" && as_dir=.
  4966. for ac_exec_ext in '' $ac_executable_extensions; do
  4967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4968. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4970. break 2
  4971. fi
  4972. done
  4973. done
  4974. IFS=$as_save_IFS
  4975. fi
  4976. fi
  4977. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4978. if test -n "$ac_ct_RANLIB"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4980. $as_echo "$ac_ct_RANLIB" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. if test "x$ac_ct_RANLIB" = x; then
  4986. RANLIB=":"
  4987. else
  4988. case $cross_compiling:$ac_tool_warned in
  4989. yes:)
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4992. ac_tool_warned=yes ;;
  4993. esac
  4994. RANLIB=$ac_ct_RANLIB
  4995. fi
  4996. else
  4997. RANLIB="$ac_cv_prog_RANLIB"
  4998. fi
  4999. test -z "$RANLIB" && RANLIB=:
  5000. # Determine commands to create old-style static archives.
  5001. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5002. old_postinstall_cmds='chmod 644 $oldlib'
  5003. old_postuninstall_cmds=
  5004. if test -n "$RANLIB"; then
  5005. case $host_os in
  5006. bitrig* | openbsd*)
  5007. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5008. ;;
  5009. *)
  5010. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5011. ;;
  5012. esac
  5013. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5014. fi
  5015. case $host_os in
  5016. darwin*)
  5017. lock_old_archive_extraction=yes ;;
  5018. *)
  5019. lock_old_archive_extraction=no ;;
  5020. esac
  5021. for ac_prog in gawk mawk nawk awk
  5022. do
  5023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5024. set dummy $ac_prog; ac_word=$2
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5026. $as_echo_n "checking for $ac_word... " >&6; }
  5027. if ${ac_cv_prog_AWK+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. if test -n "$AWK"; then
  5031. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5032. else
  5033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5034. for as_dir in $PATH
  5035. do
  5036. IFS=$as_save_IFS
  5037. test -z "$as_dir" && as_dir=.
  5038. for ac_exec_ext in '' $ac_executable_extensions; do
  5039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5040. ac_cv_prog_AWK="$ac_prog"
  5041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5042. break 2
  5043. fi
  5044. done
  5045. done
  5046. IFS=$as_save_IFS
  5047. fi
  5048. fi
  5049. AWK=$ac_cv_prog_AWK
  5050. if test -n "$AWK"; then
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5052. $as_echo "$AWK" >&6; }
  5053. else
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5055. $as_echo "no" >&6; }
  5056. fi
  5057. test -n "$AWK" && break
  5058. done
  5059. # If no C compiler was specified, use CC.
  5060. LTCC=${LTCC-"$CC"}
  5061. # If no C compiler flags were specified, use CFLAGS.
  5062. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5063. # Allow CC to be a program name with arguments.
  5064. compiler=$CC
  5065. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5067. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5068. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5069. $as_echo_n "(cached) " >&6
  5070. else
  5071. # These are sane defaults that work on at least a few old systems.
  5072. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5073. # Character class describing NM global symbol codes.
  5074. symcode='[BCDEGRST]'
  5075. # Regexp to match symbols that can be accessed directly from C.
  5076. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5077. # Define system-specific variables.
  5078. case $host_os in
  5079. aix*)
  5080. symcode='[BCDT]'
  5081. ;;
  5082. cygwin* | mingw* | pw32* | cegcc*)
  5083. symcode='[ABCDGISTW]'
  5084. ;;
  5085. hpux*)
  5086. if test ia64 = "$host_cpu"; then
  5087. symcode='[ABCDEGRST]'
  5088. fi
  5089. ;;
  5090. irix* | nonstopux*)
  5091. symcode='[BCDEGRST]'
  5092. ;;
  5093. osf*)
  5094. symcode='[BCDEGQRST]'
  5095. ;;
  5096. solaris*)
  5097. symcode='[BCDRT]'
  5098. ;;
  5099. sco3.2v5*)
  5100. symcode='[DT]'
  5101. ;;
  5102. sysv4.2uw2*)
  5103. symcode='[DT]'
  5104. ;;
  5105. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5106. symcode='[ABDT]'
  5107. ;;
  5108. sysv4)
  5109. symcode='[DFNSTU]'
  5110. ;;
  5111. esac
  5112. # If we're using GNU nm, then use its standard symbol codes.
  5113. case `$NM -V 2>&1` in
  5114. *GNU* | *'with BFD'*)
  5115. symcode='[ABCDGIRSTW]' ;;
  5116. esac
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. # Gets list of data symbols to import.
  5119. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5120. # Adjust the below global symbol transforms to fixup imported variables.
  5121. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5122. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5123. lt_c_name_lib_hook="\
  5124. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5125. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5126. else
  5127. # Disable hooks by default.
  5128. lt_cv_sys_global_symbol_to_import=
  5129. lt_cdecl_hook=
  5130. lt_c_name_hook=
  5131. lt_c_name_lib_hook=
  5132. fi
  5133. # Transform an extracted symbol line into a proper C declaration.
  5134. # Some systems (esp. on ia64) link data and code symbols differently,
  5135. # so use this general approach.
  5136. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5137. $lt_cdecl_hook\
  5138. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5139. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5140. # Transform an extracted symbol line into symbol name and symbol address
  5141. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5142. $lt_c_name_hook\
  5143. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5144. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5145. # Transform an extracted symbol line into symbol name with lib prefix and
  5146. # symbol address.
  5147. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5148. $lt_c_name_lib_hook\
  5149. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5150. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5151. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5152. # Handle CRLF in mingw tool chain
  5153. opt_cr=
  5154. case $build_os in
  5155. mingw*)
  5156. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5157. ;;
  5158. esac
  5159. # Try without a prefix underscore, then with it.
  5160. for ac_symprfx in "" "_"; do
  5161. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5162. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5163. # Write the raw and C identifiers.
  5164. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5165. # Fake it for dumpbin and say T for any non-static function,
  5166. # D for any global variable and I for any imported variable.
  5167. # Also find C++ and __fastcall symbols from MSVC++,
  5168. # which start with @ or ?.
  5169. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5170. " {last_section=section; section=\$ 3};"\
  5171. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5172. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5173. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5174. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5175. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5176. " \$ 0!~/External *\|/{next};"\
  5177. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5178. " {if(hide[section]) next};"\
  5179. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5180. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5181. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5182. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5183. " ' prfx=^$ac_symprfx"
  5184. else
  5185. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5186. fi
  5187. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5188. # Check to see that the pipe works correctly.
  5189. pipe_works=no
  5190. rm -f conftest*
  5191. cat > conftest.$ac_ext <<_LT_EOF
  5192. #ifdef __cplusplus
  5193. extern "C" {
  5194. #endif
  5195. char nm_test_var;
  5196. void nm_test_func(void);
  5197. void nm_test_func(void){}
  5198. #ifdef __cplusplus
  5199. }
  5200. #endif
  5201. int main(){nm_test_var='a';nm_test_func();return(0);}
  5202. _LT_EOF
  5203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5204. (eval $ac_compile) 2>&5
  5205. ac_status=$?
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5207. test $ac_status = 0; }; then
  5208. # Now try to grab the symbols.
  5209. nlist=conftest.nm
  5210. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5211. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5212. ac_status=$?
  5213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5214. test $ac_status = 0; } && test -s "$nlist"; then
  5215. # Try sorting and uniquifying the output.
  5216. if sort "$nlist" | uniq > "$nlist"T; then
  5217. mv -f "$nlist"T "$nlist"
  5218. else
  5219. rm -f "$nlist"T
  5220. fi
  5221. # Make sure that we snagged all the symbols we need.
  5222. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5223. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5224. cat <<_LT_EOF > conftest.$ac_ext
  5225. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5226. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5227. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5228. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5229. # define LT_DLSYM_CONST
  5230. #elif defined __osf__
  5231. /* This system does not cope well with relocations in const data. */
  5232. # define LT_DLSYM_CONST
  5233. #else
  5234. # define LT_DLSYM_CONST const
  5235. #endif
  5236. #ifdef __cplusplus
  5237. extern "C" {
  5238. #endif
  5239. _LT_EOF
  5240. # Now generate the symbol file.
  5241. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5242. cat <<_LT_EOF >> conftest.$ac_ext
  5243. /* The mapping between symbol names and symbols. */
  5244. LT_DLSYM_CONST struct {
  5245. const char *name;
  5246. void *address;
  5247. }
  5248. lt__PROGRAM__LTX_preloaded_symbols[] =
  5249. {
  5250. { "@PROGRAM@", (void *) 0 },
  5251. _LT_EOF
  5252. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5253. cat <<\_LT_EOF >> conftest.$ac_ext
  5254. {0, (void *) 0}
  5255. };
  5256. /* This works around a problem in FreeBSD linker */
  5257. #ifdef FREEBSD_WORKAROUND
  5258. static const void *lt_preloaded_setup() {
  5259. return lt__PROGRAM__LTX_preloaded_symbols;
  5260. }
  5261. #endif
  5262. #ifdef __cplusplus
  5263. }
  5264. #endif
  5265. _LT_EOF
  5266. # Now try linking the two files.
  5267. mv conftest.$ac_objext conftstm.$ac_objext
  5268. lt_globsym_save_LIBS=$LIBS
  5269. lt_globsym_save_CFLAGS=$CFLAGS
  5270. LIBS=conftstm.$ac_objext
  5271. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5272. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5273. (eval $ac_link) 2>&5
  5274. ac_status=$?
  5275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5276. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5277. pipe_works=yes
  5278. fi
  5279. LIBS=$lt_globsym_save_LIBS
  5280. CFLAGS=$lt_globsym_save_CFLAGS
  5281. else
  5282. echo "cannot find nm_test_func in $nlist" >&5
  5283. fi
  5284. else
  5285. echo "cannot find nm_test_var in $nlist" >&5
  5286. fi
  5287. else
  5288. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5289. fi
  5290. else
  5291. echo "$progname: failed program was:" >&5
  5292. cat conftest.$ac_ext >&5
  5293. fi
  5294. rm -rf conftest* conftst*
  5295. # Do not use the global_symbol_pipe unless it works.
  5296. if test yes = "$pipe_works"; then
  5297. break
  5298. else
  5299. lt_cv_sys_global_symbol_pipe=
  5300. fi
  5301. done
  5302. fi
  5303. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5304. lt_cv_sys_global_symbol_to_cdecl=
  5305. fi
  5306. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5308. $as_echo "failed" >&6; }
  5309. else
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5311. $as_echo "ok" >&6; }
  5312. fi
  5313. # Response file support.
  5314. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5315. nm_file_list_spec='@'
  5316. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5317. nm_file_list_spec='@'
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5320. $as_echo_n "checking for sysroot... " >&6; }
  5321. # Check whether --with-sysroot was given.
  5322. if test "${with_sysroot+set}" = set; then :
  5323. withval=$with_sysroot;
  5324. else
  5325. with_sysroot=no
  5326. fi
  5327. lt_sysroot=
  5328. case $with_sysroot in #(
  5329. yes)
  5330. if test yes = "$GCC"; then
  5331. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5332. fi
  5333. ;; #(
  5334. /*)
  5335. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5336. ;; #(
  5337. no|'')
  5338. ;; #(
  5339. *)
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5341. $as_echo "$with_sysroot" >&6; }
  5342. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5343. ;;
  5344. esac
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5346. $as_echo "${lt_sysroot:-no}" >&6; }
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5348. $as_echo_n "checking for a working dd... " >&6; }
  5349. if ${ac_cv_path_lt_DD+:} false; then :
  5350. $as_echo_n "(cached) " >&6
  5351. else
  5352. printf 0123456789abcdef0123456789abcdef >conftest.i
  5353. cat conftest.i conftest.i >conftest2.i
  5354. : ${lt_DD:=$DD}
  5355. if test -z "$lt_DD"; then
  5356. ac_path_lt_DD_found=false
  5357. # Loop through the user's path and test for each of PROGNAME-LIST
  5358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5359. for as_dir in $PATH
  5360. do
  5361. IFS=$as_save_IFS
  5362. test -z "$as_dir" && as_dir=.
  5363. for ac_prog in dd; do
  5364. for ac_exec_ext in '' $ac_executable_extensions; do
  5365. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5366. as_fn_executable_p "$ac_path_lt_DD" || continue
  5367. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5368. cmp -s conftest.i conftest.out \
  5369. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5370. fi
  5371. $ac_path_lt_DD_found && break 3
  5372. done
  5373. done
  5374. done
  5375. IFS=$as_save_IFS
  5376. if test -z "$ac_cv_path_lt_DD"; then
  5377. :
  5378. fi
  5379. else
  5380. ac_cv_path_lt_DD=$lt_DD
  5381. fi
  5382. rm -f conftest.i conftest2.i conftest.out
  5383. fi
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5385. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5387. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5388. if ${lt_cv_truncate_bin+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. printf 0123456789abcdef0123456789abcdef >conftest.i
  5392. cat conftest.i conftest.i >conftest2.i
  5393. lt_cv_truncate_bin=
  5394. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5395. cmp -s conftest.i conftest.out \
  5396. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5397. fi
  5398. rm -f conftest.i conftest2.i conftest.out
  5399. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5400. fi
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5402. $as_echo "$lt_cv_truncate_bin" >&6; }
  5403. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5404. func_cc_basename ()
  5405. {
  5406. for cc_temp in $*""; do
  5407. case $cc_temp in
  5408. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5409. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5410. \-*) ;;
  5411. *) break;;
  5412. esac
  5413. done
  5414. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5415. }
  5416. # Check whether --enable-libtool-lock was given.
  5417. if test "${enable_libtool_lock+set}" = set; then :
  5418. enableval=$enable_libtool_lock;
  5419. fi
  5420. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5421. # Some flags need to be propagated to the compiler or linker for good
  5422. # libtool support.
  5423. case $host in
  5424. ia64-*-hpux*)
  5425. # Find out what ABI is being produced by ac_compile, and set mode
  5426. # options accordingly.
  5427. echo 'int i;' > conftest.$ac_ext
  5428. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5429. (eval $ac_compile) 2>&5
  5430. ac_status=$?
  5431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5432. test $ac_status = 0; }; then
  5433. case `/usr/bin/file conftest.$ac_objext` in
  5434. *ELF-32*)
  5435. HPUX_IA64_MODE=32
  5436. ;;
  5437. *ELF-64*)
  5438. HPUX_IA64_MODE=64
  5439. ;;
  5440. esac
  5441. fi
  5442. rm -rf conftest*
  5443. ;;
  5444. *-*-irix6*)
  5445. # Find out what ABI is being produced by ac_compile, and set linker
  5446. # options accordingly.
  5447. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5448. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5449. (eval $ac_compile) 2>&5
  5450. ac_status=$?
  5451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5452. test $ac_status = 0; }; then
  5453. if test yes = "$lt_cv_prog_gnu_ld"; then
  5454. case `/usr/bin/file conftest.$ac_objext` in
  5455. *32-bit*)
  5456. LD="${LD-ld} -melf32bsmip"
  5457. ;;
  5458. *N32*)
  5459. LD="${LD-ld} -melf32bmipn32"
  5460. ;;
  5461. *64-bit*)
  5462. LD="${LD-ld} -melf64bmip"
  5463. ;;
  5464. esac
  5465. else
  5466. case `/usr/bin/file conftest.$ac_objext` in
  5467. *32-bit*)
  5468. LD="${LD-ld} -32"
  5469. ;;
  5470. *N32*)
  5471. LD="${LD-ld} -n32"
  5472. ;;
  5473. *64-bit*)
  5474. LD="${LD-ld} -64"
  5475. ;;
  5476. esac
  5477. fi
  5478. fi
  5479. rm -rf conftest*
  5480. ;;
  5481. mips64*-*linux*)
  5482. # Find out what ABI is being produced by ac_compile, and set linker
  5483. # options accordingly.
  5484. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5486. (eval $ac_compile) 2>&5
  5487. ac_status=$?
  5488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5489. test $ac_status = 0; }; then
  5490. emul=elf
  5491. case `/usr/bin/file conftest.$ac_objext` in
  5492. *32-bit*)
  5493. emul="${emul}32"
  5494. ;;
  5495. *64-bit*)
  5496. emul="${emul}64"
  5497. ;;
  5498. esac
  5499. case `/usr/bin/file conftest.$ac_objext` in
  5500. *MSB*)
  5501. emul="${emul}btsmip"
  5502. ;;
  5503. *LSB*)
  5504. emul="${emul}ltsmip"
  5505. ;;
  5506. esac
  5507. case `/usr/bin/file conftest.$ac_objext` in
  5508. *N32*)
  5509. emul="${emul}n32"
  5510. ;;
  5511. esac
  5512. LD="${LD-ld} -m $emul"
  5513. fi
  5514. rm -rf conftest*
  5515. ;;
  5516. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5517. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5518. # Find out what ABI is being produced by ac_compile, and set linker
  5519. # options accordingly. Note that the listed cases only cover the
  5520. # situations where additional linker options are needed (such as when
  5521. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5522. # vice versa); the common cases where no linker options are needed do
  5523. # not appear in the list.
  5524. echo 'int i;' > conftest.$ac_ext
  5525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5526. (eval $ac_compile) 2>&5
  5527. ac_status=$?
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5529. test $ac_status = 0; }; then
  5530. case `/usr/bin/file conftest.o` in
  5531. *32-bit*)
  5532. case $host in
  5533. x86_64-*kfreebsd*-gnu)
  5534. LD="${LD-ld} -m elf_i386_fbsd"
  5535. ;;
  5536. x86_64-*linux*)
  5537. case `/usr/bin/file conftest.o` in
  5538. *x86-64*)
  5539. LD="${LD-ld} -m elf32_x86_64"
  5540. ;;
  5541. *)
  5542. LD="${LD-ld} -m elf_i386"
  5543. ;;
  5544. esac
  5545. ;;
  5546. powerpc64le-*linux*)
  5547. LD="${LD-ld} -m elf32lppclinux"
  5548. ;;
  5549. powerpc64-*linux*)
  5550. LD="${LD-ld} -m elf32ppclinux"
  5551. ;;
  5552. s390x-*linux*)
  5553. LD="${LD-ld} -m elf_s390"
  5554. ;;
  5555. sparc64-*linux*)
  5556. LD="${LD-ld} -m elf32_sparc"
  5557. ;;
  5558. esac
  5559. ;;
  5560. *64-bit*)
  5561. case $host in
  5562. x86_64-*kfreebsd*-gnu)
  5563. LD="${LD-ld} -m elf_x86_64_fbsd"
  5564. ;;
  5565. x86_64-*linux*)
  5566. LD="${LD-ld} -m elf_x86_64"
  5567. ;;
  5568. powerpcle-*linux*|powerpc64le-*linux*)
  5569. LD="${LD-ld} -m elf64lppc"
  5570. ;;
  5571. powerpc-*linux*|powerpc64-*linux*)
  5572. LD="${LD-ld} -m elf64ppc"
  5573. ;;
  5574. s390*-*linux*|s390*-*tpf*)
  5575. LD="${LD-ld} -m elf64_s390"
  5576. ;;
  5577. sparc*-*linux*)
  5578. LD="${LD-ld} -m elf64_sparc"
  5579. ;;
  5580. esac
  5581. ;;
  5582. esac
  5583. fi
  5584. rm -rf conftest*
  5585. ;;
  5586. *-*-sco3.2v5*)
  5587. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5588. SAVE_CFLAGS=$CFLAGS
  5589. CFLAGS="$CFLAGS -belf"
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5591. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5592. if ${lt_cv_cc_needs_belf+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. ac_ext=c
  5596. ac_cpp='$CPP $CPPFLAGS'
  5597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5601. /* end confdefs.h. */
  5602. int
  5603. main ()
  5604. {
  5605. ;
  5606. return 0;
  5607. }
  5608. _ACEOF
  5609. if ac_fn_c_try_link "$LINENO"; then :
  5610. lt_cv_cc_needs_belf=yes
  5611. else
  5612. lt_cv_cc_needs_belf=no
  5613. fi
  5614. rm -f core conftest.err conftest.$ac_objext \
  5615. conftest$ac_exeext conftest.$ac_ext
  5616. ac_ext=c
  5617. ac_cpp='$CPP $CPPFLAGS'
  5618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5621. fi
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5623. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5624. if test yes != "$lt_cv_cc_needs_belf"; then
  5625. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5626. CFLAGS=$SAVE_CFLAGS
  5627. fi
  5628. ;;
  5629. *-*solaris*)
  5630. # Find out what ABI is being produced by ac_compile, and set linker
  5631. # options accordingly.
  5632. echo 'int i;' > conftest.$ac_ext
  5633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5634. (eval $ac_compile) 2>&5
  5635. ac_status=$?
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5637. test $ac_status = 0; }; then
  5638. case `/usr/bin/file conftest.o` in
  5639. *64-bit*)
  5640. case $lt_cv_prog_gnu_ld in
  5641. yes*)
  5642. case $host in
  5643. i?86-*-solaris*|x86_64-*-solaris*)
  5644. LD="${LD-ld} -m elf_x86_64"
  5645. ;;
  5646. sparc*-*-solaris*)
  5647. LD="${LD-ld} -m elf64_sparc"
  5648. ;;
  5649. esac
  5650. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5651. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5652. LD=${LD-ld}_sol2
  5653. fi
  5654. ;;
  5655. *)
  5656. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5657. LD="${LD-ld} -64"
  5658. fi
  5659. ;;
  5660. esac
  5661. ;;
  5662. esac
  5663. fi
  5664. rm -rf conftest*
  5665. ;;
  5666. esac
  5667. need_locks=$enable_libtool_lock
  5668. if test -n "$ac_tool_prefix"; then
  5669. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5670. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5672. $as_echo_n "checking for $ac_word... " >&6; }
  5673. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. if test -n "$MANIFEST_TOOL"; then
  5677. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. test -z "$as_dir" && as_dir=.
  5684. for ac_exec_ext in '' $ac_executable_extensions; do
  5685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5686. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5688. break 2
  5689. fi
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. fi
  5694. fi
  5695. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5696. if test -n "$MANIFEST_TOOL"; then
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5698. $as_echo "$MANIFEST_TOOL" >&6; }
  5699. else
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5701. $as_echo "no" >&6; }
  5702. fi
  5703. fi
  5704. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5705. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5706. # Extract the first word of "mt", so it can be a program name with args.
  5707. set dummy mt; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5714. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5733. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5735. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5741. MANIFEST_TOOL=":"
  5742. else
  5743. case $cross_compiling:$ac_tool_warned in
  5744. yes:)
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5747. ac_tool_warned=yes ;;
  5748. esac
  5749. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5750. fi
  5751. else
  5752. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5753. fi
  5754. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5756. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5757. if ${lt_cv_path_mainfest_tool+:} false; then :
  5758. $as_echo_n "(cached) " >&6
  5759. else
  5760. lt_cv_path_mainfest_tool=no
  5761. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5762. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5763. cat conftest.err >&5
  5764. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5765. lt_cv_path_mainfest_tool=yes
  5766. fi
  5767. rm -f conftest*
  5768. fi
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5770. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5771. if test yes != "$lt_cv_path_mainfest_tool"; then
  5772. MANIFEST_TOOL=:
  5773. fi
  5774. case $host_os in
  5775. rhapsody* | darwin*)
  5776. if test -n "$ac_tool_prefix"; then
  5777. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5778. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$DSYMUTIL"; then
  5785. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5804. if test -n "$DSYMUTIL"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5806. $as_echo "$DSYMUTIL" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. fi
  5812. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5813. ac_ct_DSYMUTIL=$DSYMUTIL
  5814. # Extract the first word of "dsymutil", so it can be a program name with args.
  5815. set dummy dsymutil; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$ac_ct_DSYMUTIL"; then
  5822. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5841. if test -n "$ac_ct_DSYMUTIL"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5843. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_DSYMUTIL" = x; then
  5849. DSYMUTIL=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. DSYMUTIL=$ac_ct_DSYMUTIL
  5858. fi
  5859. else
  5860. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5861. fi
  5862. if test -n "$ac_tool_prefix"; then
  5863. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5864. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_NMEDIT+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$NMEDIT"; then
  5871. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. NMEDIT=$ac_cv_prog_NMEDIT
  5890. if test -n "$NMEDIT"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5892. $as_echo "$NMEDIT" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. fi
  5898. if test -z "$ac_cv_prog_NMEDIT"; then
  5899. ac_ct_NMEDIT=$NMEDIT
  5900. # Extract the first word of "nmedit", so it can be a program name with args.
  5901. set dummy nmedit; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_NMEDIT"; then
  5908. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5927. if test -n "$ac_ct_NMEDIT"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5929. $as_echo "$ac_ct_NMEDIT" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. if test "x$ac_ct_NMEDIT" = x; then
  5935. NMEDIT=":"
  5936. else
  5937. case $cross_compiling:$ac_tool_warned in
  5938. yes:)
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5941. ac_tool_warned=yes ;;
  5942. esac
  5943. NMEDIT=$ac_ct_NMEDIT
  5944. fi
  5945. else
  5946. NMEDIT="$ac_cv_prog_NMEDIT"
  5947. fi
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_LIPO+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$LIPO"; then
  5957. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. LIPO=$ac_cv_prog_LIPO
  5976. if test -n "$LIPO"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5978. $as_echo "$LIPO" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_LIPO"; then
  5985. ac_ct_LIPO=$LIPO
  5986. # Extract the first word of "lipo", so it can be a program name with args.
  5987. set dummy lipo; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_LIPO"; then
  5994. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_ac_ct_LIPO="lipo"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6013. if test -n "$ac_ct_LIPO"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6015. $as_echo "$ac_ct_LIPO" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_LIPO" = x; then
  6021. LIPO=":"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. LIPO=$ac_ct_LIPO
  6030. fi
  6031. else
  6032. LIPO="$ac_cv_prog_LIPO"
  6033. fi
  6034. if test -n "$ac_tool_prefix"; then
  6035. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6036. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if ${ac_cv_prog_OTOOL+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$OTOOL"; then
  6043. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6052. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. OTOOL=$ac_cv_prog_OTOOL
  6062. if test -n "$OTOOL"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6064. $as_echo "$OTOOL" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. fi
  6070. if test -z "$ac_cv_prog_OTOOL"; then
  6071. ac_ct_OTOOL=$OTOOL
  6072. # Extract the first word of "otool", so it can be a program name with args.
  6073. set dummy otool; ac_word=$2
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6075. $as_echo_n "checking for $ac_word... " >&6; }
  6076. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6077. $as_echo_n "(cached) " >&6
  6078. else
  6079. if test -n "$ac_ct_OTOOL"; then
  6080. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6081. else
  6082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6083. for as_dir in $PATH
  6084. do
  6085. IFS=$as_save_IFS
  6086. test -z "$as_dir" && as_dir=.
  6087. for ac_exec_ext in '' $ac_executable_extensions; do
  6088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6089. ac_cv_prog_ac_ct_OTOOL="otool"
  6090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6091. break 2
  6092. fi
  6093. done
  6094. done
  6095. IFS=$as_save_IFS
  6096. fi
  6097. fi
  6098. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6099. if test -n "$ac_ct_OTOOL"; then
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6101. $as_echo "$ac_ct_OTOOL" >&6; }
  6102. else
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6104. $as_echo "no" >&6; }
  6105. fi
  6106. if test "x$ac_ct_OTOOL" = x; then
  6107. OTOOL=":"
  6108. else
  6109. case $cross_compiling:$ac_tool_warned in
  6110. yes:)
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6113. ac_tool_warned=yes ;;
  6114. esac
  6115. OTOOL=$ac_ct_OTOOL
  6116. fi
  6117. else
  6118. OTOOL="$ac_cv_prog_OTOOL"
  6119. fi
  6120. if test -n "$ac_tool_prefix"; then
  6121. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6122. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_OTOOL64+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$OTOOL64"; then
  6129. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6138. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. OTOOL64=$ac_cv_prog_OTOOL64
  6148. if test -n "$OTOOL64"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6150. $as_echo "$OTOOL64" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. fi
  6156. if test -z "$ac_cv_prog_OTOOL64"; then
  6157. ac_ct_OTOOL64=$OTOOL64
  6158. # Extract the first word of "otool64", so it can be a program name with args.
  6159. set dummy otool64; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$ac_ct_OTOOL64"; then
  6166. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6175. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6185. if test -n "$ac_ct_OTOOL64"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6187. $as_echo "$ac_ct_OTOOL64" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. if test "x$ac_ct_OTOOL64" = x; then
  6193. OTOOL64=":"
  6194. else
  6195. case $cross_compiling:$ac_tool_warned in
  6196. yes:)
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6199. ac_tool_warned=yes ;;
  6200. esac
  6201. OTOOL64=$ac_ct_OTOOL64
  6202. fi
  6203. else
  6204. OTOOL64="$ac_cv_prog_OTOOL64"
  6205. fi
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6207. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6208. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. lt_cv_apple_cc_single_mod=no
  6212. if test -z "$LT_MULTI_MODULE"; then
  6213. # By default we will add the -single_module flag. You can override
  6214. # by either setting the environment variable LT_MULTI_MODULE
  6215. # non-empty at configure time, or by adding -multi_module to the
  6216. # link flags.
  6217. rm -rf libconftest.dylib*
  6218. echo "int foo(void){return 1;}" > conftest.c
  6219. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6220. -dynamiclib -Wl,-single_module conftest.c" >&5
  6221. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6222. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6223. _lt_result=$?
  6224. # If there is a non-empty error log, and "single_module"
  6225. # appears in it, assume the flag caused a linker warning
  6226. if test -s conftest.err && $GREP single_module conftest.err; then
  6227. cat conftest.err >&5
  6228. # Otherwise, if the output was created with a 0 exit code from
  6229. # the compiler, it worked.
  6230. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6231. lt_cv_apple_cc_single_mod=yes
  6232. else
  6233. cat conftest.err >&5
  6234. fi
  6235. rm -rf libconftest.dylib*
  6236. rm -f conftest.*
  6237. fi
  6238. fi
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6240. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6242. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6243. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6244. $as_echo_n "(cached) " >&6
  6245. else
  6246. lt_cv_ld_exported_symbols_list=no
  6247. save_LDFLAGS=$LDFLAGS
  6248. echo "_main" > conftest.sym
  6249. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6251. /* end confdefs.h. */
  6252. int
  6253. main ()
  6254. {
  6255. ;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. if ac_fn_c_try_link "$LINENO"; then :
  6260. lt_cv_ld_exported_symbols_list=yes
  6261. else
  6262. lt_cv_ld_exported_symbols_list=no
  6263. fi
  6264. rm -f core conftest.err conftest.$ac_objext \
  6265. conftest$ac_exeext conftest.$ac_ext
  6266. LDFLAGS=$save_LDFLAGS
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6269. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6271. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6272. if ${lt_cv_ld_force_load+:} false; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. lt_cv_ld_force_load=no
  6276. cat > conftest.c << _LT_EOF
  6277. int forced_loaded() { return 2;}
  6278. _LT_EOF
  6279. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6280. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6281. echo "$AR cru libconftest.a conftest.o" >&5
  6282. $AR cru libconftest.a conftest.o 2>&5
  6283. echo "$RANLIB libconftest.a" >&5
  6284. $RANLIB libconftest.a 2>&5
  6285. cat > conftest.c << _LT_EOF
  6286. int main() { return 0;}
  6287. _LT_EOF
  6288. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6289. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6290. _lt_result=$?
  6291. if test -s conftest.err && $GREP force_load conftest.err; then
  6292. cat conftest.err >&5
  6293. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6294. lt_cv_ld_force_load=yes
  6295. else
  6296. cat conftest.err >&5
  6297. fi
  6298. rm -f conftest.err libconftest.a conftest conftest.c
  6299. rm -rf conftest.dSYM
  6300. fi
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6302. $as_echo "$lt_cv_ld_force_load" >&6; }
  6303. case $host_os in
  6304. rhapsody* | darwin1.[012])
  6305. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6306. darwin1.*)
  6307. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6308. darwin*)
  6309. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6310. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6311. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6312. *)
  6313. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6314. esac
  6315. ;;
  6316. esac
  6317. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6318. _lt_dar_single_mod='$single_module'
  6319. fi
  6320. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6321. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6322. else
  6323. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6324. fi
  6325. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6326. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6327. else
  6328. _lt_dsymutil=
  6329. fi
  6330. ;;
  6331. esac
  6332. # func_munge_path_list VARIABLE PATH
  6333. # -----------------------------------
  6334. # VARIABLE is name of variable containing _space_ separated list of
  6335. # directories to be munged by the contents of PATH, which is string
  6336. # having a format:
  6337. # "DIR[:DIR]:"
  6338. # string "DIR[ DIR]" will be prepended to VARIABLE
  6339. # ":DIR[:DIR]"
  6340. # string "DIR[ DIR]" will be appended to VARIABLE
  6341. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6342. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6343. # "DIRA[ DIRA]" will be appended to VARIABLE
  6344. # "DIR[:DIR]"
  6345. # VARIABLE will be replaced by "DIR[ DIR]"
  6346. func_munge_path_list ()
  6347. {
  6348. case x$2 in
  6349. x)
  6350. ;;
  6351. *:)
  6352. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6353. ;;
  6354. x:*)
  6355. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6356. ;;
  6357. *::*)
  6358. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6359. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6360. ;;
  6361. *)
  6362. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6363. ;;
  6364. esac
  6365. }
  6366. ac_ext=c
  6367. ac_cpp='$CPP $CPPFLAGS'
  6368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6372. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6373. # On Suns, sometimes $CPP names a directory.
  6374. if test -n "$CPP" && test -d "$CPP"; then
  6375. CPP=
  6376. fi
  6377. if test -z "$CPP"; then
  6378. if ${ac_cv_prog_CPP+:} false; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. # Double quotes because CPP needs to be expanded
  6382. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6383. do
  6384. ac_preproc_ok=false
  6385. for ac_c_preproc_warn_flag in '' yes
  6386. do
  6387. # Use a header file that comes with gcc, so configuring glibc
  6388. # with a fresh cross-compiler works.
  6389. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6390. # <limits.h> exists even on freestanding compilers.
  6391. # On the NeXT, cc -E runs the code through the compiler's parser,
  6392. # not just through cpp. "Syntax error" is here to catch this case.
  6393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6394. /* end confdefs.h. */
  6395. #ifdef __STDC__
  6396. # include <limits.h>
  6397. #else
  6398. # include <assert.h>
  6399. #endif
  6400. Syntax error
  6401. _ACEOF
  6402. if ac_fn_c_try_cpp "$LINENO"; then :
  6403. else
  6404. # Broken: fails on valid input.
  6405. continue
  6406. fi
  6407. rm -f conftest.err conftest.i conftest.$ac_ext
  6408. # OK, works on sane cases. Now check whether nonexistent headers
  6409. # can be detected and how.
  6410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6411. /* end confdefs.h. */
  6412. #include <ac_nonexistent.h>
  6413. _ACEOF
  6414. if ac_fn_c_try_cpp "$LINENO"; then :
  6415. # Broken: success on invalid input.
  6416. continue
  6417. else
  6418. # Passes both tests.
  6419. ac_preproc_ok=:
  6420. break
  6421. fi
  6422. rm -f conftest.err conftest.i conftest.$ac_ext
  6423. done
  6424. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6425. rm -f conftest.i conftest.err conftest.$ac_ext
  6426. if $ac_preproc_ok; then :
  6427. break
  6428. fi
  6429. done
  6430. ac_cv_prog_CPP=$CPP
  6431. fi
  6432. CPP=$ac_cv_prog_CPP
  6433. else
  6434. ac_cv_prog_CPP=$CPP
  6435. fi
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6437. $as_echo "$CPP" >&6; }
  6438. ac_preproc_ok=false
  6439. for ac_c_preproc_warn_flag in '' yes
  6440. do
  6441. # Use a header file that comes with gcc, so configuring glibc
  6442. # with a fresh cross-compiler works.
  6443. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6444. # <limits.h> exists even on freestanding compilers.
  6445. # On the NeXT, cc -E runs the code through the compiler's parser,
  6446. # not just through cpp. "Syntax error" is here to catch this case.
  6447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6448. /* end confdefs.h. */
  6449. #ifdef __STDC__
  6450. # include <limits.h>
  6451. #else
  6452. # include <assert.h>
  6453. #endif
  6454. Syntax error
  6455. _ACEOF
  6456. if ac_fn_c_try_cpp "$LINENO"; then :
  6457. else
  6458. # Broken: fails on valid input.
  6459. continue
  6460. fi
  6461. rm -f conftest.err conftest.i conftest.$ac_ext
  6462. # OK, works on sane cases. Now check whether nonexistent headers
  6463. # can be detected and how.
  6464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6465. /* end confdefs.h. */
  6466. #include <ac_nonexistent.h>
  6467. _ACEOF
  6468. if ac_fn_c_try_cpp "$LINENO"; then :
  6469. # Broken: success on invalid input.
  6470. continue
  6471. else
  6472. # Passes both tests.
  6473. ac_preproc_ok=:
  6474. break
  6475. fi
  6476. rm -f conftest.err conftest.i conftest.$ac_ext
  6477. done
  6478. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6479. rm -f conftest.i conftest.err conftest.$ac_ext
  6480. if $ac_preproc_ok; then :
  6481. else
  6482. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6484. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6485. See \`config.log' for more details" "$LINENO" 5; }
  6486. fi
  6487. ac_ext=c
  6488. ac_cpp='$CPP $CPPFLAGS'
  6489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6493. $as_echo_n "checking for ANSI C header files... " >&6; }
  6494. if ${ac_cv_header_stdc+:} false; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6498. /* end confdefs.h. */
  6499. #include <stdlib.h>
  6500. #include <stdarg.h>
  6501. #include <string.h>
  6502. #include <float.h>
  6503. int
  6504. main ()
  6505. {
  6506. ;
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. if ac_fn_c_try_compile "$LINENO"; then :
  6511. ac_cv_header_stdc=yes
  6512. else
  6513. ac_cv_header_stdc=no
  6514. fi
  6515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6516. if test $ac_cv_header_stdc = yes; then
  6517. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. #include <string.h>
  6521. _ACEOF
  6522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6523. $EGREP "memchr" >/dev/null 2>&1; then :
  6524. else
  6525. ac_cv_header_stdc=no
  6526. fi
  6527. rm -f conftest*
  6528. fi
  6529. if test $ac_cv_header_stdc = yes; then
  6530. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6532. /* end confdefs.h. */
  6533. #include <stdlib.h>
  6534. _ACEOF
  6535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6536. $EGREP "free" >/dev/null 2>&1; then :
  6537. else
  6538. ac_cv_header_stdc=no
  6539. fi
  6540. rm -f conftest*
  6541. fi
  6542. if test $ac_cv_header_stdc = yes; then
  6543. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6544. if test "$cross_compiling" = yes; then :
  6545. :
  6546. else
  6547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6548. /* end confdefs.h. */
  6549. #include <ctype.h>
  6550. #include <stdlib.h>
  6551. #if ((' ' & 0x0FF) == 0x020)
  6552. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6553. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6554. #else
  6555. # define ISLOWER(c) \
  6556. (('a' <= (c) && (c) <= 'i') \
  6557. || ('j' <= (c) && (c) <= 'r') \
  6558. || ('s' <= (c) && (c) <= 'z'))
  6559. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6560. #endif
  6561. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6562. int
  6563. main ()
  6564. {
  6565. int i;
  6566. for (i = 0; i < 256; i++)
  6567. if (XOR (islower (i), ISLOWER (i))
  6568. || toupper (i) != TOUPPER (i))
  6569. return 2;
  6570. return 0;
  6571. }
  6572. _ACEOF
  6573. if ac_fn_c_try_run "$LINENO"; then :
  6574. else
  6575. ac_cv_header_stdc=no
  6576. fi
  6577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6578. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6579. fi
  6580. fi
  6581. fi
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6583. $as_echo "$ac_cv_header_stdc" >&6; }
  6584. if test $ac_cv_header_stdc = yes; then
  6585. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6586. fi
  6587. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6588. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6589. inttypes.h stdint.h unistd.h
  6590. do :
  6591. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6592. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6593. "
  6594. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6595. cat >>confdefs.h <<_ACEOF
  6596. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6597. _ACEOF
  6598. fi
  6599. done
  6600. for ac_header in dlfcn.h
  6601. do :
  6602. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6603. "
  6604. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6605. cat >>confdefs.h <<_ACEOF
  6606. #define HAVE_DLFCN_H 1
  6607. _ACEOF
  6608. fi
  6609. done
  6610. # Set options
  6611. enable_win32_dll=yes
  6612. case $host in
  6613. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6614. if test -n "$ac_tool_prefix"; then
  6615. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6616. set dummy ${ac_tool_prefix}as; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_AS+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$AS"; then
  6623. ac_cv_prog_AS="$AS" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_AS="${ac_tool_prefix}as"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. AS=$ac_cv_prog_AS
  6642. if test -n "$AS"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6644. $as_echo "$AS" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. fi
  6650. if test -z "$ac_cv_prog_AS"; then
  6651. ac_ct_AS=$AS
  6652. # Extract the first word of "as", so it can be a program name with args.
  6653. set dummy as; ac_word=$2
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6655. $as_echo_n "checking for $ac_word... " >&6; }
  6656. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. if test -n "$ac_ct_AS"; then
  6660. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6661. else
  6662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6663. for as_dir in $PATH
  6664. do
  6665. IFS=$as_save_IFS
  6666. test -z "$as_dir" && as_dir=.
  6667. for ac_exec_ext in '' $ac_executable_extensions; do
  6668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6669. ac_cv_prog_ac_ct_AS="as"
  6670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6671. break 2
  6672. fi
  6673. done
  6674. done
  6675. IFS=$as_save_IFS
  6676. fi
  6677. fi
  6678. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6679. if test -n "$ac_ct_AS"; then
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6681. $as_echo "$ac_ct_AS" >&6; }
  6682. else
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6684. $as_echo "no" >&6; }
  6685. fi
  6686. if test "x$ac_ct_AS" = x; then
  6687. AS="false"
  6688. else
  6689. case $cross_compiling:$ac_tool_warned in
  6690. yes:)
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6693. ac_tool_warned=yes ;;
  6694. esac
  6695. AS=$ac_ct_AS
  6696. fi
  6697. else
  6698. AS="$ac_cv_prog_AS"
  6699. fi
  6700. if test -n "$ac_tool_prefix"; then
  6701. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6702. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$DLLTOOL"; then
  6709. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6718. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. DLLTOOL=$ac_cv_prog_DLLTOOL
  6728. if test -n "$DLLTOOL"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6730. $as_echo "$DLLTOOL" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. fi
  6736. if test -z "$ac_cv_prog_DLLTOOL"; then
  6737. ac_ct_DLLTOOL=$DLLTOOL
  6738. # Extract the first word of "dlltool", so it can be a program name with args.
  6739. set dummy dlltool; ac_word=$2
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. if test -n "$ac_ct_DLLTOOL"; then
  6746. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6747. else
  6748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6749. for as_dir in $PATH
  6750. do
  6751. IFS=$as_save_IFS
  6752. test -z "$as_dir" && as_dir=.
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6765. if test -n "$ac_ct_DLLTOOL"; then
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6767. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6768. else
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. $as_echo "no" >&6; }
  6771. fi
  6772. if test "x$ac_ct_DLLTOOL" = x; then
  6773. DLLTOOL="false"
  6774. else
  6775. case $cross_compiling:$ac_tool_warned in
  6776. yes:)
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6779. ac_tool_warned=yes ;;
  6780. esac
  6781. DLLTOOL=$ac_ct_DLLTOOL
  6782. fi
  6783. else
  6784. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6785. fi
  6786. if test -n "$ac_tool_prefix"; then
  6787. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6788. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$OBJDUMP"; then
  6795. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6804. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. OBJDUMP=$ac_cv_prog_OBJDUMP
  6814. if test -n "$OBJDUMP"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6816. $as_echo "$OBJDUMP" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. fi
  6822. if test -z "$ac_cv_prog_OBJDUMP"; then
  6823. ac_ct_OBJDUMP=$OBJDUMP
  6824. # Extract the first word of "objdump", so it can be a program name with args.
  6825. set dummy objdump; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$ac_ct_OBJDUMP"; then
  6832. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6851. if test -n "$ac_ct_OBJDUMP"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6853. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. if test "x$ac_ct_OBJDUMP" = x; then
  6859. OBJDUMP="false"
  6860. else
  6861. case $cross_compiling:$ac_tool_warned in
  6862. yes:)
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6865. ac_tool_warned=yes ;;
  6866. esac
  6867. OBJDUMP=$ac_ct_OBJDUMP
  6868. fi
  6869. else
  6870. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6871. fi
  6872. ;;
  6873. esac
  6874. test -z "$AS" && AS=as
  6875. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6876. test -z "$OBJDUMP" && OBJDUMP=objdump
  6877. enable_dlopen=no
  6878. # Check whether --enable-shared was given.
  6879. if test "${enable_shared+set}" = set; then :
  6880. enableval=$enable_shared; p=${PACKAGE-default}
  6881. case $enableval in
  6882. yes) enable_shared=yes ;;
  6883. no) enable_shared=no ;;
  6884. *)
  6885. enable_shared=no
  6886. # Look at the argument we got. We use all the common list separators.
  6887. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6888. for pkg in $enableval; do
  6889. IFS=$lt_save_ifs
  6890. if test "X$pkg" = "X$p"; then
  6891. enable_shared=yes
  6892. fi
  6893. done
  6894. IFS=$lt_save_ifs
  6895. ;;
  6896. esac
  6897. else
  6898. enable_shared=yes
  6899. fi
  6900. # Check whether --enable-static was given.
  6901. if test "${enable_static+set}" = set; then :
  6902. enableval=$enable_static; p=${PACKAGE-default}
  6903. case $enableval in
  6904. yes) enable_static=yes ;;
  6905. no) enable_static=no ;;
  6906. *)
  6907. enable_static=no
  6908. # Look at the argument we got. We use all the common list separators.
  6909. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6910. for pkg in $enableval; do
  6911. IFS=$lt_save_ifs
  6912. if test "X$pkg" = "X$p"; then
  6913. enable_static=yes
  6914. fi
  6915. done
  6916. IFS=$lt_save_ifs
  6917. ;;
  6918. esac
  6919. else
  6920. enable_static=yes
  6921. fi
  6922. # Check whether --with-pic was given.
  6923. if test "${with_pic+set}" = set; then :
  6924. withval=$with_pic; lt_p=${PACKAGE-default}
  6925. case $withval in
  6926. yes|no) pic_mode=$withval ;;
  6927. *)
  6928. pic_mode=default
  6929. # Look at the argument we got. We use all the common list separators.
  6930. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6931. for lt_pkg in $withval; do
  6932. IFS=$lt_save_ifs
  6933. if test "X$lt_pkg" = "X$lt_p"; then
  6934. pic_mode=yes
  6935. fi
  6936. done
  6937. IFS=$lt_save_ifs
  6938. ;;
  6939. esac
  6940. else
  6941. pic_mode=default
  6942. fi
  6943. # Check whether --enable-fast-install was given.
  6944. if test "${enable_fast_install+set}" = set; then :
  6945. enableval=$enable_fast_install; p=${PACKAGE-default}
  6946. case $enableval in
  6947. yes) enable_fast_install=yes ;;
  6948. no) enable_fast_install=no ;;
  6949. *)
  6950. enable_fast_install=no
  6951. # Look at the argument we got. We use all the common list separators.
  6952. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6953. for pkg in $enableval; do
  6954. IFS=$lt_save_ifs
  6955. if test "X$pkg" = "X$p"; then
  6956. enable_fast_install=yes
  6957. fi
  6958. done
  6959. IFS=$lt_save_ifs
  6960. ;;
  6961. esac
  6962. else
  6963. enable_fast_install=yes
  6964. fi
  6965. shared_archive_member_spec=
  6966. case $host,$enable_shared in
  6967. power*-*-aix[5-9]*,yes)
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6969. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6970. # Check whether --with-aix-soname was given.
  6971. if test "${with_aix_soname+set}" = set; then :
  6972. withval=$with_aix_soname; case $withval in
  6973. aix|svr4|both)
  6974. ;;
  6975. *)
  6976. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6977. ;;
  6978. esac
  6979. lt_cv_with_aix_soname=$with_aix_soname
  6980. else
  6981. if ${lt_cv_with_aix_soname+:} false; then :
  6982. $as_echo_n "(cached) " >&6
  6983. else
  6984. lt_cv_with_aix_soname=aix
  6985. fi
  6986. with_aix_soname=$lt_cv_with_aix_soname
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6989. $as_echo "$with_aix_soname" >&6; }
  6990. if test aix != "$with_aix_soname"; then
  6991. # For the AIX way of multilib, we name the shared archive member
  6992. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6993. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6994. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6995. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6996. if test 64 = "${OBJECT_MODE-32}"; then
  6997. shared_archive_member_spec=shr_64
  6998. else
  6999. shared_archive_member_spec=shr
  7000. fi
  7001. fi
  7002. ;;
  7003. *)
  7004. with_aix_soname=aix
  7005. ;;
  7006. esac
  7007. # This can be used to rebuild libtool when needed
  7008. LIBTOOL_DEPS=$ltmain
  7009. # Always use our own libtool.
  7010. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7011. test -z "$LN_S" && LN_S="ln -s"
  7012. if test -n "${ZSH_VERSION+set}"; then
  7013. setopt NO_GLOB_SUBST
  7014. fi
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7016. $as_echo_n "checking for objdir... " >&6; }
  7017. if ${lt_cv_objdir+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. rm -f .libs 2>/dev/null
  7021. mkdir .libs 2>/dev/null
  7022. if test -d .libs; then
  7023. lt_cv_objdir=.libs
  7024. else
  7025. # MS-DOS does not allow filenames that begin with a dot.
  7026. lt_cv_objdir=_libs
  7027. fi
  7028. rmdir .libs 2>/dev/null
  7029. fi
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7031. $as_echo "$lt_cv_objdir" >&6; }
  7032. objdir=$lt_cv_objdir
  7033. cat >>confdefs.h <<_ACEOF
  7034. #define LT_OBJDIR "$lt_cv_objdir/"
  7035. _ACEOF
  7036. case $host_os in
  7037. aix3*)
  7038. # AIX sometimes has problems with the GCC collect2 program. For some
  7039. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7040. # vanish in a puff of smoke.
  7041. if test set != "${COLLECT_NAMES+set}"; then
  7042. COLLECT_NAMES=
  7043. export COLLECT_NAMES
  7044. fi
  7045. ;;
  7046. esac
  7047. # Global variables:
  7048. ofile=libtool
  7049. can_build_shared=yes
  7050. # All known linkers require a '.a' archive for static linking (except MSVC,
  7051. # which needs '.lib').
  7052. libext=a
  7053. with_gnu_ld=$lt_cv_prog_gnu_ld
  7054. old_CC=$CC
  7055. old_CFLAGS=$CFLAGS
  7056. # Set sane defaults for various variables
  7057. test -z "$CC" && CC=cc
  7058. test -z "$LTCC" && LTCC=$CC
  7059. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7060. test -z "$LD" && LD=ld
  7061. test -z "$ac_objext" && ac_objext=o
  7062. func_cc_basename $compiler
  7063. cc_basename=$func_cc_basename_result
  7064. # Only perform the check for file, if the check method requires it
  7065. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7066. case $deplibs_check_method in
  7067. file_magic*)
  7068. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7070. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7071. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. case $MAGIC_CMD in
  7075. [\\/*] | ?:[\\/]*)
  7076. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7077. ;;
  7078. *)
  7079. lt_save_MAGIC_CMD=$MAGIC_CMD
  7080. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7081. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7082. for ac_dir in $ac_dummy; do
  7083. IFS=$lt_save_ifs
  7084. test -z "$ac_dir" && ac_dir=.
  7085. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7086. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7087. if test -n "$file_magic_test_file"; then
  7088. case $deplibs_check_method in
  7089. "file_magic "*)
  7090. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7091. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7092. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7093. $EGREP "$file_magic_regex" > /dev/null; then
  7094. :
  7095. else
  7096. cat <<_LT_EOF 1>&2
  7097. *** Warning: the command libtool uses to detect shared libraries,
  7098. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7099. *** The result is that libtool may fail to recognize shared libraries
  7100. *** as such. This will affect the creation of libtool libraries that
  7101. *** depend on shared libraries, but programs linked with such libtool
  7102. *** libraries will work regardless of this problem. Nevertheless, you
  7103. *** may want to report the problem to your system manager and/or to
  7104. *** bug-libtool@gnu.org
  7105. _LT_EOF
  7106. fi ;;
  7107. esac
  7108. fi
  7109. break
  7110. fi
  7111. done
  7112. IFS=$lt_save_ifs
  7113. MAGIC_CMD=$lt_save_MAGIC_CMD
  7114. ;;
  7115. esac
  7116. fi
  7117. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7118. if test -n "$MAGIC_CMD"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7120. $as_echo "$MAGIC_CMD" >&6; }
  7121. else
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7123. $as_echo "no" >&6; }
  7124. fi
  7125. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7126. if test -n "$ac_tool_prefix"; then
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7128. $as_echo_n "checking for file... " >&6; }
  7129. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. case $MAGIC_CMD in
  7133. [\\/*] | ?:[\\/]*)
  7134. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7135. ;;
  7136. *)
  7137. lt_save_MAGIC_CMD=$MAGIC_CMD
  7138. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7139. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7140. for ac_dir in $ac_dummy; do
  7141. IFS=$lt_save_ifs
  7142. test -z "$ac_dir" && ac_dir=.
  7143. if test -f "$ac_dir/file"; then
  7144. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7145. if test -n "$file_magic_test_file"; then
  7146. case $deplibs_check_method in
  7147. "file_magic "*)
  7148. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7149. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7150. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7151. $EGREP "$file_magic_regex" > /dev/null; then
  7152. :
  7153. else
  7154. cat <<_LT_EOF 1>&2
  7155. *** Warning: the command libtool uses to detect shared libraries,
  7156. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7157. *** The result is that libtool may fail to recognize shared libraries
  7158. *** as such. This will affect the creation of libtool libraries that
  7159. *** depend on shared libraries, but programs linked with such libtool
  7160. *** libraries will work regardless of this problem. Nevertheless, you
  7161. *** may want to report the problem to your system manager and/or to
  7162. *** bug-libtool@gnu.org
  7163. _LT_EOF
  7164. fi ;;
  7165. esac
  7166. fi
  7167. break
  7168. fi
  7169. done
  7170. IFS=$lt_save_ifs
  7171. MAGIC_CMD=$lt_save_MAGIC_CMD
  7172. ;;
  7173. esac
  7174. fi
  7175. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7176. if test -n "$MAGIC_CMD"; then
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7178. $as_echo "$MAGIC_CMD" >&6; }
  7179. else
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183. else
  7184. MAGIC_CMD=:
  7185. fi
  7186. fi
  7187. fi
  7188. ;;
  7189. esac
  7190. # Use C for the default configuration in the libtool script
  7191. lt_save_CC=$CC
  7192. ac_ext=c
  7193. ac_cpp='$CPP $CPPFLAGS'
  7194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7197. # Source file extension for C test sources.
  7198. ac_ext=c
  7199. # Object file extension for compiled C test sources.
  7200. objext=o
  7201. objext=$objext
  7202. # Code to be used in simple compile tests
  7203. lt_simple_compile_test_code="int some_variable = 0;"
  7204. # Code to be used in simple link tests
  7205. lt_simple_link_test_code='int main(){return(0);}'
  7206. # If no C compiler was specified, use CC.
  7207. LTCC=${LTCC-"$CC"}
  7208. # If no C compiler flags were specified, use CFLAGS.
  7209. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7210. # Allow CC to be a program name with arguments.
  7211. compiler=$CC
  7212. # Save the default compiler, since it gets overwritten when the other
  7213. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7214. compiler_DEFAULT=$CC
  7215. # save warnings/boilerplate of simple test code
  7216. ac_outfile=conftest.$ac_objext
  7217. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7218. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7219. _lt_compiler_boilerplate=`cat conftest.err`
  7220. $RM conftest*
  7221. ac_outfile=conftest.$ac_objext
  7222. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7223. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7224. _lt_linker_boilerplate=`cat conftest.err`
  7225. $RM -r conftest*
  7226. ## CAVEAT EMPTOR:
  7227. ## There is no encapsulation within the following macros, do not change
  7228. ## the running order or otherwise move them around unless you know exactly
  7229. ## what you are doing...
  7230. if test -n "$compiler"; then
  7231. lt_prog_compiler_no_builtin_flag=
  7232. if test yes = "$GCC"; then
  7233. case $cc_basename in
  7234. nvcc*)
  7235. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7236. *)
  7237. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7238. esac
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7240. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7241. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. lt_cv_prog_compiler_rtti_exceptions=no
  7245. ac_outfile=conftest.$ac_objext
  7246. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7247. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7248. # Insert the option either (1) after the last *FLAGS variable, or
  7249. # (2) before a word containing "conftest.", or (3) at the end.
  7250. # Note that $ac_compile itself does not contain backslashes and begins
  7251. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7252. # The option is referenced via a variable to avoid confusing sed.
  7253. lt_compile=`echo "$ac_compile" | $SED \
  7254. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7255. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7256. -e 's:$: $lt_compiler_flag:'`
  7257. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7258. (eval "$lt_compile" 2>conftest.err)
  7259. ac_status=$?
  7260. cat conftest.err >&5
  7261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7262. if (exit $ac_status) && test -s "$ac_outfile"; then
  7263. # The compiler can only warn and ignore the option if not recognized
  7264. # So say no if there are warnings other than the usual output.
  7265. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7267. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7268. lt_cv_prog_compiler_rtti_exceptions=yes
  7269. fi
  7270. fi
  7271. $RM conftest*
  7272. fi
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7274. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7275. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7276. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7277. else
  7278. :
  7279. fi
  7280. fi
  7281. lt_prog_compiler_wl=
  7282. lt_prog_compiler_pic=
  7283. lt_prog_compiler_static=
  7284. if test yes = "$GCC"; then
  7285. lt_prog_compiler_wl='-Wl,'
  7286. lt_prog_compiler_static='-static'
  7287. case $host_os in
  7288. aix*)
  7289. # All AIX code is PIC.
  7290. if test ia64 = "$host_cpu"; then
  7291. # AIX 5 now supports IA64 processor
  7292. lt_prog_compiler_static='-Bstatic'
  7293. fi
  7294. lt_prog_compiler_pic='-fPIC'
  7295. ;;
  7296. amigaos*)
  7297. case $host_cpu in
  7298. powerpc)
  7299. # see comment about AmigaOS4 .so support
  7300. lt_prog_compiler_pic='-fPIC'
  7301. ;;
  7302. m68k)
  7303. # FIXME: we need at least 68020 code to build shared libraries, but
  7304. # adding the '-m68020' flag to GCC prevents building anything better,
  7305. # like '-m68040'.
  7306. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7307. ;;
  7308. esac
  7309. ;;
  7310. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7311. # PIC is the default for these OSes.
  7312. ;;
  7313. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7314. # This hack is so that the source file can tell whether it is being
  7315. # built for inclusion in a dll (and should export symbols for example).
  7316. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7317. # (--disable-auto-import) libraries
  7318. lt_prog_compiler_pic='-DDLL_EXPORT'
  7319. case $host_os in
  7320. os2*)
  7321. lt_prog_compiler_static='$wl-static'
  7322. ;;
  7323. esac
  7324. ;;
  7325. darwin* | rhapsody*)
  7326. # PIC is the default on this platform
  7327. # Common symbols not allowed in MH_DYLIB files
  7328. lt_prog_compiler_pic='-fno-common'
  7329. ;;
  7330. haiku*)
  7331. # PIC is the default for Haiku.
  7332. # The "-static" flag exists, but is broken.
  7333. lt_prog_compiler_static=
  7334. ;;
  7335. hpux*)
  7336. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7337. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7338. # sets the default TLS model and affects inlining.
  7339. case $host_cpu in
  7340. hppa*64*)
  7341. # +Z the default
  7342. ;;
  7343. *)
  7344. lt_prog_compiler_pic='-fPIC'
  7345. ;;
  7346. esac
  7347. ;;
  7348. interix[3-9]*)
  7349. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7350. # Instead, we relocate shared libraries at runtime.
  7351. ;;
  7352. msdosdjgpp*)
  7353. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7354. # on systems that don't support them.
  7355. lt_prog_compiler_can_build_shared=no
  7356. enable_shared=no
  7357. ;;
  7358. *nto* | *qnx*)
  7359. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7360. # it will coredump.
  7361. lt_prog_compiler_pic='-fPIC -shared'
  7362. ;;
  7363. sysv4*MP*)
  7364. if test -d /usr/nec; then
  7365. lt_prog_compiler_pic=-Kconform_pic
  7366. fi
  7367. ;;
  7368. *)
  7369. lt_prog_compiler_pic='-fPIC'
  7370. ;;
  7371. esac
  7372. case $cc_basename in
  7373. nvcc*) # Cuda Compiler Driver 2.2
  7374. lt_prog_compiler_wl='-Xlinker '
  7375. if test -n "$lt_prog_compiler_pic"; then
  7376. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7377. fi
  7378. ;;
  7379. esac
  7380. else
  7381. # PORTME Check for flag to pass linker flags through the system compiler.
  7382. case $host_os in
  7383. aix*)
  7384. lt_prog_compiler_wl='-Wl,'
  7385. if test ia64 = "$host_cpu"; then
  7386. # AIX 5 now supports IA64 processor
  7387. lt_prog_compiler_static='-Bstatic'
  7388. else
  7389. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7390. fi
  7391. ;;
  7392. darwin* | rhapsody*)
  7393. # PIC is the default on this platform
  7394. # Common symbols not allowed in MH_DYLIB files
  7395. lt_prog_compiler_pic='-fno-common'
  7396. case $cc_basename in
  7397. nagfor*)
  7398. # NAG Fortran compiler
  7399. lt_prog_compiler_wl='-Wl,-Wl,,'
  7400. lt_prog_compiler_pic='-PIC'
  7401. lt_prog_compiler_static='-Bstatic'
  7402. ;;
  7403. esac
  7404. ;;
  7405. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7406. # This hack is so that the source file can tell whether it is being
  7407. # built for inclusion in a dll (and should export symbols for example).
  7408. lt_prog_compiler_pic='-DDLL_EXPORT'
  7409. case $host_os in
  7410. os2*)
  7411. lt_prog_compiler_static='$wl-static'
  7412. ;;
  7413. esac
  7414. ;;
  7415. hpux9* | hpux10* | hpux11*)
  7416. lt_prog_compiler_wl='-Wl,'
  7417. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7418. # not for PA HP-UX.
  7419. case $host_cpu in
  7420. hppa*64*|ia64*)
  7421. # +Z the default
  7422. ;;
  7423. *)
  7424. lt_prog_compiler_pic='+Z'
  7425. ;;
  7426. esac
  7427. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7428. lt_prog_compiler_static='$wl-a ${wl}archive'
  7429. ;;
  7430. irix5* | irix6* | nonstopux*)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. # PIC (with -KPIC) is the default.
  7433. lt_prog_compiler_static='-non_shared'
  7434. ;;
  7435. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7436. case $cc_basename in
  7437. # old Intel for x86_64, which still supported -KPIC.
  7438. ecc*)
  7439. lt_prog_compiler_wl='-Wl,'
  7440. lt_prog_compiler_pic='-KPIC'
  7441. lt_prog_compiler_static='-static'
  7442. ;;
  7443. # icc used to be incompatible with GCC.
  7444. # ICC 10 doesn't accept -KPIC any more.
  7445. icc* | ifort*)
  7446. lt_prog_compiler_wl='-Wl,'
  7447. lt_prog_compiler_pic='-fPIC'
  7448. lt_prog_compiler_static='-static'
  7449. ;;
  7450. # Lahey Fortran 8.1.
  7451. lf95*)
  7452. lt_prog_compiler_wl='-Wl,'
  7453. lt_prog_compiler_pic='--shared'
  7454. lt_prog_compiler_static='--static'
  7455. ;;
  7456. nagfor*)
  7457. # NAG Fortran compiler
  7458. lt_prog_compiler_wl='-Wl,-Wl,,'
  7459. lt_prog_compiler_pic='-PIC'
  7460. lt_prog_compiler_static='-Bstatic'
  7461. ;;
  7462. tcc*)
  7463. # Fabrice Bellard et al's Tiny C Compiler
  7464. lt_prog_compiler_wl='-Wl,'
  7465. lt_prog_compiler_pic='-fPIC'
  7466. lt_prog_compiler_static='-static'
  7467. ;;
  7468. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7469. # Portland Group compilers (*not* the Pentium gcc compiler,
  7470. # which looks to be a dead project)
  7471. lt_prog_compiler_wl='-Wl,'
  7472. lt_prog_compiler_pic='-fpic'
  7473. lt_prog_compiler_static='-Bstatic'
  7474. ;;
  7475. ccc*)
  7476. lt_prog_compiler_wl='-Wl,'
  7477. # All Alpha code is PIC.
  7478. lt_prog_compiler_static='-non_shared'
  7479. ;;
  7480. xl* | bgxl* | bgf* | mpixl*)
  7481. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7482. lt_prog_compiler_wl='-Wl,'
  7483. lt_prog_compiler_pic='-qpic'
  7484. lt_prog_compiler_static='-qstaticlink'
  7485. ;;
  7486. *)
  7487. case `$CC -V 2>&1 | sed 5q` in
  7488. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7489. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7490. lt_prog_compiler_pic='-KPIC'
  7491. lt_prog_compiler_static='-Bstatic'
  7492. lt_prog_compiler_wl=''
  7493. ;;
  7494. *Sun\ F* | *Sun*Fortran*)
  7495. lt_prog_compiler_pic='-KPIC'
  7496. lt_prog_compiler_static='-Bstatic'
  7497. lt_prog_compiler_wl='-Qoption ld '
  7498. ;;
  7499. *Sun\ C*)
  7500. # Sun C 5.9
  7501. lt_prog_compiler_pic='-KPIC'
  7502. lt_prog_compiler_static='-Bstatic'
  7503. lt_prog_compiler_wl='-Wl,'
  7504. ;;
  7505. *Intel*\ [CF]*Compiler*)
  7506. lt_prog_compiler_wl='-Wl,'
  7507. lt_prog_compiler_pic='-fPIC'
  7508. lt_prog_compiler_static='-static'
  7509. ;;
  7510. *Portland\ Group*)
  7511. lt_prog_compiler_wl='-Wl,'
  7512. lt_prog_compiler_pic='-fpic'
  7513. lt_prog_compiler_static='-Bstatic'
  7514. ;;
  7515. esac
  7516. ;;
  7517. esac
  7518. ;;
  7519. newsos6)
  7520. lt_prog_compiler_pic='-KPIC'
  7521. lt_prog_compiler_static='-Bstatic'
  7522. ;;
  7523. *nto* | *qnx*)
  7524. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7525. # it will coredump.
  7526. lt_prog_compiler_pic='-fPIC -shared'
  7527. ;;
  7528. osf3* | osf4* | osf5*)
  7529. lt_prog_compiler_wl='-Wl,'
  7530. # All OSF/1 code is PIC.
  7531. lt_prog_compiler_static='-non_shared'
  7532. ;;
  7533. rdos*)
  7534. lt_prog_compiler_static='-non_shared'
  7535. ;;
  7536. solaris*)
  7537. lt_prog_compiler_pic='-KPIC'
  7538. lt_prog_compiler_static='-Bstatic'
  7539. case $cc_basename in
  7540. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7541. lt_prog_compiler_wl='-Qoption ld ';;
  7542. *)
  7543. lt_prog_compiler_wl='-Wl,';;
  7544. esac
  7545. ;;
  7546. sunos4*)
  7547. lt_prog_compiler_wl='-Qoption ld '
  7548. lt_prog_compiler_pic='-PIC'
  7549. lt_prog_compiler_static='-Bstatic'
  7550. ;;
  7551. sysv4 | sysv4.2uw2* | sysv4.3*)
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_pic='-KPIC'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. sysv4*MP*)
  7557. if test -d /usr/nec; then
  7558. lt_prog_compiler_pic='-Kconform_pic'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. fi
  7561. ;;
  7562. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7563. lt_prog_compiler_wl='-Wl,'
  7564. lt_prog_compiler_pic='-KPIC'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. ;;
  7567. unicos*)
  7568. lt_prog_compiler_wl='-Wl,'
  7569. lt_prog_compiler_can_build_shared=no
  7570. ;;
  7571. uts4*)
  7572. lt_prog_compiler_pic='-pic'
  7573. lt_prog_compiler_static='-Bstatic'
  7574. ;;
  7575. *)
  7576. lt_prog_compiler_can_build_shared=no
  7577. ;;
  7578. esac
  7579. fi
  7580. case $host_os in
  7581. # For platforms that do not support PIC, -DPIC is meaningless:
  7582. *djgpp*)
  7583. lt_prog_compiler_pic=
  7584. ;;
  7585. *)
  7586. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7587. ;;
  7588. esac
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7590. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7591. if ${lt_cv_prog_compiler_pic+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7595. fi
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7597. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7598. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7599. #
  7600. # Check to make sure the PIC flag actually works.
  7601. #
  7602. if test -n "$lt_prog_compiler_pic"; then
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7604. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7605. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7606. $as_echo_n "(cached) " >&6
  7607. else
  7608. lt_cv_prog_compiler_pic_works=no
  7609. ac_outfile=conftest.$ac_objext
  7610. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7611. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7612. # Insert the option either (1) after the last *FLAGS variable, or
  7613. # (2) before a word containing "conftest.", or (3) at the end.
  7614. # Note that $ac_compile itself does not contain backslashes and begins
  7615. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7616. # The option is referenced via a variable to avoid confusing sed.
  7617. lt_compile=`echo "$ac_compile" | $SED \
  7618. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7619. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7620. -e 's:$: $lt_compiler_flag:'`
  7621. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7622. (eval "$lt_compile" 2>conftest.err)
  7623. ac_status=$?
  7624. cat conftest.err >&5
  7625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7626. if (exit $ac_status) && test -s "$ac_outfile"; then
  7627. # The compiler can only warn and ignore the option if not recognized
  7628. # So say no if there are warnings other than the usual output.
  7629. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7630. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7631. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7632. lt_cv_prog_compiler_pic_works=yes
  7633. fi
  7634. fi
  7635. $RM conftest*
  7636. fi
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7638. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7639. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7640. case $lt_prog_compiler_pic in
  7641. "" | " "*) ;;
  7642. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7643. esac
  7644. else
  7645. lt_prog_compiler_pic=
  7646. lt_prog_compiler_can_build_shared=no
  7647. fi
  7648. fi
  7649. #
  7650. # Check to make sure the static flag actually works.
  7651. #
  7652. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7654. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7655. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7656. $as_echo_n "(cached) " >&6
  7657. else
  7658. lt_cv_prog_compiler_static_works=no
  7659. save_LDFLAGS=$LDFLAGS
  7660. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7661. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7662. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7663. # The linker can only warn and ignore the option if not recognized
  7664. # So say no if there are warnings
  7665. if test -s conftest.err; then
  7666. # Append any errors to the config.log.
  7667. cat conftest.err 1>&5
  7668. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7669. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7670. if diff conftest.exp conftest.er2 >/dev/null; then
  7671. lt_cv_prog_compiler_static_works=yes
  7672. fi
  7673. else
  7674. lt_cv_prog_compiler_static_works=yes
  7675. fi
  7676. fi
  7677. $RM -r conftest*
  7678. LDFLAGS=$save_LDFLAGS
  7679. fi
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7681. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7682. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7683. :
  7684. else
  7685. lt_prog_compiler_static=
  7686. fi
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7688. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7689. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. lt_cv_prog_compiler_c_o=no
  7693. $RM -r conftest 2>/dev/null
  7694. mkdir conftest
  7695. cd conftest
  7696. mkdir out
  7697. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7698. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7699. # Insert the option either (1) after the last *FLAGS variable, or
  7700. # (2) before a word containing "conftest.", or (3) at the end.
  7701. # Note that $ac_compile itself does not contain backslashes and begins
  7702. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7703. lt_compile=`echo "$ac_compile" | $SED \
  7704. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7705. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7706. -e 's:$: $lt_compiler_flag:'`
  7707. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7708. (eval "$lt_compile" 2>out/conftest.err)
  7709. ac_status=$?
  7710. cat out/conftest.err >&5
  7711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7712. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7713. then
  7714. # The compiler can only warn and ignore the option if not recognized
  7715. # So say no if there are warnings
  7716. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7717. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7718. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7719. lt_cv_prog_compiler_c_o=yes
  7720. fi
  7721. fi
  7722. chmod u+w . 2>&5
  7723. $RM conftest*
  7724. # SGI C++ compiler will create directory out/ii_files/ for
  7725. # template instantiation
  7726. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7727. $RM out/* && rmdir out
  7728. cd ..
  7729. $RM -r conftest
  7730. $RM conftest*
  7731. fi
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7733. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7735. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7736. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7737. $as_echo_n "(cached) " >&6
  7738. else
  7739. lt_cv_prog_compiler_c_o=no
  7740. $RM -r conftest 2>/dev/null
  7741. mkdir conftest
  7742. cd conftest
  7743. mkdir out
  7744. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7745. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7746. # Insert the option either (1) after the last *FLAGS variable, or
  7747. # (2) before a word containing "conftest.", or (3) at the end.
  7748. # Note that $ac_compile itself does not contain backslashes and begins
  7749. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7750. lt_compile=`echo "$ac_compile" | $SED \
  7751. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7752. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7753. -e 's:$: $lt_compiler_flag:'`
  7754. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7755. (eval "$lt_compile" 2>out/conftest.err)
  7756. ac_status=$?
  7757. cat out/conftest.err >&5
  7758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7760. then
  7761. # The compiler can only warn and ignore the option if not recognized
  7762. # So say no if there are warnings
  7763. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7764. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7765. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7766. lt_cv_prog_compiler_c_o=yes
  7767. fi
  7768. fi
  7769. chmod u+w . 2>&5
  7770. $RM conftest*
  7771. # SGI C++ compiler will create directory out/ii_files/ for
  7772. # template instantiation
  7773. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7774. $RM out/* && rmdir out
  7775. cd ..
  7776. $RM -r conftest
  7777. $RM conftest*
  7778. fi
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7780. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7781. hard_links=nottested
  7782. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7783. # do not overwrite the value of need_locks provided by the user
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7785. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7786. hard_links=yes
  7787. $RM conftest*
  7788. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7789. touch conftest.a
  7790. ln conftest.a conftest.b 2>&5 || hard_links=no
  7791. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7793. $as_echo "$hard_links" >&6; }
  7794. if test no = "$hard_links"; then
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7796. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7797. need_locks=warn
  7798. fi
  7799. else
  7800. need_locks=no
  7801. fi
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7803. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7804. runpath_var=
  7805. allow_undefined_flag=
  7806. always_export_symbols=no
  7807. archive_cmds=
  7808. archive_expsym_cmds=
  7809. compiler_needs_object=no
  7810. enable_shared_with_static_runtimes=no
  7811. export_dynamic_flag_spec=
  7812. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7813. hardcode_automatic=no
  7814. hardcode_direct=no
  7815. hardcode_direct_absolute=no
  7816. hardcode_libdir_flag_spec=
  7817. hardcode_libdir_separator=
  7818. hardcode_minus_L=no
  7819. hardcode_shlibpath_var=unsupported
  7820. inherit_rpath=no
  7821. link_all_deplibs=unknown
  7822. module_cmds=
  7823. module_expsym_cmds=
  7824. old_archive_from_new_cmds=
  7825. old_archive_from_expsyms_cmds=
  7826. thread_safe_flag_spec=
  7827. whole_archive_flag_spec=
  7828. # include_expsyms should be a list of space-separated symbols to be *always*
  7829. # included in the symbol list
  7830. include_expsyms=
  7831. # exclude_expsyms can be an extended regexp of symbols to exclude
  7832. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7833. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7834. # as well as any symbol that contains 'd'.
  7835. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7836. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7837. # platforms (ab)use it in PIC code, but their linkers get confused if
  7838. # the symbol is explicitly referenced. Since portable code cannot
  7839. # rely on this symbol name, it's probably fine to never include it in
  7840. # preloaded symbol tables.
  7841. # Exclude shared library initialization/finalization symbols.
  7842. extract_expsyms_cmds=
  7843. case $host_os in
  7844. cygwin* | mingw* | pw32* | cegcc*)
  7845. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7846. # When not using gcc, we currently assume that we are using
  7847. # Microsoft Visual C++.
  7848. if test yes != "$GCC"; then
  7849. with_gnu_ld=no
  7850. fi
  7851. ;;
  7852. interix*)
  7853. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7854. with_gnu_ld=yes
  7855. ;;
  7856. openbsd* | bitrig*)
  7857. with_gnu_ld=no
  7858. ;;
  7859. esac
  7860. ld_shlibs=yes
  7861. # On some targets, GNU ld is compatible enough with the native linker
  7862. # that we're better off using the native interface for both.
  7863. lt_use_gnu_ld_interface=no
  7864. if test yes = "$with_gnu_ld"; then
  7865. case $host_os in
  7866. aix*)
  7867. # The AIX port of GNU ld has always aspired to compatibility
  7868. # with the native linker. However, as the warning in the GNU ld
  7869. # block says, versions before 2.19.5* couldn't really create working
  7870. # shared libraries, regardless of the interface used.
  7871. case `$LD -v 2>&1` in
  7872. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7873. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7874. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7875. *)
  7876. lt_use_gnu_ld_interface=yes
  7877. ;;
  7878. esac
  7879. ;;
  7880. *)
  7881. lt_use_gnu_ld_interface=yes
  7882. ;;
  7883. esac
  7884. fi
  7885. if test yes = "$lt_use_gnu_ld_interface"; then
  7886. # If archive_cmds runs LD, not CC, wlarc should be empty
  7887. wlarc='$wl'
  7888. # Set some defaults for GNU ld with shared library support. These
  7889. # are reset later if shared libraries are not supported. Putting them
  7890. # here allows them to be overridden if necessary.
  7891. runpath_var=LD_RUN_PATH
  7892. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7893. export_dynamic_flag_spec='$wl--export-dynamic'
  7894. # ancient GNU ld didn't support --whole-archive et. al.
  7895. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7896. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7897. else
  7898. whole_archive_flag_spec=
  7899. fi
  7900. supports_anon_versioning=no
  7901. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7902. *GNU\ gold*) supports_anon_versioning=yes ;;
  7903. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7904. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7905. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7906. *\ 2.11.*) ;; # other 2.11 versions
  7907. *) supports_anon_versioning=yes ;;
  7908. esac
  7909. # See if GNU ld supports shared libraries.
  7910. case $host_os in
  7911. aix[3-9]*)
  7912. # On AIX/PPC, the GNU linker is very broken
  7913. if test ia64 != "$host_cpu"; then
  7914. ld_shlibs=no
  7915. cat <<_LT_EOF 1>&2
  7916. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7917. *** to be unable to reliably create shared libraries on AIX.
  7918. *** Therefore, libtool is disabling shared libraries support. If you
  7919. *** really care for shared libraries, you may want to install binutils
  7920. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7921. *** You will then need to restart the configuration process.
  7922. _LT_EOF
  7923. fi
  7924. ;;
  7925. amigaos*)
  7926. case $host_cpu in
  7927. powerpc)
  7928. # see comment about AmigaOS4 .so support
  7929. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7930. archive_expsym_cmds=''
  7931. ;;
  7932. m68k)
  7933. 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)'
  7934. hardcode_libdir_flag_spec='-L$libdir'
  7935. hardcode_minus_L=yes
  7936. ;;
  7937. esac
  7938. ;;
  7939. beos*)
  7940. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7941. allow_undefined_flag=unsupported
  7942. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7943. # support --undefined. This deserves some investigation. FIXME
  7944. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7945. else
  7946. ld_shlibs=no
  7947. fi
  7948. ;;
  7949. cygwin* | mingw* | pw32* | cegcc*)
  7950. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7951. # as there is no search path for DLLs.
  7952. hardcode_libdir_flag_spec='-L$libdir'
  7953. export_dynamic_flag_spec='$wl--export-all-symbols'
  7954. allow_undefined_flag=unsupported
  7955. always_export_symbols=no
  7956. enable_shared_with_static_runtimes=yes
  7957. 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'
  7958. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7959. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7960. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7961. # If the export-symbols file already is a .def file, use it as
  7962. # is; otherwise, prepend EXPORTS...
  7963. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7964. cp $export_symbols $output_objdir/$soname.def;
  7965. else
  7966. echo EXPORTS > $output_objdir/$soname.def;
  7967. cat $export_symbols >> $output_objdir/$soname.def;
  7968. fi~
  7969. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7970. else
  7971. ld_shlibs=no
  7972. fi
  7973. ;;
  7974. haiku*)
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7976. link_all_deplibs=yes
  7977. ;;
  7978. os2*)
  7979. hardcode_libdir_flag_spec='-L$libdir'
  7980. hardcode_minus_L=yes
  7981. allow_undefined_flag=unsupported
  7982. shrext_cmds=.dll
  7983. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7984. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7985. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7986. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7987. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7988. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7989. emximp -o $lib $output_objdir/$libname.def'
  7990. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7991. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7992. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7993. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7994. prefix_cmds="$SED"~
  7995. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7996. prefix_cmds="$prefix_cmds -e 1d";
  7997. fi~
  7998. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7999. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8000. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8001. emximp -o $lib $output_objdir/$libname.def'
  8002. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8003. enable_shared_with_static_runtimes=yes
  8004. file_list_spec='@'
  8005. ;;
  8006. interix[3-9]*)
  8007. hardcode_direct=no
  8008. hardcode_shlibpath_var=no
  8009. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8010. export_dynamic_flag_spec='$wl-E'
  8011. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8012. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8013. # default) and relocated if they conflict, which is a slow very memory
  8014. # consuming and fragmenting process. To avoid this, we pick a random,
  8015. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8016. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8017. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8018. 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'
  8019. ;;
  8020. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8021. tmp_diet=no
  8022. if test linux-dietlibc = "$host_os"; then
  8023. case $cc_basename in
  8024. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8025. esac
  8026. fi
  8027. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8028. && test no = "$tmp_diet"
  8029. then
  8030. tmp_addflag=' $pic_flag'
  8031. tmp_sharedflag='-shared'
  8032. case $cc_basename,$host_cpu in
  8033. pgcc*) # Portland Group C compiler
  8034. 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'
  8035. tmp_addflag=' $pic_flag'
  8036. ;;
  8037. pgf77* | pgf90* | pgf95* | pgfortran*)
  8038. # Portland Group f77 and f90 compilers
  8039. 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'
  8040. tmp_addflag=' $pic_flag -Mnomain' ;;
  8041. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8042. tmp_addflag=' -i_dynamic' ;;
  8043. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8044. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8045. ifc* | ifort*) # Intel Fortran compiler
  8046. tmp_addflag=' -nofor_main' ;;
  8047. lf95*) # Lahey Fortran 8.1
  8048. whole_archive_flag_spec=
  8049. tmp_sharedflag='--shared' ;;
  8050. nagfor*) # NAGFOR 5.3
  8051. tmp_sharedflag='-Wl,-shared' ;;
  8052. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8053. tmp_sharedflag='-qmkshrobj'
  8054. tmp_addflag= ;;
  8055. nvcc*) # Cuda Compiler Driver 2.2
  8056. 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'
  8057. compiler_needs_object=yes
  8058. ;;
  8059. esac
  8060. case `$CC -V 2>&1 | sed 5q` in
  8061. *Sun\ C*) # Sun C 5.9
  8062. 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'
  8063. compiler_needs_object=yes
  8064. tmp_sharedflag='-G' ;;
  8065. *Sun\ F*) # Sun Fortran 8.3
  8066. tmp_sharedflag='-G' ;;
  8067. esac
  8068. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8069. if test yes = "$supports_anon_versioning"; then
  8070. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8071. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8072. echo "local: *; };" >> $output_objdir/$libname.ver~
  8073. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8074. fi
  8075. case $cc_basename in
  8076. tcc*)
  8077. export_dynamic_flag_spec='-rdynamic'
  8078. ;;
  8079. xlf* | bgf* | bgxlf* | mpixlf*)
  8080. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8081. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8082. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8083. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8084. if test yes = "$supports_anon_versioning"; then
  8085. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8086. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8087. echo "local: *; };" >> $output_objdir/$libname.ver~
  8088. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8089. fi
  8090. ;;
  8091. esac
  8092. else
  8093. ld_shlibs=no
  8094. fi
  8095. ;;
  8096. netbsd*)
  8097. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8098. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8099. wlarc=
  8100. else
  8101. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8102. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8103. fi
  8104. ;;
  8105. solaris*)
  8106. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8107. ld_shlibs=no
  8108. cat <<_LT_EOF 1>&2
  8109. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8110. *** create shared libraries on Solaris systems. Therefore, libtool
  8111. *** is disabling shared libraries support. We urge you to upgrade GNU
  8112. *** binutils to release 2.9.1 or newer. Another option is to modify
  8113. *** your PATH or compiler configuration so that the native linker is
  8114. *** used, and then restart.
  8115. _LT_EOF
  8116. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8117. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8118. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8119. else
  8120. ld_shlibs=no
  8121. fi
  8122. ;;
  8123. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8124. case `$LD -v 2>&1` in
  8125. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8126. ld_shlibs=no
  8127. cat <<_LT_EOF 1>&2
  8128. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8129. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8130. *** is disabling shared libraries support. We urge you to upgrade GNU
  8131. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8132. *** your PATH or compiler configuration so that the native linker is
  8133. *** used, and then restart.
  8134. _LT_EOF
  8135. ;;
  8136. *)
  8137. # For security reasons, it is highly recommended that you always
  8138. # use absolute paths for naming shared libraries, and exclude the
  8139. # DT_RUNPATH tag from executables and libraries. But doing so
  8140. # requires that you compile everything twice, which is a pain.
  8141. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8142. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8144. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8145. else
  8146. ld_shlibs=no
  8147. fi
  8148. ;;
  8149. esac
  8150. ;;
  8151. sunos4*)
  8152. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8153. wlarc=
  8154. hardcode_direct=yes
  8155. hardcode_shlibpath_var=no
  8156. ;;
  8157. *)
  8158. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8159. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8160. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8161. else
  8162. ld_shlibs=no
  8163. fi
  8164. ;;
  8165. esac
  8166. if test no = "$ld_shlibs"; then
  8167. runpath_var=
  8168. hardcode_libdir_flag_spec=
  8169. export_dynamic_flag_spec=
  8170. whole_archive_flag_spec=
  8171. fi
  8172. else
  8173. # PORTME fill in a description of your system's linker (not GNU ld)
  8174. case $host_os in
  8175. aix3*)
  8176. allow_undefined_flag=unsupported
  8177. always_export_symbols=yes
  8178. 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'
  8179. # Note: this linker hardcodes the directories in LIBPATH if there
  8180. # are no directories specified by -L.
  8181. hardcode_minus_L=yes
  8182. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8183. # Neither direct hardcoding nor static linking is supported with a
  8184. # broken collect2.
  8185. hardcode_direct=unsupported
  8186. fi
  8187. ;;
  8188. aix[4-9]*)
  8189. if test ia64 = "$host_cpu"; then
  8190. # On IA64, the linker does run time linking by default, so we don't
  8191. # have to do anything special.
  8192. aix_use_runtimelinking=no
  8193. exp_sym_flag='-Bexport'
  8194. no_entry_flag=
  8195. else
  8196. # If we're using GNU nm, then we don't want the "-C" option.
  8197. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8198. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8199. # weak defined symbols like other global defined symbols, whereas
  8200. # GNU nm marks them as "W".
  8201. # While the 'weak' keyword is ignored in the Export File, we need
  8202. # it in the Import File for the 'aix-soname' feature, so we have
  8203. # to replace the "-B" option with "-P" for AIX nm.
  8204. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8205. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8206. else
  8207. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8208. fi
  8209. aix_use_runtimelinking=no
  8210. # Test if we are trying to use run time linking or normal
  8211. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8212. # have runtime linking enabled, and use it for executables.
  8213. # For shared libraries, we enable/disable runtime linking
  8214. # depending on the kind of the shared library created -
  8215. # when "with_aix_soname,aix_use_runtimelinking" is:
  8216. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8217. # "aix,yes" lib.so shared, rtl:yes, for executables
  8218. # lib.a static archive
  8219. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8220. # lib.a(lib.so.V) shared, rtl:no, for executables
  8221. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8222. # lib.a(lib.so.V) shared, rtl:no
  8223. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8224. # lib.a static archive
  8225. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8226. for ld_flag in $LDFLAGS; do
  8227. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8228. aix_use_runtimelinking=yes
  8229. break
  8230. fi
  8231. done
  8232. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8233. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8234. # so we don't have lib.a shared libs to link our executables.
  8235. # We have to force runtime linking in this case.
  8236. aix_use_runtimelinking=yes
  8237. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8238. fi
  8239. ;;
  8240. esac
  8241. exp_sym_flag='-bexport'
  8242. no_entry_flag='-bnoentry'
  8243. fi
  8244. # When large executables or shared objects are built, AIX ld can
  8245. # have problems creating the table of contents. If linking a library
  8246. # or program results in "error TOC overflow" add -mminimal-toc to
  8247. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8248. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8249. archive_cmds=''
  8250. hardcode_direct=yes
  8251. hardcode_direct_absolute=yes
  8252. hardcode_libdir_separator=':'
  8253. link_all_deplibs=yes
  8254. file_list_spec='$wl-f,'
  8255. case $with_aix_soname,$aix_use_runtimelinking in
  8256. aix,*) ;; # traditional, no import file
  8257. svr4,* | *,yes) # use import file
  8258. # The Import File defines what to hardcode.
  8259. hardcode_direct=no
  8260. hardcode_direct_absolute=no
  8261. ;;
  8262. esac
  8263. if test yes = "$GCC"; then
  8264. case $host_os in aix4.[012]|aix4.[012].*)
  8265. # We only want to do this on AIX 4.2 and lower, the check
  8266. # below for broken collect2 doesn't work under 4.3+
  8267. collect2name=`$CC -print-prog-name=collect2`
  8268. if test -f "$collect2name" &&
  8269. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8270. then
  8271. # We have reworked collect2
  8272. :
  8273. else
  8274. # We have old collect2
  8275. hardcode_direct=unsupported
  8276. # It fails to find uninstalled libraries when the uninstalled
  8277. # path is not listed in the libpath. Setting hardcode_minus_L
  8278. # to unsupported forces relinking
  8279. hardcode_minus_L=yes
  8280. hardcode_libdir_flag_spec='-L$libdir'
  8281. hardcode_libdir_separator=
  8282. fi
  8283. ;;
  8284. esac
  8285. shared_flag='-shared'
  8286. if test yes = "$aix_use_runtimelinking"; then
  8287. shared_flag="$shared_flag "'$wl-G'
  8288. fi
  8289. # Need to ensure runtime linking is disabled for the traditional
  8290. # shared library, or the linker may eventually find shared libraries
  8291. # /with/ Import File - we do not want to mix them.
  8292. shared_flag_aix='-shared'
  8293. shared_flag_svr4='-shared $wl-G'
  8294. else
  8295. # not using gcc
  8296. if test ia64 = "$host_cpu"; then
  8297. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8298. # chokes on -Wl,-G. The following line is correct:
  8299. shared_flag='-G'
  8300. else
  8301. if test yes = "$aix_use_runtimelinking"; then
  8302. shared_flag='$wl-G'
  8303. else
  8304. shared_flag='$wl-bM:SRE'
  8305. fi
  8306. shared_flag_aix='$wl-bM:SRE'
  8307. shared_flag_svr4='$wl-G'
  8308. fi
  8309. fi
  8310. export_dynamic_flag_spec='$wl-bexpall'
  8311. # It seems that -bexpall does not export symbols beginning with
  8312. # underscore (_), so it is better to generate a list of symbols to export.
  8313. always_export_symbols=yes
  8314. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8315. # Warning - without using the other runtime loading flags (-brtl),
  8316. # -berok will link without error, but may produce a broken library.
  8317. allow_undefined_flag='-berok'
  8318. # Determine the default libpath from the value encoded in an
  8319. # empty executable.
  8320. if test set = "${lt_cv_aix_libpath+set}"; then
  8321. aix_libpath=$lt_cv_aix_libpath
  8322. else
  8323. if ${lt_cv_aix_libpath_+:} false; then :
  8324. $as_echo_n "(cached) " >&6
  8325. else
  8326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8327. /* end confdefs.h. */
  8328. int
  8329. main ()
  8330. {
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. if ac_fn_c_try_link "$LINENO"; then :
  8336. lt_aix_libpath_sed='
  8337. /Import File Strings/,/^$/ {
  8338. /^0/ {
  8339. s/^0 *\([^ ]*\) *$/\1/
  8340. p
  8341. }
  8342. }'
  8343. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8344. # Check for a 64-bit object if we didn't find anything.
  8345. if test -z "$lt_cv_aix_libpath_"; then
  8346. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8347. fi
  8348. fi
  8349. rm -f core conftest.err conftest.$ac_objext \
  8350. conftest$ac_exeext conftest.$ac_ext
  8351. if test -z "$lt_cv_aix_libpath_"; then
  8352. lt_cv_aix_libpath_=/usr/lib:/lib
  8353. fi
  8354. fi
  8355. aix_libpath=$lt_cv_aix_libpath_
  8356. fi
  8357. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8358. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8359. else
  8360. if test ia64 = "$host_cpu"; then
  8361. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8362. allow_undefined_flag="-z nodefs"
  8363. 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"
  8364. else
  8365. # Determine the default libpath from the value encoded in an
  8366. # empty executable.
  8367. if test set = "${lt_cv_aix_libpath+set}"; then
  8368. aix_libpath=$lt_cv_aix_libpath
  8369. else
  8370. if ${lt_cv_aix_libpath_+:} false; then :
  8371. $as_echo_n "(cached) " >&6
  8372. else
  8373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8374. /* end confdefs.h. */
  8375. int
  8376. main ()
  8377. {
  8378. ;
  8379. return 0;
  8380. }
  8381. _ACEOF
  8382. if ac_fn_c_try_link "$LINENO"; then :
  8383. lt_aix_libpath_sed='
  8384. /Import File Strings/,/^$/ {
  8385. /^0/ {
  8386. s/^0 *\([^ ]*\) *$/\1/
  8387. p
  8388. }
  8389. }'
  8390. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8391. # Check for a 64-bit object if we didn't find anything.
  8392. if test -z "$lt_cv_aix_libpath_"; then
  8393. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8394. fi
  8395. fi
  8396. rm -f core conftest.err conftest.$ac_objext \
  8397. conftest$ac_exeext conftest.$ac_ext
  8398. if test -z "$lt_cv_aix_libpath_"; then
  8399. lt_cv_aix_libpath_=/usr/lib:/lib
  8400. fi
  8401. fi
  8402. aix_libpath=$lt_cv_aix_libpath_
  8403. fi
  8404. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8405. # Warning - without using the other run time loading flags,
  8406. # -berok will link without error, but may produce a broken library.
  8407. no_undefined_flag=' $wl-bernotok'
  8408. allow_undefined_flag=' $wl-berok'
  8409. if test yes = "$with_gnu_ld"; then
  8410. # We only use this code for GNU lds that support --whole-archive.
  8411. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8412. else
  8413. # Exported symbols can be pulled into shared objects from archives
  8414. whole_archive_flag_spec='$convenience'
  8415. fi
  8416. archive_cmds_need_lc=yes
  8417. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8418. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8419. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8420. if test svr4 != "$with_aix_soname"; then
  8421. # This is similar to how AIX traditionally builds its shared libraries.
  8422. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8423. fi
  8424. if test aix != "$with_aix_soname"; then
  8425. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8426. else
  8427. # used by -dlpreopen to get the symbols
  8428. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8429. fi
  8430. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8431. fi
  8432. fi
  8433. ;;
  8434. amigaos*)
  8435. case $host_cpu in
  8436. powerpc)
  8437. # see comment about AmigaOS4 .so support
  8438. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8439. archive_expsym_cmds=''
  8440. ;;
  8441. m68k)
  8442. 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)'
  8443. hardcode_libdir_flag_spec='-L$libdir'
  8444. hardcode_minus_L=yes
  8445. ;;
  8446. esac
  8447. ;;
  8448. bsdi[45]*)
  8449. export_dynamic_flag_spec=-rdynamic
  8450. ;;
  8451. cygwin* | mingw* | pw32* | cegcc*)
  8452. # When not using gcc, we currently assume that we are using
  8453. # Microsoft Visual C++.
  8454. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8455. # no search path for DLLs.
  8456. case $cc_basename in
  8457. cl*)
  8458. # Native MSVC
  8459. hardcode_libdir_flag_spec=' '
  8460. allow_undefined_flag=unsupported
  8461. always_export_symbols=yes
  8462. file_list_spec='@'
  8463. # Tell ltmain to make .lib files, not .a files.
  8464. libext=lib
  8465. # Tell ltmain to make .dll files, not .so files.
  8466. shrext_cmds=.dll
  8467. # FIXME: Setting linknames here is a bad hack.
  8468. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8469. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8470. cp "$export_symbols" "$output_objdir/$soname.def";
  8471. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8472. else
  8473. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8474. fi~
  8475. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8476. linknames='
  8477. # The linker will not automatically build a static lib if we build a DLL.
  8478. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8479. enable_shared_with_static_runtimes=yes
  8480. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8481. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8482. # Don't use ranlib
  8483. old_postinstall_cmds='chmod 644 $oldlib'
  8484. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8485. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8486. case $lt_outputfile in
  8487. *.exe|*.EXE) ;;
  8488. *)
  8489. lt_outputfile=$lt_outputfile.exe
  8490. lt_tool_outputfile=$lt_tool_outputfile.exe
  8491. ;;
  8492. esac~
  8493. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8494. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8495. $RM "$lt_outputfile.manifest";
  8496. fi'
  8497. ;;
  8498. *)
  8499. # Assume MSVC wrapper
  8500. hardcode_libdir_flag_spec=' '
  8501. allow_undefined_flag=unsupported
  8502. # Tell ltmain to make .lib files, not .a files.
  8503. libext=lib
  8504. # Tell ltmain to make .dll files, not .so files.
  8505. shrext_cmds=.dll
  8506. # FIXME: Setting linknames here is a bad hack.
  8507. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8508. # The linker will automatically build a .lib file if we build a DLL.
  8509. old_archive_from_new_cmds='true'
  8510. # FIXME: Should let the user specify the lib program.
  8511. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8512. enable_shared_with_static_runtimes=yes
  8513. ;;
  8514. esac
  8515. ;;
  8516. darwin* | rhapsody*)
  8517. archive_cmds_need_lc=no
  8518. hardcode_direct=no
  8519. hardcode_automatic=yes
  8520. hardcode_shlibpath_var=unsupported
  8521. if test yes = "$lt_cv_ld_force_load"; then
  8522. 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\"`'
  8523. else
  8524. whole_archive_flag_spec=''
  8525. fi
  8526. link_all_deplibs=yes
  8527. allow_undefined_flag=$_lt_dar_allow_undefined
  8528. case $cc_basename in
  8529. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8530. *) _lt_dar_can_shared=$GCC ;;
  8531. esac
  8532. if test yes = "$_lt_dar_can_shared"; then
  8533. output_verbose_link_cmd=func_echo_all
  8534. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8535. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8536. 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"
  8537. 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"
  8538. else
  8539. ld_shlibs=no
  8540. fi
  8541. ;;
  8542. dgux*)
  8543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8544. hardcode_libdir_flag_spec='-L$libdir'
  8545. hardcode_shlibpath_var=no
  8546. ;;
  8547. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8548. # support. Future versions do this automatically, but an explicit c++rt0.o
  8549. # does not break anything, and helps significantly (at the cost of a little
  8550. # extra space).
  8551. freebsd2.2*)
  8552. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8553. hardcode_libdir_flag_spec='-R$libdir'
  8554. hardcode_direct=yes
  8555. hardcode_shlibpath_var=no
  8556. ;;
  8557. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8558. freebsd2.*)
  8559. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8560. hardcode_direct=yes
  8561. hardcode_minus_L=yes
  8562. hardcode_shlibpath_var=no
  8563. ;;
  8564. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8565. freebsd* | dragonfly* | midnightbsd*)
  8566. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8567. hardcode_libdir_flag_spec='-R$libdir'
  8568. hardcode_direct=yes
  8569. hardcode_shlibpath_var=no
  8570. ;;
  8571. hpux9*)
  8572. if test yes = "$GCC"; then
  8573. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8574. else
  8575. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8576. fi
  8577. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8578. hardcode_libdir_separator=:
  8579. hardcode_direct=yes
  8580. # hardcode_minus_L: Not really in the search PATH,
  8581. # but as the default location of the library.
  8582. hardcode_minus_L=yes
  8583. export_dynamic_flag_spec='$wl-E'
  8584. ;;
  8585. hpux10*)
  8586. if test yes,no = "$GCC,$with_gnu_ld"; then
  8587. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8588. else
  8589. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8590. fi
  8591. if test no = "$with_gnu_ld"; then
  8592. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8593. hardcode_libdir_separator=:
  8594. hardcode_direct=yes
  8595. hardcode_direct_absolute=yes
  8596. export_dynamic_flag_spec='$wl-E'
  8597. # hardcode_minus_L: Not really in the search PATH,
  8598. # but as the default location of the library.
  8599. hardcode_minus_L=yes
  8600. fi
  8601. ;;
  8602. hpux11*)
  8603. if test yes,no = "$GCC,$with_gnu_ld"; then
  8604. case $host_cpu in
  8605. hppa*64*)
  8606. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8607. ;;
  8608. ia64*)
  8609. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8610. ;;
  8611. *)
  8612. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8613. ;;
  8614. esac
  8615. else
  8616. case $host_cpu in
  8617. hppa*64*)
  8618. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8619. ;;
  8620. ia64*)
  8621. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8622. ;;
  8623. *)
  8624. # Older versions of the 11.00 compiler do not understand -b yet
  8625. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8627. $as_echo_n "checking if $CC understands -b... " >&6; }
  8628. if ${lt_cv_prog_compiler__b+:} false; then :
  8629. $as_echo_n "(cached) " >&6
  8630. else
  8631. lt_cv_prog_compiler__b=no
  8632. save_LDFLAGS=$LDFLAGS
  8633. LDFLAGS="$LDFLAGS -b"
  8634. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8635. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8636. # The linker can only warn and ignore the option if not recognized
  8637. # So say no if there are warnings
  8638. if test -s conftest.err; then
  8639. # Append any errors to the config.log.
  8640. cat conftest.err 1>&5
  8641. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8642. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8643. if diff conftest.exp conftest.er2 >/dev/null; then
  8644. lt_cv_prog_compiler__b=yes
  8645. fi
  8646. else
  8647. lt_cv_prog_compiler__b=yes
  8648. fi
  8649. fi
  8650. $RM -r conftest*
  8651. LDFLAGS=$save_LDFLAGS
  8652. fi
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8654. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8655. if test yes = "$lt_cv_prog_compiler__b"; then
  8656. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8657. else
  8658. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8659. fi
  8660. ;;
  8661. esac
  8662. fi
  8663. if test no = "$with_gnu_ld"; then
  8664. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8665. hardcode_libdir_separator=:
  8666. case $host_cpu in
  8667. hppa*64*|ia64*)
  8668. hardcode_direct=no
  8669. hardcode_shlibpath_var=no
  8670. ;;
  8671. *)
  8672. hardcode_direct=yes
  8673. hardcode_direct_absolute=yes
  8674. export_dynamic_flag_spec='$wl-E'
  8675. # hardcode_minus_L: Not really in the search PATH,
  8676. # but as the default location of the library.
  8677. hardcode_minus_L=yes
  8678. ;;
  8679. esac
  8680. fi
  8681. ;;
  8682. irix5* | irix6* | nonstopux*)
  8683. if test yes = "$GCC"; then
  8684. 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'
  8685. # Try to use the -exported_symbol ld option, if it does not
  8686. # work, assume that -exports_file does not work either and
  8687. # implicitly export all symbols.
  8688. # This should be the same for all languages, so no per-tag cache variable.
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8690. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8691. if ${lt_cv_irix_exported_symbol+:} false; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. save_LDFLAGS=$LDFLAGS
  8695. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8697. /* end confdefs.h. */
  8698. int foo (void) { return 0; }
  8699. _ACEOF
  8700. if ac_fn_c_try_link "$LINENO"; then :
  8701. lt_cv_irix_exported_symbol=yes
  8702. else
  8703. lt_cv_irix_exported_symbol=no
  8704. fi
  8705. rm -f core conftest.err conftest.$ac_objext \
  8706. conftest$ac_exeext conftest.$ac_ext
  8707. LDFLAGS=$save_LDFLAGS
  8708. fi
  8709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8710. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8711. if test yes = "$lt_cv_irix_exported_symbol"; then
  8712. 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'
  8713. fi
  8714. else
  8715. 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'
  8716. 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'
  8717. fi
  8718. archive_cmds_need_lc='no'
  8719. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8720. hardcode_libdir_separator=:
  8721. inherit_rpath=yes
  8722. link_all_deplibs=yes
  8723. ;;
  8724. linux*)
  8725. case $cc_basename in
  8726. tcc*)
  8727. # Fabrice Bellard et al's Tiny C Compiler
  8728. ld_shlibs=yes
  8729. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8730. ;;
  8731. esac
  8732. ;;
  8733. netbsd*)
  8734. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8735. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8736. else
  8737. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8738. fi
  8739. hardcode_libdir_flag_spec='-R$libdir'
  8740. hardcode_direct=yes
  8741. hardcode_shlibpath_var=no
  8742. ;;
  8743. newsos6)
  8744. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8745. hardcode_direct=yes
  8746. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8747. hardcode_libdir_separator=:
  8748. hardcode_shlibpath_var=no
  8749. ;;
  8750. *nto* | *qnx*)
  8751. ;;
  8752. openbsd* | bitrig*)
  8753. if test -f /usr/libexec/ld.so; then
  8754. hardcode_direct=yes
  8755. hardcode_shlibpath_var=no
  8756. hardcode_direct_absolute=yes
  8757. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8758. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8759. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8761. export_dynamic_flag_spec='$wl-E'
  8762. else
  8763. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8764. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8765. fi
  8766. else
  8767. ld_shlibs=no
  8768. fi
  8769. ;;
  8770. os2*)
  8771. hardcode_libdir_flag_spec='-L$libdir'
  8772. hardcode_minus_L=yes
  8773. allow_undefined_flag=unsupported
  8774. shrext_cmds=.dll
  8775. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8776. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8777. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8778. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8779. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8780. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8781. emximp -o $lib $output_objdir/$libname.def'
  8782. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8783. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8784. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8785. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8786. prefix_cmds="$SED"~
  8787. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8788. prefix_cmds="$prefix_cmds -e 1d";
  8789. fi~
  8790. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8791. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8792. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8793. emximp -o $lib $output_objdir/$libname.def'
  8794. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8795. enable_shared_with_static_runtimes=yes
  8796. file_list_spec='@'
  8797. ;;
  8798. osf3*)
  8799. if test yes = "$GCC"; then
  8800. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8801. 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'
  8802. else
  8803. allow_undefined_flag=' -expect_unresolved \*'
  8804. 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'
  8805. fi
  8806. archive_cmds_need_lc='no'
  8807. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8808. hardcode_libdir_separator=:
  8809. ;;
  8810. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8811. if test yes = "$GCC"; then
  8812. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8813. 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'
  8814. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8815. else
  8816. allow_undefined_flag=' -expect_unresolved \*'
  8817. 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'
  8818. 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~
  8819. $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'
  8820. # Both c and cxx compiler support -rpath directly
  8821. hardcode_libdir_flag_spec='-rpath $libdir'
  8822. fi
  8823. archive_cmds_need_lc='no'
  8824. hardcode_libdir_separator=:
  8825. ;;
  8826. solaris*)
  8827. no_undefined_flag=' -z defs'
  8828. if test yes = "$GCC"; then
  8829. wlarc='$wl'
  8830. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8831. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8832. $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'
  8833. else
  8834. case `$CC -V 2>&1` in
  8835. *"Compilers 5.0"*)
  8836. wlarc=''
  8837. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8838. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8839. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8840. ;;
  8841. *)
  8842. wlarc='$wl'
  8843. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8844. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8845. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8846. ;;
  8847. esac
  8848. fi
  8849. hardcode_libdir_flag_spec='-R$libdir'
  8850. hardcode_shlibpath_var=no
  8851. case $host_os in
  8852. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8853. *)
  8854. # The compiler driver will combine and reorder linker options,
  8855. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8856. # but is careful enough not to reorder.
  8857. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8858. if test yes = "$GCC"; then
  8859. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8860. else
  8861. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8862. fi
  8863. ;;
  8864. esac
  8865. link_all_deplibs=yes
  8866. ;;
  8867. sunos4*)
  8868. if test sequent = "$host_vendor"; then
  8869. # Use $CC to link under sequent, because it throws in some extra .o
  8870. # files that make .init and .fini sections work.
  8871. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8872. else
  8873. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8874. fi
  8875. hardcode_libdir_flag_spec='-L$libdir'
  8876. hardcode_direct=yes
  8877. hardcode_minus_L=yes
  8878. hardcode_shlibpath_var=no
  8879. ;;
  8880. sysv4)
  8881. case $host_vendor in
  8882. sni)
  8883. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8884. hardcode_direct=yes # is this really true???
  8885. ;;
  8886. siemens)
  8887. ## LD is ld it makes a PLAMLIB
  8888. ## CC just makes a GrossModule.
  8889. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8890. reload_cmds='$CC -r -o $output$reload_objs'
  8891. hardcode_direct=no
  8892. ;;
  8893. motorola)
  8894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8896. ;;
  8897. esac
  8898. runpath_var='LD_RUN_PATH'
  8899. hardcode_shlibpath_var=no
  8900. ;;
  8901. sysv4.3*)
  8902. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8903. hardcode_shlibpath_var=no
  8904. export_dynamic_flag_spec='-Bexport'
  8905. ;;
  8906. sysv4*MP*)
  8907. if test -d /usr/nec; then
  8908. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8909. hardcode_shlibpath_var=no
  8910. runpath_var=LD_RUN_PATH
  8911. hardcode_runpath_var=yes
  8912. ld_shlibs=yes
  8913. fi
  8914. ;;
  8915. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8916. no_undefined_flag='$wl-z,text'
  8917. archive_cmds_need_lc=no
  8918. hardcode_shlibpath_var=no
  8919. runpath_var='LD_RUN_PATH'
  8920. if test yes = "$GCC"; then
  8921. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8923. else
  8924. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8925. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. fi
  8927. ;;
  8928. sysv5* | sco3.2v5* | sco5v6*)
  8929. # Note: We CANNOT use -z defs as we might desire, because we do not
  8930. # link with -lc, and that would cause any symbols used from libc to
  8931. # always be unresolved, which means just about no library would
  8932. # ever link correctly. If we're not using GNU ld we use -z text
  8933. # though, which does catch some bad symbols but isn't as heavy-handed
  8934. # as -z defs.
  8935. no_undefined_flag='$wl-z,text'
  8936. allow_undefined_flag='$wl-z,nodefs'
  8937. archive_cmds_need_lc=no
  8938. hardcode_shlibpath_var=no
  8939. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8940. hardcode_libdir_separator=':'
  8941. link_all_deplibs=yes
  8942. export_dynamic_flag_spec='$wl-Bexport'
  8943. runpath_var='LD_RUN_PATH'
  8944. if test yes = "$GCC"; then
  8945. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. else
  8948. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. fi
  8951. ;;
  8952. uts4*)
  8953. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8954. hardcode_libdir_flag_spec='-L$libdir'
  8955. hardcode_shlibpath_var=no
  8956. ;;
  8957. *)
  8958. ld_shlibs=no
  8959. ;;
  8960. esac
  8961. if test sni = "$host_vendor"; then
  8962. case $host in
  8963. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8964. export_dynamic_flag_spec='$wl-Blargedynsym'
  8965. ;;
  8966. esac
  8967. fi
  8968. fi
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8970. $as_echo "$ld_shlibs" >&6; }
  8971. test no = "$ld_shlibs" && can_build_shared=no
  8972. with_gnu_ld=$with_gnu_ld
  8973. #
  8974. # Do we need to explicitly link libc?
  8975. #
  8976. case "x$archive_cmds_need_lc" in
  8977. x|xyes)
  8978. # Assume -lc should be added
  8979. archive_cmds_need_lc=yes
  8980. if test yes,yes = "$GCC,$enable_shared"; then
  8981. case $archive_cmds in
  8982. *'~'*)
  8983. # FIXME: we may have to deal with multi-command sequences.
  8984. ;;
  8985. '$CC '*)
  8986. # Test whether the compiler implicitly links with -lc since on some
  8987. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8988. # to ld, don't add -lc before -lgcc.
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8990. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8991. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8992. $as_echo_n "(cached) " >&6
  8993. else
  8994. $RM conftest*
  8995. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8997. (eval $ac_compile) 2>&5
  8998. ac_status=$?
  8999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9000. test $ac_status = 0; } 2>conftest.err; then
  9001. soname=conftest
  9002. lib=conftest
  9003. libobjs=conftest.$ac_objext
  9004. deplibs=
  9005. wl=$lt_prog_compiler_wl
  9006. pic_flag=$lt_prog_compiler_pic
  9007. compiler_flags=-v
  9008. linker_flags=-v
  9009. verstring=
  9010. output_objdir=.
  9011. libname=conftest
  9012. lt_save_allow_undefined_flag=$allow_undefined_flag
  9013. allow_undefined_flag=
  9014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9015. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9016. ac_status=$?
  9017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9018. test $ac_status = 0; }
  9019. then
  9020. lt_cv_archive_cmds_need_lc=no
  9021. else
  9022. lt_cv_archive_cmds_need_lc=yes
  9023. fi
  9024. allow_undefined_flag=$lt_save_allow_undefined_flag
  9025. else
  9026. cat conftest.err 1>&5
  9027. fi
  9028. $RM conftest*
  9029. fi
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9031. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9032. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9033. ;;
  9034. esac
  9035. fi
  9036. ;;
  9037. esac
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9039. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9040. if test yes = "$GCC"; then
  9041. case $host_os in
  9042. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9043. *) lt_awk_arg='/^libraries:/' ;;
  9044. esac
  9045. case $host_os in
  9046. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9047. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9048. esac
  9049. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9050. case $lt_search_path_spec in
  9051. *\;*)
  9052. # if the path contains ";" then we assume it to be the separator
  9053. # otherwise default to the standard path separator (i.e. ":") - it is
  9054. # assumed that no part of a normal pathname contains ";" but that should
  9055. # okay in the real world where ";" in dirpaths is itself problematic.
  9056. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9057. ;;
  9058. *)
  9059. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9060. ;;
  9061. esac
  9062. # Ok, now we have the path, separated by spaces, we can step through it
  9063. # and add multilib dir if necessary...
  9064. lt_tmp_lt_search_path_spec=
  9065. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9066. # ...but if some path component already ends with the multilib dir we assume
  9067. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9068. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9069. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9070. lt_multi_os_dir=
  9071. ;;
  9072. esac
  9073. for lt_sys_path in $lt_search_path_spec; do
  9074. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9075. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9076. elif test -n "$lt_multi_os_dir"; then
  9077. test -d "$lt_sys_path" && \
  9078. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9079. fi
  9080. done
  9081. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9082. BEGIN {RS = " "; FS = "/|\n";} {
  9083. lt_foo = "";
  9084. lt_count = 0;
  9085. for (lt_i = NF; lt_i > 0; lt_i--) {
  9086. if ($lt_i != "" && $lt_i != ".") {
  9087. if ($lt_i == "..") {
  9088. lt_count++;
  9089. } else {
  9090. if (lt_count == 0) {
  9091. lt_foo = "/" $lt_i lt_foo;
  9092. } else {
  9093. lt_count--;
  9094. }
  9095. }
  9096. }
  9097. }
  9098. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9099. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9100. }'`
  9101. # AWK program above erroneously prepends '/' to C:/dos/paths
  9102. # for these hosts.
  9103. case $host_os in
  9104. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9105. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9106. esac
  9107. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9108. else
  9109. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9110. fi
  9111. library_names_spec=
  9112. libname_spec='lib$name'
  9113. soname_spec=
  9114. shrext_cmds=.so
  9115. postinstall_cmds=
  9116. postuninstall_cmds=
  9117. finish_cmds=
  9118. finish_eval=
  9119. shlibpath_var=
  9120. shlibpath_overrides_runpath=unknown
  9121. version_type=none
  9122. dynamic_linker="$host_os ld.so"
  9123. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9124. need_lib_prefix=unknown
  9125. hardcode_into_libs=no
  9126. # when you set need_version to no, make sure it does not cause -set_version
  9127. # flags to be left without arguments
  9128. need_version=unknown
  9129. case $host_os in
  9130. aix3*)
  9131. version_type=linux # correct to gnu/linux during the next big refactor
  9132. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9133. shlibpath_var=LIBPATH
  9134. # AIX 3 has no versioning support, so we append a major version to the name.
  9135. soname_spec='$libname$release$shared_ext$major'
  9136. ;;
  9137. aix[4-9]*)
  9138. version_type=linux # correct to gnu/linux during the next big refactor
  9139. need_lib_prefix=no
  9140. need_version=no
  9141. hardcode_into_libs=yes
  9142. if test ia64 = "$host_cpu"; then
  9143. # AIX 5 supports IA64
  9144. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. else
  9147. # With GCC up to 2.95.x, collect2 would create an import file
  9148. # for dependence libraries. The import file would start with
  9149. # the line '#! .'. This would cause the generated library to
  9150. # depend on '.', always an invalid library. This was fixed in
  9151. # development snapshots of GCC prior to 3.0.
  9152. case $host_os in
  9153. aix4 | aix4.[01] | aix4.[01].*)
  9154. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9155. echo ' yes '
  9156. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9157. :
  9158. else
  9159. can_build_shared=no
  9160. fi
  9161. ;;
  9162. esac
  9163. # Using Import Files as archive members, it is possible to support
  9164. # filename-based versioning of shared library archives on AIX. While
  9165. # this would work for both with and without runtime linking, it will
  9166. # prevent static linking of such archives. So we do filename-based
  9167. # shared library versioning with .so extension only, which is used
  9168. # when both runtime linking and shared linking is enabled.
  9169. # Unfortunately, runtime linking may impact performance, so we do
  9170. # not want this to be the default eventually. Also, we use the
  9171. # versioned .so libs for executables only if there is the -brtl
  9172. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9173. # To allow for filename-based versioning support, we need to create
  9174. # libNAME.so.V as an archive file, containing:
  9175. # *) an Import File, referring to the versioned filename of the
  9176. # archive as well as the shared archive member, telling the
  9177. # bitwidth (32 or 64) of that shared object, and providing the
  9178. # list of exported symbols of that shared object, eventually
  9179. # decorated with the 'weak' keyword
  9180. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9181. # it being seen by the linker.
  9182. # At run time we better use the real file rather than another symlink,
  9183. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9184. case $with_aix_soname,$aix_use_runtimelinking in
  9185. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9186. # soname into executable. Probably we can add versioning support to
  9187. # collect2, so additional links can be useful in future.
  9188. aix,yes) # traditional libtool
  9189. dynamic_linker='AIX unversionable lib.so'
  9190. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9191. # instead of lib<name>.a to let people know that these are not
  9192. # typical AIX shared libraries.
  9193. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9194. ;;
  9195. aix,no) # traditional AIX only
  9196. dynamic_linker='AIX lib.a(lib.so.V)'
  9197. # We preserve .a as extension for shared libraries through AIX4.2
  9198. # and later when we are not doing run time linking.
  9199. library_names_spec='$libname$release.a $libname.a'
  9200. soname_spec='$libname$release$shared_ext$major'
  9201. ;;
  9202. svr4,*) # full svr4 only
  9203. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9204. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9205. # We do not specify a path in Import Files, so LIBPATH fires.
  9206. shlibpath_overrides_runpath=yes
  9207. ;;
  9208. *,yes) # both, prefer svr4
  9209. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9210. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9211. # unpreferred sharedlib libNAME.a needs extra handling
  9212. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9213. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9214. # We do not specify a path in Import Files, so LIBPATH fires.
  9215. shlibpath_overrides_runpath=yes
  9216. ;;
  9217. *,no) # both, prefer aix
  9218. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9219. library_names_spec='$libname$release.a $libname.a'
  9220. soname_spec='$libname$release$shared_ext$major'
  9221. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9222. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9223. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9224. ;;
  9225. esac
  9226. shlibpath_var=LIBPATH
  9227. fi
  9228. ;;
  9229. amigaos*)
  9230. case $host_cpu in
  9231. powerpc)
  9232. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9233. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9234. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9235. ;;
  9236. m68k)
  9237. library_names_spec='$libname.ixlibrary $libname.a'
  9238. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9239. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9240. ;;
  9241. esac
  9242. ;;
  9243. beos*)
  9244. library_names_spec='$libname$shared_ext'
  9245. dynamic_linker="$host_os ld.so"
  9246. shlibpath_var=LIBRARY_PATH
  9247. ;;
  9248. bsdi[45]*)
  9249. version_type=linux # correct to gnu/linux during the next big refactor
  9250. need_version=no
  9251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9252. soname_spec='$libname$release$shared_ext$major'
  9253. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9256. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9257. # the default ld.so.conf also contains /usr/contrib/lib and
  9258. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9259. # libtool to hard-code these into programs
  9260. ;;
  9261. cygwin* | mingw* | pw32* | cegcc*)
  9262. version_type=windows
  9263. shrext_cmds=.dll
  9264. need_version=no
  9265. need_lib_prefix=no
  9266. case $GCC,$cc_basename in
  9267. yes,*)
  9268. # gcc
  9269. library_names_spec='$libname.dll.a'
  9270. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9271. postinstall_cmds='base_file=`basename \$file`~
  9272. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9273. dldir=$destdir/`dirname \$dlpath`~
  9274. test -d \$dldir || mkdir -p \$dldir~
  9275. $install_prog $dir/$dlname \$dldir/$dlname~
  9276. chmod a+x \$dldir/$dlname~
  9277. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9278. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9279. fi'
  9280. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9281. dlpath=$dir/\$dldll~
  9282. $RM \$dlpath'
  9283. shlibpath_overrides_runpath=yes
  9284. case $host_os in
  9285. cygwin*)
  9286. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9287. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9288. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9289. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9290. ;;
  9291. mingw* | cegcc*)
  9292. # MinGW DLLs use traditional 'lib' prefix
  9293. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9294. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9295. ;;
  9296. pw32*)
  9297. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9298. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9299. ;;
  9300. esac
  9301. dynamic_linker='Win32 ld.exe'
  9302. ;;
  9303. *,cl*)
  9304. # Native MSVC
  9305. libname_spec='$name'
  9306. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9307. library_names_spec='$libname.dll.lib'
  9308. case $build_os in
  9309. mingw*)
  9310. sys_lib_search_path_spec=
  9311. lt_save_ifs=$IFS
  9312. IFS=';'
  9313. for lt_path in $LIB
  9314. do
  9315. IFS=$lt_save_ifs
  9316. # Let DOS variable expansion print the short 8.3 style file name.
  9317. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9318. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9319. done
  9320. IFS=$lt_save_ifs
  9321. # Convert to MSYS style.
  9322. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9323. ;;
  9324. cygwin*)
  9325. # Convert to unix form, then to dos form, then back to unix form
  9326. # but this time dos style (no spaces!) so that the unix form looks
  9327. # like /cygdrive/c/PROGRA~1:/cygdr...
  9328. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9329. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9330. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9331. ;;
  9332. *)
  9333. sys_lib_search_path_spec=$LIB
  9334. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9335. # It is most probably a Windows format PATH.
  9336. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9337. else
  9338. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9339. fi
  9340. # FIXME: find the short name or the path components, as spaces are
  9341. # common. (e.g. "Program Files" -> "PROGRA~1")
  9342. ;;
  9343. esac
  9344. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9345. postinstall_cmds='base_file=`basename \$file`~
  9346. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9347. dldir=$destdir/`dirname \$dlpath`~
  9348. test -d \$dldir || mkdir -p \$dldir~
  9349. $install_prog $dir/$dlname \$dldir/$dlname'
  9350. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9351. dlpath=$dir/\$dldll~
  9352. $RM \$dlpath'
  9353. shlibpath_overrides_runpath=yes
  9354. dynamic_linker='Win32 link.exe'
  9355. ;;
  9356. *)
  9357. # Assume MSVC wrapper
  9358. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9359. dynamic_linker='Win32 ld.exe'
  9360. ;;
  9361. esac
  9362. # FIXME: first we should search . and the directory the executable is in
  9363. shlibpath_var=PATH
  9364. ;;
  9365. darwin* | rhapsody*)
  9366. dynamic_linker="$host_os dyld"
  9367. version_type=darwin
  9368. need_lib_prefix=no
  9369. need_version=no
  9370. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9371. soname_spec='$libname$release$major$shared_ext'
  9372. shlibpath_overrides_runpath=yes
  9373. shlibpath_var=DYLD_LIBRARY_PATH
  9374. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9375. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9376. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9377. ;;
  9378. dgux*)
  9379. version_type=linux # correct to gnu/linux during the next big refactor
  9380. need_lib_prefix=no
  9381. need_version=no
  9382. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9383. soname_spec='$libname$release$shared_ext$major'
  9384. shlibpath_var=LD_LIBRARY_PATH
  9385. ;;
  9386. freebsd* | dragonfly* | midnightbsd*)
  9387. # DragonFly does not have aout. When/if they implement a new
  9388. # versioning mechanism, adjust this.
  9389. if test -x /usr/bin/objformat; then
  9390. objformat=`/usr/bin/objformat`
  9391. else
  9392. case $host_os in
  9393. freebsd[23].*) objformat=aout ;;
  9394. *) objformat=elf ;;
  9395. esac
  9396. fi
  9397. version_type=freebsd-$objformat
  9398. case $version_type in
  9399. freebsd-elf*)
  9400. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9401. soname_spec='$libname$release$shared_ext$major'
  9402. need_version=no
  9403. need_lib_prefix=no
  9404. ;;
  9405. freebsd-*)
  9406. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9407. need_version=yes
  9408. ;;
  9409. esac
  9410. shlibpath_var=LD_LIBRARY_PATH
  9411. case $host_os in
  9412. freebsd2.*)
  9413. shlibpath_overrides_runpath=yes
  9414. ;;
  9415. freebsd3.[01]* | freebsdelf3.[01]*)
  9416. shlibpath_overrides_runpath=yes
  9417. hardcode_into_libs=yes
  9418. ;;
  9419. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9420. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9421. shlibpath_overrides_runpath=no
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. *) # from 4.6 on, and DragonFly
  9425. shlibpath_overrides_runpath=yes
  9426. hardcode_into_libs=yes
  9427. ;;
  9428. esac
  9429. ;;
  9430. haiku*)
  9431. version_type=linux # correct to gnu/linux during the next big refactor
  9432. need_lib_prefix=no
  9433. need_version=no
  9434. dynamic_linker="$host_os runtime_loader"
  9435. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9436. soname_spec='$libname$release$shared_ext$major'
  9437. shlibpath_var=LIBRARY_PATH
  9438. shlibpath_overrides_runpath=no
  9439. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9440. hardcode_into_libs=yes
  9441. ;;
  9442. hpux9* | hpux10* | hpux11*)
  9443. # Give a soname corresponding to the major version so that dld.sl refuses to
  9444. # link against other versions.
  9445. version_type=sunos
  9446. need_lib_prefix=no
  9447. need_version=no
  9448. case $host_cpu in
  9449. ia64*)
  9450. shrext_cmds='.so'
  9451. hardcode_into_libs=yes
  9452. dynamic_linker="$host_os dld.so"
  9453. shlibpath_var=LD_LIBRARY_PATH
  9454. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9455. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9456. soname_spec='$libname$release$shared_ext$major'
  9457. if test 32 = "$HPUX_IA64_MODE"; then
  9458. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9459. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9460. else
  9461. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9462. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9463. fi
  9464. ;;
  9465. hppa*64*)
  9466. shrext_cmds='.sl'
  9467. hardcode_into_libs=yes
  9468. dynamic_linker="$host_os dld.sl"
  9469. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9470. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9471. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9472. soname_spec='$libname$release$shared_ext$major'
  9473. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9474. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9475. ;;
  9476. *)
  9477. shrext_cmds='.sl'
  9478. dynamic_linker="$host_os dld.sl"
  9479. shlibpath_var=SHLIB_PATH
  9480. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9481. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9482. soname_spec='$libname$release$shared_ext$major'
  9483. ;;
  9484. esac
  9485. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9486. postinstall_cmds='chmod 555 $lib'
  9487. # or fails outright, so override atomically:
  9488. install_override_mode=555
  9489. ;;
  9490. interix[3-9]*)
  9491. version_type=linux # correct to gnu/linux during the next big refactor
  9492. need_lib_prefix=no
  9493. need_version=no
  9494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9495. soname_spec='$libname$release$shared_ext$major'
  9496. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9497. shlibpath_var=LD_LIBRARY_PATH
  9498. shlibpath_overrides_runpath=no
  9499. hardcode_into_libs=yes
  9500. ;;
  9501. irix5* | irix6* | nonstopux*)
  9502. case $host_os in
  9503. nonstopux*) version_type=nonstopux ;;
  9504. *)
  9505. if test yes = "$lt_cv_prog_gnu_ld"; then
  9506. version_type=linux # correct to gnu/linux during the next big refactor
  9507. else
  9508. version_type=irix
  9509. fi ;;
  9510. esac
  9511. need_lib_prefix=no
  9512. need_version=no
  9513. soname_spec='$libname$release$shared_ext$major'
  9514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9515. case $host_os in
  9516. irix5* | nonstopux*)
  9517. libsuff= shlibsuff=
  9518. ;;
  9519. *)
  9520. case $LD in # libtool.m4 will add one of these switches to LD
  9521. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9522. libsuff= shlibsuff= libmagic=32-bit;;
  9523. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9524. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9525. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9526. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9527. *) libsuff= shlibsuff= libmagic=never-match;;
  9528. esac
  9529. ;;
  9530. esac
  9531. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9532. shlibpath_overrides_runpath=no
  9533. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9534. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9535. hardcode_into_libs=yes
  9536. ;;
  9537. # No shared lib support for Linux oldld, aout, or coff.
  9538. linux*oldld* | linux*aout* | linux*coff*)
  9539. dynamic_linker=no
  9540. ;;
  9541. linux*android*)
  9542. version_type=none # Android doesn't support versioned libraries.
  9543. need_lib_prefix=no
  9544. need_version=no
  9545. library_names_spec='$libname$release$shared_ext'
  9546. soname_spec='$libname$release$shared_ext'
  9547. finish_cmds=
  9548. shlibpath_var=LD_LIBRARY_PATH
  9549. shlibpath_overrides_runpath=yes
  9550. # This implies no fast_install, which is unacceptable.
  9551. # Some rework will be needed to allow for fast_install
  9552. # before this can be enabled.
  9553. hardcode_into_libs=yes
  9554. dynamic_linker='Android linker'
  9555. # Don't embed -rpath directories since the linker doesn't support them.
  9556. hardcode_libdir_flag_spec='-L$libdir'
  9557. ;;
  9558. # This must be glibc/ELF.
  9559. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9560. version_type=linux # correct to gnu/linux during the next big refactor
  9561. need_lib_prefix=no
  9562. need_version=no
  9563. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9564. soname_spec='$libname$release$shared_ext$major'
  9565. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9566. shlibpath_var=LD_LIBRARY_PATH
  9567. shlibpath_overrides_runpath=no
  9568. # Some binutils ld are patched to set DT_RUNPATH
  9569. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9570. $as_echo_n "(cached) " >&6
  9571. else
  9572. lt_cv_shlibpath_overrides_runpath=no
  9573. save_LDFLAGS=$LDFLAGS
  9574. save_libdir=$libdir
  9575. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9576. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9578. /* end confdefs.h. */
  9579. int
  9580. main ()
  9581. {
  9582. ;
  9583. return 0;
  9584. }
  9585. _ACEOF
  9586. if ac_fn_c_try_link "$LINENO"; then :
  9587. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9588. lt_cv_shlibpath_overrides_runpath=yes
  9589. fi
  9590. fi
  9591. rm -f core conftest.err conftest.$ac_objext \
  9592. conftest$ac_exeext conftest.$ac_ext
  9593. LDFLAGS=$save_LDFLAGS
  9594. libdir=$save_libdir
  9595. fi
  9596. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9597. # This implies no fast_install, which is unacceptable.
  9598. # Some rework will be needed to allow for fast_install
  9599. # before this can be enabled.
  9600. hardcode_into_libs=yes
  9601. # Add ABI-specific directories to the system library path.
  9602. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9603. # Ideally, we could use ldconfig to report *all* directores which are
  9604. # searched for libraries, however this is still not possible. Aside from not
  9605. # being certain /sbin/ldconfig is available, command
  9606. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9607. # even though it is searched at run-time. Try to do the best guess by
  9608. # appending ld.so.conf contents (and includes) to the search path.
  9609. if test -f /etc/ld.so.conf; then
  9610. 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' ' '`
  9611. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9612. fi
  9613. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9614. # powerpc, because MkLinux only supported shared libraries with the
  9615. # GNU dynamic linker. Since this was broken with cross compilers,
  9616. # most powerpc-linux boxes support dynamic linking these days and
  9617. # people can always --disable-shared, the test was removed, and we
  9618. # assume the GNU/Linux dynamic linker is in use.
  9619. dynamic_linker='GNU/Linux ld.so'
  9620. ;;
  9621. netbsd*)
  9622. version_type=sunos
  9623. need_lib_prefix=no
  9624. need_version=no
  9625. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9627. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9628. dynamic_linker='NetBSD (a.out) ld.so'
  9629. else
  9630. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9631. soname_spec='$libname$release$shared_ext$major'
  9632. dynamic_linker='NetBSD ld.elf_so'
  9633. fi
  9634. shlibpath_var=LD_LIBRARY_PATH
  9635. shlibpath_overrides_runpath=yes
  9636. hardcode_into_libs=yes
  9637. ;;
  9638. newsos6)
  9639. version_type=linux # correct to gnu/linux during the next big refactor
  9640. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9641. shlibpath_var=LD_LIBRARY_PATH
  9642. shlibpath_overrides_runpath=yes
  9643. ;;
  9644. *nto* | *qnx*)
  9645. version_type=qnx
  9646. need_lib_prefix=no
  9647. need_version=no
  9648. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9649. soname_spec='$libname$release$shared_ext$major'
  9650. shlibpath_var=LD_LIBRARY_PATH
  9651. shlibpath_overrides_runpath=no
  9652. hardcode_into_libs=yes
  9653. dynamic_linker='ldqnx.so'
  9654. ;;
  9655. openbsd* | bitrig*)
  9656. version_type=sunos
  9657. sys_lib_dlsearch_path_spec=/usr/lib
  9658. need_lib_prefix=no
  9659. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9660. need_version=no
  9661. else
  9662. need_version=yes
  9663. fi
  9664. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9665. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=yes
  9668. ;;
  9669. os2*)
  9670. libname_spec='$name'
  9671. shrext_cmds=.dll
  9672. need_lib_prefix=no
  9673. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9674. # SDL customization: removed versioning support.
  9675. # version_type=windows
  9676. # need_version=no
  9677. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9678. # v=$($ECHO $release$versuffix | tr -d .-);
  9679. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9680. # $ECHO $n$v`$shared_ext'
  9681. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9682. library_names_spec='${libname}_dll.$libext'
  9683. dynamic_linker='OS/2 ld.exe'
  9684. shlibpath_var=BEGINLIBPATH
  9685. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9686. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9687. postinstall_cmds='base_file=`basename \$file`~
  9688. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9689. dldir=$destdir/`dirname \$dlpath`~
  9690. test -d \$dldir || mkdir -p \$dldir~
  9691. $install_prog $dir/$dlname \$dldir/$dlname~
  9692. chmod a+x \$dldir/$dlname~
  9693. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9694. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9695. fi'
  9696. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9697. dlpath=$dir/\$dldll~
  9698. $RM \$dlpath'
  9699. ;;
  9700. osf3* | osf4* | osf5*)
  9701. version_type=osf
  9702. need_lib_prefix=no
  9703. need_version=no
  9704. soname_spec='$libname$release$shared_ext$major'
  9705. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9706. shlibpath_var=LD_LIBRARY_PATH
  9707. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9708. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9709. ;;
  9710. rdos*)
  9711. dynamic_linker=no
  9712. ;;
  9713. solaris*)
  9714. version_type=linux # correct to gnu/linux during the next big refactor
  9715. need_lib_prefix=no
  9716. need_version=no
  9717. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9718. soname_spec='$libname$release$shared_ext$major'
  9719. shlibpath_var=LD_LIBRARY_PATH
  9720. shlibpath_overrides_runpath=yes
  9721. hardcode_into_libs=yes
  9722. # ldd complains unless libraries are executable
  9723. postinstall_cmds='chmod +x $lib'
  9724. ;;
  9725. sunos4*)
  9726. version_type=sunos
  9727. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9728. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9729. shlibpath_var=LD_LIBRARY_PATH
  9730. shlibpath_overrides_runpath=yes
  9731. if test yes = "$with_gnu_ld"; then
  9732. need_lib_prefix=no
  9733. fi
  9734. need_version=yes
  9735. ;;
  9736. sysv4 | sysv4.3*)
  9737. version_type=linux # correct to gnu/linux during the next big refactor
  9738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9739. soname_spec='$libname$release$shared_ext$major'
  9740. shlibpath_var=LD_LIBRARY_PATH
  9741. case $host_vendor in
  9742. sni)
  9743. shlibpath_overrides_runpath=no
  9744. need_lib_prefix=no
  9745. runpath_var=LD_RUN_PATH
  9746. ;;
  9747. siemens)
  9748. need_lib_prefix=no
  9749. ;;
  9750. motorola)
  9751. need_lib_prefix=no
  9752. need_version=no
  9753. shlibpath_overrides_runpath=no
  9754. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9755. ;;
  9756. esac
  9757. ;;
  9758. sysv4*MP*)
  9759. if test -d /usr/nec; then
  9760. version_type=linux # correct to gnu/linux during the next big refactor
  9761. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9762. soname_spec='$libname$shared_ext.$major'
  9763. shlibpath_var=LD_LIBRARY_PATH
  9764. fi
  9765. ;;
  9766. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9767. version_type=sco
  9768. need_lib_prefix=no
  9769. need_version=no
  9770. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9771. soname_spec='$libname$release$shared_ext$major'
  9772. shlibpath_var=LD_LIBRARY_PATH
  9773. shlibpath_overrides_runpath=yes
  9774. hardcode_into_libs=yes
  9775. if test yes = "$with_gnu_ld"; then
  9776. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9777. else
  9778. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9779. case $host_os in
  9780. sco3.2v5*)
  9781. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9782. ;;
  9783. esac
  9784. fi
  9785. sys_lib_dlsearch_path_spec='/usr/lib'
  9786. ;;
  9787. tpf*)
  9788. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9789. version_type=linux # correct to gnu/linux during the next big refactor
  9790. need_lib_prefix=no
  9791. need_version=no
  9792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. shlibpath_overrides_runpath=no
  9795. hardcode_into_libs=yes
  9796. ;;
  9797. uts4*)
  9798. version_type=linux # correct to gnu/linux during the next big refactor
  9799. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9800. soname_spec='$libname$release$shared_ext$major'
  9801. shlibpath_var=LD_LIBRARY_PATH
  9802. ;;
  9803. *)
  9804. dynamic_linker=no
  9805. ;;
  9806. esac
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9808. $as_echo "$dynamic_linker" >&6; }
  9809. test no = "$dynamic_linker" && can_build_shared=no
  9810. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9811. if test yes = "$GCC"; then
  9812. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9813. fi
  9814. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9815. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9816. fi
  9817. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9818. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9819. fi
  9820. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9821. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9822. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9823. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9824. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9825. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9827. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9828. hardcode_action=
  9829. if test -n "$hardcode_libdir_flag_spec" ||
  9830. test -n "$runpath_var" ||
  9831. test yes = "$hardcode_automatic"; then
  9832. # We can hardcode non-existent directories.
  9833. if test no != "$hardcode_direct" &&
  9834. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9835. # have to relink, otherwise we might link with an installed library
  9836. # when we should be linking with a yet-to-be-installed one
  9837. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9838. test no != "$hardcode_minus_L"; then
  9839. # Linking always hardcodes the temporary library directory.
  9840. hardcode_action=relink
  9841. else
  9842. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9843. hardcode_action=immediate
  9844. fi
  9845. else
  9846. # We cannot hardcode anything, or else we can only hardcode existing
  9847. # directories.
  9848. hardcode_action=unsupported
  9849. fi
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9851. $as_echo "$hardcode_action" >&6; }
  9852. if test relink = "$hardcode_action" ||
  9853. test yes = "$inherit_rpath"; then
  9854. # Fast installation is not supported
  9855. enable_fast_install=no
  9856. elif test yes = "$shlibpath_overrides_runpath" ||
  9857. test no = "$enable_shared"; then
  9858. # Fast installation is not necessary
  9859. enable_fast_install=needless
  9860. fi
  9861. if test yes != "$enable_dlopen"; then
  9862. enable_dlopen=unknown
  9863. enable_dlopen_self=unknown
  9864. enable_dlopen_self_static=unknown
  9865. else
  9866. lt_cv_dlopen=no
  9867. lt_cv_dlopen_libs=
  9868. case $host_os in
  9869. beos*)
  9870. lt_cv_dlopen=load_add_on
  9871. lt_cv_dlopen_libs=
  9872. lt_cv_dlopen_self=yes
  9873. ;;
  9874. mingw* | pw32* | cegcc*)
  9875. lt_cv_dlopen=LoadLibrary
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. cygwin*)
  9879. lt_cv_dlopen=dlopen
  9880. lt_cv_dlopen_libs=
  9881. ;;
  9882. darwin*)
  9883. # if libdl is installed we need to link against it
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9885. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9886. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9887. $as_echo_n "(cached) " >&6
  9888. else
  9889. ac_check_lib_save_LIBS=$LIBS
  9890. LIBS="-ldl $LIBS"
  9891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9892. /* end confdefs.h. */
  9893. /* Override any GCC internal prototype to avoid an error.
  9894. Use char because int might match the return type of a GCC
  9895. builtin and then its argument prototype would still apply. */
  9896. #ifdef __cplusplus
  9897. extern "C"
  9898. #endif
  9899. char dlopen ();
  9900. int
  9901. main ()
  9902. {
  9903. return dlopen ();
  9904. ;
  9905. return 0;
  9906. }
  9907. _ACEOF
  9908. if ac_fn_c_try_link "$LINENO"; then :
  9909. ac_cv_lib_dl_dlopen=yes
  9910. else
  9911. ac_cv_lib_dl_dlopen=no
  9912. fi
  9913. rm -f core conftest.err conftest.$ac_objext \
  9914. conftest$ac_exeext conftest.$ac_ext
  9915. LIBS=$ac_check_lib_save_LIBS
  9916. fi
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9918. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9919. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9920. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9921. else
  9922. lt_cv_dlopen=dyld
  9923. lt_cv_dlopen_libs=
  9924. lt_cv_dlopen_self=yes
  9925. fi
  9926. ;;
  9927. tpf*)
  9928. # Don't try to run any link tests for TPF. We know it's impossible
  9929. # because TPF is a cross-compiler, and we know how we open DSOs.
  9930. lt_cv_dlopen=dlopen
  9931. lt_cv_dlopen_libs=
  9932. lt_cv_dlopen_self=no
  9933. ;;
  9934. *)
  9935. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9936. if test "x$ac_cv_func_shl_load" = xyes; then :
  9937. lt_cv_dlopen=shl_load
  9938. else
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9940. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9941. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. ac_check_lib_save_LIBS=$LIBS
  9945. LIBS="-ldld $LIBS"
  9946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9947. /* end confdefs.h. */
  9948. /* Override any GCC internal prototype to avoid an error.
  9949. Use char because int might match the return type of a GCC
  9950. builtin and then its argument prototype would still apply. */
  9951. #ifdef __cplusplus
  9952. extern "C"
  9953. #endif
  9954. char shl_load ();
  9955. int
  9956. main ()
  9957. {
  9958. return shl_load ();
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. if ac_fn_c_try_link "$LINENO"; then :
  9964. ac_cv_lib_dld_shl_load=yes
  9965. else
  9966. ac_cv_lib_dld_shl_load=no
  9967. fi
  9968. rm -f core conftest.err conftest.$ac_objext \
  9969. conftest$ac_exeext conftest.$ac_ext
  9970. LIBS=$ac_check_lib_save_LIBS
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9973. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9974. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9975. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9976. else
  9977. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9978. if test "x$ac_cv_func_dlopen" = xyes; then :
  9979. lt_cv_dlopen=dlopen
  9980. else
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9982. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9983. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9984. $as_echo_n "(cached) " >&6
  9985. else
  9986. ac_check_lib_save_LIBS=$LIBS
  9987. LIBS="-ldl $LIBS"
  9988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9989. /* end confdefs.h. */
  9990. /* Override any GCC internal prototype to avoid an error.
  9991. Use char because int might match the return type of a GCC
  9992. builtin and then its argument prototype would still apply. */
  9993. #ifdef __cplusplus
  9994. extern "C"
  9995. #endif
  9996. char dlopen ();
  9997. int
  9998. main ()
  9999. {
  10000. return dlopen ();
  10001. ;
  10002. return 0;
  10003. }
  10004. _ACEOF
  10005. if ac_fn_c_try_link "$LINENO"; then :
  10006. ac_cv_lib_dl_dlopen=yes
  10007. else
  10008. ac_cv_lib_dl_dlopen=no
  10009. fi
  10010. rm -f core conftest.err conftest.$ac_objext \
  10011. conftest$ac_exeext conftest.$ac_ext
  10012. LIBS=$ac_check_lib_save_LIBS
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10015. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10016. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10017. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10018. else
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10020. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10021. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. ac_check_lib_save_LIBS=$LIBS
  10025. LIBS="-lsvld $LIBS"
  10026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10027. /* end confdefs.h. */
  10028. /* Override any GCC internal prototype to avoid an error.
  10029. Use char because int might match the return type of a GCC
  10030. builtin and then its argument prototype would still apply. */
  10031. #ifdef __cplusplus
  10032. extern "C"
  10033. #endif
  10034. char dlopen ();
  10035. int
  10036. main ()
  10037. {
  10038. return dlopen ();
  10039. ;
  10040. return 0;
  10041. }
  10042. _ACEOF
  10043. if ac_fn_c_try_link "$LINENO"; then :
  10044. ac_cv_lib_svld_dlopen=yes
  10045. else
  10046. ac_cv_lib_svld_dlopen=no
  10047. fi
  10048. rm -f core conftest.err conftest.$ac_objext \
  10049. conftest$ac_exeext conftest.$ac_ext
  10050. LIBS=$ac_check_lib_save_LIBS
  10051. fi
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10053. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10054. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10055. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10056. else
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10058. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10059. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10060. $as_echo_n "(cached) " >&6
  10061. else
  10062. ac_check_lib_save_LIBS=$LIBS
  10063. LIBS="-ldld $LIBS"
  10064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10065. /* end confdefs.h. */
  10066. /* Override any GCC internal prototype to avoid an error.
  10067. Use char because int might match the return type of a GCC
  10068. builtin and then its argument prototype would still apply. */
  10069. #ifdef __cplusplus
  10070. extern "C"
  10071. #endif
  10072. char dld_link ();
  10073. int
  10074. main ()
  10075. {
  10076. return dld_link ();
  10077. ;
  10078. return 0;
  10079. }
  10080. _ACEOF
  10081. if ac_fn_c_try_link "$LINENO"; then :
  10082. ac_cv_lib_dld_dld_link=yes
  10083. else
  10084. ac_cv_lib_dld_dld_link=no
  10085. fi
  10086. rm -f core conftest.err conftest.$ac_objext \
  10087. conftest$ac_exeext conftest.$ac_ext
  10088. LIBS=$ac_check_lib_save_LIBS
  10089. fi
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10091. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10092. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10093. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10094. fi
  10095. fi
  10096. fi
  10097. fi
  10098. fi
  10099. fi
  10100. ;;
  10101. esac
  10102. if test no = "$lt_cv_dlopen"; then
  10103. enable_dlopen=no
  10104. else
  10105. enable_dlopen=yes
  10106. fi
  10107. case $lt_cv_dlopen in
  10108. dlopen)
  10109. save_CPPFLAGS=$CPPFLAGS
  10110. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10111. save_LDFLAGS=$LDFLAGS
  10112. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10113. save_LIBS=$LIBS
  10114. LIBS="$lt_cv_dlopen_libs $LIBS"
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10116. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10117. if ${lt_cv_dlopen_self+:} false; then :
  10118. $as_echo_n "(cached) " >&6
  10119. else
  10120. if test yes = "$cross_compiling"; then :
  10121. lt_cv_dlopen_self=cross
  10122. else
  10123. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10124. lt_status=$lt_dlunknown
  10125. cat > conftest.$ac_ext <<_LT_EOF
  10126. #line $LINENO "configure"
  10127. #include "confdefs.h"
  10128. #if HAVE_DLFCN_H
  10129. #include <dlfcn.h>
  10130. #endif
  10131. #include <stdio.h>
  10132. #ifdef RTLD_GLOBAL
  10133. # define LT_DLGLOBAL RTLD_GLOBAL
  10134. #else
  10135. # ifdef DL_GLOBAL
  10136. # define LT_DLGLOBAL DL_GLOBAL
  10137. # else
  10138. # define LT_DLGLOBAL 0
  10139. # endif
  10140. #endif
  10141. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10142. find out it does not work in some platform. */
  10143. #ifndef LT_DLLAZY_OR_NOW
  10144. # ifdef RTLD_LAZY
  10145. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10146. # else
  10147. # ifdef DL_LAZY
  10148. # define LT_DLLAZY_OR_NOW DL_LAZY
  10149. # else
  10150. # ifdef RTLD_NOW
  10151. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10152. # else
  10153. # ifdef DL_NOW
  10154. # define LT_DLLAZY_OR_NOW DL_NOW
  10155. # else
  10156. # define LT_DLLAZY_OR_NOW 0
  10157. # endif
  10158. # endif
  10159. # endif
  10160. # endif
  10161. #endif
  10162. /* When -fvisibility=hidden is used, assume the code has been annotated
  10163. correspondingly for the symbols needed. */
  10164. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10165. int fnord () __attribute__((visibility("default")));
  10166. #endif
  10167. int fnord () { return 42; }
  10168. int main ()
  10169. {
  10170. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10171. int status = $lt_dlunknown;
  10172. if (self)
  10173. {
  10174. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10175. else
  10176. {
  10177. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10178. else puts (dlerror ());
  10179. }
  10180. /* dlclose (self); */
  10181. }
  10182. else
  10183. puts (dlerror ());
  10184. return status;
  10185. }
  10186. _LT_EOF
  10187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10188. (eval $ac_link) 2>&5
  10189. ac_status=$?
  10190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10191. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10192. (./conftest; exit; ) >&5 2>/dev/null
  10193. lt_status=$?
  10194. case x$lt_status in
  10195. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10196. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10197. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10198. esac
  10199. else :
  10200. # compilation failed
  10201. lt_cv_dlopen_self=no
  10202. fi
  10203. fi
  10204. rm -fr conftest*
  10205. fi
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10207. $as_echo "$lt_cv_dlopen_self" >&6; }
  10208. if test yes = "$lt_cv_dlopen_self"; then
  10209. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10211. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10212. if ${lt_cv_dlopen_self_static+:} false; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. if test yes = "$cross_compiling"; then :
  10216. lt_cv_dlopen_self_static=cross
  10217. else
  10218. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10219. lt_status=$lt_dlunknown
  10220. cat > conftest.$ac_ext <<_LT_EOF
  10221. #line $LINENO "configure"
  10222. #include "confdefs.h"
  10223. #if HAVE_DLFCN_H
  10224. #include <dlfcn.h>
  10225. #endif
  10226. #include <stdio.h>
  10227. #ifdef RTLD_GLOBAL
  10228. # define LT_DLGLOBAL RTLD_GLOBAL
  10229. #else
  10230. # ifdef DL_GLOBAL
  10231. # define LT_DLGLOBAL DL_GLOBAL
  10232. # else
  10233. # define LT_DLGLOBAL 0
  10234. # endif
  10235. #endif
  10236. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10237. find out it does not work in some platform. */
  10238. #ifndef LT_DLLAZY_OR_NOW
  10239. # ifdef RTLD_LAZY
  10240. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10241. # else
  10242. # ifdef DL_LAZY
  10243. # define LT_DLLAZY_OR_NOW DL_LAZY
  10244. # else
  10245. # ifdef RTLD_NOW
  10246. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10247. # else
  10248. # ifdef DL_NOW
  10249. # define LT_DLLAZY_OR_NOW DL_NOW
  10250. # else
  10251. # define LT_DLLAZY_OR_NOW 0
  10252. # endif
  10253. # endif
  10254. # endif
  10255. # endif
  10256. #endif
  10257. /* When -fvisibility=hidden is used, assume the code has been annotated
  10258. correspondingly for the symbols needed. */
  10259. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10260. int fnord () __attribute__((visibility("default")));
  10261. #endif
  10262. int fnord () { return 42; }
  10263. int main ()
  10264. {
  10265. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10266. int status = $lt_dlunknown;
  10267. if (self)
  10268. {
  10269. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10270. else
  10271. {
  10272. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10273. else puts (dlerror ());
  10274. }
  10275. /* dlclose (self); */
  10276. }
  10277. else
  10278. puts (dlerror ());
  10279. return status;
  10280. }
  10281. _LT_EOF
  10282. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10283. (eval $ac_link) 2>&5
  10284. ac_status=$?
  10285. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10286. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10287. (./conftest; exit; ) >&5 2>/dev/null
  10288. lt_status=$?
  10289. case x$lt_status in
  10290. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10291. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10292. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10293. esac
  10294. else :
  10295. # compilation failed
  10296. lt_cv_dlopen_self_static=no
  10297. fi
  10298. fi
  10299. rm -fr conftest*
  10300. fi
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10302. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10303. fi
  10304. CPPFLAGS=$save_CPPFLAGS
  10305. LDFLAGS=$save_LDFLAGS
  10306. LIBS=$save_LIBS
  10307. ;;
  10308. esac
  10309. case $lt_cv_dlopen_self in
  10310. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10311. *) enable_dlopen_self=unknown ;;
  10312. esac
  10313. case $lt_cv_dlopen_self_static in
  10314. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10315. *) enable_dlopen_self_static=unknown ;;
  10316. esac
  10317. fi
  10318. striplib=
  10319. old_striplib=
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10321. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10322. if test -z "$STRIP"; then
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10324. $as_echo "no" >&6; }
  10325. else
  10326. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10327. old_striplib="$STRIP --strip-debug"
  10328. striplib="$STRIP --strip-unneeded"
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10330. $as_echo "yes" >&6; }
  10331. else
  10332. case $host_os in
  10333. darwin*)
  10334. # FIXME - insert some real tests, host_os isn't really good enough
  10335. striplib="$STRIP -x"
  10336. old_striplib="$STRIP -S"
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10338. $as_echo "yes" >&6; }
  10339. ;;
  10340. freebsd*)
  10341. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10342. old_striplib="$STRIP --strip-debug"
  10343. striplib="$STRIP --strip-unneeded"
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10345. $as_echo "yes" >&6; }
  10346. else
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10348. $as_echo "no" >&6; }
  10349. fi
  10350. ;;
  10351. *)
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10353. $as_echo "no" >&6; }
  10354. ;;
  10355. esac
  10356. fi
  10357. fi
  10358. # Report what library types will actually be built
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10360. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10362. $as_echo "$can_build_shared" >&6; }
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10364. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10365. test no = "$can_build_shared" && enable_shared=no
  10366. # On AIX, shared libraries and static libraries use the same namespace, and
  10367. # are all built from PIC.
  10368. case $host_os in
  10369. aix3*)
  10370. test yes = "$enable_shared" && enable_static=no
  10371. if test -n "$RANLIB"; then
  10372. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10373. postinstall_cmds='$RANLIB $lib'
  10374. fi
  10375. ;;
  10376. aix[4-9]*)
  10377. if test ia64 != "$host_cpu"; then
  10378. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10379. yes,aix,yes) ;; # shared object as lib.so file only
  10380. yes,svr4,*) ;; # shared object as lib.so archive member only
  10381. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10382. esac
  10383. fi
  10384. ;;
  10385. esac
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10387. $as_echo "$enable_shared" >&6; }
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10389. $as_echo_n "checking whether to build static libraries... " >&6; }
  10390. # Make sure either enable_shared or enable_static is yes.
  10391. test yes = "$enable_shared" || enable_static=yes
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10393. $as_echo "$enable_static" >&6; }
  10394. fi
  10395. ac_ext=c
  10396. ac_cpp='$CPP $CPPFLAGS'
  10397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10400. CC=$lt_save_CC
  10401. ac_config_commands="$ac_config_commands libtool"
  10402. # Only expand once:
  10403. if test -n "$ac_tool_prefix"; then
  10404. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10405. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10407. $as_echo_n "checking for $ac_word... " >&6; }
  10408. if ${ac_cv_prog_RC+:} false; then :
  10409. $as_echo_n "(cached) " >&6
  10410. else
  10411. if test -n "$RC"; then
  10412. ac_cv_prog_RC="$RC" # Let the user override the test.
  10413. else
  10414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10415. for as_dir in $PATH
  10416. do
  10417. IFS=$as_save_IFS
  10418. test -z "$as_dir" && as_dir=.
  10419. for ac_exec_ext in '' $ac_executable_extensions; do
  10420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10421. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10423. break 2
  10424. fi
  10425. done
  10426. done
  10427. IFS=$as_save_IFS
  10428. fi
  10429. fi
  10430. RC=$ac_cv_prog_RC
  10431. if test -n "$RC"; then
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10433. $as_echo "$RC" >&6; }
  10434. else
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10436. $as_echo "no" >&6; }
  10437. fi
  10438. fi
  10439. if test -z "$ac_cv_prog_RC"; then
  10440. ac_ct_RC=$RC
  10441. # Extract the first word of "windres", so it can be a program name with args.
  10442. set dummy windres; ac_word=$2
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10444. $as_echo_n "checking for $ac_word... " >&6; }
  10445. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. if test -n "$ac_ct_RC"; then
  10449. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10450. else
  10451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10452. for as_dir in $PATH
  10453. do
  10454. IFS=$as_save_IFS
  10455. test -z "$as_dir" && as_dir=.
  10456. for ac_exec_ext in '' $ac_executable_extensions; do
  10457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10458. ac_cv_prog_ac_ct_RC="windres"
  10459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10460. break 2
  10461. fi
  10462. done
  10463. done
  10464. IFS=$as_save_IFS
  10465. fi
  10466. fi
  10467. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10468. if test -n "$ac_ct_RC"; then
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10470. $as_echo "$ac_ct_RC" >&6; }
  10471. else
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10473. $as_echo "no" >&6; }
  10474. fi
  10475. if test "x$ac_ct_RC" = x; then
  10476. RC=""
  10477. else
  10478. case $cross_compiling:$ac_tool_warned in
  10479. yes:)
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10482. ac_tool_warned=yes ;;
  10483. esac
  10484. RC=$ac_ct_RC
  10485. fi
  10486. else
  10487. RC="$ac_cv_prog_RC"
  10488. fi
  10489. # Source file extension for RC test sources.
  10490. ac_ext=rc
  10491. # Object file extension for compiled RC test sources.
  10492. objext=o
  10493. objext_RC=$objext
  10494. # Code to be used in simple compile tests
  10495. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10496. # Code to be used in simple link tests
  10497. lt_simple_link_test_code=$lt_simple_compile_test_code
  10498. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10499. # If no C compiler was specified, use CC.
  10500. LTCC=${LTCC-"$CC"}
  10501. # If no C compiler flags were specified, use CFLAGS.
  10502. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10503. # Allow CC to be a program name with arguments.
  10504. compiler=$CC
  10505. # save warnings/boilerplate of simple test code
  10506. ac_outfile=conftest.$ac_objext
  10507. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10508. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10509. _lt_compiler_boilerplate=`cat conftest.err`
  10510. $RM conftest*
  10511. ac_outfile=conftest.$ac_objext
  10512. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10513. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10514. _lt_linker_boilerplate=`cat conftest.err`
  10515. $RM -r conftest*
  10516. # Allow CC to be a program name with arguments.
  10517. lt_save_CC=$CC
  10518. lt_save_CFLAGS=$CFLAGS
  10519. lt_save_GCC=$GCC
  10520. GCC=
  10521. CC=${RC-"windres"}
  10522. CFLAGS=
  10523. compiler=$CC
  10524. compiler_RC=$CC
  10525. func_cc_basename $compiler
  10526. cc_basename=$func_cc_basename_result
  10527. lt_cv_prog_compiler_c_o_RC=yes
  10528. if test -n "$compiler"; then
  10529. :
  10530. fi
  10531. GCC=$lt_save_GCC
  10532. ac_ext=c
  10533. ac_cpp='$CPP $CPPFLAGS'
  10534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10537. CC=$lt_save_CC
  10538. CFLAGS=$lt_save_CFLAGS
  10539. # For historical reasons, the library name redundantly includes the major
  10540. # version twice: libSDL2-2.0.so.0.
  10541. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10542. LT_RELEASE=2.0
  10543. # Increment this if there is an incompatible change - but if that happens,
  10544. # we should rename the library from SDL2 to SDL3, at which point this would
  10545. # reset to 0 anyway.
  10546. LT_MAJOR=0
  10547. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10548. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10549. LT_REVISION=$SDL_INTERFACE_AGE
  10550. ac_ext=c
  10551. ac_cpp='$CPP $CPPFLAGS'
  10552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10555. if test -n "$ac_tool_prefix"; then
  10556. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10557. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10559. $as_echo_n "checking for $ac_word... " >&6; }
  10560. if ${ac_cv_prog_CC+:} false; then :
  10561. $as_echo_n "(cached) " >&6
  10562. else
  10563. if test -n "$CC"; then
  10564. ac_cv_prog_CC="$CC" # Let the user override the test.
  10565. else
  10566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10567. for as_dir in $PATH
  10568. do
  10569. IFS=$as_save_IFS
  10570. test -z "$as_dir" && as_dir=.
  10571. for ac_exec_ext in '' $ac_executable_extensions; do
  10572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10573. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10575. break 2
  10576. fi
  10577. done
  10578. done
  10579. IFS=$as_save_IFS
  10580. fi
  10581. fi
  10582. CC=$ac_cv_prog_CC
  10583. if test -n "$CC"; then
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10585. $as_echo "$CC" >&6; }
  10586. else
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10588. $as_echo "no" >&6; }
  10589. fi
  10590. fi
  10591. if test -z "$ac_cv_prog_CC"; then
  10592. ac_ct_CC=$CC
  10593. # Extract the first word of "gcc", so it can be a program name with args.
  10594. set dummy gcc; ac_word=$2
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10596. $as_echo_n "checking for $ac_word... " >&6; }
  10597. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10598. $as_echo_n "(cached) " >&6
  10599. else
  10600. if test -n "$ac_ct_CC"; then
  10601. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10602. else
  10603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10604. for as_dir in $PATH
  10605. do
  10606. IFS=$as_save_IFS
  10607. test -z "$as_dir" && as_dir=.
  10608. for ac_exec_ext in '' $ac_executable_extensions; do
  10609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10610. ac_cv_prog_ac_ct_CC="gcc"
  10611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10612. break 2
  10613. fi
  10614. done
  10615. done
  10616. IFS=$as_save_IFS
  10617. fi
  10618. fi
  10619. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10620. if test -n "$ac_ct_CC"; then
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10622. $as_echo "$ac_ct_CC" >&6; }
  10623. else
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10625. $as_echo "no" >&6; }
  10626. fi
  10627. if test "x$ac_ct_CC" = x; then
  10628. CC=""
  10629. else
  10630. case $cross_compiling:$ac_tool_warned in
  10631. yes:)
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10634. ac_tool_warned=yes ;;
  10635. esac
  10636. CC=$ac_ct_CC
  10637. fi
  10638. else
  10639. CC="$ac_cv_prog_CC"
  10640. fi
  10641. if test -z "$CC"; then
  10642. if test -n "$ac_tool_prefix"; then
  10643. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10644. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10646. $as_echo_n "checking for $ac_word... " >&6; }
  10647. if ${ac_cv_prog_CC+:} false; then :
  10648. $as_echo_n "(cached) " >&6
  10649. else
  10650. if test -n "$CC"; then
  10651. ac_cv_prog_CC="$CC" # Let the user override the test.
  10652. else
  10653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10654. for as_dir in $PATH
  10655. do
  10656. IFS=$as_save_IFS
  10657. test -z "$as_dir" && as_dir=.
  10658. for ac_exec_ext in '' $ac_executable_extensions; do
  10659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10660. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10662. break 2
  10663. fi
  10664. done
  10665. done
  10666. IFS=$as_save_IFS
  10667. fi
  10668. fi
  10669. CC=$ac_cv_prog_CC
  10670. if test -n "$CC"; then
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10672. $as_echo "$CC" >&6; }
  10673. else
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10675. $as_echo "no" >&6; }
  10676. fi
  10677. fi
  10678. fi
  10679. if test -z "$CC"; then
  10680. # Extract the first word of "cc", so it can be a program name with args.
  10681. set dummy cc; ac_word=$2
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10683. $as_echo_n "checking for $ac_word... " >&6; }
  10684. if ${ac_cv_prog_CC+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. if test -n "$CC"; then
  10688. ac_cv_prog_CC="$CC" # Let the user override the test.
  10689. else
  10690. ac_prog_rejected=no
  10691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10692. for as_dir in $PATH
  10693. do
  10694. IFS=$as_save_IFS
  10695. test -z "$as_dir" && as_dir=.
  10696. for ac_exec_ext in '' $ac_executable_extensions; do
  10697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10698. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10699. ac_prog_rejected=yes
  10700. continue
  10701. fi
  10702. ac_cv_prog_CC="cc"
  10703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10704. break 2
  10705. fi
  10706. done
  10707. done
  10708. IFS=$as_save_IFS
  10709. if test $ac_prog_rejected = yes; then
  10710. # We found a bogon in the path, so make sure we never use it.
  10711. set dummy $ac_cv_prog_CC
  10712. shift
  10713. if test $# != 0; then
  10714. # We chose a different compiler from the bogus one.
  10715. # However, it has the same basename, so the bogon will be chosen
  10716. # first if we set CC to just the basename; use the full file name.
  10717. shift
  10718. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10719. fi
  10720. fi
  10721. fi
  10722. fi
  10723. CC=$ac_cv_prog_CC
  10724. if test -n "$CC"; then
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10726. $as_echo "$CC" >&6; }
  10727. else
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10729. $as_echo "no" >&6; }
  10730. fi
  10731. fi
  10732. if test -z "$CC"; then
  10733. if test -n "$ac_tool_prefix"; then
  10734. for ac_prog in cl.exe
  10735. do
  10736. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10737. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10739. $as_echo_n "checking for $ac_word... " >&6; }
  10740. if ${ac_cv_prog_CC+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. if test -n "$CC"; then
  10744. ac_cv_prog_CC="$CC" # Let the user override the test.
  10745. else
  10746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10747. for as_dir in $PATH
  10748. do
  10749. IFS=$as_save_IFS
  10750. test -z "$as_dir" && as_dir=.
  10751. for ac_exec_ext in '' $ac_executable_extensions; do
  10752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10753. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10755. break 2
  10756. fi
  10757. done
  10758. done
  10759. IFS=$as_save_IFS
  10760. fi
  10761. fi
  10762. CC=$ac_cv_prog_CC
  10763. if test -n "$CC"; then
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10765. $as_echo "$CC" >&6; }
  10766. else
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10768. $as_echo "no" >&6; }
  10769. fi
  10770. test -n "$CC" && break
  10771. done
  10772. fi
  10773. if test -z "$CC"; then
  10774. ac_ct_CC=$CC
  10775. for ac_prog in cl.exe
  10776. do
  10777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10778. set dummy $ac_prog; ac_word=$2
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10780. $as_echo_n "checking for $ac_word... " >&6; }
  10781. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10782. $as_echo_n "(cached) " >&6
  10783. else
  10784. if test -n "$ac_ct_CC"; then
  10785. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10786. else
  10787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10788. for as_dir in $PATH
  10789. do
  10790. IFS=$as_save_IFS
  10791. test -z "$as_dir" && as_dir=.
  10792. for ac_exec_ext in '' $ac_executable_extensions; do
  10793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10794. ac_cv_prog_ac_ct_CC="$ac_prog"
  10795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10796. break 2
  10797. fi
  10798. done
  10799. done
  10800. IFS=$as_save_IFS
  10801. fi
  10802. fi
  10803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10804. if test -n "$ac_ct_CC"; then
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10806. $as_echo "$ac_ct_CC" >&6; }
  10807. else
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10809. $as_echo "no" >&6; }
  10810. fi
  10811. test -n "$ac_ct_CC" && break
  10812. done
  10813. if test "x$ac_ct_CC" = x; then
  10814. CC=""
  10815. else
  10816. case $cross_compiling:$ac_tool_warned in
  10817. yes:)
  10818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10820. ac_tool_warned=yes ;;
  10821. esac
  10822. CC=$ac_ct_CC
  10823. fi
  10824. fi
  10825. fi
  10826. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10828. as_fn_error $? "no acceptable C compiler found in \$PATH
  10829. See \`config.log' for more details" "$LINENO" 5; }
  10830. # Provide some information about the compiler.
  10831. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10832. set X $ac_compile
  10833. ac_compiler=$2
  10834. for ac_option in --version -v -V -qversion; do
  10835. { { ac_try="$ac_compiler $ac_option >&5"
  10836. case "(($ac_try" in
  10837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10838. *) ac_try_echo=$ac_try;;
  10839. esac
  10840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10841. $as_echo "$ac_try_echo"; } >&5
  10842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10843. ac_status=$?
  10844. if test -s conftest.err; then
  10845. sed '10a\
  10846. ... rest of stderr output deleted ...
  10847. 10q' conftest.err >conftest.er1
  10848. cat conftest.er1 >&5
  10849. fi
  10850. rm -f conftest.er1 conftest.err
  10851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10852. test $ac_status = 0; }
  10853. done
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10855. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10856. if ${ac_cv_c_compiler_gnu+:} false; then :
  10857. $as_echo_n "(cached) " >&6
  10858. else
  10859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10860. /* end confdefs.h. */
  10861. int
  10862. main ()
  10863. {
  10864. #ifndef __GNUC__
  10865. choke me
  10866. #endif
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. if ac_fn_c_try_compile "$LINENO"; then :
  10872. ac_compiler_gnu=yes
  10873. else
  10874. ac_compiler_gnu=no
  10875. fi
  10876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10877. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10878. fi
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10880. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10881. if test $ac_compiler_gnu = yes; then
  10882. GCC=yes
  10883. else
  10884. GCC=
  10885. fi
  10886. ac_test_CFLAGS=${CFLAGS+set}
  10887. ac_save_CFLAGS=$CFLAGS
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10889. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10890. if ${ac_cv_prog_cc_g+:} false; then :
  10891. $as_echo_n "(cached) " >&6
  10892. else
  10893. ac_save_c_werror_flag=$ac_c_werror_flag
  10894. ac_c_werror_flag=yes
  10895. ac_cv_prog_cc_g=no
  10896. CFLAGS="-g"
  10897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10898. /* end confdefs.h. */
  10899. int
  10900. main ()
  10901. {
  10902. ;
  10903. return 0;
  10904. }
  10905. _ACEOF
  10906. if ac_fn_c_try_compile "$LINENO"; then :
  10907. ac_cv_prog_cc_g=yes
  10908. else
  10909. CFLAGS=""
  10910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10911. /* end confdefs.h. */
  10912. int
  10913. main ()
  10914. {
  10915. ;
  10916. return 0;
  10917. }
  10918. _ACEOF
  10919. if ac_fn_c_try_compile "$LINENO"; then :
  10920. else
  10921. ac_c_werror_flag=$ac_save_c_werror_flag
  10922. CFLAGS="-g"
  10923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10924. /* end confdefs.h. */
  10925. int
  10926. main ()
  10927. {
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. if ac_fn_c_try_compile "$LINENO"; then :
  10933. ac_cv_prog_cc_g=yes
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. fi
  10937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10938. fi
  10939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10940. ac_c_werror_flag=$ac_save_c_werror_flag
  10941. fi
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10943. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10944. if test "$ac_test_CFLAGS" = set; then
  10945. CFLAGS=$ac_save_CFLAGS
  10946. elif test $ac_cv_prog_cc_g = yes; then
  10947. if test "$GCC" = yes; then
  10948. CFLAGS="-g -O2"
  10949. else
  10950. CFLAGS="-g"
  10951. fi
  10952. else
  10953. if test "$GCC" = yes; then
  10954. CFLAGS="-O2"
  10955. else
  10956. CFLAGS=
  10957. fi
  10958. fi
  10959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10960. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10961. if ${ac_cv_prog_cc_c89+:} false; then :
  10962. $as_echo_n "(cached) " >&6
  10963. else
  10964. ac_cv_prog_cc_c89=no
  10965. ac_save_CC=$CC
  10966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10967. /* end confdefs.h. */
  10968. #include <stdarg.h>
  10969. #include <stdio.h>
  10970. struct stat;
  10971. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10972. struct buf { int x; };
  10973. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10974. static char *e (p, i)
  10975. char **p;
  10976. int i;
  10977. {
  10978. return p[i];
  10979. }
  10980. static char *f (char * (*g) (char **, int), char **p, ...)
  10981. {
  10982. char *s;
  10983. va_list v;
  10984. va_start (v,p);
  10985. s = g (p, va_arg (v,int));
  10986. va_end (v);
  10987. return s;
  10988. }
  10989. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10990. function prototypes and stuff, but not '\xHH' hex character constants.
  10991. These don't provoke an error unfortunately, instead are silently treated
  10992. as 'x'. The following induces an error, until -std is added to get
  10993. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10994. array size at least. It's necessary to write '\x00'==0 to get something
  10995. that's true only with -std. */
  10996. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10997. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10998. inside strings and character constants. */
  10999. #define FOO(x) 'x'
  11000. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11001. int test (int i, double x);
  11002. struct s1 {int (*f) (int a);};
  11003. struct s2 {int (*f) (double a);};
  11004. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11005. int argc;
  11006. char **argv;
  11007. int
  11008. main ()
  11009. {
  11010. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11011. ;
  11012. return 0;
  11013. }
  11014. _ACEOF
  11015. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11016. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11017. do
  11018. CC="$ac_save_CC $ac_arg"
  11019. if ac_fn_c_try_compile "$LINENO"; then :
  11020. ac_cv_prog_cc_c89=$ac_arg
  11021. fi
  11022. rm -f core conftest.err conftest.$ac_objext
  11023. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11024. done
  11025. rm -f conftest.$ac_ext
  11026. CC=$ac_save_CC
  11027. fi
  11028. # AC_CACHE_VAL
  11029. case "x$ac_cv_prog_cc_c89" in
  11030. x)
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11032. $as_echo "none needed" >&6; } ;;
  11033. xno)
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11035. $as_echo "unsupported" >&6; } ;;
  11036. *)
  11037. CC="$CC $ac_cv_prog_cc_c89"
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11039. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11040. esac
  11041. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11042. fi
  11043. ac_ext=c
  11044. ac_cpp='$CPP $CPPFLAGS'
  11045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11048. ac_ext=cpp
  11049. ac_cpp='$CXXCPP $CPPFLAGS'
  11050. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11051. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11052. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11053. if test -z "$CXX"; then
  11054. if test -n "$CCC"; then
  11055. CXX=$CCC
  11056. else
  11057. if test -n "$ac_tool_prefix"; then
  11058. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11059. do
  11060. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11061. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11063. $as_echo_n "checking for $ac_word... " >&6; }
  11064. if ${ac_cv_prog_CXX+:} false; then :
  11065. $as_echo_n "(cached) " >&6
  11066. else
  11067. if test -n "$CXX"; then
  11068. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11069. else
  11070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11071. for as_dir in $PATH
  11072. do
  11073. IFS=$as_save_IFS
  11074. test -z "$as_dir" && as_dir=.
  11075. for ac_exec_ext in '' $ac_executable_extensions; do
  11076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11077. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11079. break 2
  11080. fi
  11081. done
  11082. done
  11083. IFS=$as_save_IFS
  11084. fi
  11085. fi
  11086. CXX=$ac_cv_prog_CXX
  11087. if test -n "$CXX"; then
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11089. $as_echo "$CXX" >&6; }
  11090. else
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11092. $as_echo "no" >&6; }
  11093. fi
  11094. test -n "$CXX" && break
  11095. done
  11096. fi
  11097. if test -z "$CXX"; then
  11098. ac_ct_CXX=$CXX
  11099. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11100. do
  11101. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11102. set dummy $ac_prog; ac_word=$2
  11103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11104. $as_echo_n "checking for $ac_word... " >&6; }
  11105. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11106. $as_echo_n "(cached) " >&6
  11107. else
  11108. if test -n "$ac_ct_CXX"; then
  11109. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11110. else
  11111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11112. for as_dir in $PATH
  11113. do
  11114. IFS=$as_save_IFS
  11115. test -z "$as_dir" && as_dir=.
  11116. for ac_exec_ext in '' $ac_executable_extensions; do
  11117. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11118. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11120. break 2
  11121. fi
  11122. done
  11123. done
  11124. IFS=$as_save_IFS
  11125. fi
  11126. fi
  11127. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11128. if test -n "$ac_ct_CXX"; then
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11130. $as_echo "$ac_ct_CXX" >&6; }
  11131. else
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11133. $as_echo "no" >&6; }
  11134. fi
  11135. test -n "$ac_ct_CXX" && break
  11136. done
  11137. if test "x$ac_ct_CXX" = x; then
  11138. CXX="g++"
  11139. else
  11140. case $cross_compiling:$ac_tool_warned in
  11141. yes:)
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11143. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11144. ac_tool_warned=yes ;;
  11145. esac
  11146. CXX=$ac_ct_CXX
  11147. fi
  11148. fi
  11149. fi
  11150. fi
  11151. # Provide some information about the compiler.
  11152. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11153. set X $ac_compile
  11154. ac_compiler=$2
  11155. for ac_option in --version -v -V -qversion; do
  11156. { { ac_try="$ac_compiler $ac_option >&5"
  11157. case "(($ac_try" in
  11158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11159. *) ac_try_echo=$ac_try;;
  11160. esac
  11161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11162. $as_echo "$ac_try_echo"; } >&5
  11163. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11164. ac_status=$?
  11165. if test -s conftest.err; then
  11166. sed '10a\
  11167. ... rest of stderr output deleted ...
  11168. 10q' conftest.err >conftest.er1
  11169. cat conftest.er1 >&5
  11170. fi
  11171. rm -f conftest.er1 conftest.err
  11172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11173. test $ac_status = 0; }
  11174. done
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11176. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11177. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11178. $as_echo_n "(cached) " >&6
  11179. else
  11180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11181. /* end confdefs.h. */
  11182. int
  11183. main ()
  11184. {
  11185. #ifndef __GNUC__
  11186. choke me
  11187. #endif
  11188. ;
  11189. return 0;
  11190. }
  11191. _ACEOF
  11192. if ac_fn_cxx_try_compile "$LINENO"; then :
  11193. ac_compiler_gnu=yes
  11194. else
  11195. ac_compiler_gnu=no
  11196. fi
  11197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11198. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11199. fi
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11201. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11202. if test $ac_compiler_gnu = yes; then
  11203. GXX=yes
  11204. else
  11205. GXX=
  11206. fi
  11207. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11208. ac_save_CXXFLAGS=$CXXFLAGS
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11210. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11211. if ${ac_cv_prog_cxx_g+:} false; then :
  11212. $as_echo_n "(cached) " >&6
  11213. else
  11214. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11215. ac_cxx_werror_flag=yes
  11216. ac_cv_prog_cxx_g=no
  11217. CXXFLAGS="-g"
  11218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11219. /* end confdefs.h. */
  11220. int
  11221. main ()
  11222. {
  11223. ;
  11224. return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_cxx_try_compile "$LINENO"; then :
  11228. ac_cv_prog_cxx_g=yes
  11229. else
  11230. CXXFLAGS=""
  11231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11232. /* end confdefs.h. */
  11233. int
  11234. main ()
  11235. {
  11236. ;
  11237. return 0;
  11238. }
  11239. _ACEOF
  11240. if ac_fn_cxx_try_compile "$LINENO"; then :
  11241. else
  11242. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11243. CXXFLAGS="-g"
  11244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11245. /* end confdefs.h. */
  11246. int
  11247. main ()
  11248. {
  11249. ;
  11250. return 0;
  11251. }
  11252. _ACEOF
  11253. if ac_fn_cxx_try_compile "$LINENO"; then :
  11254. ac_cv_prog_cxx_g=yes
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11257. fi
  11258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11259. fi
  11260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11261. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11262. fi
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11264. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11265. if test "$ac_test_CXXFLAGS" = set; then
  11266. CXXFLAGS=$ac_save_CXXFLAGS
  11267. elif test $ac_cv_prog_cxx_g = yes; then
  11268. if test "$GXX" = yes; then
  11269. CXXFLAGS="-g -O2"
  11270. else
  11271. CXXFLAGS="-g"
  11272. fi
  11273. else
  11274. if test "$GXX" = yes; then
  11275. CXXFLAGS="-O2"
  11276. else
  11277. CXXFLAGS=
  11278. fi
  11279. fi
  11280. ac_ext=c
  11281. ac_cpp='$CPP $CPPFLAGS'
  11282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11285. func_stripname_cnf ()
  11286. {
  11287. case $2 in
  11288. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11289. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11290. esac
  11291. } # func_stripname_cnf
  11292. if test -n "$CXX" && ( test no != "$CXX" &&
  11293. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11294. (test g++ != "$CXX"))); then
  11295. ac_ext=cpp
  11296. ac_cpp='$CXXCPP $CPPFLAGS'
  11297. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11298. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11299. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11301. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11302. if test -z "$CXXCPP"; then
  11303. if ${ac_cv_prog_CXXCPP+:} false; then :
  11304. $as_echo_n "(cached) " >&6
  11305. else
  11306. # Double quotes because CXXCPP needs to be expanded
  11307. for CXXCPP in "$CXX -E" "/lib/cpp"
  11308. do
  11309. ac_preproc_ok=false
  11310. for ac_cxx_preproc_warn_flag in '' yes
  11311. do
  11312. # Use a header file that comes with gcc, so configuring glibc
  11313. # with a fresh cross-compiler works.
  11314. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11315. # <limits.h> exists even on freestanding compilers.
  11316. # On the NeXT, cc -E runs the code through the compiler's parser,
  11317. # not just through cpp. "Syntax error" is here to catch this case.
  11318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11319. /* end confdefs.h. */
  11320. #ifdef __STDC__
  11321. # include <limits.h>
  11322. #else
  11323. # include <assert.h>
  11324. #endif
  11325. Syntax error
  11326. _ACEOF
  11327. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11328. else
  11329. # Broken: fails on valid input.
  11330. continue
  11331. fi
  11332. rm -f conftest.err conftest.i conftest.$ac_ext
  11333. # OK, works on sane cases. Now check whether nonexistent headers
  11334. # can be detected and how.
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. #include <ac_nonexistent.h>
  11338. _ACEOF
  11339. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11340. # Broken: success on invalid input.
  11341. continue
  11342. else
  11343. # Passes both tests.
  11344. ac_preproc_ok=:
  11345. break
  11346. fi
  11347. rm -f conftest.err conftest.i conftest.$ac_ext
  11348. done
  11349. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11350. rm -f conftest.i conftest.err conftest.$ac_ext
  11351. if $ac_preproc_ok; then :
  11352. break
  11353. fi
  11354. done
  11355. ac_cv_prog_CXXCPP=$CXXCPP
  11356. fi
  11357. CXXCPP=$ac_cv_prog_CXXCPP
  11358. else
  11359. ac_cv_prog_CXXCPP=$CXXCPP
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11362. $as_echo "$CXXCPP" >&6; }
  11363. ac_preproc_ok=false
  11364. for ac_cxx_preproc_warn_flag in '' yes
  11365. do
  11366. # Use a header file that comes with gcc, so configuring glibc
  11367. # with a fresh cross-compiler works.
  11368. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11369. # <limits.h> exists even on freestanding compilers.
  11370. # On the NeXT, cc -E runs the code through the compiler's parser,
  11371. # not just through cpp. "Syntax error" is here to catch this case.
  11372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11373. /* end confdefs.h. */
  11374. #ifdef __STDC__
  11375. # include <limits.h>
  11376. #else
  11377. # include <assert.h>
  11378. #endif
  11379. Syntax error
  11380. _ACEOF
  11381. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11382. else
  11383. # Broken: fails on valid input.
  11384. continue
  11385. fi
  11386. rm -f conftest.err conftest.i conftest.$ac_ext
  11387. # OK, works on sane cases. Now check whether nonexistent headers
  11388. # can be detected and how.
  11389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11390. /* end confdefs.h. */
  11391. #include <ac_nonexistent.h>
  11392. _ACEOF
  11393. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11394. # Broken: success on invalid input.
  11395. continue
  11396. else
  11397. # Passes both tests.
  11398. ac_preproc_ok=:
  11399. break
  11400. fi
  11401. rm -f conftest.err conftest.i conftest.$ac_ext
  11402. done
  11403. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11404. rm -f conftest.i conftest.err conftest.$ac_ext
  11405. if $ac_preproc_ok; then :
  11406. else
  11407. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11408. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11409. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11410. See \`config.log' for more details" "$LINENO" 5; }
  11411. fi
  11412. ac_ext=c
  11413. ac_cpp='$CPP $CPPFLAGS'
  11414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11417. else
  11418. _lt_caught_CXX_error=yes
  11419. fi
  11420. ac_ext=cpp
  11421. ac_cpp='$CXXCPP $CPPFLAGS'
  11422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11425. archive_cmds_need_lc_CXX=no
  11426. allow_undefined_flag_CXX=
  11427. always_export_symbols_CXX=no
  11428. archive_expsym_cmds_CXX=
  11429. compiler_needs_object_CXX=no
  11430. export_dynamic_flag_spec_CXX=
  11431. hardcode_direct_CXX=no
  11432. hardcode_direct_absolute_CXX=no
  11433. hardcode_libdir_flag_spec_CXX=
  11434. hardcode_libdir_separator_CXX=
  11435. hardcode_minus_L_CXX=no
  11436. hardcode_shlibpath_var_CXX=unsupported
  11437. hardcode_automatic_CXX=no
  11438. inherit_rpath_CXX=no
  11439. module_cmds_CXX=
  11440. module_expsym_cmds_CXX=
  11441. link_all_deplibs_CXX=unknown
  11442. old_archive_cmds_CXX=$old_archive_cmds
  11443. reload_flag_CXX=$reload_flag
  11444. reload_cmds_CXX=$reload_cmds
  11445. no_undefined_flag_CXX=
  11446. whole_archive_flag_spec_CXX=
  11447. enable_shared_with_static_runtimes_CXX=no
  11448. # Source file extension for C++ test sources.
  11449. ac_ext=cpp
  11450. # Object file extension for compiled C++ test sources.
  11451. objext=o
  11452. objext_CXX=$objext
  11453. # No sense in running all these tests if we already determined that
  11454. # the CXX compiler isn't working. Some variables (like enable_shared)
  11455. # are currently assumed to apply to all compilers on this platform,
  11456. # and will be corrupted by setting them based on a non-working compiler.
  11457. if test yes != "$_lt_caught_CXX_error"; then
  11458. # Code to be used in simple compile tests
  11459. lt_simple_compile_test_code="int some_variable = 0;"
  11460. # Code to be used in simple link tests
  11461. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11462. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11463. # If no C compiler was specified, use CC.
  11464. LTCC=${LTCC-"$CC"}
  11465. # If no C compiler flags were specified, use CFLAGS.
  11466. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11467. # Allow CC to be a program name with arguments.
  11468. compiler=$CC
  11469. # save warnings/boilerplate of simple test code
  11470. ac_outfile=conftest.$ac_objext
  11471. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11472. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11473. _lt_compiler_boilerplate=`cat conftest.err`
  11474. $RM conftest*
  11475. ac_outfile=conftest.$ac_objext
  11476. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11477. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11478. _lt_linker_boilerplate=`cat conftest.err`
  11479. $RM -r conftest*
  11480. # Allow CC to be a program name with arguments.
  11481. lt_save_CC=$CC
  11482. lt_save_CFLAGS=$CFLAGS
  11483. lt_save_LD=$LD
  11484. lt_save_GCC=$GCC
  11485. GCC=$GXX
  11486. lt_save_with_gnu_ld=$with_gnu_ld
  11487. lt_save_path_LD=$lt_cv_path_LD
  11488. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11489. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11490. else
  11491. $as_unset lt_cv_prog_gnu_ld
  11492. fi
  11493. if test -n "${lt_cv_path_LDCXX+set}"; then
  11494. lt_cv_path_LD=$lt_cv_path_LDCXX
  11495. else
  11496. $as_unset lt_cv_path_LD
  11497. fi
  11498. test -z "${LDCXX+set}" || LD=$LDCXX
  11499. CC=${CXX-"c++"}
  11500. CFLAGS=$CXXFLAGS
  11501. compiler=$CC
  11502. compiler_CXX=$CC
  11503. func_cc_basename $compiler
  11504. cc_basename=$func_cc_basename_result
  11505. if test -n "$compiler"; then
  11506. # We don't want -fno-exception when compiling C++ code, so set the
  11507. # no_builtin_flag separately
  11508. if test yes = "$GXX"; then
  11509. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11510. else
  11511. lt_prog_compiler_no_builtin_flag_CXX=
  11512. fi
  11513. if test yes = "$GXX"; then
  11514. # Set up default GNU C++ configuration
  11515. # Check whether --with-gnu-ld was given.
  11516. if test "${with_gnu_ld+set}" = set; then :
  11517. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11518. else
  11519. with_gnu_ld=no
  11520. fi
  11521. ac_prog=ld
  11522. if test yes = "$GCC"; then
  11523. # Check if gcc -print-prog-name=ld gives a path.
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11525. $as_echo_n "checking for ld used by $CC... " >&6; }
  11526. case $host in
  11527. *-*-mingw*)
  11528. # gcc leaves a trailing carriage return, which upsets mingw
  11529. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11530. *)
  11531. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11532. esac
  11533. case $ac_prog in
  11534. # Accept absolute paths.
  11535. [\\/]* | ?:[\\/]*)
  11536. re_direlt='/[^/][^/]*/\.\./'
  11537. # Canonicalize the pathname of ld
  11538. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11539. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11540. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11541. done
  11542. test -z "$LD" && LD=$ac_prog
  11543. ;;
  11544. "")
  11545. # If it fails, then pretend we aren't using GCC.
  11546. ac_prog=ld
  11547. ;;
  11548. *)
  11549. # If it is relative, then search for the first ld in PATH.
  11550. with_gnu_ld=unknown
  11551. ;;
  11552. esac
  11553. elif test yes = "$with_gnu_ld"; then
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11555. $as_echo_n "checking for GNU ld... " >&6; }
  11556. else
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11558. $as_echo_n "checking for non-GNU ld... " >&6; }
  11559. fi
  11560. if ${lt_cv_path_LD+:} false; then :
  11561. $as_echo_n "(cached) " >&6
  11562. else
  11563. if test -z "$LD"; then
  11564. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11565. for ac_dir in $PATH; do
  11566. IFS=$lt_save_ifs
  11567. test -z "$ac_dir" && ac_dir=.
  11568. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11569. lt_cv_path_LD=$ac_dir/$ac_prog
  11570. # Check to see if the program is GNU ld. I'd rather use --version,
  11571. # but apparently some variants of GNU ld only accept -v.
  11572. # Break only if it was the GNU/non-GNU ld that we prefer.
  11573. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11574. *GNU* | *'with BFD'*)
  11575. test no != "$with_gnu_ld" && break
  11576. ;;
  11577. *)
  11578. test yes != "$with_gnu_ld" && break
  11579. ;;
  11580. esac
  11581. fi
  11582. done
  11583. IFS=$lt_save_ifs
  11584. else
  11585. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11586. fi
  11587. fi
  11588. LD=$lt_cv_path_LD
  11589. if test -n "$LD"; then
  11590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11591. $as_echo "$LD" >&6; }
  11592. else
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11594. $as_echo "no" >&6; }
  11595. fi
  11596. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11598. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11599. if ${lt_cv_prog_gnu_ld+:} false; then :
  11600. $as_echo_n "(cached) " >&6
  11601. else
  11602. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11603. case `$LD -v 2>&1 </dev/null` in
  11604. *GNU* | *'with BFD'*)
  11605. lt_cv_prog_gnu_ld=yes
  11606. ;;
  11607. *)
  11608. lt_cv_prog_gnu_ld=no
  11609. ;;
  11610. esac
  11611. fi
  11612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11613. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11614. with_gnu_ld=$lt_cv_prog_gnu_ld
  11615. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11616. # archiving commands below assume that GNU ld is being used.
  11617. if test yes = "$with_gnu_ld"; then
  11618. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11619. 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'
  11620. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11621. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11622. # If archive_cmds runs LD, not CC, wlarc should be empty
  11623. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11624. # investigate it a little bit more. (MM)
  11625. wlarc='$wl'
  11626. # ancient GNU ld didn't support --whole-archive et. al.
  11627. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11628. $GREP 'no-whole-archive' > /dev/null; then
  11629. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11630. else
  11631. whole_archive_flag_spec_CXX=
  11632. fi
  11633. else
  11634. with_gnu_ld=no
  11635. wlarc=
  11636. # A generic and very simple default shared library creation
  11637. # command for GNU C++ for the case where it uses the native
  11638. # linker, instead of GNU ld. If possible, this setting should
  11639. # overridden to take advantage of the native linker features on
  11640. # the platform it is being used on.
  11641. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11642. fi
  11643. # Commands to make compiler produce verbose output that lists
  11644. # what "hidden" libraries, object files and flags are used when
  11645. # linking a shared library.
  11646. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11647. else
  11648. GXX=no
  11649. with_gnu_ld=no
  11650. wlarc=
  11651. fi
  11652. # PORTME: fill in a description of your system's C++ link characteristics
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11654. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11655. ld_shlibs_CXX=yes
  11656. case $host_os in
  11657. aix3*)
  11658. # FIXME: insert proper C++ library support
  11659. ld_shlibs_CXX=no
  11660. ;;
  11661. aix[4-9]*)
  11662. if test ia64 = "$host_cpu"; then
  11663. # On IA64, the linker does run time linking by default, so we don't
  11664. # have to do anything special.
  11665. aix_use_runtimelinking=no
  11666. exp_sym_flag='-Bexport'
  11667. no_entry_flag=
  11668. else
  11669. aix_use_runtimelinking=no
  11670. # Test if we are trying to use run time linking or normal
  11671. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11672. # have runtime linking enabled, and use it for executables.
  11673. # For shared libraries, we enable/disable runtime linking
  11674. # depending on the kind of the shared library created -
  11675. # when "with_aix_soname,aix_use_runtimelinking" is:
  11676. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11677. # "aix,yes" lib.so shared, rtl:yes, for executables
  11678. # lib.a static archive
  11679. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11680. # lib.a(lib.so.V) shared, rtl:no, for executables
  11681. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11682. # lib.a(lib.so.V) shared, rtl:no
  11683. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11684. # lib.a static archive
  11685. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11686. for ld_flag in $LDFLAGS; do
  11687. case $ld_flag in
  11688. *-brtl*)
  11689. aix_use_runtimelinking=yes
  11690. break
  11691. ;;
  11692. esac
  11693. done
  11694. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11695. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11696. # so we don't have lib.a shared libs to link our executables.
  11697. # We have to force runtime linking in this case.
  11698. aix_use_runtimelinking=yes
  11699. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11700. fi
  11701. ;;
  11702. esac
  11703. exp_sym_flag='-bexport'
  11704. no_entry_flag='-bnoentry'
  11705. fi
  11706. # When large executables or shared objects are built, AIX ld can
  11707. # have problems creating the table of contents. If linking a library
  11708. # or program results in "error TOC overflow" add -mminimal-toc to
  11709. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11710. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11711. archive_cmds_CXX=''
  11712. hardcode_direct_CXX=yes
  11713. hardcode_direct_absolute_CXX=yes
  11714. hardcode_libdir_separator_CXX=':'
  11715. link_all_deplibs_CXX=yes
  11716. file_list_spec_CXX='$wl-f,'
  11717. case $with_aix_soname,$aix_use_runtimelinking in
  11718. aix,*) ;; # no import file
  11719. svr4,* | *,yes) # use import file
  11720. # The Import File defines what to hardcode.
  11721. hardcode_direct_CXX=no
  11722. hardcode_direct_absolute_CXX=no
  11723. ;;
  11724. esac
  11725. if test yes = "$GXX"; then
  11726. case $host_os in aix4.[012]|aix4.[012].*)
  11727. # We only want to do this on AIX 4.2 and lower, the check
  11728. # below for broken collect2 doesn't work under 4.3+
  11729. collect2name=`$CC -print-prog-name=collect2`
  11730. if test -f "$collect2name" &&
  11731. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11732. then
  11733. # We have reworked collect2
  11734. :
  11735. else
  11736. # We have old collect2
  11737. hardcode_direct_CXX=unsupported
  11738. # It fails to find uninstalled libraries when the uninstalled
  11739. # path is not listed in the libpath. Setting hardcode_minus_L
  11740. # to unsupported forces relinking
  11741. hardcode_minus_L_CXX=yes
  11742. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11743. hardcode_libdir_separator_CXX=
  11744. fi
  11745. esac
  11746. shared_flag='-shared'
  11747. if test yes = "$aix_use_runtimelinking"; then
  11748. shared_flag=$shared_flag' $wl-G'
  11749. fi
  11750. # Need to ensure runtime linking is disabled for the traditional
  11751. # shared library, or the linker may eventually find shared libraries
  11752. # /with/ Import File - we do not want to mix them.
  11753. shared_flag_aix='-shared'
  11754. shared_flag_svr4='-shared $wl-G'
  11755. else
  11756. # not using gcc
  11757. if test ia64 = "$host_cpu"; then
  11758. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11759. # chokes on -Wl,-G. The following line is correct:
  11760. shared_flag='-G'
  11761. else
  11762. if test yes = "$aix_use_runtimelinking"; then
  11763. shared_flag='$wl-G'
  11764. else
  11765. shared_flag='$wl-bM:SRE'
  11766. fi
  11767. shared_flag_aix='$wl-bM:SRE'
  11768. shared_flag_svr4='$wl-G'
  11769. fi
  11770. fi
  11771. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11772. # It seems that -bexpall does not export symbols beginning with
  11773. # underscore (_), so it is better to generate a list of symbols to
  11774. # export.
  11775. always_export_symbols_CXX=yes
  11776. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11777. # Warning - without using the other runtime loading flags (-brtl),
  11778. # -berok will link without error, but may produce a broken library.
  11779. # The "-G" linker flag allows undefined symbols.
  11780. no_undefined_flag_CXX='-bernotok'
  11781. # Determine the default libpath from the value encoded in an empty
  11782. # executable.
  11783. if test set = "${lt_cv_aix_libpath+set}"; then
  11784. aix_libpath=$lt_cv_aix_libpath
  11785. else
  11786. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11787. $as_echo_n "(cached) " >&6
  11788. else
  11789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11790. /* end confdefs.h. */
  11791. int
  11792. main ()
  11793. {
  11794. ;
  11795. return 0;
  11796. }
  11797. _ACEOF
  11798. if ac_fn_cxx_try_link "$LINENO"; then :
  11799. lt_aix_libpath_sed='
  11800. /Import File Strings/,/^$/ {
  11801. /^0/ {
  11802. s/^0 *\([^ ]*\) *$/\1/
  11803. p
  11804. }
  11805. }'
  11806. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11807. # Check for a 64-bit object if we didn't find anything.
  11808. if test -z "$lt_cv_aix_libpath__CXX"; then
  11809. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11810. fi
  11811. fi
  11812. rm -f core conftest.err conftest.$ac_objext \
  11813. conftest$ac_exeext conftest.$ac_ext
  11814. if test -z "$lt_cv_aix_libpath__CXX"; then
  11815. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11816. fi
  11817. fi
  11818. aix_libpath=$lt_cv_aix_libpath__CXX
  11819. fi
  11820. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11821. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11822. else
  11823. if test ia64 = "$host_cpu"; then
  11824. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11825. allow_undefined_flag_CXX="-z nodefs"
  11826. 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"
  11827. else
  11828. # Determine the default libpath from the value encoded in an
  11829. # empty executable.
  11830. if test set = "${lt_cv_aix_libpath+set}"; then
  11831. aix_libpath=$lt_cv_aix_libpath
  11832. else
  11833. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11834. $as_echo_n "(cached) " >&6
  11835. else
  11836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11837. /* end confdefs.h. */
  11838. int
  11839. main ()
  11840. {
  11841. ;
  11842. return 0;
  11843. }
  11844. _ACEOF
  11845. if ac_fn_cxx_try_link "$LINENO"; then :
  11846. lt_aix_libpath_sed='
  11847. /Import File Strings/,/^$/ {
  11848. /^0/ {
  11849. s/^0 *\([^ ]*\) *$/\1/
  11850. p
  11851. }
  11852. }'
  11853. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11854. # Check for a 64-bit object if we didn't find anything.
  11855. if test -z "$lt_cv_aix_libpath__CXX"; then
  11856. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11857. fi
  11858. fi
  11859. rm -f core conftest.err conftest.$ac_objext \
  11860. conftest$ac_exeext conftest.$ac_ext
  11861. if test -z "$lt_cv_aix_libpath__CXX"; then
  11862. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11863. fi
  11864. fi
  11865. aix_libpath=$lt_cv_aix_libpath__CXX
  11866. fi
  11867. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11868. # Warning - without using the other run time loading flags,
  11869. # -berok will link without error, but may produce a broken library.
  11870. no_undefined_flag_CXX=' $wl-bernotok'
  11871. allow_undefined_flag_CXX=' $wl-berok'
  11872. if test yes = "$with_gnu_ld"; then
  11873. # We only use this code for GNU lds that support --whole-archive.
  11874. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11875. else
  11876. # Exported symbols can be pulled into shared objects from archives
  11877. whole_archive_flag_spec_CXX='$convenience'
  11878. fi
  11879. archive_cmds_need_lc_CXX=yes
  11880. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11881. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11882. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11883. if test svr4 != "$with_aix_soname"; then
  11884. # This is similar to how AIX traditionally builds its shared
  11885. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11886. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11887. fi
  11888. if test aix != "$with_aix_soname"; then
  11889. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11890. else
  11891. # used by -dlpreopen to get the symbols
  11892. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11893. fi
  11894. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11895. fi
  11896. fi
  11897. ;;
  11898. beos*)
  11899. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11900. allow_undefined_flag_CXX=unsupported
  11901. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11902. # support --undefined. This deserves some investigation. FIXME
  11903. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11904. else
  11905. ld_shlibs_CXX=no
  11906. fi
  11907. ;;
  11908. chorus*)
  11909. case $cc_basename in
  11910. *)
  11911. # FIXME: insert proper C++ library support
  11912. ld_shlibs_CXX=no
  11913. ;;
  11914. esac
  11915. ;;
  11916. cygwin* | mingw* | pw32* | cegcc*)
  11917. case $GXX,$cc_basename in
  11918. ,cl* | no,cl*)
  11919. # Native MSVC
  11920. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11921. # no search path for DLLs.
  11922. hardcode_libdir_flag_spec_CXX=' '
  11923. allow_undefined_flag_CXX=unsupported
  11924. always_export_symbols_CXX=yes
  11925. file_list_spec_CXX='@'
  11926. # Tell ltmain to make .lib files, not .a files.
  11927. libext=lib
  11928. # Tell ltmain to make .dll files, not .so files.
  11929. shrext_cmds=.dll
  11930. # FIXME: Setting linknames here is a bad hack.
  11931. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11932. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11933. cp "$export_symbols" "$output_objdir/$soname.def";
  11934. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11935. else
  11936. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11937. fi~
  11938. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11939. linknames='
  11940. # The linker will not automatically build a static lib if we build a DLL.
  11941. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11942. enable_shared_with_static_runtimes_CXX=yes
  11943. # Don't use ranlib
  11944. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11945. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11946. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11947. case $lt_outputfile in
  11948. *.exe|*.EXE) ;;
  11949. *)
  11950. lt_outputfile=$lt_outputfile.exe
  11951. lt_tool_outputfile=$lt_tool_outputfile.exe
  11952. ;;
  11953. esac~
  11954. func_to_tool_file "$lt_outputfile"~
  11955. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11956. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11957. $RM "$lt_outputfile.manifest";
  11958. fi'
  11959. ;;
  11960. *)
  11961. # g++
  11962. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11963. # as there is no search path for DLLs.
  11964. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11965. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11966. allow_undefined_flag_CXX=unsupported
  11967. always_export_symbols_CXX=no
  11968. enable_shared_with_static_runtimes_CXX=yes
  11969. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11970. 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'
  11971. # If the export-symbols file already is a .def file, use it as
  11972. # is; otherwise, prepend EXPORTS...
  11973. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11974. cp $export_symbols $output_objdir/$soname.def;
  11975. else
  11976. echo EXPORTS > $output_objdir/$soname.def;
  11977. cat $export_symbols >> $output_objdir/$soname.def;
  11978. fi~
  11979. $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'
  11980. else
  11981. ld_shlibs_CXX=no
  11982. fi
  11983. ;;
  11984. esac
  11985. ;;
  11986. darwin* | rhapsody*)
  11987. archive_cmds_need_lc_CXX=no
  11988. hardcode_direct_CXX=no
  11989. hardcode_automatic_CXX=yes
  11990. hardcode_shlibpath_var_CXX=unsupported
  11991. if test yes = "$lt_cv_ld_force_load"; then
  11992. 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\"`'
  11993. else
  11994. whole_archive_flag_spec_CXX=''
  11995. fi
  11996. link_all_deplibs_CXX=yes
  11997. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11998. case $cc_basename in
  11999. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12000. *) _lt_dar_can_shared=$GCC ;;
  12001. esac
  12002. if test yes = "$_lt_dar_can_shared"; then
  12003. output_verbose_link_cmd=func_echo_all
  12004. 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"
  12005. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12006. 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"
  12007. 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"
  12008. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12009. 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"
  12010. 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"
  12011. fi
  12012. else
  12013. ld_shlibs_CXX=no
  12014. fi
  12015. ;;
  12016. os2*)
  12017. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12018. hardcode_minus_L_CXX=yes
  12019. allow_undefined_flag_CXX=unsupported
  12020. shrext_cmds=.dll
  12021. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12022. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12023. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12024. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12025. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12026. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12027. emximp -o $lib $output_objdir/$libname.def'
  12028. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12029. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12030. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12031. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12032. prefix_cmds="$SED"~
  12033. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12034. prefix_cmds="$prefix_cmds -e 1d";
  12035. fi~
  12036. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12037. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12038. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12039. emximp -o $lib $output_objdir/$libname.def'
  12040. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12041. enable_shared_with_static_runtimes_CXX=yes
  12042. file_list_spec_CXX='@'
  12043. ;;
  12044. dgux*)
  12045. case $cc_basename in
  12046. ec++*)
  12047. # FIXME: insert proper C++ library support
  12048. ld_shlibs_CXX=no
  12049. ;;
  12050. ghcx*)
  12051. # Green Hills C++ Compiler
  12052. # FIXME: insert proper C++ library support
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. *)
  12056. # FIXME: insert proper C++ library support
  12057. ld_shlibs_CXX=no
  12058. ;;
  12059. esac
  12060. ;;
  12061. freebsd2.*)
  12062. # C++ shared libraries reported to be fairly broken before
  12063. # switch to ELF
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. freebsd-elf*)
  12067. archive_cmds_need_lc_CXX=no
  12068. ;;
  12069. freebsd* | dragonfly* | midnightbsd*)
  12070. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12071. # conventions
  12072. ld_shlibs_CXX=yes
  12073. ;;
  12074. haiku*)
  12075. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12076. link_all_deplibs_CXX=yes
  12077. ;;
  12078. hpux9*)
  12079. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12080. hardcode_libdir_separator_CXX=:
  12081. export_dynamic_flag_spec_CXX='$wl-E'
  12082. hardcode_direct_CXX=yes
  12083. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12084. # but as the default
  12085. # location of the library.
  12086. case $cc_basename in
  12087. CC*)
  12088. # FIXME: insert proper C++ library support
  12089. ld_shlibs_CXX=no
  12090. ;;
  12091. aCC*)
  12092. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12093. # Commands to make compiler produce verbose output that lists
  12094. # what "hidden" libraries, object files and flags are used when
  12095. # linking a shared library.
  12096. #
  12097. # There doesn't appear to be a way to prevent this compiler from
  12098. # explicitly linking system object files so we need to strip them
  12099. # from the output so that they don't get included in the library
  12100. # dependencies.
  12101. 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"'
  12102. ;;
  12103. *)
  12104. if test yes = "$GXX"; then
  12105. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12106. else
  12107. # FIXME: insert proper C++ library support
  12108. ld_shlibs_CXX=no
  12109. fi
  12110. ;;
  12111. esac
  12112. ;;
  12113. hpux10*|hpux11*)
  12114. if test no = "$with_gnu_ld"; then
  12115. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12116. hardcode_libdir_separator_CXX=:
  12117. case $host_cpu in
  12118. hppa*64*|ia64*)
  12119. ;;
  12120. *)
  12121. export_dynamic_flag_spec_CXX='$wl-E'
  12122. ;;
  12123. esac
  12124. fi
  12125. case $host_cpu in
  12126. hppa*64*|ia64*)
  12127. hardcode_direct_CXX=no
  12128. hardcode_shlibpath_var_CXX=no
  12129. ;;
  12130. *)
  12131. hardcode_direct_CXX=yes
  12132. hardcode_direct_absolute_CXX=yes
  12133. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12134. # but as the default
  12135. # location of the library.
  12136. ;;
  12137. esac
  12138. case $cc_basename in
  12139. CC*)
  12140. # FIXME: insert proper C++ library support
  12141. ld_shlibs_CXX=no
  12142. ;;
  12143. aCC*)
  12144. case $host_cpu in
  12145. hppa*64*)
  12146. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12147. ;;
  12148. ia64*)
  12149. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12150. ;;
  12151. *)
  12152. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12153. ;;
  12154. esac
  12155. # Commands to make compiler produce verbose output that lists
  12156. # what "hidden" libraries, object files and flags are used when
  12157. # linking a shared library.
  12158. #
  12159. # There doesn't appear to be a way to prevent this compiler from
  12160. # explicitly linking system object files so we need to strip them
  12161. # from the output so that they don't get included in the library
  12162. # dependencies.
  12163. 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"'
  12164. ;;
  12165. *)
  12166. if test yes = "$GXX"; then
  12167. if test no = "$with_gnu_ld"; then
  12168. case $host_cpu in
  12169. hppa*64*)
  12170. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12171. ;;
  12172. ia64*)
  12173. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12174. ;;
  12175. *)
  12176. 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'
  12177. ;;
  12178. esac
  12179. fi
  12180. else
  12181. # FIXME: insert proper C++ library support
  12182. ld_shlibs_CXX=no
  12183. fi
  12184. ;;
  12185. esac
  12186. ;;
  12187. interix[3-9]*)
  12188. hardcode_direct_CXX=no
  12189. hardcode_shlibpath_var_CXX=no
  12190. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12191. export_dynamic_flag_spec_CXX='$wl-E'
  12192. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12193. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12194. # default) and relocated if they conflict, which is a slow very memory
  12195. # consuming and fragmenting process. To avoid this, we pick a random,
  12196. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12197. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12198. 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'
  12199. 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'
  12200. ;;
  12201. irix5* | irix6*)
  12202. case $cc_basename in
  12203. CC*)
  12204. # SGI C++
  12205. 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'
  12206. # Archives containing C++ object files must be created using
  12207. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12208. # necessary to make sure instantiated templates are included
  12209. # in the archive.
  12210. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12211. ;;
  12212. *)
  12213. if test yes = "$GXX"; then
  12214. if test no = "$with_gnu_ld"; then
  12215. 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'
  12216. else
  12217. 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'
  12218. fi
  12219. fi
  12220. link_all_deplibs_CXX=yes
  12221. ;;
  12222. esac
  12223. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12224. hardcode_libdir_separator_CXX=:
  12225. inherit_rpath_CXX=yes
  12226. ;;
  12227. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12228. case $cc_basename in
  12229. KCC*)
  12230. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12231. # KCC will only create a shared library if the output file
  12232. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12233. # to its proper name (with version) after linking.
  12234. 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'
  12235. 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'
  12236. # Commands to make compiler produce verbose output that lists
  12237. # what "hidden" libraries, object files and flags are used when
  12238. # linking a shared library.
  12239. #
  12240. # There doesn't appear to be a way to prevent this compiler from
  12241. # explicitly linking system object files so we need to strip them
  12242. # from the output so that they don't get included in the library
  12243. # dependencies.
  12244. 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"'
  12245. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12246. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12247. # Archives containing C++ object files must be created using
  12248. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12249. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12250. ;;
  12251. icpc* | ecpc* )
  12252. # Intel C++
  12253. with_gnu_ld=yes
  12254. # version 8.0 and above of icpc choke on multiply defined symbols
  12255. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12256. # earlier do not add the objects themselves.
  12257. case `$CC -V 2>&1` in
  12258. *"Version 7."*)
  12259. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12260. 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'
  12261. ;;
  12262. *) # Version 8.0 or newer
  12263. tmp_idyn=
  12264. case $host_cpu in
  12265. ia64*) tmp_idyn=' -i_dynamic';;
  12266. esac
  12267. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12268. 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'
  12269. ;;
  12270. esac
  12271. archive_cmds_need_lc_CXX=no
  12272. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12273. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12274. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12275. ;;
  12276. pgCC* | pgcpp*)
  12277. # Portland Group C++ compiler
  12278. case `$CC -V` in
  12279. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12280. prelink_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12283. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12284. old_archive_cmds_CXX='tpldir=Template.dir~
  12285. rm -rf $tpldir~
  12286. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12287. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12288. $RANLIB $oldlib'
  12289. archive_cmds_CXX='tpldir=Template.dir~
  12290. rm -rf $tpldir~
  12291. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12292. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12293. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12294. rm -rf $tpldir~
  12295. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12296. $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'
  12297. ;;
  12298. *) # Version 6 and above use weak symbols
  12299. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12300. 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'
  12301. ;;
  12302. esac
  12303. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12304. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12305. 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'
  12306. ;;
  12307. cxx*)
  12308. # Compaq C++
  12309. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12310. 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'
  12311. runpath_var=LD_RUN_PATH
  12312. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12313. hardcode_libdir_separator_CXX=:
  12314. # Commands to make compiler produce verbose output that lists
  12315. # what "hidden" libraries, object files and flags are used when
  12316. # linking a shared library.
  12317. #
  12318. # There doesn't appear to be a way to prevent this compiler from
  12319. # explicitly linking system object files so we need to strip them
  12320. # from the output so that they don't get included in the library
  12321. # dependencies.
  12322. 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'
  12323. ;;
  12324. xl* | mpixl* | bgxl*)
  12325. # IBM XL 8.0 on PPC, with GNU ld
  12326. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12327. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12328. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12329. if test yes = "$supports_anon_versioning"; then
  12330. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12331. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12332. echo "local: *; };" >> $output_objdir/$libname.ver~
  12333. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12334. fi
  12335. ;;
  12336. *)
  12337. case `$CC -V 2>&1 | sed 5q` in
  12338. *Sun\ C*)
  12339. # Sun C++ 5.9
  12340. no_undefined_flag_CXX=' -zdefs'
  12341. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12342. 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'
  12343. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12344. 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'
  12345. compiler_needs_object_CXX=yes
  12346. # Not sure whether something based on
  12347. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12348. # would be better.
  12349. output_verbose_link_cmd='func_echo_all'
  12350. # Archives containing C++ object files must be created using
  12351. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12352. # necessary to make sure instantiated templates are included
  12353. # in the archive.
  12354. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12355. ;;
  12356. esac
  12357. ;;
  12358. esac
  12359. ;;
  12360. lynxos*)
  12361. # FIXME: insert proper C++ library support
  12362. ld_shlibs_CXX=no
  12363. ;;
  12364. m88k*)
  12365. # FIXME: insert proper C++ library support
  12366. ld_shlibs_CXX=no
  12367. ;;
  12368. mvs*)
  12369. case $cc_basename in
  12370. cxx*)
  12371. # FIXME: insert proper C++ library support
  12372. ld_shlibs_CXX=no
  12373. ;;
  12374. *)
  12375. # FIXME: insert proper C++ library support
  12376. ld_shlibs_CXX=no
  12377. ;;
  12378. esac
  12379. ;;
  12380. netbsd*)
  12381. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12382. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12383. wlarc=
  12384. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12385. hardcode_direct_CXX=yes
  12386. hardcode_shlibpath_var_CXX=no
  12387. fi
  12388. # Workaround some broken pre-1.5 toolchains
  12389. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12390. ;;
  12391. *nto* | *qnx*)
  12392. ld_shlibs_CXX=yes
  12393. ;;
  12394. openbsd* | bitrig*)
  12395. if test -f /usr/libexec/ld.so; then
  12396. hardcode_direct_CXX=yes
  12397. hardcode_shlibpath_var_CXX=no
  12398. hardcode_direct_absolute_CXX=yes
  12399. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12400. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12401. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12402. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12403. export_dynamic_flag_spec_CXX='$wl-E'
  12404. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12405. fi
  12406. output_verbose_link_cmd=func_echo_all
  12407. else
  12408. ld_shlibs_CXX=no
  12409. fi
  12410. ;;
  12411. osf3* | osf4* | osf5*)
  12412. case $cc_basename in
  12413. KCC*)
  12414. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12415. # KCC will only create a shared library if the output file
  12416. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12417. # to its proper name (with version) after linking.
  12418. 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'
  12419. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12420. hardcode_libdir_separator_CXX=:
  12421. # Archives containing C++ object files must be created using
  12422. # the KAI C++ compiler.
  12423. case $host in
  12424. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12425. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12426. esac
  12427. ;;
  12428. RCC*)
  12429. # Rational C++ 2.4.1
  12430. # FIXME: insert proper C++ library support
  12431. ld_shlibs_CXX=no
  12432. ;;
  12433. cxx*)
  12434. case $host in
  12435. osf3*)
  12436. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12437. 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'
  12438. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12439. ;;
  12440. *)
  12441. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12442. 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'
  12443. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12444. echo "-hidden">> $lib.exp~
  12445. $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~
  12446. $RM $lib.exp'
  12447. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12448. ;;
  12449. esac
  12450. hardcode_libdir_separator_CXX=:
  12451. # Commands to make compiler produce verbose output that lists
  12452. # what "hidden" libraries, object files and flags are used when
  12453. # linking a shared library.
  12454. #
  12455. # There doesn't appear to be a way to prevent this compiler from
  12456. # explicitly linking system object files so we need to strip them
  12457. # from the output so that they don't get included in the library
  12458. # dependencies.
  12459. 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"'
  12460. ;;
  12461. *)
  12462. if test yes,no = "$GXX,$with_gnu_ld"; then
  12463. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12464. case $host in
  12465. osf3*)
  12466. 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'
  12467. ;;
  12468. *)
  12469. 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'
  12470. ;;
  12471. esac
  12472. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12473. hardcode_libdir_separator_CXX=:
  12474. # Commands to make compiler produce verbose output that lists
  12475. # what "hidden" libraries, object files and flags are used when
  12476. # linking a shared library.
  12477. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12478. else
  12479. # FIXME: insert proper C++ library support
  12480. ld_shlibs_CXX=no
  12481. fi
  12482. ;;
  12483. esac
  12484. ;;
  12485. psos*)
  12486. # FIXME: insert proper C++ library support
  12487. ld_shlibs_CXX=no
  12488. ;;
  12489. sunos4*)
  12490. case $cc_basename in
  12491. CC*)
  12492. # Sun C++ 4.x
  12493. # FIXME: insert proper C++ library support
  12494. ld_shlibs_CXX=no
  12495. ;;
  12496. lcc*)
  12497. # Lucid
  12498. # FIXME: insert proper C++ library support
  12499. ld_shlibs_CXX=no
  12500. ;;
  12501. *)
  12502. # FIXME: insert proper C++ library support
  12503. ld_shlibs_CXX=no
  12504. ;;
  12505. esac
  12506. ;;
  12507. solaris*)
  12508. case $cc_basename in
  12509. CC* | sunCC*)
  12510. # Sun C++ 4.2, 5.x and Centerline C++
  12511. archive_cmds_need_lc_CXX=yes
  12512. no_undefined_flag_CXX=' -zdefs'
  12513. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12514. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12515. $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'
  12516. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12517. hardcode_shlibpath_var_CXX=no
  12518. case $host_os in
  12519. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12520. *)
  12521. # The compiler driver will combine and reorder linker options,
  12522. # but understands '-z linker_flag'.
  12523. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12524. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12525. ;;
  12526. esac
  12527. link_all_deplibs_CXX=yes
  12528. output_verbose_link_cmd='func_echo_all'
  12529. # Archives containing C++ object files must be created using
  12530. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12531. # necessary to make sure instantiated templates are included
  12532. # in the archive.
  12533. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12534. ;;
  12535. gcx*)
  12536. # Green Hills C++ Compiler
  12537. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12538. # The C++ compiler must be used to create the archive.
  12539. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12540. ;;
  12541. *)
  12542. # GNU C++ compiler with Solaris linker
  12543. if test yes,no = "$GXX,$with_gnu_ld"; then
  12544. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12545. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12546. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12547. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12548. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12549. # Commands to make compiler produce verbose output that lists
  12550. # what "hidden" libraries, object files and flags are used when
  12551. # linking a shared library.
  12552. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12553. else
  12554. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12555. # platform.
  12556. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12557. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12558. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12559. # Commands to make compiler produce verbose output that lists
  12560. # what "hidden" libraries, object files and flags are used when
  12561. # linking a shared library.
  12562. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12563. fi
  12564. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12565. case $host_os in
  12566. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12567. *)
  12568. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12569. ;;
  12570. esac
  12571. fi
  12572. ;;
  12573. esac
  12574. ;;
  12575. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12576. no_undefined_flag_CXX='$wl-z,text'
  12577. archive_cmds_need_lc_CXX=no
  12578. hardcode_shlibpath_var_CXX=no
  12579. runpath_var='LD_RUN_PATH'
  12580. case $cc_basename in
  12581. CC*)
  12582. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12583. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. ;;
  12585. *)
  12586. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12587. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12588. ;;
  12589. esac
  12590. ;;
  12591. sysv5* | sco3.2v5* | sco5v6*)
  12592. # Note: We CANNOT use -z defs as we might desire, because we do not
  12593. # link with -lc, and that would cause any symbols used from libc to
  12594. # always be unresolved, which means just about no library would
  12595. # ever link correctly. If we're not using GNU ld we use -z text
  12596. # though, which does catch some bad symbols but isn't as heavy-handed
  12597. # as -z defs.
  12598. no_undefined_flag_CXX='$wl-z,text'
  12599. allow_undefined_flag_CXX='$wl-z,nodefs'
  12600. archive_cmds_need_lc_CXX=no
  12601. hardcode_shlibpath_var_CXX=no
  12602. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12603. hardcode_libdir_separator_CXX=':'
  12604. link_all_deplibs_CXX=yes
  12605. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12606. runpath_var='LD_RUN_PATH'
  12607. case $cc_basename in
  12608. CC*)
  12609. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12610. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12611. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12612. '"$old_archive_cmds_CXX"
  12613. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12614. '"$reload_cmds_CXX"
  12615. ;;
  12616. *)
  12617. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12618. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12619. ;;
  12620. esac
  12621. ;;
  12622. tandem*)
  12623. case $cc_basename in
  12624. NCC*)
  12625. # NonStop-UX NCC 3.20
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. ;;
  12629. *)
  12630. # FIXME: insert proper C++ library support
  12631. ld_shlibs_CXX=no
  12632. ;;
  12633. esac
  12634. ;;
  12635. vxworks*)
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. ;;
  12639. *)
  12640. # FIXME: insert proper C++ library support
  12641. ld_shlibs_CXX=no
  12642. ;;
  12643. esac
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12645. $as_echo "$ld_shlibs_CXX" >&6; }
  12646. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12647. GCC_CXX=$GXX
  12648. LD_CXX=$LD
  12649. ## CAVEAT EMPTOR:
  12650. ## There is no encapsulation within the following macros, do not change
  12651. ## the running order or otherwise move them around unless you know exactly
  12652. ## what you are doing...
  12653. # Dependencies to place before and after the object being linked:
  12654. predep_objects_CXX=
  12655. postdep_objects_CXX=
  12656. predeps_CXX=
  12657. postdeps_CXX=
  12658. compiler_lib_search_path_CXX=
  12659. cat > conftest.$ac_ext <<_LT_EOF
  12660. class Foo
  12661. {
  12662. public:
  12663. Foo (void) { a = 0; }
  12664. private:
  12665. int a;
  12666. };
  12667. _LT_EOF
  12668. _lt_libdeps_save_CFLAGS=$CFLAGS
  12669. case "$CC $CFLAGS " in #(
  12670. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12671. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12672. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12673. esac
  12674. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12675. (eval $ac_compile) 2>&5
  12676. ac_status=$?
  12677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12678. test $ac_status = 0; }; then
  12679. # Parse the compiler output and extract the necessary
  12680. # objects, libraries and library flags.
  12681. # Sentinel used to keep track of whether or not we are before
  12682. # the conftest object file.
  12683. pre_test_object_deps_done=no
  12684. for p in `eval "$output_verbose_link_cmd"`; do
  12685. case $prev$p in
  12686. -L* | -R* | -l*)
  12687. # Some compilers place space between "-{L,R}" and the path.
  12688. # Remove the space.
  12689. if test x-L = "x$p" ||
  12690. test x-R = "x$p" ||
  12691. test x-l = "x$p"; then
  12692. prev=$p
  12693. continue
  12694. fi
  12695. # Expand the sysroot to ease extracting the directories later.
  12696. if test -z "$prev"; then
  12697. case $p in
  12698. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12699. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12700. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12701. esac
  12702. fi
  12703. case $p in
  12704. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12705. esac
  12706. if test no = "$pre_test_object_deps_done"; then
  12707. case $prev in
  12708. -L | -R)
  12709. # Internal compiler library paths should come after those
  12710. # provided the user. The postdeps already come after the
  12711. # user supplied libs so there is no need to process them.
  12712. if test -z "$compiler_lib_search_path_CXX"; then
  12713. compiler_lib_search_path_CXX=$prev$p
  12714. else
  12715. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12716. fi
  12717. ;;
  12718. # The "-l" case would never come before the object being
  12719. # linked, so don't bother handling this case.
  12720. esac
  12721. else
  12722. if test -z "$postdeps_CXX"; then
  12723. postdeps_CXX=$prev$p
  12724. else
  12725. postdeps_CXX="${postdeps_CXX} $prev$p"
  12726. fi
  12727. fi
  12728. prev=
  12729. ;;
  12730. *.lto.$objext) ;; # Ignore GCC LTO objects
  12731. *.$objext)
  12732. # This assumes that the test object file only shows up
  12733. # once in the compiler output.
  12734. if test "$p" = "conftest.$objext"; then
  12735. pre_test_object_deps_done=yes
  12736. continue
  12737. fi
  12738. if test no = "$pre_test_object_deps_done"; then
  12739. if test -z "$predep_objects_CXX"; then
  12740. predep_objects_CXX=$p
  12741. else
  12742. predep_objects_CXX="$predep_objects_CXX $p"
  12743. fi
  12744. else
  12745. if test -z "$postdep_objects_CXX"; then
  12746. postdep_objects_CXX=$p
  12747. else
  12748. postdep_objects_CXX="$postdep_objects_CXX $p"
  12749. fi
  12750. fi
  12751. ;;
  12752. *) ;; # Ignore the rest.
  12753. esac
  12754. done
  12755. # Clean up.
  12756. rm -f a.out a.exe
  12757. else
  12758. echo "libtool.m4: error: problem compiling CXX test program"
  12759. fi
  12760. $RM -f confest.$objext
  12761. CFLAGS=$_lt_libdeps_save_CFLAGS
  12762. # PORTME: override above test on systems where it is broken
  12763. case $host_os in
  12764. interix[3-9]*)
  12765. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12766. # hack all around it, let's just trust "g++" to DTRT.
  12767. predep_objects_CXX=
  12768. postdep_objects_CXX=
  12769. postdeps_CXX=
  12770. ;;
  12771. esac
  12772. case " $postdeps_CXX " in
  12773. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12774. esac
  12775. compiler_lib_search_dirs_CXX=
  12776. if test -n "${compiler_lib_search_path_CXX}"; then
  12777. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12778. fi
  12779. lt_prog_compiler_wl_CXX=
  12780. lt_prog_compiler_pic_CXX=
  12781. lt_prog_compiler_static_CXX=
  12782. # C++ specific cases for pic, static, wl, etc.
  12783. if test yes = "$GXX"; then
  12784. lt_prog_compiler_wl_CXX='-Wl,'
  12785. lt_prog_compiler_static_CXX='-static'
  12786. case $host_os in
  12787. aix*)
  12788. # All AIX code is PIC.
  12789. if test ia64 = "$host_cpu"; then
  12790. # AIX 5 now supports IA64 processor
  12791. lt_prog_compiler_static_CXX='-Bstatic'
  12792. fi
  12793. lt_prog_compiler_pic_CXX='-fPIC'
  12794. ;;
  12795. amigaos*)
  12796. case $host_cpu in
  12797. powerpc)
  12798. # see comment about AmigaOS4 .so support
  12799. lt_prog_compiler_pic_CXX='-fPIC'
  12800. ;;
  12801. m68k)
  12802. # FIXME: we need at least 68020 code to build shared libraries, but
  12803. # adding the '-m68020' flag to GCC prevents building anything better,
  12804. # like '-m68040'.
  12805. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12806. ;;
  12807. esac
  12808. ;;
  12809. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12810. # PIC is the default for these OSes.
  12811. ;;
  12812. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12813. # This hack is so that the source file can tell whether it is being
  12814. # built for inclusion in a dll (and should export symbols for example).
  12815. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12816. # (--disable-auto-import) libraries
  12817. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12818. case $host_os in
  12819. os2*)
  12820. lt_prog_compiler_static_CXX='$wl-static'
  12821. ;;
  12822. esac
  12823. ;;
  12824. darwin* | rhapsody*)
  12825. # PIC is the default on this platform
  12826. # Common symbols not allowed in MH_DYLIB files
  12827. lt_prog_compiler_pic_CXX='-fno-common'
  12828. ;;
  12829. *djgpp*)
  12830. # DJGPP does not support shared libraries at all
  12831. lt_prog_compiler_pic_CXX=
  12832. ;;
  12833. haiku*)
  12834. # PIC is the default for Haiku.
  12835. # The "-static" flag exists, but is broken.
  12836. lt_prog_compiler_static_CXX=
  12837. ;;
  12838. interix[3-9]*)
  12839. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12840. # Instead, we relocate shared libraries at runtime.
  12841. ;;
  12842. sysv4*MP*)
  12843. if test -d /usr/nec; then
  12844. lt_prog_compiler_pic_CXX=-Kconform_pic
  12845. fi
  12846. ;;
  12847. hpux*)
  12848. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12849. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12850. # sets the default TLS model and affects inlining.
  12851. case $host_cpu in
  12852. hppa*64*)
  12853. ;;
  12854. *)
  12855. lt_prog_compiler_pic_CXX='-fPIC'
  12856. ;;
  12857. esac
  12858. ;;
  12859. *qnx* | *nto*)
  12860. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12861. # it will coredump.
  12862. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12863. ;;
  12864. *)
  12865. lt_prog_compiler_pic_CXX='-fPIC'
  12866. ;;
  12867. esac
  12868. else
  12869. case $host_os in
  12870. aix[4-9]*)
  12871. # All AIX code is PIC.
  12872. if test ia64 = "$host_cpu"; then
  12873. # AIX 5 now supports IA64 processor
  12874. lt_prog_compiler_static_CXX='-Bstatic'
  12875. else
  12876. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12877. fi
  12878. ;;
  12879. chorus*)
  12880. case $cc_basename in
  12881. cxch68*)
  12882. # Green Hills C++ Compiler
  12883. # _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"
  12884. ;;
  12885. esac
  12886. ;;
  12887. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12888. # This hack is so that the source file can tell whether it is being
  12889. # built for inclusion in a dll (and should export symbols for example).
  12890. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12891. ;;
  12892. dgux*)
  12893. case $cc_basename in
  12894. ec++*)
  12895. lt_prog_compiler_pic_CXX='-KPIC'
  12896. ;;
  12897. ghcx*)
  12898. # Green Hills C++ Compiler
  12899. lt_prog_compiler_pic_CXX='-pic'
  12900. ;;
  12901. *)
  12902. ;;
  12903. esac
  12904. ;;
  12905. freebsd* | dragonfly* | midnightbsd*)
  12906. # FreeBSD uses GNU C++
  12907. ;;
  12908. hpux9* | hpux10* | hpux11*)
  12909. case $cc_basename in
  12910. CC*)
  12911. lt_prog_compiler_wl_CXX='-Wl,'
  12912. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12913. if test ia64 != "$host_cpu"; then
  12914. lt_prog_compiler_pic_CXX='+Z'
  12915. fi
  12916. ;;
  12917. aCC*)
  12918. lt_prog_compiler_wl_CXX='-Wl,'
  12919. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12920. case $host_cpu in
  12921. hppa*64*|ia64*)
  12922. # +Z the default
  12923. ;;
  12924. *)
  12925. lt_prog_compiler_pic_CXX='+Z'
  12926. ;;
  12927. esac
  12928. ;;
  12929. *)
  12930. ;;
  12931. esac
  12932. ;;
  12933. interix*)
  12934. # This is c89, which is MS Visual C++ (no shared libs)
  12935. # Anyone wants to do a port?
  12936. ;;
  12937. irix5* | irix6* | nonstopux*)
  12938. case $cc_basename in
  12939. CC*)
  12940. lt_prog_compiler_wl_CXX='-Wl,'
  12941. lt_prog_compiler_static_CXX='-non_shared'
  12942. # CC pic flag -KPIC is the default.
  12943. ;;
  12944. *)
  12945. ;;
  12946. esac
  12947. ;;
  12948. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12949. case $cc_basename in
  12950. KCC*)
  12951. # KAI C++ Compiler
  12952. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12953. lt_prog_compiler_pic_CXX='-fPIC'
  12954. ;;
  12955. ecpc* )
  12956. # old Intel C++ for x86_64, which still supported -KPIC.
  12957. lt_prog_compiler_wl_CXX='-Wl,'
  12958. lt_prog_compiler_pic_CXX='-KPIC'
  12959. lt_prog_compiler_static_CXX='-static'
  12960. ;;
  12961. icpc* )
  12962. # Intel C++, used to be incompatible with GCC.
  12963. # ICC 10 doesn't accept -KPIC any more.
  12964. lt_prog_compiler_wl_CXX='-Wl,'
  12965. lt_prog_compiler_pic_CXX='-fPIC'
  12966. lt_prog_compiler_static_CXX='-static'
  12967. ;;
  12968. pgCC* | pgcpp*)
  12969. # Portland Group C++ compiler
  12970. lt_prog_compiler_wl_CXX='-Wl,'
  12971. lt_prog_compiler_pic_CXX='-fpic'
  12972. lt_prog_compiler_static_CXX='-Bstatic'
  12973. ;;
  12974. cxx*)
  12975. # Compaq C++
  12976. # Make sure the PIC flag is empty. It appears that all Alpha
  12977. # Linux and Compaq Tru64 Unix objects are PIC.
  12978. lt_prog_compiler_pic_CXX=
  12979. lt_prog_compiler_static_CXX='-non_shared'
  12980. ;;
  12981. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12982. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12983. lt_prog_compiler_wl_CXX='-Wl,'
  12984. lt_prog_compiler_pic_CXX='-qpic'
  12985. lt_prog_compiler_static_CXX='-qstaticlink'
  12986. ;;
  12987. *)
  12988. case `$CC -V 2>&1 | sed 5q` in
  12989. *Sun\ C*)
  12990. # Sun C++ 5.9
  12991. lt_prog_compiler_pic_CXX='-KPIC'
  12992. lt_prog_compiler_static_CXX='-Bstatic'
  12993. lt_prog_compiler_wl_CXX='-Qoption ld '
  12994. ;;
  12995. esac
  12996. ;;
  12997. esac
  12998. ;;
  12999. lynxos*)
  13000. ;;
  13001. m88k*)
  13002. ;;
  13003. mvs*)
  13004. case $cc_basename in
  13005. cxx*)
  13006. lt_prog_compiler_pic_CXX='-W c,exportall'
  13007. ;;
  13008. *)
  13009. ;;
  13010. esac
  13011. ;;
  13012. netbsd*)
  13013. ;;
  13014. *qnx* | *nto*)
  13015. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13016. # it will coredump.
  13017. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13018. ;;
  13019. osf3* | osf4* | osf5*)
  13020. case $cc_basename in
  13021. KCC*)
  13022. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13023. ;;
  13024. RCC*)
  13025. # Rational C++ 2.4.1
  13026. lt_prog_compiler_pic_CXX='-pic'
  13027. ;;
  13028. cxx*)
  13029. # Digital/Compaq C++
  13030. lt_prog_compiler_wl_CXX='-Wl,'
  13031. # Make sure the PIC flag is empty. It appears that all Alpha
  13032. # Linux and Compaq Tru64 Unix objects are PIC.
  13033. lt_prog_compiler_pic_CXX=
  13034. lt_prog_compiler_static_CXX='-non_shared'
  13035. ;;
  13036. *)
  13037. ;;
  13038. esac
  13039. ;;
  13040. psos*)
  13041. ;;
  13042. solaris*)
  13043. case $cc_basename in
  13044. CC* | sunCC*)
  13045. # Sun C++ 4.2, 5.x and Centerline C++
  13046. lt_prog_compiler_pic_CXX='-KPIC'
  13047. lt_prog_compiler_static_CXX='-Bstatic'
  13048. lt_prog_compiler_wl_CXX='-Qoption ld '
  13049. ;;
  13050. gcx*)
  13051. # Green Hills C++ Compiler
  13052. lt_prog_compiler_pic_CXX='-PIC'
  13053. ;;
  13054. *)
  13055. ;;
  13056. esac
  13057. ;;
  13058. sunos4*)
  13059. case $cc_basename in
  13060. CC*)
  13061. # Sun C++ 4.x
  13062. lt_prog_compiler_pic_CXX='-pic'
  13063. lt_prog_compiler_static_CXX='-Bstatic'
  13064. ;;
  13065. lcc*)
  13066. # Lucid
  13067. lt_prog_compiler_pic_CXX='-pic'
  13068. ;;
  13069. *)
  13070. ;;
  13071. esac
  13072. ;;
  13073. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13074. case $cc_basename in
  13075. CC*)
  13076. lt_prog_compiler_wl_CXX='-Wl,'
  13077. lt_prog_compiler_pic_CXX='-KPIC'
  13078. lt_prog_compiler_static_CXX='-Bstatic'
  13079. ;;
  13080. esac
  13081. ;;
  13082. tandem*)
  13083. case $cc_basename in
  13084. NCC*)
  13085. # NonStop-UX NCC 3.20
  13086. lt_prog_compiler_pic_CXX='-KPIC'
  13087. ;;
  13088. *)
  13089. ;;
  13090. esac
  13091. ;;
  13092. vxworks*)
  13093. ;;
  13094. *)
  13095. lt_prog_compiler_can_build_shared_CXX=no
  13096. ;;
  13097. esac
  13098. fi
  13099. case $host_os in
  13100. # For platforms that do not support PIC, -DPIC is meaningless:
  13101. *djgpp*)
  13102. lt_prog_compiler_pic_CXX=
  13103. ;;
  13104. *)
  13105. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13106. ;;
  13107. esac
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13109. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13110. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13111. $as_echo_n "(cached) " >&6
  13112. else
  13113. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13114. fi
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13116. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13117. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13118. #
  13119. # Check to make sure the PIC flag actually works.
  13120. #
  13121. if test -n "$lt_prog_compiler_pic_CXX"; then
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13123. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13124. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13125. $as_echo_n "(cached) " >&6
  13126. else
  13127. lt_cv_prog_compiler_pic_works_CXX=no
  13128. ac_outfile=conftest.$ac_objext
  13129. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13130. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13131. # Insert the option either (1) after the last *FLAGS variable, or
  13132. # (2) before a word containing "conftest.", or (3) at the end.
  13133. # Note that $ac_compile itself does not contain backslashes and begins
  13134. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13135. # The option is referenced via a variable to avoid confusing sed.
  13136. lt_compile=`echo "$ac_compile" | $SED \
  13137. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13138. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13139. -e 's:$: $lt_compiler_flag:'`
  13140. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13141. (eval "$lt_compile" 2>conftest.err)
  13142. ac_status=$?
  13143. cat conftest.err >&5
  13144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13145. if (exit $ac_status) && test -s "$ac_outfile"; then
  13146. # The compiler can only warn and ignore the option if not recognized
  13147. # So say no if there are warnings other than the usual output.
  13148. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13149. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13150. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13151. lt_cv_prog_compiler_pic_works_CXX=yes
  13152. fi
  13153. fi
  13154. $RM conftest*
  13155. fi
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13157. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13158. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13159. case $lt_prog_compiler_pic_CXX in
  13160. "" | " "*) ;;
  13161. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13162. esac
  13163. else
  13164. lt_prog_compiler_pic_CXX=
  13165. lt_prog_compiler_can_build_shared_CXX=no
  13166. fi
  13167. fi
  13168. #
  13169. # Check to make sure the static flag actually works.
  13170. #
  13171. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13173. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13174. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13175. $as_echo_n "(cached) " >&6
  13176. else
  13177. lt_cv_prog_compiler_static_works_CXX=no
  13178. save_LDFLAGS=$LDFLAGS
  13179. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13180. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13181. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13182. # The linker can only warn and ignore the option if not recognized
  13183. # So say no if there are warnings
  13184. if test -s conftest.err; then
  13185. # Append any errors to the config.log.
  13186. cat conftest.err 1>&5
  13187. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13189. if diff conftest.exp conftest.er2 >/dev/null; then
  13190. lt_cv_prog_compiler_static_works_CXX=yes
  13191. fi
  13192. else
  13193. lt_cv_prog_compiler_static_works_CXX=yes
  13194. fi
  13195. fi
  13196. $RM -r conftest*
  13197. LDFLAGS=$save_LDFLAGS
  13198. fi
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13200. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13201. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13202. :
  13203. else
  13204. lt_prog_compiler_static_CXX=
  13205. fi
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13207. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13208. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13209. $as_echo_n "(cached) " >&6
  13210. else
  13211. lt_cv_prog_compiler_c_o_CXX=no
  13212. $RM -r conftest 2>/dev/null
  13213. mkdir conftest
  13214. cd conftest
  13215. mkdir out
  13216. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13217. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13218. # Insert the option either (1) after the last *FLAGS variable, or
  13219. # (2) before a word containing "conftest.", or (3) at the end.
  13220. # Note that $ac_compile itself does not contain backslashes and begins
  13221. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13222. lt_compile=`echo "$ac_compile" | $SED \
  13223. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13224. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13225. -e 's:$: $lt_compiler_flag:'`
  13226. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13227. (eval "$lt_compile" 2>out/conftest.err)
  13228. ac_status=$?
  13229. cat out/conftest.err >&5
  13230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13231. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13232. then
  13233. # The compiler can only warn and ignore the option if not recognized
  13234. # So say no if there are warnings
  13235. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13236. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13237. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13238. lt_cv_prog_compiler_c_o_CXX=yes
  13239. fi
  13240. fi
  13241. chmod u+w . 2>&5
  13242. $RM conftest*
  13243. # SGI C++ compiler will create directory out/ii_files/ for
  13244. # template instantiation
  13245. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13246. $RM out/* && rmdir out
  13247. cd ..
  13248. $RM -r conftest
  13249. $RM conftest*
  13250. fi
  13251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13252. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13254. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13255. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13256. $as_echo_n "(cached) " >&6
  13257. else
  13258. lt_cv_prog_compiler_c_o_CXX=no
  13259. $RM -r conftest 2>/dev/null
  13260. mkdir conftest
  13261. cd conftest
  13262. mkdir out
  13263. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13264. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13265. # Insert the option either (1) after the last *FLAGS variable, or
  13266. # (2) before a word containing "conftest.", or (3) at the end.
  13267. # Note that $ac_compile itself does not contain backslashes and begins
  13268. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13269. lt_compile=`echo "$ac_compile" | $SED \
  13270. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13271. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13272. -e 's:$: $lt_compiler_flag:'`
  13273. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13274. (eval "$lt_compile" 2>out/conftest.err)
  13275. ac_status=$?
  13276. cat out/conftest.err >&5
  13277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13278. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13279. then
  13280. # The compiler can only warn and ignore the option if not recognized
  13281. # So say no if there are warnings
  13282. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13283. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13284. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13285. lt_cv_prog_compiler_c_o_CXX=yes
  13286. fi
  13287. fi
  13288. chmod u+w . 2>&5
  13289. $RM conftest*
  13290. # SGI C++ compiler will create directory out/ii_files/ for
  13291. # template instantiation
  13292. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13293. $RM out/* && rmdir out
  13294. cd ..
  13295. $RM -r conftest
  13296. $RM conftest*
  13297. fi
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13299. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13300. hard_links=nottested
  13301. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13302. # do not overwrite the value of need_locks provided by the user
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13304. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13305. hard_links=yes
  13306. $RM conftest*
  13307. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13308. touch conftest.a
  13309. ln conftest.a conftest.b 2>&5 || hard_links=no
  13310. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13312. $as_echo "$hard_links" >&6; }
  13313. if test no = "$hard_links"; then
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13315. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13316. need_locks=warn
  13317. fi
  13318. else
  13319. need_locks=no
  13320. fi
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13322. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13323. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13324. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13325. case $host_os in
  13326. aix[4-9]*)
  13327. # If we're using GNU nm, then we don't want the "-C" option.
  13328. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13329. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13330. # weak defined symbols like other global defined symbols, whereas
  13331. # GNU nm marks them as "W".
  13332. # While the 'weak' keyword is ignored in the Export File, we need
  13333. # it in the Import File for the 'aix-soname' feature, so we have
  13334. # to replace the "-B" option with "-P" for AIX nm.
  13335. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13336. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13337. else
  13338. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13339. fi
  13340. ;;
  13341. pw32*)
  13342. export_symbols_cmds_CXX=$ltdll_cmds
  13343. ;;
  13344. cygwin* | mingw* | cegcc*)
  13345. case $cc_basename in
  13346. cl*)
  13347. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13348. ;;
  13349. *)
  13350. 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'
  13351. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13352. ;;
  13353. esac
  13354. ;;
  13355. *)
  13356. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13357. ;;
  13358. esac
  13359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13360. $as_echo "$ld_shlibs_CXX" >&6; }
  13361. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13362. with_gnu_ld_CXX=$with_gnu_ld
  13363. #
  13364. # Do we need to explicitly link libc?
  13365. #
  13366. case "x$archive_cmds_need_lc_CXX" in
  13367. x|xyes)
  13368. # Assume -lc should be added
  13369. archive_cmds_need_lc_CXX=yes
  13370. if test yes,yes = "$GCC,$enable_shared"; then
  13371. case $archive_cmds_CXX in
  13372. *'~'*)
  13373. # FIXME: we may have to deal with multi-command sequences.
  13374. ;;
  13375. '$CC '*)
  13376. # Test whether the compiler implicitly links with -lc since on some
  13377. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13378. # to ld, don't add -lc before -lgcc.
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13380. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13381. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. $RM conftest*
  13385. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13387. (eval $ac_compile) 2>&5
  13388. ac_status=$?
  13389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13390. test $ac_status = 0; } 2>conftest.err; then
  13391. soname=conftest
  13392. lib=conftest
  13393. libobjs=conftest.$ac_objext
  13394. deplibs=
  13395. wl=$lt_prog_compiler_wl_CXX
  13396. pic_flag=$lt_prog_compiler_pic_CXX
  13397. compiler_flags=-v
  13398. linker_flags=-v
  13399. verstring=
  13400. output_objdir=.
  13401. libname=conftest
  13402. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13403. allow_undefined_flag_CXX=
  13404. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13405. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13406. ac_status=$?
  13407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13408. test $ac_status = 0; }
  13409. then
  13410. lt_cv_archive_cmds_need_lc_CXX=no
  13411. else
  13412. lt_cv_archive_cmds_need_lc_CXX=yes
  13413. fi
  13414. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13415. else
  13416. cat conftest.err 1>&5
  13417. fi
  13418. $RM conftest*
  13419. fi
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13421. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13422. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13423. ;;
  13424. esac
  13425. fi
  13426. ;;
  13427. esac
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13429. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13430. library_names_spec=
  13431. libname_spec='lib$name'
  13432. soname_spec=
  13433. shrext_cmds=.so
  13434. postinstall_cmds=
  13435. postuninstall_cmds=
  13436. finish_cmds=
  13437. finish_eval=
  13438. shlibpath_var=
  13439. shlibpath_overrides_runpath=unknown
  13440. version_type=none
  13441. dynamic_linker="$host_os ld.so"
  13442. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13443. need_lib_prefix=unknown
  13444. hardcode_into_libs=no
  13445. # when you set need_version to no, make sure it does not cause -set_version
  13446. # flags to be left without arguments
  13447. need_version=unknown
  13448. case $host_os in
  13449. aix3*)
  13450. version_type=linux # correct to gnu/linux during the next big refactor
  13451. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13452. shlibpath_var=LIBPATH
  13453. # AIX 3 has no versioning support, so we append a major version to the name.
  13454. soname_spec='$libname$release$shared_ext$major'
  13455. ;;
  13456. aix[4-9]*)
  13457. version_type=linux # correct to gnu/linux during the next big refactor
  13458. need_lib_prefix=no
  13459. need_version=no
  13460. hardcode_into_libs=yes
  13461. if test ia64 = "$host_cpu"; then
  13462. # AIX 5 supports IA64
  13463. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. else
  13466. # With GCC up to 2.95.x, collect2 would create an import file
  13467. # for dependence libraries. The import file would start with
  13468. # the line '#! .'. This would cause the generated library to
  13469. # depend on '.', always an invalid library. This was fixed in
  13470. # development snapshots of GCC prior to 3.0.
  13471. case $host_os in
  13472. aix4 | aix4.[01] | aix4.[01].*)
  13473. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13474. echo ' yes '
  13475. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13476. :
  13477. else
  13478. can_build_shared=no
  13479. fi
  13480. ;;
  13481. esac
  13482. # Using Import Files as archive members, it is possible to support
  13483. # filename-based versioning of shared library archives on AIX. While
  13484. # this would work for both with and without runtime linking, it will
  13485. # prevent static linking of such archives. So we do filename-based
  13486. # shared library versioning with .so extension only, which is used
  13487. # when both runtime linking and shared linking is enabled.
  13488. # Unfortunately, runtime linking may impact performance, so we do
  13489. # not want this to be the default eventually. Also, we use the
  13490. # versioned .so libs for executables only if there is the -brtl
  13491. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13492. # To allow for filename-based versioning support, we need to create
  13493. # libNAME.so.V as an archive file, containing:
  13494. # *) an Import File, referring to the versioned filename of the
  13495. # archive as well as the shared archive member, telling the
  13496. # bitwidth (32 or 64) of that shared object, and providing the
  13497. # list of exported symbols of that shared object, eventually
  13498. # decorated with the 'weak' keyword
  13499. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13500. # it being seen by the linker.
  13501. # At run time we better use the real file rather than another symlink,
  13502. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13503. case $with_aix_soname,$aix_use_runtimelinking in
  13504. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13505. # soname into executable. Probably we can add versioning support to
  13506. # collect2, so additional links can be useful in future.
  13507. aix,yes) # traditional libtool
  13508. dynamic_linker='AIX unversionable lib.so'
  13509. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13510. # instead of lib<name>.a to let people know that these are not
  13511. # typical AIX shared libraries.
  13512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13513. ;;
  13514. aix,no) # traditional AIX only
  13515. dynamic_linker='AIX lib.a(lib.so.V)'
  13516. # We preserve .a as extension for shared libraries through AIX4.2
  13517. # and later when we are not doing run time linking.
  13518. library_names_spec='$libname$release.a $libname.a'
  13519. soname_spec='$libname$release$shared_ext$major'
  13520. ;;
  13521. svr4,*) # full svr4 only
  13522. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13523. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13524. # We do not specify a path in Import Files, so LIBPATH fires.
  13525. shlibpath_overrides_runpath=yes
  13526. ;;
  13527. *,yes) # both, prefer svr4
  13528. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13529. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13530. # unpreferred sharedlib libNAME.a needs extra handling
  13531. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13532. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13533. # We do not specify a path in Import Files, so LIBPATH fires.
  13534. shlibpath_overrides_runpath=yes
  13535. ;;
  13536. *,no) # both, prefer aix
  13537. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13538. library_names_spec='$libname$release.a $libname.a'
  13539. soname_spec='$libname$release$shared_ext$major'
  13540. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13541. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13542. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13543. ;;
  13544. esac
  13545. shlibpath_var=LIBPATH
  13546. fi
  13547. ;;
  13548. amigaos*)
  13549. case $host_cpu in
  13550. powerpc)
  13551. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13552. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13554. ;;
  13555. m68k)
  13556. library_names_spec='$libname.ixlibrary $libname.a'
  13557. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13558. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13559. ;;
  13560. esac
  13561. ;;
  13562. beos*)
  13563. library_names_spec='$libname$shared_ext'
  13564. dynamic_linker="$host_os ld.so"
  13565. shlibpath_var=LIBRARY_PATH
  13566. ;;
  13567. bsdi[45]*)
  13568. version_type=linux # correct to gnu/linux during the next big refactor
  13569. need_version=no
  13570. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13571. soname_spec='$libname$release$shared_ext$major'
  13572. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13573. shlibpath_var=LD_LIBRARY_PATH
  13574. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13575. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13576. # the default ld.so.conf also contains /usr/contrib/lib and
  13577. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13578. # libtool to hard-code these into programs
  13579. ;;
  13580. cygwin* | mingw* | pw32* | cegcc*)
  13581. version_type=windows
  13582. shrext_cmds=.dll
  13583. need_version=no
  13584. need_lib_prefix=no
  13585. case $GCC,$cc_basename in
  13586. yes,*)
  13587. # gcc
  13588. library_names_spec='$libname.dll.a'
  13589. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13590. postinstall_cmds='base_file=`basename \$file`~
  13591. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13592. dldir=$destdir/`dirname \$dlpath`~
  13593. test -d \$dldir || mkdir -p \$dldir~
  13594. $install_prog $dir/$dlname \$dldir/$dlname~
  13595. chmod a+x \$dldir/$dlname~
  13596. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13597. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13598. fi'
  13599. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13600. dlpath=$dir/\$dldll~
  13601. $RM \$dlpath'
  13602. shlibpath_overrides_runpath=yes
  13603. case $host_os in
  13604. cygwin*)
  13605. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13606. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13607. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13608. ;;
  13609. mingw* | cegcc*)
  13610. # MinGW DLLs use traditional 'lib' prefix
  13611. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13612. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13613. ;;
  13614. pw32*)
  13615. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13616. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13617. ;;
  13618. esac
  13619. dynamic_linker='Win32 ld.exe'
  13620. ;;
  13621. *,cl*)
  13622. # Native MSVC
  13623. libname_spec='$name'
  13624. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13625. library_names_spec='$libname.dll.lib'
  13626. case $build_os in
  13627. mingw*)
  13628. sys_lib_search_path_spec=
  13629. lt_save_ifs=$IFS
  13630. IFS=';'
  13631. for lt_path in $LIB
  13632. do
  13633. IFS=$lt_save_ifs
  13634. # Let DOS variable expansion print the short 8.3 style file name.
  13635. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13636. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13637. done
  13638. IFS=$lt_save_ifs
  13639. # Convert to MSYS style.
  13640. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13641. ;;
  13642. cygwin*)
  13643. # Convert to unix form, then to dos form, then back to unix form
  13644. # but this time dos style (no spaces!) so that the unix form looks
  13645. # like /cygdrive/c/PROGRA~1:/cygdr...
  13646. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13647. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13648. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13649. ;;
  13650. *)
  13651. sys_lib_search_path_spec=$LIB
  13652. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13653. # It is most probably a Windows format PATH.
  13654. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13655. else
  13656. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13657. fi
  13658. # FIXME: find the short name or the path components, as spaces are
  13659. # common. (e.g. "Program Files" -> "PROGRA~1")
  13660. ;;
  13661. esac
  13662. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13663. postinstall_cmds='base_file=`basename \$file`~
  13664. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13665. dldir=$destdir/`dirname \$dlpath`~
  13666. test -d \$dldir || mkdir -p \$dldir~
  13667. $install_prog $dir/$dlname \$dldir/$dlname'
  13668. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13669. dlpath=$dir/\$dldll~
  13670. $RM \$dlpath'
  13671. shlibpath_overrides_runpath=yes
  13672. dynamic_linker='Win32 link.exe'
  13673. ;;
  13674. *)
  13675. # Assume MSVC wrapper
  13676. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13677. dynamic_linker='Win32 ld.exe'
  13678. ;;
  13679. esac
  13680. # FIXME: first we should search . and the directory the executable is in
  13681. shlibpath_var=PATH
  13682. ;;
  13683. darwin* | rhapsody*)
  13684. dynamic_linker="$host_os dyld"
  13685. version_type=darwin
  13686. need_lib_prefix=no
  13687. need_version=no
  13688. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13689. soname_spec='$libname$release$major$shared_ext'
  13690. shlibpath_overrides_runpath=yes
  13691. shlibpath_var=DYLD_LIBRARY_PATH
  13692. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13693. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13694. ;;
  13695. dgux*)
  13696. version_type=linux # correct to gnu/linux during the next big refactor
  13697. need_lib_prefix=no
  13698. need_version=no
  13699. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13700. soname_spec='$libname$release$shared_ext$major'
  13701. shlibpath_var=LD_LIBRARY_PATH
  13702. ;;
  13703. freebsd* | dragonfly* | midnightbsd*)
  13704. # DragonFly does not have aout. When/if they implement a new
  13705. # versioning mechanism, adjust this.
  13706. if test -x /usr/bin/objformat; then
  13707. objformat=`/usr/bin/objformat`
  13708. else
  13709. case $host_os in
  13710. freebsd[23].*) objformat=aout ;;
  13711. *) objformat=elf ;;
  13712. esac
  13713. fi
  13714. version_type=freebsd-$objformat
  13715. case $version_type in
  13716. freebsd-elf*)
  13717. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13718. soname_spec='$libname$release$shared_ext$major'
  13719. need_version=no
  13720. need_lib_prefix=no
  13721. ;;
  13722. freebsd-*)
  13723. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13724. need_version=yes
  13725. ;;
  13726. esac
  13727. shlibpath_var=LD_LIBRARY_PATH
  13728. case $host_os in
  13729. freebsd2.*)
  13730. shlibpath_overrides_runpath=yes
  13731. ;;
  13732. freebsd3.[01]* | freebsdelf3.[01]*)
  13733. shlibpath_overrides_runpath=yes
  13734. hardcode_into_libs=yes
  13735. ;;
  13736. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13737. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13738. shlibpath_overrides_runpath=no
  13739. hardcode_into_libs=yes
  13740. ;;
  13741. *) # from 4.6 on, and DragonFly
  13742. shlibpath_overrides_runpath=yes
  13743. hardcode_into_libs=yes
  13744. ;;
  13745. esac
  13746. ;;
  13747. haiku*)
  13748. version_type=linux # correct to gnu/linux during the next big refactor
  13749. need_lib_prefix=no
  13750. need_version=no
  13751. dynamic_linker="$host_os runtime_loader"
  13752. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13753. soname_spec='$libname$release$shared_ext$major'
  13754. shlibpath_var=LIBRARY_PATH
  13755. shlibpath_overrides_runpath=no
  13756. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13757. hardcode_into_libs=yes
  13758. ;;
  13759. hpux9* | hpux10* | hpux11*)
  13760. # Give a soname corresponding to the major version so that dld.sl refuses to
  13761. # link against other versions.
  13762. version_type=sunos
  13763. need_lib_prefix=no
  13764. need_version=no
  13765. case $host_cpu in
  13766. ia64*)
  13767. shrext_cmds='.so'
  13768. hardcode_into_libs=yes
  13769. dynamic_linker="$host_os dld.so"
  13770. shlibpath_var=LD_LIBRARY_PATH
  13771. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13772. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13773. soname_spec='$libname$release$shared_ext$major'
  13774. if test 32 = "$HPUX_IA64_MODE"; then
  13775. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13776. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13777. else
  13778. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13779. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13780. fi
  13781. ;;
  13782. hppa*64*)
  13783. shrext_cmds='.sl'
  13784. hardcode_into_libs=yes
  13785. dynamic_linker="$host_os dld.sl"
  13786. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13787. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13789. soname_spec='$libname$release$shared_ext$major'
  13790. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13791. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13792. ;;
  13793. *)
  13794. shrext_cmds='.sl'
  13795. dynamic_linker="$host_os dld.sl"
  13796. shlibpath_var=SHLIB_PATH
  13797. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13798. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13799. soname_spec='$libname$release$shared_ext$major'
  13800. ;;
  13801. esac
  13802. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13803. postinstall_cmds='chmod 555 $lib'
  13804. # or fails outright, so override atomically:
  13805. install_override_mode=555
  13806. ;;
  13807. interix[3-9]*)
  13808. version_type=linux # correct to gnu/linux during the next big refactor
  13809. need_lib_prefix=no
  13810. need_version=no
  13811. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13812. soname_spec='$libname$release$shared_ext$major'
  13813. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13814. shlibpath_var=LD_LIBRARY_PATH
  13815. shlibpath_overrides_runpath=no
  13816. hardcode_into_libs=yes
  13817. ;;
  13818. irix5* | irix6* | nonstopux*)
  13819. case $host_os in
  13820. nonstopux*) version_type=nonstopux ;;
  13821. *)
  13822. if test yes = "$lt_cv_prog_gnu_ld"; then
  13823. version_type=linux # correct to gnu/linux during the next big refactor
  13824. else
  13825. version_type=irix
  13826. fi ;;
  13827. esac
  13828. need_lib_prefix=no
  13829. need_version=no
  13830. soname_spec='$libname$release$shared_ext$major'
  13831. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13832. case $host_os in
  13833. irix5* | nonstopux*)
  13834. libsuff= shlibsuff=
  13835. ;;
  13836. *)
  13837. case $LD in # libtool.m4 will add one of these switches to LD
  13838. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13839. libsuff= shlibsuff= libmagic=32-bit;;
  13840. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13841. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13842. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13843. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13844. *) libsuff= shlibsuff= libmagic=never-match;;
  13845. esac
  13846. ;;
  13847. esac
  13848. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13849. shlibpath_overrides_runpath=no
  13850. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13851. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13852. hardcode_into_libs=yes
  13853. ;;
  13854. # No shared lib support for Linux oldld, aout, or coff.
  13855. linux*oldld* | linux*aout* | linux*coff*)
  13856. dynamic_linker=no
  13857. ;;
  13858. linux*android*)
  13859. version_type=none # Android doesn't support versioned libraries.
  13860. need_lib_prefix=no
  13861. need_version=no
  13862. library_names_spec='$libname$release$shared_ext'
  13863. soname_spec='$libname$release$shared_ext'
  13864. finish_cmds=
  13865. shlibpath_var=LD_LIBRARY_PATH
  13866. shlibpath_overrides_runpath=yes
  13867. # This implies no fast_install, which is unacceptable.
  13868. # Some rework will be needed to allow for fast_install
  13869. # before this can be enabled.
  13870. hardcode_into_libs=yes
  13871. dynamic_linker='Android linker'
  13872. # Don't embed -rpath directories since the linker doesn't support them.
  13873. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13874. ;;
  13875. # This must be glibc/ELF.
  13876. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13877. version_type=linux # correct to gnu/linux during the next big refactor
  13878. need_lib_prefix=no
  13879. need_version=no
  13880. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13881. soname_spec='$libname$release$shared_ext$major'
  13882. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13883. shlibpath_var=LD_LIBRARY_PATH
  13884. shlibpath_overrides_runpath=no
  13885. # Some binutils ld are patched to set DT_RUNPATH
  13886. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13887. $as_echo_n "(cached) " >&6
  13888. else
  13889. lt_cv_shlibpath_overrides_runpath=no
  13890. save_LDFLAGS=$LDFLAGS
  13891. save_libdir=$libdir
  13892. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13893. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13895. /* end confdefs.h. */
  13896. int
  13897. main ()
  13898. {
  13899. ;
  13900. return 0;
  13901. }
  13902. _ACEOF
  13903. if ac_fn_cxx_try_link "$LINENO"; then :
  13904. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13905. lt_cv_shlibpath_overrides_runpath=yes
  13906. fi
  13907. fi
  13908. rm -f core conftest.err conftest.$ac_objext \
  13909. conftest$ac_exeext conftest.$ac_ext
  13910. LDFLAGS=$save_LDFLAGS
  13911. libdir=$save_libdir
  13912. fi
  13913. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13914. # This implies no fast_install, which is unacceptable.
  13915. # Some rework will be needed to allow for fast_install
  13916. # before this can be enabled.
  13917. hardcode_into_libs=yes
  13918. # Add ABI-specific directories to the system library path.
  13919. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13920. # Ideally, we could use ldconfig to report *all* directores which are
  13921. # searched for libraries, however this is still not possible. Aside from not
  13922. # being certain /sbin/ldconfig is available, command
  13923. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13924. # even though it is searched at run-time. Try to do the best guess by
  13925. # appending ld.so.conf contents (and includes) to the search path.
  13926. if test -f /etc/ld.so.conf; then
  13927. 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' ' '`
  13928. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13929. fi
  13930. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13931. # powerpc, because MkLinux only supported shared libraries with the
  13932. # GNU dynamic linker. Since this was broken with cross compilers,
  13933. # most powerpc-linux boxes support dynamic linking these days and
  13934. # people can always --disable-shared, the test was removed, and we
  13935. # assume the GNU/Linux dynamic linker is in use.
  13936. dynamic_linker='GNU/Linux ld.so'
  13937. ;;
  13938. netbsd*)
  13939. version_type=sunos
  13940. need_lib_prefix=no
  13941. need_version=no
  13942. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13943. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13944. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13945. dynamic_linker='NetBSD (a.out) ld.so'
  13946. else
  13947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13948. soname_spec='$libname$release$shared_ext$major'
  13949. dynamic_linker='NetBSD ld.elf_so'
  13950. fi
  13951. shlibpath_var=LD_LIBRARY_PATH
  13952. shlibpath_overrides_runpath=yes
  13953. hardcode_into_libs=yes
  13954. ;;
  13955. newsos6)
  13956. version_type=linux # correct to gnu/linux during the next big refactor
  13957. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13958. shlibpath_var=LD_LIBRARY_PATH
  13959. shlibpath_overrides_runpath=yes
  13960. ;;
  13961. *nto* | *qnx*)
  13962. version_type=qnx
  13963. need_lib_prefix=no
  13964. need_version=no
  13965. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13966. soname_spec='$libname$release$shared_ext$major'
  13967. shlibpath_var=LD_LIBRARY_PATH
  13968. shlibpath_overrides_runpath=no
  13969. hardcode_into_libs=yes
  13970. dynamic_linker='ldqnx.so'
  13971. ;;
  13972. openbsd* | bitrig*)
  13973. version_type=sunos
  13974. sys_lib_dlsearch_path_spec=/usr/lib
  13975. need_lib_prefix=no
  13976. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13977. need_version=no
  13978. else
  13979. need_version=yes
  13980. fi
  13981. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13982. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13983. shlibpath_var=LD_LIBRARY_PATH
  13984. shlibpath_overrides_runpath=yes
  13985. ;;
  13986. os2*)
  13987. libname_spec='$name'
  13988. shrext_cmds=.dll
  13989. need_lib_prefix=no
  13990. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13991. # SDL customization: removed versioning support.
  13992. # version_type=windows
  13993. # need_version=no
  13994. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13995. # v=$($ECHO $release$versuffix | tr -d .-);
  13996. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13997. # $ECHO $n$v`$shared_ext'
  13998. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13999. library_names_spec='${libname}_dll.$libext'
  14000. dynamic_linker='OS/2 ld.exe'
  14001. shlibpath_var=BEGINLIBPATH
  14002. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14003. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14004. postinstall_cmds='base_file=`basename \$file`~
  14005. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14006. dldir=$destdir/`dirname \$dlpath`~
  14007. test -d \$dldir || mkdir -p \$dldir~
  14008. $install_prog $dir/$dlname \$dldir/$dlname~
  14009. chmod a+x \$dldir/$dlname~
  14010. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14011. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14012. fi'
  14013. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14014. dlpath=$dir/\$dldll~
  14015. $RM \$dlpath'
  14016. ;;
  14017. osf3* | osf4* | osf5*)
  14018. version_type=osf
  14019. need_lib_prefix=no
  14020. need_version=no
  14021. soname_spec='$libname$release$shared_ext$major'
  14022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14023. shlibpath_var=LD_LIBRARY_PATH
  14024. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14025. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14026. ;;
  14027. rdos*)
  14028. dynamic_linker=no
  14029. ;;
  14030. solaris*)
  14031. version_type=linux # correct to gnu/linux during the next big refactor
  14032. need_lib_prefix=no
  14033. need_version=no
  14034. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14035. soname_spec='$libname$release$shared_ext$major'
  14036. shlibpath_var=LD_LIBRARY_PATH
  14037. shlibpath_overrides_runpath=yes
  14038. hardcode_into_libs=yes
  14039. # ldd complains unless libraries are executable
  14040. postinstall_cmds='chmod +x $lib'
  14041. ;;
  14042. sunos4*)
  14043. version_type=sunos
  14044. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14045. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. shlibpath_overrides_runpath=yes
  14048. if test yes = "$with_gnu_ld"; then
  14049. need_lib_prefix=no
  14050. fi
  14051. need_version=yes
  14052. ;;
  14053. sysv4 | sysv4.3*)
  14054. version_type=linux # correct to gnu/linux during the next big refactor
  14055. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14056. soname_spec='$libname$release$shared_ext$major'
  14057. shlibpath_var=LD_LIBRARY_PATH
  14058. case $host_vendor in
  14059. sni)
  14060. shlibpath_overrides_runpath=no
  14061. need_lib_prefix=no
  14062. runpath_var=LD_RUN_PATH
  14063. ;;
  14064. siemens)
  14065. need_lib_prefix=no
  14066. ;;
  14067. motorola)
  14068. need_lib_prefix=no
  14069. need_version=no
  14070. shlibpath_overrides_runpath=no
  14071. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14072. ;;
  14073. esac
  14074. ;;
  14075. sysv4*MP*)
  14076. if test -d /usr/nec; then
  14077. version_type=linux # correct to gnu/linux during the next big refactor
  14078. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14079. soname_spec='$libname$shared_ext.$major'
  14080. shlibpath_var=LD_LIBRARY_PATH
  14081. fi
  14082. ;;
  14083. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14084. version_type=sco
  14085. need_lib_prefix=no
  14086. need_version=no
  14087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14088. soname_spec='$libname$release$shared_ext$major'
  14089. shlibpath_var=LD_LIBRARY_PATH
  14090. shlibpath_overrides_runpath=yes
  14091. hardcode_into_libs=yes
  14092. if test yes = "$with_gnu_ld"; then
  14093. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14094. else
  14095. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14096. case $host_os in
  14097. sco3.2v5*)
  14098. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14099. ;;
  14100. esac
  14101. fi
  14102. sys_lib_dlsearch_path_spec='/usr/lib'
  14103. ;;
  14104. tpf*)
  14105. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14106. version_type=linux # correct to gnu/linux during the next big refactor
  14107. need_lib_prefix=no
  14108. need_version=no
  14109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14110. shlibpath_var=LD_LIBRARY_PATH
  14111. shlibpath_overrides_runpath=no
  14112. hardcode_into_libs=yes
  14113. ;;
  14114. uts4*)
  14115. version_type=linux # correct to gnu/linux during the next big refactor
  14116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14117. soname_spec='$libname$release$shared_ext$major'
  14118. shlibpath_var=LD_LIBRARY_PATH
  14119. ;;
  14120. *)
  14121. dynamic_linker=no
  14122. ;;
  14123. esac
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14125. $as_echo "$dynamic_linker" >&6; }
  14126. test no = "$dynamic_linker" && can_build_shared=no
  14127. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14128. if test yes = "$GCC"; then
  14129. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14130. fi
  14131. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14132. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14133. fi
  14134. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14135. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14136. fi
  14137. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14138. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14139. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14140. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14141. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14142. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14144. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14145. hardcode_action_CXX=
  14146. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14147. test -n "$runpath_var_CXX" ||
  14148. test yes = "$hardcode_automatic_CXX"; then
  14149. # We can hardcode non-existent directories.
  14150. if test no != "$hardcode_direct_CXX" &&
  14151. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14152. # have to relink, otherwise we might link with an installed library
  14153. # when we should be linking with a yet-to-be-installed one
  14154. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14155. test no != "$hardcode_minus_L_CXX"; then
  14156. # Linking always hardcodes the temporary library directory.
  14157. hardcode_action_CXX=relink
  14158. else
  14159. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14160. hardcode_action_CXX=immediate
  14161. fi
  14162. else
  14163. # We cannot hardcode anything, or else we can only hardcode existing
  14164. # directories.
  14165. hardcode_action_CXX=unsupported
  14166. fi
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14168. $as_echo "$hardcode_action_CXX" >&6; }
  14169. if test relink = "$hardcode_action_CXX" ||
  14170. test yes = "$inherit_rpath_CXX"; then
  14171. # Fast installation is not supported
  14172. enable_fast_install=no
  14173. elif test yes = "$shlibpath_overrides_runpath" ||
  14174. test no = "$enable_shared"; then
  14175. # Fast installation is not necessary
  14176. enable_fast_install=needless
  14177. fi
  14178. fi # test -n "$compiler"
  14179. CC=$lt_save_CC
  14180. CFLAGS=$lt_save_CFLAGS
  14181. LDCXX=$LD
  14182. LD=$lt_save_LD
  14183. GCC=$lt_save_GCC
  14184. with_gnu_ld=$lt_save_with_gnu_ld
  14185. lt_cv_path_LDCXX=$lt_cv_path_LD
  14186. lt_cv_path_LD=$lt_save_path_LD
  14187. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14188. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14189. fi # test yes != "$_lt_caught_CXX_error"
  14190. ac_ext=c
  14191. ac_cpp='$CPP $CPPFLAGS'
  14192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14195. # Check whether --enable-largefile was given.
  14196. if test "${enable_largefile+set}" = set; then :
  14197. enableval=$enable_largefile;
  14198. fi
  14199. if test "$enable_largefile" != no; then
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  14201. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  14202. if ${ac_cv_sys_largefile_CC+:} false; then :
  14203. $as_echo_n "(cached) " >&6
  14204. else
  14205. ac_cv_sys_largefile_CC=no
  14206. if test "$GCC" != yes; then
  14207. ac_save_CC=$CC
  14208. while :; do
  14209. # IRIX 6.2 and later do not support large files by default,
  14210. # so use the C compiler's -n32 option if that helps.
  14211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14212. /* end confdefs.h. */
  14213. #include <sys/types.h>
  14214. /* Check that off_t can represent 2**63 - 1 correctly.
  14215. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14216. since some C++ compilers masquerading as C compilers
  14217. incorrectly reject 9223372036854775807. */
  14218. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14219. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14220. && LARGE_OFF_T % 2147483647 == 1)
  14221. ? 1 : -1];
  14222. int
  14223. main ()
  14224. {
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. if ac_fn_c_try_compile "$LINENO"; then :
  14230. break
  14231. fi
  14232. rm -f core conftest.err conftest.$ac_objext
  14233. CC="$CC -n32"
  14234. if ac_fn_c_try_compile "$LINENO"; then :
  14235. ac_cv_sys_largefile_CC=' -n32'; break
  14236. fi
  14237. rm -f core conftest.err conftest.$ac_objext
  14238. break
  14239. done
  14240. CC=$ac_save_CC
  14241. rm -f conftest.$ac_ext
  14242. fi
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  14245. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  14246. if test "$ac_cv_sys_largefile_CC" != no; then
  14247. CC=$CC$ac_cv_sys_largefile_CC
  14248. fi
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  14250. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  14251. if ${ac_cv_sys_file_offset_bits+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. while :; do
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. #include <sys/types.h>
  14258. /* Check that off_t can represent 2**63 - 1 correctly.
  14259. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14260. since some C++ compilers masquerading as C compilers
  14261. incorrectly reject 9223372036854775807. */
  14262. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14263. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14264. && LARGE_OFF_T % 2147483647 == 1)
  14265. ? 1 : -1];
  14266. int
  14267. main ()
  14268. {
  14269. ;
  14270. return 0;
  14271. }
  14272. _ACEOF
  14273. if ac_fn_c_try_compile "$LINENO"; then :
  14274. ac_cv_sys_file_offset_bits=no; break
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14278. /* end confdefs.h. */
  14279. #define _FILE_OFFSET_BITS 64
  14280. #include <sys/types.h>
  14281. /* Check that off_t can represent 2**63 - 1 correctly.
  14282. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14283. since some C++ compilers masquerading as C compilers
  14284. incorrectly reject 9223372036854775807. */
  14285. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14286. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14287. && LARGE_OFF_T % 2147483647 == 1)
  14288. ? 1 : -1];
  14289. int
  14290. main ()
  14291. {
  14292. ;
  14293. return 0;
  14294. }
  14295. _ACEOF
  14296. if ac_fn_c_try_compile "$LINENO"; then :
  14297. ac_cv_sys_file_offset_bits=64; break
  14298. fi
  14299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14300. ac_cv_sys_file_offset_bits=unknown
  14301. break
  14302. done
  14303. fi
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  14305. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  14306. case $ac_cv_sys_file_offset_bits in #(
  14307. no | unknown) ;;
  14308. *)
  14309. cat >>confdefs.h <<_ACEOF
  14310. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  14311. _ACEOF
  14312. ;;
  14313. esac
  14314. rm -rf conftest*
  14315. if test $ac_cv_sys_file_offset_bits = unknown; then
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  14317. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  14318. if ${ac_cv_sys_large_files+:} false; then :
  14319. $as_echo_n "(cached) " >&6
  14320. else
  14321. while :; do
  14322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14323. /* end confdefs.h. */
  14324. #include <sys/types.h>
  14325. /* Check that off_t can represent 2**63 - 1 correctly.
  14326. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14327. since some C++ compilers masquerading as C compilers
  14328. incorrectly reject 9223372036854775807. */
  14329. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14330. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14331. && LARGE_OFF_T % 2147483647 == 1)
  14332. ? 1 : -1];
  14333. int
  14334. main ()
  14335. {
  14336. ;
  14337. return 0;
  14338. }
  14339. _ACEOF
  14340. if ac_fn_c_try_compile "$LINENO"; then :
  14341. ac_cv_sys_large_files=no; break
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14345. /* end confdefs.h. */
  14346. #define _LARGE_FILES 1
  14347. #include <sys/types.h>
  14348. /* Check that off_t can represent 2**63 - 1 correctly.
  14349. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14350. since some C++ compilers masquerading as C compilers
  14351. incorrectly reject 9223372036854775807. */
  14352. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14353. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14354. && LARGE_OFF_T % 2147483647 == 1)
  14355. ? 1 : -1];
  14356. int
  14357. main ()
  14358. {
  14359. ;
  14360. return 0;
  14361. }
  14362. _ACEOF
  14363. if ac_fn_c_try_compile "$LINENO"; then :
  14364. ac_cv_sys_large_files=1; break
  14365. fi
  14366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14367. ac_cv_sys_large_files=unknown
  14368. break
  14369. done
  14370. fi
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  14372. $as_echo "$ac_cv_sys_large_files" >&6; }
  14373. case $ac_cv_sys_large_files in #(
  14374. no | unknown) ;;
  14375. *)
  14376. cat >>confdefs.h <<_ACEOF
  14377. #define _LARGE_FILES $ac_cv_sys_large_files
  14378. _ACEOF
  14379. ;;
  14380. esac
  14381. rm -rf conftest*
  14382. fi
  14383. fi
  14384. # Find a good install program. We prefer a C program (faster),
  14385. # so one script is as good as another. But avoid the broken or
  14386. # incompatible versions:
  14387. # SysV /etc/install, /usr/sbin/install
  14388. # SunOS /usr/etc/install
  14389. # IRIX /sbin/install
  14390. # AIX /bin/install
  14391. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14392. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14393. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14394. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14395. # OS/2's system install, which has a completely different semantic
  14396. # ./install, which can be erroneously created by make from ./install.sh.
  14397. # Reject install programs that cannot install multiple files.
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14399. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14400. if test -z "$INSTALL"; then
  14401. if ${ac_cv_path_install+:} false; then :
  14402. $as_echo_n "(cached) " >&6
  14403. else
  14404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14405. for as_dir in $PATH
  14406. do
  14407. IFS=$as_save_IFS
  14408. test -z "$as_dir" && as_dir=.
  14409. # Account for people who put trailing slashes in PATH elements.
  14410. case $as_dir/ in #((
  14411. ./ | .// | /[cC]/* | \
  14412. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14413. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14414. /usr/ucb/* ) ;;
  14415. *)
  14416. # OSF1 and SCO ODT 3.0 have their own names for install.
  14417. # Don't use installbsd from OSF since it installs stuff as root
  14418. # by default.
  14419. for ac_prog in ginstall scoinst install; do
  14420. for ac_exec_ext in '' $ac_executable_extensions; do
  14421. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14422. if test $ac_prog = install &&
  14423. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14424. # AIX install. It has an incompatible calling convention.
  14425. :
  14426. elif test $ac_prog = install &&
  14427. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14428. # program-specific install script used by HP pwplus--don't use.
  14429. :
  14430. else
  14431. rm -rf conftest.one conftest.two conftest.dir
  14432. echo one > conftest.one
  14433. echo two > conftest.two
  14434. mkdir conftest.dir
  14435. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14436. test -s conftest.one && test -s conftest.two &&
  14437. test -s conftest.dir/conftest.one &&
  14438. test -s conftest.dir/conftest.two
  14439. then
  14440. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14441. break 3
  14442. fi
  14443. fi
  14444. fi
  14445. done
  14446. done
  14447. ;;
  14448. esac
  14449. done
  14450. IFS=$as_save_IFS
  14451. rm -rf conftest.one conftest.two conftest.dir
  14452. fi
  14453. if test "${ac_cv_path_install+set}" = set; then
  14454. INSTALL=$ac_cv_path_install
  14455. else
  14456. # As a last resort, use the slow shell script. Don't cache a
  14457. # value for INSTALL within a source directory, because that will
  14458. # break other packages using the cache if that directory is
  14459. # removed, or if the value is a relative name.
  14460. INSTALL=$ac_install_sh
  14461. fi
  14462. fi
  14463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14464. $as_echo "$INSTALL" >&6; }
  14465. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14466. # It thinks the first close brace ends the variable substitution.
  14467. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14468. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14469. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14471. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14472. set x ${MAKE-make}
  14473. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14474. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14475. $as_echo_n "(cached) " >&6
  14476. else
  14477. cat >conftest.make <<\_ACEOF
  14478. SHELL = /bin/sh
  14479. all:
  14480. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14481. _ACEOF
  14482. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14483. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14484. *@@@%%%=?*=@@@%%%*)
  14485. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14486. *)
  14487. eval ac_cv_prog_make_${ac_make}_set=no;;
  14488. esac
  14489. rm -f conftest.make
  14490. fi
  14491. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14493. $as_echo "yes" >&6; }
  14494. SET_MAKE=
  14495. else
  14496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14497. $as_echo "no" >&6; }
  14498. SET_MAKE="MAKE=${MAKE-make}"
  14499. fi
  14500. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14501. if test -n "$ac_tool_prefix"; then
  14502. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14503. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14505. $as_echo_n "checking for $ac_word... " >&6; }
  14506. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14507. $as_echo_n "(cached) " >&6
  14508. else
  14509. case $PKG_CONFIG in
  14510. [\\/]* | ?:[\\/]*)
  14511. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14512. ;;
  14513. *)
  14514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14515. for as_dir in $PATH
  14516. do
  14517. IFS=$as_save_IFS
  14518. test -z "$as_dir" && as_dir=.
  14519. for ac_exec_ext in '' $ac_executable_extensions; do
  14520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14521. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14523. break 2
  14524. fi
  14525. done
  14526. done
  14527. IFS=$as_save_IFS
  14528. ;;
  14529. esac
  14530. fi
  14531. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14532. if test -n "$PKG_CONFIG"; then
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14534. $as_echo "$PKG_CONFIG" >&6; }
  14535. else
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14537. $as_echo "no" >&6; }
  14538. fi
  14539. fi
  14540. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14541. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14542. # Extract the first word of "pkg-config", so it can be a program name with args.
  14543. set dummy pkg-config; ac_word=$2
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14545. $as_echo_n "checking for $ac_word... " >&6; }
  14546. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14547. $as_echo_n "(cached) " >&6
  14548. else
  14549. case $ac_pt_PKG_CONFIG in
  14550. [\\/]* | ?:[\\/]*)
  14551. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14552. ;;
  14553. *)
  14554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14555. for as_dir in $PATH
  14556. do
  14557. IFS=$as_save_IFS
  14558. test -z "$as_dir" && as_dir=.
  14559. for ac_exec_ext in '' $ac_executable_extensions; do
  14560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14561. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14563. break 2
  14564. fi
  14565. done
  14566. done
  14567. IFS=$as_save_IFS
  14568. ;;
  14569. esac
  14570. fi
  14571. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14572. if test -n "$ac_pt_PKG_CONFIG"; then
  14573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14574. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14575. else
  14576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14577. $as_echo "no" >&6; }
  14578. fi
  14579. if test "x$ac_pt_PKG_CONFIG" = x; then
  14580. PKG_CONFIG=""
  14581. else
  14582. case $cross_compiling:$ac_tool_warned in
  14583. yes:)
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14586. ac_tool_warned=yes ;;
  14587. esac
  14588. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14589. fi
  14590. else
  14591. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14592. fi
  14593. fi
  14594. if test -n "$PKG_CONFIG"; then
  14595. _pkg_min_version=0.9.0
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14597. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14598. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14600. $as_echo "yes" >&6; }
  14601. else
  14602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14603. $as_echo "no" >&6; }
  14604. PKG_CONFIG=""
  14605. fi
  14606. fi
  14607. case "$host" in
  14608. *-*-mingw*)
  14609. # Except on msys, where make can't handle full pathnames (bug 1972)
  14610. ;;
  14611. *)
  14612. srcdir=`cd $srcdir && pwd`
  14613. ;;
  14614. esac
  14615. INCLUDE="-I$srcdir/include"
  14616. case "$host" in
  14617. *-*-nto-qnx*)
  14618. ;;
  14619. *)
  14620. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14621. ;;
  14622. esac
  14623. case "$host" in
  14624. *-*-haiku*)
  14625. LINKER='$(CXX)'
  14626. LIBTOOLLINKERTAG='CXX'
  14627. ;;
  14628. *)
  14629. LINKER='$(CC)'
  14630. LIBTOOLLINKERTAG='CC'
  14631. ;;
  14632. esac
  14633. if test x$srcdir != x.; then
  14634. INCLUDE="-Iinclude $INCLUDE"
  14635. elif test -d .git; then
  14636. as_fn_error $? "
  14637. *** When building from a git clone you should configure and build in a
  14638. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14639. " "$LINENO" 5
  14640. fi
  14641. BASE_CFLAGS=""
  14642. BASE_LDFLAGS=""
  14643. case "$host" in
  14644. *-*-cygwin*)
  14645. # We build SDL on cygwin without the UNIX emulation layer
  14646. save_CFLAGS="$CFLAGS"
  14647. have_no_cygwin=no
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14649. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14650. CFLAGS="$save_CFLAGS -mno-cygwin"
  14651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14652. /* end confdefs.h. */
  14653. int
  14654. main ()
  14655. {
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. if ac_fn_c_try_compile "$LINENO"; then :
  14661. have_no_cygwin=yes
  14662. fi
  14663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14665. $as_echo "$have_no_cygwin" >&6; }
  14666. CFLAGS="$save_CFLAGS"
  14667. if test x$have_no_cygwin = xyes; then
  14668. BASE_CFLAGS="-mno-cygwin"
  14669. BASE_LDFLAGS="-mno-cygwin"
  14670. fi
  14671. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14672. ;;
  14673. esac
  14674. # Uncomment the following line if you want to force SDL and applications
  14675. # built with it to be compiled for a particular architecture.
  14676. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14677. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14678. # The default optimization for SDL is -O3 (Bug #31)
  14679. if test "x$orig_CFLAGS" = x; then
  14680. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14681. fi
  14682. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14683. BUILD_LDFLAGS="$LDFLAGS"
  14684. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14685. ## These are common directories to find software packages
  14686. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14687. # if test -d $path/include; then
  14688. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14689. # fi
  14690. # if test -d $path/lib; then
  14691. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14692. # fi
  14693. #done
  14694. SDL_CFLAGS="$BASE_CFLAGS"
  14695. SDL_LIBS="-lSDL2"
  14696. if test "x$BASE_LDFLAGS" != x; then
  14697. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14698. fi
  14699. if test "x$EXTRA_CFLAGS" != x; then
  14700. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14701. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14702. fi
  14703. if test "x$EXTRA_LDFLAGS" != x; then
  14704. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14705. fi
  14706. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14707. find_lib()
  14708. {
  14709. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14710. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14711. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14712. if test "$cross_compiling" = yes; then
  14713. host_lib_path=""
  14714. else
  14715. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14716. fi
  14717. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14718. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14719. if test x$lib != x; then
  14720. echo $lib
  14721. return
  14722. fi
  14723. done
  14724. # Try again, this time allowing more than one version digit after the .so
  14725. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14726. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14727. if test x$lib != x; then
  14728. echo $lib
  14729. return
  14730. fi
  14731. done
  14732. }
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14734. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14735. if ${ac_cv_c_const+:} false; then :
  14736. $as_echo_n "(cached) " >&6
  14737. else
  14738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14739. /* end confdefs.h. */
  14740. int
  14741. main ()
  14742. {
  14743. #ifndef __cplusplus
  14744. /* Ultrix mips cc rejects this sort of thing. */
  14745. typedef int charset[2];
  14746. const charset cs = { 0, 0 };
  14747. /* SunOS 4.1.1 cc rejects this. */
  14748. char const *const *pcpcc;
  14749. char **ppc;
  14750. /* NEC SVR4.0.2 mips cc rejects this. */
  14751. struct point {int x, y;};
  14752. static struct point const zero = {0,0};
  14753. /* AIX XL C 1.02.0.0 rejects this.
  14754. It does not let you subtract one const X* pointer from another in
  14755. an arm of an if-expression whose if-part is not a constant
  14756. expression */
  14757. const char *g = "string";
  14758. pcpcc = &g + (g ? g-g : 0);
  14759. /* HPUX 7.0 cc rejects these. */
  14760. ++pcpcc;
  14761. ppc = (char**) pcpcc;
  14762. pcpcc = (char const *const *) ppc;
  14763. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14764. char tx;
  14765. char *t = &tx;
  14766. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14767. *t++ = 0;
  14768. if (s) return 0;
  14769. }
  14770. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14771. int x[] = {25, 17};
  14772. const int *foo = &x[0];
  14773. ++foo;
  14774. }
  14775. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14776. typedef const int *iptr;
  14777. iptr p = 0;
  14778. ++p;
  14779. }
  14780. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14781. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14782. struct s { int j; const int *ap[3]; } bx;
  14783. struct s *b = &bx; b->j = 5;
  14784. }
  14785. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14786. const int foo = 10;
  14787. if (!foo) return 0;
  14788. }
  14789. return !cs[0] && !zero.x;
  14790. #endif
  14791. ;
  14792. return 0;
  14793. }
  14794. _ACEOF
  14795. if ac_fn_c_try_compile "$LINENO"; then :
  14796. ac_cv_c_const=yes
  14797. else
  14798. ac_cv_c_const=no
  14799. fi
  14800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14801. fi
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14803. $as_echo "$ac_cv_c_const" >&6; }
  14804. if test $ac_cv_c_const = no; then
  14805. $as_echo "#define const /**/" >>confdefs.h
  14806. fi
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14808. $as_echo_n "checking for inline... " >&6; }
  14809. if ${ac_cv_c_inline+:} false; then :
  14810. $as_echo_n "(cached) " >&6
  14811. else
  14812. ac_cv_c_inline=no
  14813. for ac_kw in inline __inline__ __inline; do
  14814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14815. /* end confdefs.h. */
  14816. #ifndef __cplusplus
  14817. typedef int foo_t;
  14818. static $ac_kw foo_t static_foo () {return 0; }
  14819. $ac_kw foo_t foo () {return 0; }
  14820. #endif
  14821. _ACEOF
  14822. if ac_fn_c_try_compile "$LINENO"; then :
  14823. ac_cv_c_inline=$ac_kw
  14824. fi
  14825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14826. test "$ac_cv_c_inline" != no && break
  14827. done
  14828. fi
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14830. $as_echo "$ac_cv_c_inline" >&6; }
  14831. case $ac_cv_c_inline in
  14832. inline | yes) ;;
  14833. *)
  14834. case $ac_cv_c_inline in
  14835. no) ac_val=;;
  14836. *) ac_val=$ac_cv_c_inline;;
  14837. esac
  14838. cat >>confdefs.h <<_ACEOF
  14839. #ifndef __cplusplus
  14840. #define inline $ac_val
  14841. #endif
  14842. _ACEOF
  14843. ;;
  14844. esac
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14846. $as_echo_n "checking for working volatile... " >&6; }
  14847. if ${ac_cv_c_volatile+:} false; then :
  14848. $as_echo_n "(cached) " >&6
  14849. else
  14850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14851. /* end confdefs.h. */
  14852. int
  14853. main ()
  14854. {
  14855. volatile int x;
  14856. int * volatile y = (int *) 0;
  14857. return !x && !y;
  14858. ;
  14859. return 0;
  14860. }
  14861. _ACEOF
  14862. if ac_fn_c_try_compile "$LINENO"; then :
  14863. ac_cv_c_volatile=yes
  14864. else
  14865. ac_cv_c_volatile=no
  14866. fi
  14867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14868. fi
  14869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14870. $as_echo "$ac_cv_c_volatile" >&6; }
  14871. if test $ac_cv_c_volatile = no; then
  14872. $as_echo "#define volatile /**/" >>confdefs.h
  14873. fi
  14874. # Check whether --enable-assertions was given.
  14875. if test "${enable_assertions+set}" = set; then :
  14876. enableval=$enable_assertions;
  14877. else
  14878. enable_assertions=auto
  14879. fi
  14880. case "$enable_assertions" in
  14881. auto) # Use optimization settings to determine assertion level
  14882. ;;
  14883. disabled)
  14884. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14885. ;;
  14886. release)
  14887. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14888. ;;
  14889. enabled)
  14890. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14891. ;;
  14892. paranoid)
  14893. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14894. ;;
  14895. *)
  14896. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14897. ;;
  14898. esac
  14899. cat >>confdefs.h <<_ACEOF
  14900. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14901. _ACEOF
  14902. cat >>confdefs.h <<_ACEOF
  14903. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14904. _ACEOF
  14905. cat >>confdefs.h <<_ACEOF
  14906. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14907. _ACEOF
  14908. # Check whether --enable-dependency-tracking was given.
  14909. if test "${enable_dependency_tracking+set}" = set; then :
  14910. enableval=$enable_dependency_tracking;
  14911. else
  14912. enable_dependency_tracking=yes
  14913. fi
  14914. if test x$enable_dependency_tracking = xyes; then
  14915. have_gcc_mmd_mt=no
  14916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14917. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14919. /* end confdefs.h. */
  14920. #if !defined(__GNUC__) || __GNUC__ < 3
  14921. #error Dependency tracking requires GCC 3.0 or newer
  14922. #endif
  14923. int
  14924. main ()
  14925. {
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_c_try_compile "$LINENO"; then :
  14931. have_gcc_mmd_mt=yes
  14932. fi
  14933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14935. $as_echo "$have_gcc_mmd_mt" >&6; }
  14936. if test x$have_gcc_mmd_mt = xyes; then
  14937. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14938. fi
  14939. fi
  14940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14941. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14942. have_no_undefined=no
  14943. case "$host" in
  14944. *-*-openbsd*)
  14945. ;;
  14946. *)
  14947. save_LDFLAGS="$LDFLAGS"
  14948. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14950. /* end confdefs.h. */
  14951. int
  14952. main ()
  14953. {
  14954. ;
  14955. return 0;
  14956. }
  14957. _ACEOF
  14958. if ac_fn_c_try_link "$LINENO"; then :
  14959. have_no_undefined=yes
  14960. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14961. fi
  14962. rm -f core conftest.err conftest.$ac_objext \
  14963. conftest$ac_exeext conftest.$ac_ext
  14964. LDFLAGS="$save_LDFLAGS"
  14965. ;;
  14966. esac
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14968. $as_echo "$have_no_undefined" >&6; }
  14969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14970. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14971. have_dynamicbase=no
  14972. case "$host" in
  14973. *)
  14974. save_LDFLAGS="$LDFLAGS"
  14975. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14977. /* end confdefs.h. */
  14978. int
  14979. main ()
  14980. {
  14981. ;
  14982. return 0;
  14983. }
  14984. _ACEOF
  14985. if ac_fn_c_try_link "$LINENO"; then :
  14986. have_dynamicbase=yes
  14987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14988. fi
  14989. rm -f core conftest.err conftest.$ac_objext \
  14990. conftest$ac_exeext conftest.$ac_ext
  14991. LDFLAGS="$save_LDFLAGS"
  14992. ;;
  14993. esac
  14994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14995. $as_echo "$have_dynamicbase" >&6; }
  14996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14997. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14998. have_nxcompat=no
  14999. case "$host" in
  15000. *)
  15001. save_LDFLAGS="$LDFLAGS"
  15002. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  15003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15004. /* end confdefs.h. */
  15005. int
  15006. main ()
  15007. {
  15008. ;
  15009. return 0;
  15010. }
  15011. _ACEOF
  15012. if ac_fn_c_try_link "$LINENO"; then :
  15013. have_nxcompat=yes
  15014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  15015. fi
  15016. rm -f core conftest.err conftest.$ac_objext \
  15017. conftest$ac_exeext conftest.$ac_ext
  15018. LDFLAGS="$save_LDFLAGS"
  15019. ;;
  15020. esac
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  15022. $as_echo "$have_nxcompat" >&6; }
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  15024. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  15025. have_high_entropy_va=no
  15026. case "$host" in
  15027. *)
  15028. save_LDFLAGS="$LDFLAGS"
  15029. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  15030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15031. /* end confdefs.h. */
  15032. int
  15033. main ()
  15034. {
  15035. ;
  15036. return 0;
  15037. }
  15038. _ACEOF
  15039. if ac_fn_c_try_link "$LINENO"; then :
  15040. have_high_entropy_va=yes
  15041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext \
  15044. conftest$ac_exeext conftest.$ac_ext
  15045. LDFLAGS="$save_LDFLAGS"
  15046. ;;
  15047. esac
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  15049. $as_echo "$have_high_entropy_va" >&6; }
  15050. # Check whether --enable-libc was given.
  15051. if test "${enable_libc+set}" = set; then :
  15052. enableval=$enable_libc;
  15053. else
  15054. enable_libc=yes
  15055. fi
  15056. if test x$enable_libc = xyes; then
  15057. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15059. $as_echo_n "checking for ANSI C header files... " >&6; }
  15060. if ${ac_cv_header_stdc+:} false; then :
  15061. $as_echo_n "(cached) " >&6
  15062. else
  15063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15064. /* end confdefs.h. */
  15065. #include <stdlib.h>
  15066. #include <stdarg.h>
  15067. #include <string.h>
  15068. #include <float.h>
  15069. int
  15070. main ()
  15071. {
  15072. ;
  15073. return 0;
  15074. }
  15075. _ACEOF
  15076. if ac_fn_c_try_compile "$LINENO"; then :
  15077. ac_cv_header_stdc=yes
  15078. else
  15079. ac_cv_header_stdc=no
  15080. fi
  15081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15082. if test $ac_cv_header_stdc = yes; then
  15083. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15085. /* end confdefs.h. */
  15086. #include <string.h>
  15087. _ACEOF
  15088. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15089. $EGREP "memchr" >/dev/null 2>&1; then :
  15090. else
  15091. ac_cv_header_stdc=no
  15092. fi
  15093. rm -f conftest*
  15094. fi
  15095. if test $ac_cv_header_stdc = yes; then
  15096. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15098. /* end confdefs.h. */
  15099. #include <stdlib.h>
  15100. _ACEOF
  15101. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15102. $EGREP "free" >/dev/null 2>&1; then :
  15103. else
  15104. ac_cv_header_stdc=no
  15105. fi
  15106. rm -f conftest*
  15107. fi
  15108. if test $ac_cv_header_stdc = yes; then
  15109. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15110. if test "$cross_compiling" = yes; then :
  15111. :
  15112. else
  15113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15114. /* end confdefs.h. */
  15115. #include <ctype.h>
  15116. #include <stdlib.h>
  15117. #if ((' ' & 0x0FF) == 0x020)
  15118. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15119. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15120. #else
  15121. # define ISLOWER(c) \
  15122. (('a' <= (c) && (c) <= 'i') \
  15123. || ('j' <= (c) && (c) <= 'r') \
  15124. || ('s' <= (c) && (c) <= 'z'))
  15125. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15126. #endif
  15127. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15128. int
  15129. main ()
  15130. {
  15131. int i;
  15132. for (i = 0; i < 256; i++)
  15133. if (XOR (islower (i), ISLOWER (i))
  15134. || toupper (i) != TOUPPER (i))
  15135. return 2;
  15136. return 0;
  15137. }
  15138. _ACEOF
  15139. if ac_fn_c_try_run "$LINENO"; then :
  15140. else
  15141. ac_cv_header_stdc=no
  15142. fi
  15143. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15144. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15145. fi
  15146. fi
  15147. fi
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15149. $as_echo "$ac_cv_header_stdc" >&6; }
  15150. if test $ac_cv_header_stdc = yes; then
  15151. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15152. fi
  15153. 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
  15154. do :
  15155. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15156. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15157. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15158. cat >>confdefs.h <<_ACEOF
  15159. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15160. _ACEOF
  15161. fi
  15162. done
  15163. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15164. if test "x$ac_cv_type_size_t" = xyes; then :
  15165. else
  15166. cat >>confdefs.h <<_ACEOF
  15167. #define size_t unsigned int
  15168. _ACEOF
  15169. fi
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  15171. $as_echo_n "checking for M_PI in math.h... " >&6; }
  15172. if ${ac_cv_define_M_PI+:} false; then :
  15173. $as_echo_n "(cached) " >&6
  15174. else
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. #include <math.h>
  15178. #ifdef M_PI
  15179. YES_IS_DEFINED
  15180. #endif
  15181. _ACEOF
  15182. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15183. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  15184. ac_cv_define_M_PI=yes
  15185. else
  15186. ac_cv_define_M_PI=no
  15187. fi
  15188. rm -f conftest*
  15189. fi
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  15191. $as_echo "$ac_cv_define_M_PI" >&6; }
  15192. if test "$ac_cv_define_M_PI" = "yes" ; then
  15193. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15194. fi
  15195. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15196. # for constant arguments. Useless!
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15198. $as_echo_n "checking for working alloca.h... " >&6; }
  15199. if ${ac_cv_working_alloca_h+:} false; then :
  15200. $as_echo_n "(cached) " >&6
  15201. else
  15202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15203. /* end confdefs.h. */
  15204. #include <alloca.h>
  15205. int
  15206. main ()
  15207. {
  15208. char *p = (char *) alloca (2 * sizeof (int));
  15209. if (p) return 0;
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_link "$LINENO"; then :
  15215. ac_cv_working_alloca_h=yes
  15216. else
  15217. ac_cv_working_alloca_h=no
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext \
  15220. conftest$ac_exeext conftest.$ac_ext
  15221. fi
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15223. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15224. if test $ac_cv_working_alloca_h = yes; then
  15225. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15226. fi
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15228. $as_echo_n "checking for alloca... " >&6; }
  15229. if ${ac_cv_func_alloca_works+:} false; then :
  15230. $as_echo_n "(cached) " >&6
  15231. else
  15232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15233. /* end confdefs.h. */
  15234. #ifdef __GNUC__
  15235. # define alloca __builtin_alloca
  15236. #else
  15237. # ifdef _MSC_VER
  15238. # include <malloc.h>
  15239. # define alloca _alloca
  15240. # else
  15241. # ifdef HAVE_ALLOCA_H
  15242. # include <alloca.h>
  15243. # else
  15244. # ifdef _AIX
  15245. #pragma alloca
  15246. # else
  15247. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15248. void *alloca (size_t);
  15249. # endif
  15250. # endif
  15251. # endif
  15252. # endif
  15253. #endif
  15254. int
  15255. main ()
  15256. {
  15257. char *p = (char *) alloca (1);
  15258. if (p) return 0;
  15259. ;
  15260. return 0;
  15261. }
  15262. _ACEOF
  15263. if ac_fn_c_try_link "$LINENO"; then :
  15264. ac_cv_func_alloca_works=yes
  15265. else
  15266. ac_cv_func_alloca_works=no
  15267. fi
  15268. rm -f core conftest.err conftest.$ac_objext \
  15269. conftest$ac_exeext conftest.$ac_ext
  15270. fi
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15272. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15273. if test $ac_cv_func_alloca_works = yes; then
  15274. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15275. else
  15276. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15277. # that cause trouble. Some versions do not even contain alloca or
  15278. # contain a buggy version. If you still want to use their alloca,
  15279. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15280. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15281. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15283. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15284. if ${ac_cv_os_cray+:} false; then :
  15285. $as_echo_n "(cached) " >&6
  15286. else
  15287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15288. /* end confdefs.h. */
  15289. #if defined CRAY && ! defined CRAY2
  15290. webecray
  15291. #else
  15292. wenotbecray
  15293. #endif
  15294. _ACEOF
  15295. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15296. $EGREP "webecray" >/dev/null 2>&1; then :
  15297. ac_cv_os_cray=yes
  15298. else
  15299. ac_cv_os_cray=no
  15300. fi
  15301. rm -f conftest*
  15302. fi
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15304. $as_echo "$ac_cv_os_cray" >&6; }
  15305. if test $ac_cv_os_cray = yes; then
  15306. for ac_func in _getb67 GETB67 getb67; do
  15307. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15308. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15309. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15310. cat >>confdefs.h <<_ACEOF
  15311. #define CRAY_STACKSEG_END $ac_func
  15312. _ACEOF
  15313. break
  15314. fi
  15315. done
  15316. fi
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15318. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15319. if ${ac_cv_c_stack_direction+:} false; then :
  15320. $as_echo_n "(cached) " >&6
  15321. else
  15322. if test "$cross_compiling" = yes; then :
  15323. ac_cv_c_stack_direction=0
  15324. else
  15325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15326. /* end confdefs.h. */
  15327. $ac_includes_default
  15328. int
  15329. find_stack_direction (int *addr, int depth)
  15330. {
  15331. int dir, dummy = 0;
  15332. if (! addr)
  15333. addr = &dummy;
  15334. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15335. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15336. return dir + dummy;
  15337. }
  15338. int
  15339. main (int argc, char **argv)
  15340. {
  15341. return find_stack_direction (0, argc + !argv + 20) < 0;
  15342. }
  15343. _ACEOF
  15344. if ac_fn_c_try_run "$LINENO"; then :
  15345. ac_cv_c_stack_direction=1
  15346. else
  15347. ac_cv_c_stack_direction=-1
  15348. fi
  15349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15350. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15351. fi
  15352. fi
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15354. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15355. cat >>confdefs.h <<_ACEOF
  15356. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15357. _ACEOF
  15358. fi
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15360. $as_echo_n "checking for working memcmp... " >&6; }
  15361. if ${ac_cv_func_memcmp_working+:} false; then :
  15362. $as_echo_n "(cached) " >&6
  15363. else
  15364. if test "$cross_compiling" = yes; then :
  15365. ac_cv_func_memcmp_working=no
  15366. else
  15367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15368. /* end confdefs.h. */
  15369. $ac_includes_default
  15370. int
  15371. main ()
  15372. {
  15373. /* Some versions of memcmp are not 8-bit clean. */
  15374. char c0 = '\100', c1 = '\200', c2 = '\201';
  15375. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15376. return 1;
  15377. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15378. or more and with at least one buffer not starting on a 4-byte boundary.
  15379. William Lewis provided this test program. */
  15380. {
  15381. char foo[21];
  15382. char bar[21];
  15383. int i;
  15384. for (i = 0; i < 4; i++)
  15385. {
  15386. char *a = foo + i;
  15387. char *b = bar + i;
  15388. strcpy (a, "--------01111111");
  15389. strcpy (b, "--------10000000");
  15390. if (memcmp (a, b, 16) >= 0)
  15391. return 1;
  15392. }
  15393. return 0;
  15394. }
  15395. ;
  15396. return 0;
  15397. }
  15398. _ACEOF
  15399. if ac_fn_c_try_run "$LINENO"; then :
  15400. ac_cv_func_memcmp_working=yes
  15401. else
  15402. ac_cv_func_memcmp_working=no
  15403. fi
  15404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15405. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15406. fi
  15407. fi
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15409. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15410. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15411. *" memcmp.$ac_objext "* ) ;;
  15412. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15413. ;;
  15414. esac
  15415. if test x$ac_cv_func_memcmp_working = xyes; then
  15416. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15417. fi
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15419. $as_echo_n "checking for working strtod... " >&6; }
  15420. if ${ac_cv_func_strtod+:} false; then :
  15421. $as_echo_n "(cached) " >&6
  15422. else
  15423. if test "$cross_compiling" = yes; then :
  15424. ac_cv_func_strtod=no
  15425. else
  15426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15427. /* end confdefs.h. */
  15428. $ac_includes_default
  15429. #ifndef strtod
  15430. double strtod ();
  15431. #endif
  15432. int
  15433. main()
  15434. {
  15435. {
  15436. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15437. char *string = " +69";
  15438. char *term;
  15439. double value;
  15440. value = strtod (string, &term);
  15441. if (value != 69 || term != (string + 4))
  15442. return 1;
  15443. }
  15444. {
  15445. /* Under Solaris 2.4, strtod returns the wrong value for the
  15446. terminating character under some conditions. */
  15447. char *string = "NaN";
  15448. char *term;
  15449. strtod (string, &term);
  15450. if (term != string && *(term - 1) == 0)
  15451. return 1;
  15452. }
  15453. return 0;
  15454. }
  15455. _ACEOF
  15456. if ac_fn_c_try_run "$LINENO"; then :
  15457. ac_cv_func_strtod=yes
  15458. else
  15459. ac_cv_func_strtod=no
  15460. fi
  15461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15462. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15463. fi
  15464. fi
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15466. $as_echo "$ac_cv_func_strtod" >&6; }
  15467. if test $ac_cv_func_strtod = no; then
  15468. case " $LIBOBJS " in
  15469. *" strtod.$ac_objext "* ) ;;
  15470. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15471. ;;
  15472. esac
  15473. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15474. if test "x$ac_cv_func_pow" = xyes; then :
  15475. fi
  15476. if test $ac_cv_func_pow = no; then
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15478. $as_echo_n "checking for pow in -lm... " >&6; }
  15479. if ${ac_cv_lib_m_pow+:} false; then :
  15480. $as_echo_n "(cached) " >&6
  15481. else
  15482. ac_check_lib_save_LIBS=$LIBS
  15483. LIBS="-lm $LIBS"
  15484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15485. /* end confdefs.h. */
  15486. /* Override any GCC internal prototype to avoid an error.
  15487. Use char because int might match the return type of a GCC
  15488. builtin and then its argument prototype would still apply. */
  15489. #ifdef __cplusplus
  15490. extern "C"
  15491. #endif
  15492. char pow ();
  15493. int
  15494. main ()
  15495. {
  15496. return pow ();
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. if ac_fn_c_try_link "$LINENO"; then :
  15502. ac_cv_lib_m_pow=yes
  15503. else
  15504. ac_cv_lib_m_pow=no
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. LIBS=$ac_check_lib_save_LIBS
  15509. fi
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15511. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15512. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15513. POW_LIB=-lm
  15514. else
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15516. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15517. fi
  15518. fi
  15519. fi
  15520. if test x$ac_cv_func_strtod = xyes; then
  15521. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15522. fi
  15523. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15524. if test "x$ac_cv_func_mprotect" = xyes; then :
  15525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15526. /* end confdefs.h. */
  15527. #include <sys/types.h>
  15528. #include <sys/mman.h>
  15529. int
  15530. main ()
  15531. {
  15532. ;
  15533. return 0;
  15534. }
  15535. _ACEOF
  15536. if ac_fn_c_try_compile "$LINENO"; then :
  15537. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15538. fi
  15539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15540. fi
  15541. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch 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
  15542. do :
  15543. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15544. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15545. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15546. cat >>confdefs.h <<_ACEOF
  15547. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15548. _ACEOF
  15549. fi
  15550. done
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15552. $as_echo_n "checking for pow in -lm... " >&6; }
  15553. if ${ac_cv_lib_m_pow+:} false; then :
  15554. $as_echo_n "(cached) " >&6
  15555. else
  15556. ac_check_lib_save_LIBS=$LIBS
  15557. LIBS="-lm $LIBS"
  15558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15559. /* end confdefs.h. */
  15560. /* Override any GCC internal prototype to avoid an error.
  15561. Use char because int might match the return type of a GCC
  15562. builtin and then its argument prototype would still apply. */
  15563. #ifdef __cplusplus
  15564. extern "C"
  15565. #endif
  15566. char pow ();
  15567. int
  15568. main ()
  15569. {
  15570. return pow ();
  15571. ;
  15572. return 0;
  15573. }
  15574. _ACEOF
  15575. if ac_fn_c_try_link "$LINENO"; then :
  15576. ac_cv_lib_m_pow=yes
  15577. else
  15578. ac_cv_lib_m_pow=no
  15579. fi
  15580. rm -f core conftest.err conftest.$ac_objext \
  15581. conftest$ac_exeext conftest.$ac_ext
  15582. LIBS=$ac_check_lib_save_LIBS
  15583. fi
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15585. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15586. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15587. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15588. fi
  15589. 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
  15590. do :
  15591. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15592. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15593. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15594. cat >>confdefs.h <<_ACEOF
  15595. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15596. _ACEOF
  15597. fi
  15598. done
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15600. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15601. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15602. $as_echo_n "(cached) " >&6
  15603. else
  15604. ac_check_lib_save_LIBS=$LIBS
  15605. LIBS="-liconv $LIBS"
  15606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15607. /* end confdefs.h. */
  15608. /* Override any GCC internal prototype to avoid an error.
  15609. Use char because int might match the return type of a GCC
  15610. builtin and then its argument prototype would still apply. */
  15611. #ifdef __cplusplus
  15612. extern "C"
  15613. #endif
  15614. char iconv_open ();
  15615. int
  15616. main ()
  15617. {
  15618. return iconv_open ();
  15619. ;
  15620. return 0;
  15621. }
  15622. _ACEOF
  15623. if ac_fn_c_try_link "$LINENO"; then :
  15624. ac_cv_lib_iconv_iconv_open=yes
  15625. else
  15626. ac_cv_lib_iconv_iconv_open=no
  15627. fi
  15628. rm -f core conftest.err conftest.$ac_objext \
  15629. conftest$ac_exeext conftest.$ac_ext
  15630. LIBS=$ac_check_lib_save_LIBS
  15631. fi
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15633. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15634. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15635. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15636. fi
  15637. for ac_func in iconv
  15638. do :
  15639. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15640. if test "x$ac_cv_func_iconv" = xyes; then :
  15641. cat >>confdefs.h <<_ACEOF
  15642. #define HAVE_ICONV 1
  15643. _ACEOF
  15644. fi
  15645. done
  15646. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15647. "
  15648. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15649. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15650. fi
  15651. for ac_header in libunwind.h
  15652. do :
  15653. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15654. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15655. cat >>confdefs.h <<_ACEOF
  15656. #define HAVE_LIBUNWIND_H 1
  15657. _ACEOF
  15658. fi
  15659. done
  15660. fi
  15661. # Check whether --enable-gcc-atomics was given.
  15662. if test "${enable_gcc_atomics+set}" = set; then :
  15663. enableval=$enable_gcc_atomics;
  15664. else
  15665. enable_gcc_atomics=yes
  15666. fi
  15667. if test x$enable_gcc_atomics = xyes; then
  15668. have_gcc_atomics=no
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15670. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15672. /* end confdefs.h. */
  15673. int
  15674. main ()
  15675. {
  15676. int a;
  15677. void *x, *y, *z;
  15678. __sync_lock_test_and_set(&a, 4);
  15679. __sync_lock_test_and_set(&x, y);
  15680. __sync_fetch_and_add(&a, 1);
  15681. __sync_bool_compare_and_swap(&a, 5, 10);
  15682. __sync_bool_compare_and_swap(&x, y, z);
  15683. ;
  15684. return 0;
  15685. }
  15686. _ACEOF
  15687. if ac_fn_c_try_link "$LINENO"; then :
  15688. have_gcc_atomics=yes
  15689. fi
  15690. rm -f core conftest.err conftest.$ac_objext \
  15691. conftest$ac_exeext conftest.$ac_ext
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15693. $as_echo "$have_gcc_atomics" >&6; }
  15694. if test x$have_gcc_atomics = xyes; then
  15695. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15696. else
  15697. # See if we have the minimum operation needed for GCC atomics
  15698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15699. /* end confdefs.h. */
  15700. int
  15701. main ()
  15702. {
  15703. int a;
  15704. __sync_lock_test_and_set(&a, 1);
  15705. __sync_lock_release(&a);
  15706. ;
  15707. return 0;
  15708. }
  15709. _ACEOF
  15710. if ac_fn_c_try_link "$LINENO"; then :
  15711. have_gcc_sync_lock_test_and_set=yes
  15712. fi
  15713. rm -f core conftest.err conftest.$ac_objext \
  15714. conftest$ac_exeext conftest.$ac_ext
  15715. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15716. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15717. fi
  15718. fi
  15719. fi
  15720. # Standard C sources
  15721. SOURCES="$SOURCES $srcdir/src/*.c"
  15722. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15723. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15724. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15725. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15726. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15727. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15728. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15729. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15730. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15731. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15732. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15733. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15734. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15735. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15736. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15737. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15738. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15739. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15740. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15741. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15742. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15743. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15744. case "$host" in
  15745. *-*-emscripten*)
  15746. default_atomic=no
  15747. ;;
  15748. *)
  15749. default_atomic=yes
  15750. ;;
  15751. esac
  15752. # Check whether --enable-atomic was given.
  15753. if test "${enable_atomic+set}" = set; then :
  15754. enableval=$enable_atomic;
  15755. else
  15756. enable_atomic=$default_atomic
  15757. fi
  15758. if test x$enable_atomic != xyes; then
  15759. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15760. else
  15761. SUMMARY_modules="${SUMMARY_modules} atomic"
  15762. fi
  15763. # Check whether --enable-audio was given.
  15764. if test "${enable_audio+set}" = set; then :
  15765. enableval=$enable_audio;
  15766. else
  15767. enable_audio=yes
  15768. fi
  15769. if test x$enable_audio != xyes; then
  15770. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15771. else
  15772. SUMMARY_modules="${SUMMARY_modules} audio"
  15773. fi
  15774. # Check whether --enable-video was given.
  15775. if test "${enable_video+set}" = set; then :
  15776. enableval=$enable_video;
  15777. else
  15778. enable_video=yes
  15779. fi
  15780. if test x$enable_video != xyes; then
  15781. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15782. else
  15783. SUMMARY_modules="${SUMMARY_modules} video"
  15784. fi
  15785. # Check whether --enable-render was given.
  15786. if test "${enable_render+set}" = set; then :
  15787. enableval=$enable_render;
  15788. else
  15789. enable_render=yes
  15790. fi
  15791. if test x$enable_render != xyes; then
  15792. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15793. else
  15794. SUMMARY_modules="${SUMMARY_modules} render"
  15795. fi
  15796. # Check whether --enable-events was given.
  15797. if test "${enable_events+set}" = set; then :
  15798. enableval=$enable_events;
  15799. else
  15800. enable_events=yes
  15801. fi
  15802. if test x$enable_events != xyes; then
  15803. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15804. else
  15805. SUMMARY_modules="${SUMMARY_modules} events"
  15806. fi
  15807. # Check whether --enable-joystick was given.
  15808. if test "${enable_joystick+set}" = set; then :
  15809. enableval=$enable_joystick;
  15810. else
  15811. enable_joystick=yes
  15812. fi
  15813. if test x$enable_joystick != xyes; then
  15814. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15815. else
  15816. SUMMARY_modules="${SUMMARY_modules} joystick"
  15817. fi
  15818. # Check whether --enable-haptic was given.
  15819. if test "${enable_haptic+set}" = set; then :
  15820. enableval=$enable_haptic;
  15821. else
  15822. enable_haptic=yes
  15823. fi
  15824. if test x$enable_haptic != xyes; then
  15825. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15826. else
  15827. SUMMARY_modules="${SUMMARY_modules} haptic"
  15828. fi
  15829. # Check whether --enable-hidapi was given.
  15830. if test "${enable_hidapi+set}" = set; then :
  15831. enableval=$enable_hidapi;
  15832. else
  15833. enable_hidapi=yes
  15834. fi
  15835. if test x$enable_hidapi != xyes; then
  15836. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15837. else
  15838. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15839. fi
  15840. # Check whether --enable-sensor was given.
  15841. if test "${enable_sensor+set}" = set; then :
  15842. enableval=$enable_sensor;
  15843. else
  15844. enable_sensor=yes
  15845. fi
  15846. if test x$enable_sensor != xyes; then
  15847. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15848. else
  15849. SUMMARY_modules="${SUMMARY_modules} sensor"
  15850. fi
  15851. # Check whether --enable-power was given.
  15852. if test "${enable_power+set}" = set; then :
  15853. enableval=$enable_power;
  15854. else
  15855. enable_power=yes
  15856. fi
  15857. if test x$enable_power != xyes; then
  15858. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15859. else
  15860. SUMMARY_modules="${SUMMARY_modules} power"
  15861. fi
  15862. # Check whether --enable-filesystem was given.
  15863. if test "${enable_filesystem+set}" = set; then :
  15864. enableval=$enable_filesystem;
  15865. else
  15866. enable_filesystem=yes
  15867. fi
  15868. if test x$enable_filesystem != xyes; then
  15869. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15870. else
  15871. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15872. fi
  15873. # Check whether --enable-threads was given.
  15874. if test "${enable_threads+set}" = set; then :
  15875. enableval=$enable_threads;
  15876. else
  15877. enable_threads=yes
  15878. fi
  15879. if test x$enable_threads != xyes; then
  15880. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15881. else
  15882. SUMMARY_modules="${SUMMARY_modules} threads"
  15883. fi
  15884. # Check whether --enable-timers was given.
  15885. if test "${enable_timers+set}" = set; then :
  15886. enableval=$enable_timers;
  15887. else
  15888. enable_timers=yes
  15889. fi
  15890. if test x$enable_timers != xyes; then
  15891. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15892. else
  15893. SUMMARY_modules="${SUMMARY_modules} timers"
  15894. fi
  15895. # Check whether --enable-file was given.
  15896. if test "${enable_file+set}" = set; then :
  15897. enableval=$enable_file;
  15898. else
  15899. enable_file=yes
  15900. fi
  15901. if test x$enable_file != xyes; then
  15902. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15903. else
  15904. SUMMARY_modules="${SUMMARY_modules} file"
  15905. fi
  15906. # Check whether --enable-misc was given.
  15907. if test "${enable_misc+set}" = set; then :
  15908. enableval=$enable_misc;
  15909. else
  15910. enable_misc=yes
  15911. fi
  15912. if test x$enable_misc != xyes; then
  15913. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15914. else
  15915. SUMMARY_modules="${SUMMARY_modules} misc"
  15916. fi
  15917. # Check whether --enable-locale was given.
  15918. if test "${enable_locale+set}" = set; then :
  15919. enableval=$enable_locale;
  15920. else
  15921. enable_locale=yes
  15922. fi
  15923. if test x$enable_locale != xyes; then
  15924. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15925. else
  15926. SUMMARY_modules="${SUMMARY_modules} locale"
  15927. fi
  15928. # Check whether --enable-loadso was given.
  15929. if test "${enable_loadso+set}" = set; then :
  15930. enableval=$enable_loadso;
  15931. else
  15932. enable_loadso=yes
  15933. fi
  15934. if test x$enable_loadso != xyes; then
  15935. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15936. else
  15937. SUMMARY_modules="${SUMMARY_modules} loadso"
  15938. fi
  15939. # Check whether --enable-cpuinfo was given.
  15940. if test "${enable_cpuinfo+set}" = set; then :
  15941. enableval=$enable_cpuinfo;
  15942. else
  15943. enable_cpuinfo=yes
  15944. fi
  15945. if test x$enable_cpuinfo != xyes; then
  15946. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15947. else
  15948. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15949. fi
  15950. # Check whether --enable-assembly was given.
  15951. if test "${enable_assembly+set}" = set; then :
  15952. enableval=$enable_assembly;
  15953. else
  15954. enable_assembly=yes
  15955. fi
  15956. if test x$enable_assembly = xyes; then
  15957. SUMMARY_modules="${SUMMARY_modules} assembly"
  15958. # Make sure that we don't generate floating point code that would
  15959. # cause illegal instruction exceptions on older processors
  15960. case "$host" in
  15961. *-*-darwin*)
  15962. # Don't need to worry about Apple hardware, it's all SSE capable
  15963. default_ssemath=yes
  15964. ;;
  15965. *64-*-*)
  15966. # x86 64-bit architectures all have SSE instructions
  15967. default_ssemath=yes
  15968. ;;
  15969. *)
  15970. default_ssemath=no
  15971. ;;
  15972. esac
  15973. # Check whether --enable-ssemath was given.
  15974. if test "${enable_ssemath+set}" = set; then :
  15975. enableval=$enable_ssemath;
  15976. else
  15977. enable_ssemath=$default_ssemath
  15978. fi
  15979. if test x$enable_ssemath = xno; then
  15980. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15981. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15982. fi
  15983. fi
  15984. # Check whether --enable-mmx was given.
  15985. if test "${enable_mmx+set}" = set; then :
  15986. enableval=$enable_mmx;
  15987. else
  15988. enable_mmx=yes
  15989. fi
  15990. if test x$enable_mmx = xyes; then
  15991. save_CFLAGS="$CFLAGS"
  15992. have_gcc_mmx=no
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15994. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15995. mmx_CFLAGS="-mmmx"
  15996. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15998. /* end confdefs.h. */
  15999. #ifdef __MINGW32__
  16000. #include <_mingw.h>
  16001. #ifdef __MINGW64_VERSION_MAJOR
  16002. #include <intrin.h>
  16003. #else
  16004. #include <mmintrin.h>
  16005. #endif
  16006. #else
  16007. #include <mmintrin.h>
  16008. #endif
  16009. #ifndef __MMX__
  16010. #error Assembler CPP flag not enabled
  16011. #endif
  16012. int
  16013. main ()
  16014. {
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_compile "$LINENO"; then :
  16020. have_gcc_mmx=yes
  16021. fi
  16022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  16024. $as_echo "$have_gcc_mmx" >&6; }
  16025. CFLAGS="$save_CFLAGS"
  16026. if test x$have_gcc_mmx = xyes; then
  16027. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  16028. SUMMARY_math="${SUMMARY_math} mmx"
  16029. fi
  16030. fi
  16031. # Check whether --enable-3dnow was given.
  16032. if test "${enable_3dnow+set}" = set; then :
  16033. enableval=$enable_3dnow;
  16034. else
  16035. enable_3dnow=yes
  16036. fi
  16037. if test x$enable_3dnow = xyes; then
  16038. save_CFLAGS="$CFLAGS"
  16039. have_gcc_3dnow=no
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  16041. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  16042. amd3dnow_CFLAGS="-m3dnow"
  16043. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. #include <mm3dnow.h>
  16047. #ifndef __3dNOW__
  16048. #error Assembler CPP flag not enabled
  16049. #endif
  16050. int
  16051. main ()
  16052. {
  16053. void *p = 0;
  16054. _m_prefetch(p);
  16055. ;
  16056. return 0;
  16057. }
  16058. _ACEOF
  16059. if ac_fn_c_try_link "$LINENO"; then :
  16060. have_gcc_3dnow=yes
  16061. fi
  16062. rm -f core conftest.err conftest.$ac_objext \
  16063. conftest$ac_exeext conftest.$ac_ext
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  16065. $as_echo "$have_gcc_3dnow" >&6; }
  16066. CFLAGS="$save_CFLAGS"
  16067. if test x$have_gcc_3dnow = xyes; then
  16068. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  16069. SUMMARY_math="${SUMMARY_math} 3dnow"
  16070. fi
  16071. fi
  16072. # Check whether --enable-sse was given.
  16073. if test "${enable_sse+set}" = set; then :
  16074. enableval=$enable_sse;
  16075. else
  16076. enable_sse=yes
  16077. fi
  16078. if test x$enable_sse = xyes; then
  16079. save_CFLAGS="$CFLAGS"
  16080. have_gcc_sse=no
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  16082. $as_echo_n "checking for GCC -msse option... " >&6; }
  16083. sse_CFLAGS="-msse"
  16084. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  16085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16086. /* end confdefs.h. */
  16087. #ifdef __MINGW32__
  16088. #include <_mingw.h>
  16089. #ifdef __MINGW64_VERSION_MAJOR
  16090. #include <intrin.h>
  16091. #else
  16092. #include <xmmintrin.h>
  16093. #endif
  16094. #else
  16095. #include <xmmintrin.h>
  16096. #endif
  16097. #ifndef __SSE__
  16098. #error Assembler CPP flag not enabled
  16099. #endif
  16100. int
  16101. main ()
  16102. {
  16103. ;
  16104. return 0;
  16105. }
  16106. _ACEOF
  16107. if ac_fn_c_try_compile "$LINENO"; then :
  16108. have_gcc_sse=yes
  16109. fi
  16110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  16112. $as_echo "$have_gcc_sse" >&6; }
  16113. CFLAGS="$save_CFLAGS"
  16114. if test x$have_gcc_sse = xyes; then
  16115. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  16116. SUMMARY_math="${SUMMARY_math} sse"
  16117. fi
  16118. fi
  16119. # Check whether --enable-sse2 was given.
  16120. if test "${enable_sse2+set}" = set; then :
  16121. enableval=$enable_sse2;
  16122. else
  16123. enable_sse2=$default_ssemath
  16124. fi
  16125. if test x$enable_sse2 = xyes; then
  16126. save_CFLAGS="$CFLAGS"
  16127. have_gcc_sse2=no
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  16129. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  16130. sse2_CFLAGS="-msse2"
  16131. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  16132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16133. /* end confdefs.h. */
  16134. #ifdef __MINGW32__
  16135. #include <_mingw.h>
  16136. #ifdef __MINGW64_VERSION_MAJOR
  16137. #include <intrin.h>
  16138. #else
  16139. #include <emmintrin.h>
  16140. #endif
  16141. #else
  16142. #include <emmintrin.h>
  16143. #endif
  16144. #ifndef __SSE2__
  16145. #error Assembler CPP flag not enabled
  16146. #endif
  16147. int
  16148. main ()
  16149. {
  16150. ;
  16151. return 0;
  16152. }
  16153. _ACEOF
  16154. if ac_fn_c_try_compile "$LINENO"; then :
  16155. have_gcc_sse2=yes
  16156. fi
  16157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  16159. $as_echo "$have_gcc_sse2" >&6; }
  16160. CFLAGS="$save_CFLAGS"
  16161. if test x$have_gcc_sse2 = xyes; then
  16162. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  16163. SUMMARY_math="${SUMMARY_math} sse2"
  16164. fi
  16165. fi
  16166. # Check whether --enable-sse3 was given.
  16167. if test "${enable_sse3+set}" = set; then :
  16168. enableval=$enable_sse3;
  16169. else
  16170. enable_sse3=$default_ssemath
  16171. fi
  16172. if test x$enable_sse3 = xyes; then
  16173. save_CFLAGS="$CFLAGS"
  16174. have_gcc_sse3=no
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  16176. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  16177. sse3_CFLAGS="-msse3"
  16178. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  16179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16180. /* end confdefs.h. */
  16181. #ifdef __MINGW32__
  16182. #include <_mingw.h>
  16183. #ifdef __MINGW64_VERSION_MAJOR
  16184. #include <intrin.h>
  16185. #else
  16186. #include <pmmintrin.h>
  16187. #endif
  16188. #else
  16189. #include <pmmintrin.h>
  16190. #endif
  16191. #ifndef __SSE2__
  16192. #error Assembler CPP flag not enabled
  16193. #endif
  16194. int
  16195. main ()
  16196. {
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_compile "$LINENO"; then :
  16202. have_gcc_sse3=yes
  16203. fi
  16204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16206. $as_echo "$have_gcc_sse3" >&6; }
  16207. CFLAGS="$save_CFLAGS"
  16208. if test x$have_gcc_sse3 = xyes; then
  16209. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16210. SUMMARY_math="${SUMMARY_math} sse3"
  16211. fi
  16212. fi
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16214. $as_echo_n "checking for immintrin.h... " >&6; }
  16215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16216. /* end confdefs.h. */
  16217. #include <immintrin.h>
  16218. int
  16219. main ()
  16220. {
  16221. ;
  16222. return 0;
  16223. }
  16224. _ACEOF
  16225. if ac_fn_c_try_compile "$LINENO"; then :
  16226. have_immintrin_h_hdr=yes
  16227. else
  16228. have_immintrin_h_hdr=no
  16229. fi
  16230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16232. $as_echo "$have_immintrin_h_hdr" >&6; }
  16233. if test x$have_immintrin_h_hdr = xyes; then
  16234. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16235. fi
  16236. # Check whether --enable-altivec was given.
  16237. if test "${enable_altivec+set}" = set; then :
  16238. enableval=$enable_altivec;
  16239. else
  16240. enable_altivec=yes
  16241. fi
  16242. if test x$enable_altivec = xyes; then
  16243. save_CFLAGS="$CFLAGS"
  16244. have_gcc_altivec=no
  16245. have_altivec_h_hdr=no
  16246. altivec_CFLAGS="-maltivec"
  16247. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16249. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16251. /* end confdefs.h. */
  16252. #include <altivec.h>
  16253. vector unsigned int vzero() {
  16254. return vec_splat_u32(0);
  16255. }
  16256. int
  16257. main ()
  16258. {
  16259. ;
  16260. return 0;
  16261. }
  16262. _ACEOF
  16263. if ac_fn_c_try_compile "$LINENO"; then :
  16264. have_gcc_altivec=yes
  16265. have_altivec_h_hdr=yes
  16266. fi
  16267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16269. $as_echo "$have_gcc_altivec" >&6; }
  16270. if test x$have_gcc_altivec = xno; then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16272. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16274. /* end confdefs.h. */
  16275. vector unsigned int vzero() {
  16276. return vec_splat_u32(0);
  16277. }
  16278. int
  16279. main ()
  16280. {
  16281. ;
  16282. return 0;
  16283. }
  16284. _ACEOF
  16285. if ac_fn_c_try_compile "$LINENO"; then :
  16286. have_gcc_altivec=yes
  16287. fi
  16288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16290. $as_echo "$have_gcc_altivec" >&6; }
  16291. fi
  16292. if test x$have_gcc_altivec = xno; then
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16294. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16295. altivec_CFLAGS="-faltivec"
  16296. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16298. /* end confdefs.h. */
  16299. #include <altivec.h>
  16300. vector unsigned int vzero() {
  16301. return vec_splat_u32(0);
  16302. }
  16303. int
  16304. main ()
  16305. {
  16306. ;
  16307. return 0;
  16308. }
  16309. _ACEOF
  16310. if ac_fn_c_try_compile "$LINENO"; then :
  16311. have_gcc_altivec=yes
  16312. have_altivec_h_hdr=yes
  16313. fi
  16314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16316. $as_echo "$have_gcc_altivec" >&6; }
  16317. fi
  16318. if test x$have_gcc_altivec = xno; then
  16319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16320. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16322. /* end confdefs.h. */
  16323. vector unsigned int vzero() {
  16324. return vec_splat_u32(0);
  16325. }
  16326. int
  16327. main ()
  16328. {
  16329. ;
  16330. return 0;
  16331. }
  16332. _ACEOF
  16333. if ac_fn_c_try_compile "$LINENO"; then :
  16334. have_gcc_altivec=yes
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16338. $as_echo "$have_gcc_altivec" >&6; }
  16339. fi
  16340. CFLAGS="$save_CFLAGS"
  16341. if test x$have_gcc_altivec = xyes; then
  16342. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16343. if test x$have_altivec_h_hdr = xyes; then
  16344. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16345. fi
  16346. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16347. SUMMARY_math="${SUMMARY_math} altivec"
  16348. fi
  16349. fi
  16350. fi
  16351. CheckOSS()
  16352. {
  16353. # Check whether --enable-oss was given.
  16354. if test "${enable_oss+set}" = set; then :
  16355. enableval=$enable_oss;
  16356. else
  16357. enable_oss=maybe
  16358. fi
  16359. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16360. # use sndio instead. So on there, we default to disabled. You can force
  16361. # it on if you really want, though.
  16362. if test x$enable_oss = xmaybe; then
  16363. enable_oss=yes
  16364. case "$host" in
  16365. *-*-openbsd*)
  16366. enable_oss=no;;
  16367. esac
  16368. fi
  16369. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16371. $as_echo_n "checking for OSS audio support... " >&6; }
  16372. have_oss=no
  16373. if test x$have_oss != xyes; then
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. #include <sys/soundcard.h>
  16377. int
  16378. main ()
  16379. {
  16380. int arg = SNDCTL_DSP_SETFRAGMENT;
  16381. ;
  16382. return 0;
  16383. }
  16384. _ACEOF
  16385. if ac_fn_c_try_compile "$LINENO"; then :
  16386. have_oss=yes
  16387. fi
  16388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16389. fi
  16390. if test x$have_oss != xyes; then
  16391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16392. /* end confdefs.h. */
  16393. #include <soundcard.h>
  16394. int
  16395. main ()
  16396. {
  16397. int arg = SNDCTL_DSP_SETFRAGMENT;
  16398. ;
  16399. return 0;
  16400. }
  16401. _ACEOF
  16402. if ac_fn_c_try_compile "$LINENO"; then :
  16403. have_oss=yes
  16404. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16405. fi
  16406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16407. fi
  16408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16409. $as_echo "$have_oss" >&6; }
  16410. if test x$have_oss = xyes; then
  16411. SUMMARY_audio="${SUMMARY_audio} oss"
  16412. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16413. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16414. have_audio=yes
  16415. # We may need to link with ossaudio emulation library
  16416. case "$host" in
  16417. *-*-openbsd*|*-*-netbsd*)
  16418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16419. esac
  16420. fi
  16421. fi
  16422. }
  16423. CheckALSA()
  16424. {
  16425. # Check whether --enable-alsa was given.
  16426. if test "${enable_alsa+set}" = set; then :
  16427. enableval=$enable_alsa;
  16428. else
  16429. enable_alsa=yes
  16430. fi
  16431. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16432. alsa_save_CFLAGS="$CFLAGS"
  16433. alsa_save_LDFLAGS="$LDFLAGS"
  16434. alsa_save_LIBS="$LIBS"
  16435. alsa_found=yes
  16436. # Check whether --with-alsa-prefix was given.
  16437. if test "${with_alsa_prefix+set}" = set; then :
  16438. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16439. else
  16440. alsa_prefix=""
  16441. fi
  16442. # Check whether --with-alsa-inc-prefix was given.
  16443. if test "${with_alsa_inc_prefix+set}" = set; then :
  16444. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16445. else
  16446. alsa_inc_prefix=""
  16447. fi
  16448. # Check whether --enable-alsatest was given.
  16449. if test "${enable_alsatest+set}" = set; then :
  16450. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16451. else
  16452. enable_alsatest=yes
  16453. fi
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16455. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16456. if test "$alsa_inc_prefix" != "" ; then
  16457. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16458. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16459. fi
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16461. $as_echo "$ALSA_CFLAGS" >&6; }
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16463. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16464. if test "$alsa_prefix" != "" ; then
  16465. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16466. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16467. fi
  16468. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16469. LIBS=`echo $LIBS | sed 's/-lm//'`
  16470. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16471. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16472. LIBS=`echo $LIBS | sed 's/ //'`
  16473. LIBS="$ALSA_LIBS $LIBS"
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16475. $as_echo "$ALSA_LIBS" >&6; }
  16476. min_alsa_version=1.0.11
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16478. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16479. no_alsa=""
  16480. alsa_min_major_version=`echo $min_alsa_version | \
  16481. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16482. alsa_min_minor_version=`echo $min_alsa_version | \
  16483. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16484. alsa_min_micro_version=`echo $min_alsa_version | \
  16485. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16486. ac_ext=c
  16487. ac_cpp='$CPP $CPPFLAGS'
  16488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16492. /* end confdefs.h. */
  16493. #include <alsa/asoundlib.h>
  16494. int
  16495. main ()
  16496. {
  16497. /* ensure backward compatibility */
  16498. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16499. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16500. #endif
  16501. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16502. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16503. #endif
  16504. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16505. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16506. #endif
  16507. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16508. exit(0);
  16509. # else
  16510. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16511. # error not present
  16512. # endif
  16513. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16514. exit(0);
  16515. # else
  16516. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16517. # error not present
  16518. # endif
  16519. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16520. # error not present
  16521. # endif
  16522. # endif
  16523. # endif
  16524. exit(0);
  16525. ;
  16526. return 0;
  16527. }
  16528. _ACEOF
  16529. if ac_fn_c_try_compile "$LINENO"; then :
  16530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16531. $as_echo "found." >&6; }
  16532. else
  16533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16534. $as_echo "not present." >&6; }
  16535. alsa_found=no
  16536. fi
  16537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16538. ac_ext=c
  16539. ac_cpp='$CPP $CPPFLAGS'
  16540. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16541. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16542. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16543. if test "x$enable_alsatest" = "xyes"; then
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16545. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16546. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16547. $as_echo_n "(cached) " >&6
  16548. else
  16549. ac_check_lib_save_LIBS=$LIBS
  16550. LIBS="-lasound $LIBS"
  16551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16552. /* end confdefs.h. */
  16553. /* Override any GCC internal prototype to avoid an error.
  16554. Use char because int might match the return type of a GCC
  16555. builtin and then its argument prototype would still apply. */
  16556. #ifdef __cplusplus
  16557. extern "C"
  16558. #endif
  16559. char snd_ctl_open ();
  16560. int
  16561. main ()
  16562. {
  16563. return snd_ctl_open ();
  16564. ;
  16565. return 0;
  16566. }
  16567. _ACEOF
  16568. if ac_fn_c_try_link "$LINENO"; then :
  16569. ac_cv_lib_asound_snd_ctl_open=yes
  16570. else
  16571. ac_cv_lib_asound_snd_ctl_open=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext \
  16574. conftest$ac_exeext conftest.$ac_ext
  16575. LIBS=$ac_check_lib_save_LIBS
  16576. fi
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16578. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16579. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16580. cat >>confdefs.h <<_ACEOF
  16581. #define HAVE_LIBASOUND 1
  16582. _ACEOF
  16583. LIBS="-lasound $LIBS"
  16584. else
  16585. alsa_found=no
  16586. fi
  16587. fi
  16588. if test "x$alsa_found" = "xyes" ; then
  16589. have_alsa=yes
  16590. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16591. LIBS=`echo $LIBS | sed 's/ //'`
  16592. LIBS="-lasound $LIBS"
  16593. fi
  16594. if test "x$alsa_found" = "xno" ; then
  16595. have_alsa=no
  16596. CFLAGS="$alsa_save_CFLAGS"
  16597. LDFLAGS="$alsa_save_LDFLAGS"
  16598. LIBS="$alsa_save_LIBS"
  16599. ALSA_CFLAGS=""
  16600. ALSA_LIBS=""
  16601. fi
  16602. # Restore all flags from before the ALSA detection runs
  16603. CFLAGS="$alsa_save_CFLAGS"
  16604. LDFLAGS="$alsa_save_LDFLAGS"
  16605. LIBS="$alsa_save_LIBS"
  16606. if test x$have_alsa = xyes; then
  16607. # Check whether --enable-alsa-shared was given.
  16608. if test "${enable_alsa_shared+set}" = set; then :
  16609. enableval=$enable_alsa_shared;
  16610. else
  16611. enable_alsa_shared=yes
  16612. fi
  16613. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16614. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16615. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16616. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16617. if test x$have_loadso != xyes && \
  16618. test x$enable_alsa_shared = xyes; then
  16619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16620. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16621. fi
  16622. if test x$have_loadso = xyes && \
  16623. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16624. echo "-- dynamic libasound -> $alsa_lib"
  16625. cat >>confdefs.h <<_ACEOF
  16626. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16627. _ACEOF
  16628. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16629. else
  16630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16631. SUMMARY_audio="${SUMMARY_audio} alsa"
  16632. fi
  16633. have_audio=yes
  16634. fi
  16635. fi
  16636. }
  16637. CheckJACK()
  16638. {
  16639. # Check whether --enable-jack was given.
  16640. if test "${enable_jack+set}" = set; then :
  16641. enableval=$enable_jack;
  16642. else
  16643. enable_jack=yes
  16644. fi
  16645. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16646. pkg_failed=no
  16647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16648. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16649. if test -n "$JACK_CFLAGS"; then
  16650. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16651. elif test -n "$PKG_CONFIG"; then
  16652. if test -n "$PKG_CONFIG" && \
  16653. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16654. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16655. ac_status=$?
  16656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16657. test $ac_status = 0; }; then
  16658. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16659. test "x$?" != "x0" && pkg_failed=yes
  16660. else
  16661. pkg_failed=yes
  16662. fi
  16663. else
  16664. pkg_failed=untried
  16665. fi
  16666. if test -n "$JACK_LIBS"; then
  16667. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16668. elif test -n "$PKG_CONFIG"; then
  16669. if test -n "$PKG_CONFIG" && \
  16670. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16671. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16672. ac_status=$?
  16673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16674. test $ac_status = 0; }; then
  16675. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16676. test "x$?" != "x0" && pkg_failed=yes
  16677. else
  16678. pkg_failed=yes
  16679. fi
  16680. else
  16681. pkg_failed=untried
  16682. fi
  16683. if test $pkg_failed = yes; then
  16684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16685. $as_echo "no" >&6; }
  16686. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16687. _pkg_short_errors_supported=yes
  16688. else
  16689. _pkg_short_errors_supported=no
  16690. fi
  16691. if test $_pkg_short_errors_supported = yes; then
  16692. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16693. else
  16694. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16695. fi
  16696. # Put the nasty error message in config.log where it belongs
  16697. echo "$JACK_PKG_ERRORS" >&5
  16698. audio_jack=no
  16699. elif test $pkg_failed = untried; then
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16701. $as_echo "no" >&6; }
  16702. audio_jack=no
  16703. else
  16704. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16705. JACK_LIBS=$pkg_cv_JACK_LIBS
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16707. $as_echo "yes" >&6; }
  16708. audio_jack=yes
  16709. fi
  16710. if test x$audio_jack = xyes; then
  16711. # Check whether --enable-jack-shared was given.
  16712. if test "${enable_jack_shared+set}" = set; then :
  16713. enableval=$enable_jack_shared;
  16714. else
  16715. enable_jack_shared=yes
  16716. fi
  16717. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16718. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16719. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16720. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16721. if test x$have_loadso != xyes && \
  16722. test x$enable_jack_shared = xyes; then
  16723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16724. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16725. fi
  16726. if test x$have_loadso = xyes && \
  16727. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16728. echo "-- dynamic libjack -> $jack_lib"
  16729. cat >>confdefs.h <<_ACEOF
  16730. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16731. _ACEOF
  16732. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16733. case "$host" in
  16734. # On Solaris, jack must be linked deferred explicitly
  16735. # to prevent undefined symbol failures.
  16736. *-*-solaris*)
  16737. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16738. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16739. esac
  16740. else
  16741. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16742. SUMMARY_audio="${SUMMARY_audio} jack"
  16743. fi
  16744. have_audio=yes
  16745. fi
  16746. fi
  16747. }
  16748. CheckESD()
  16749. {
  16750. # Check whether --enable-esd was given.
  16751. if test "${enable_esd+set}" = set; then :
  16752. enableval=$enable_esd;
  16753. else
  16754. enable_esd=yes
  16755. fi
  16756. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16757. # Check whether --with-esd-prefix was given.
  16758. if test "${with_esd_prefix+set}" = set; then :
  16759. withval=$with_esd_prefix; esd_prefix="$withval"
  16760. else
  16761. esd_prefix=""
  16762. fi
  16763. # Check whether --with-esd-exec-prefix was given.
  16764. if test "${with_esd_exec_prefix+set}" = set; then :
  16765. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16766. else
  16767. esd_exec_prefix=""
  16768. fi
  16769. # Check whether --enable-esdtest was given.
  16770. if test "${enable_esdtest+set}" = set; then :
  16771. enableval=$enable_esdtest;
  16772. else
  16773. enable_esdtest=yes
  16774. fi
  16775. if test x$esd_exec_prefix != x ; then
  16776. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16777. if test x${ESD_CONFIG+set} != xset ; then
  16778. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16779. fi
  16780. fi
  16781. if test x$esd_prefix != x ; then
  16782. esd_args="$esd_args --prefix=$esd_prefix"
  16783. if test x${ESD_CONFIG+set} != xset ; then
  16784. ESD_CONFIG=$esd_prefix/bin/esd-config
  16785. fi
  16786. fi
  16787. # Extract the first word of "esd-config", so it can be a program name with args.
  16788. set dummy esd-config; ac_word=$2
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16790. $as_echo_n "checking for $ac_word... " >&6; }
  16791. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16792. $as_echo_n "(cached) " >&6
  16793. else
  16794. case $ESD_CONFIG in
  16795. [\\/]* | ?:[\\/]*)
  16796. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16797. ;;
  16798. *)
  16799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16800. for as_dir in $PATH
  16801. do
  16802. IFS=$as_save_IFS
  16803. test -z "$as_dir" && as_dir=.
  16804. for ac_exec_ext in '' $ac_executable_extensions; do
  16805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16806. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16808. break 2
  16809. fi
  16810. done
  16811. done
  16812. IFS=$as_save_IFS
  16813. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16814. ;;
  16815. esac
  16816. fi
  16817. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16818. if test -n "$ESD_CONFIG"; then
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16820. $as_echo "$ESD_CONFIG" >&6; }
  16821. else
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16823. $as_echo "no" >&6; }
  16824. fi
  16825. min_esd_version=0.2.8
  16826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16827. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16828. no_esd=""
  16829. if test "$ESD_CONFIG" = "no" ; then
  16830. no_esd=yes
  16831. else
  16832. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16833. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16834. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16835. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16836. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16837. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16838. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16839. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16840. if test "x$enable_esdtest" = "xyes" ; then
  16841. ac_ext=c
  16842. ac_cpp='$CPP $CPPFLAGS'
  16843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16846. ac_save_CFLAGS="$CFLAGS"
  16847. ac_save_LIBS="$LIBS"
  16848. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16849. LIBS="$LIBS $ESD_LIBS"
  16850. rm -f conf.esdtest
  16851. if test "$cross_compiling" = yes; then :
  16852. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16853. else
  16854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16855. /* end confdefs.h. */
  16856. #include <stdio.h>
  16857. #include <stdlib.h>
  16858. #include <esd.h>
  16859. int main (void)
  16860. {
  16861. int major, minor, micro;
  16862. FILE *fp = fopen("conf.esdtest", "w");
  16863. if (fp) fclose(fp);
  16864. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16865. printf("%s, bad version string\n", "$min_esd_version");
  16866. exit(1);
  16867. }
  16868. if (($esd_major_version > major) ||
  16869. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16870. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16871. {
  16872. return 0;
  16873. }
  16874. else
  16875. {
  16876. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16877. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16878. printf("*** best to upgrade to the required version.\n");
  16879. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16880. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16881. printf("*** config.cache before re-running configure\n");
  16882. return 1;
  16883. }
  16884. }
  16885. _ACEOF
  16886. if ac_fn_c_try_run "$LINENO"; then :
  16887. else
  16888. no_esd=yes
  16889. fi
  16890. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16891. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16892. fi
  16893. CFLAGS="$ac_save_CFLAGS"
  16894. LIBS="$ac_save_LIBS"
  16895. ac_ext=c
  16896. ac_cpp='$CPP $CPPFLAGS'
  16897. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16898. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16899. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16900. fi
  16901. fi
  16902. if test "x$no_esd" = x ; then
  16903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16904. $as_echo "yes" >&6; }
  16905. have_esd=yes
  16906. else
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16908. $as_echo "no" >&6; }
  16909. if test "$ESD_CONFIG" = "no" ; then
  16910. echo "*** The esd-config script installed by ESD could not be found"
  16911. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16912. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16913. echo "*** full path to esd-config."
  16914. else
  16915. if test -f conf.esdtest ; then
  16916. :
  16917. else
  16918. echo "*** Could not run ESD test program, checking why..."
  16919. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16920. LIBS="$LIBS $ESD_LIBS"
  16921. ac_ext=c
  16922. ac_cpp='$CPP $CPPFLAGS'
  16923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16927. /* end confdefs.h. */
  16928. #include <stdio.h>
  16929. #include <esd.h>
  16930. int
  16931. main ()
  16932. {
  16933. return 0;
  16934. ;
  16935. return 0;
  16936. }
  16937. _ACEOF
  16938. if ac_fn_c_try_link "$LINENO"; then :
  16939. echo "*** The test program compiled, but did not run. This usually means"
  16940. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16941. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16942. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16943. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16944. echo "*** is required on your system"
  16945. echo "***"
  16946. echo "*** If you have an old version installed, it is best to remove it, although"
  16947. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16948. else
  16949. echo "*** The test program failed to compile or link. See the file config.log for the"
  16950. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16951. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16952. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16953. fi
  16954. rm -f core conftest.err conftest.$ac_objext \
  16955. conftest$ac_exeext conftest.$ac_ext
  16956. CFLAGS="$ac_save_CFLAGS"
  16957. LIBS="$ac_save_LIBS"
  16958. ac_ext=c
  16959. ac_cpp='$CPP $CPPFLAGS'
  16960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16963. fi
  16964. fi
  16965. ESD_CFLAGS=""
  16966. ESD_LIBS=""
  16967. have_esd=no
  16968. fi
  16969. rm -f conf.esdtest
  16970. if test x$have_esd = xyes; then
  16971. # Check whether --enable-esd-shared was given.
  16972. if test "${enable_esd_shared+set}" = set; then :
  16973. enableval=$enable_esd_shared;
  16974. else
  16975. enable_esd_shared=yes
  16976. fi
  16977. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16978. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16979. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16980. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16981. if test x$have_loadso != xyes && \
  16982. test x$enable_esd_shared = xyes; then
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16984. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16985. fi
  16986. if test x$have_loadso = xyes && \
  16987. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16988. echo "-- dynamic libesd -> $esd_lib"
  16989. cat >>confdefs.h <<_ACEOF
  16990. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16991. _ACEOF
  16992. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16993. else
  16994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16995. SUMMARY_audio="${SUMMARY_audio} esd"
  16996. fi
  16997. have_audio=yes
  16998. fi
  16999. fi
  17000. }
  17001. CheckPipewire()
  17002. {
  17003. # Check whether --enable-pipewire was given.
  17004. if test "${enable_pipewire+set}" = set; then :
  17005. enableval=$enable_pipewire;
  17006. else
  17007. enable_pipewire=yes
  17008. fi
  17009. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  17010. pkg_failed=no
  17011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  17012. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  17013. if test -n "$PIPEWIRE_CFLAGS"; then
  17014. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  17015. elif test -n "$PKG_CONFIG"; then
  17016. if test -n "$PKG_CONFIG" && \
  17017. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17018. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17019. ac_status=$?
  17020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17021. test $ac_status = 0; }; then
  17022. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17023. test "x$?" != "x0" && pkg_failed=yes
  17024. else
  17025. pkg_failed=yes
  17026. fi
  17027. else
  17028. pkg_failed=untried
  17029. fi
  17030. if test -n "$PIPEWIRE_LIBS"; then
  17031. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  17032. elif test -n "$PKG_CONFIG"; then
  17033. if test -n "$PKG_CONFIG" && \
  17034. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  17035. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  17036. ac_status=$?
  17037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17038. test $ac_status = 0; }; then
  17039. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  17040. test "x$?" != "x0" && pkg_failed=yes
  17041. else
  17042. pkg_failed=yes
  17043. fi
  17044. else
  17045. pkg_failed=untried
  17046. fi
  17047. if test $pkg_failed = yes; then
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17049. $as_echo "no" >&6; }
  17050. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17051. _pkg_short_errors_supported=yes
  17052. else
  17053. _pkg_short_errors_supported=no
  17054. fi
  17055. if test $_pkg_short_errors_supported = yes; then
  17056. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17057. else
  17058. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  17059. fi
  17060. # Put the nasty error message in config.log where it belongs
  17061. echo "$PIPEWIRE_PKG_ERRORS" >&5
  17062. audio_pipewire=no
  17063. elif test $pkg_failed = untried; then
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17065. $as_echo "no" >&6; }
  17066. audio_pipewire=no
  17067. else
  17068. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  17069. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17071. $as_echo "yes" >&6; }
  17072. audio_pipewire=yes
  17073. fi
  17074. if test x$audio_pipewire = xyes; then
  17075. # Check whether --enable-pipewire-shared was given.
  17076. if test "${enable_pipewire_shared+set}" = set; then :
  17077. enableval=$enable_pipewire_shared;
  17078. else
  17079. enable_pipewire_shared=yes
  17080. fi
  17081. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17082. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  17083. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  17084. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  17085. if test x$have_loadso != xyes && \
  17086. test x$enable_pipewire_shared = xyes; then
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  17088. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  17089. fi
  17090. if test x$have_loadso = xyes && \
  17091. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  17092. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  17093. cat >>confdefs.h <<_ACEOF
  17094. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  17095. _ACEOF
  17096. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  17097. else
  17098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  17099. SUMMARY_audio="${SUMMARY_audio} pipewire"
  17100. fi
  17101. have_audio=yes
  17102. fi
  17103. fi
  17104. }
  17105. CheckPulseAudio()
  17106. {
  17107. # Check whether --enable-pulseaudio was given.
  17108. if test "${enable_pulseaudio+set}" = set; then :
  17109. enableval=$enable_pulseaudio;
  17110. else
  17111. enable_pulseaudio=yes
  17112. fi
  17113. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  17114. pkg_failed=no
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  17116. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  17117. if test -n "$PULSEAUDIO_CFLAGS"; then
  17118. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  17119. elif test -n "$PKG_CONFIG"; then
  17120. if test -n "$PKG_CONFIG" && \
  17121. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17122. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17123. ac_status=$?
  17124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17125. test $ac_status = 0; }; then
  17126. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  17127. test "x$?" != "x0" && pkg_failed=yes
  17128. else
  17129. pkg_failed=yes
  17130. fi
  17131. else
  17132. pkg_failed=untried
  17133. fi
  17134. if test -n "$PULSEAUDIO_LIBS"; then
  17135. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  17136. elif test -n "$PKG_CONFIG"; then
  17137. if test -n "$PKG_CONFIG" && \
  17138. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  17139. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  17140. ac_status=$?
  17141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17142. test $ac_status = 0; }; then
  17143. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  17144. test "x$?" != "x0" && pkg_failed=yes
  17145. else
  17146. pkg_failed=yes
  17147. fi
  17148. else
  17149. pkg_failed=untried
  17150. fi
  17151. if test $pkg_failed = yes; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17153. $as_echo "no" >&6; }
  17154. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17155. _pkg_short_errors_supported=yes
  17156. else
  17157. _pkg_short_errors_supported=no
  17158. fi
  17159. if test $_pkg_short_errors_supported = yes; then
  17160. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17161. else
  17162. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  17163. fi
  17164. # Put the nasty error message in config.log where it belongs
  17165. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  17166. audio_pulseaudio=no
  17167. elif test $pkg_failed = untried; then
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17169. $as_echo "no" >&6; }
  17170. audio_pulseaudio=no
  17171. else
  17172. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  17173. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  17174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17175. $as_echo "yes" >&6; }
  17176. audio_pulseaudio=yes
  17177. fi
  17178. if test x$audio_pulseaudio = xyes; then
  17179. # Check whether --enable-pulseaudio-shared was given.
  17180. if test "${enable_pulseaudio_shared+set}" = set; then :
  17181. enableval=$enable_pulseaudio_shared;
  17182. else
  17183. enable_pulseaudio_shared=yes
  17184. fi
  17185. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17186. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  17187. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  17188. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  17189. if test x$have_loadso != xyes && \
  17190. test x$enable_pulseaudio_shared = xyes; then
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17192. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17193. fi
  17194. if test x$have_loadso = xyes && \
  17195. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17196. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17197. cat >>confdefs.h <<_ACEOF
  17198. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17199. _ACEOF
  17200. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17201. case "$host" in
  17202. # On Solaris, pulseaudio must be linked deferred explicitly
  17203. # to prevent undefined symbol failures.
  17204. *-*-solaris*)
  17205. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17207. esac
  17208. else
  17209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17210. SUMMARY_audio="${SUMMARY_audio} pulse"
  17211. fi
  17212. have_audio=yes
  17213. fi
  17214. fi
  17215. }
  17216. CheckARTSC()
  17217. {
  17218. # Check whether --enable-arts was given.
  17219. if test "${enable_arts+set}" = set; then :
  17220. enableval=$enable_arts;
  17221. else
  17222. enable_arts=yes
  17223. fi
  17224. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17225. # Extract the first word of "artsc-config", so it can be a program name with args.
  17226. set dummy artsc-config; ac_word=$2
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17228. $as_echo_n "checking for $ac_word... " >&6; }
  17229. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17230. $as_echo_n "(cached) " >&6
  17231. else
  17232. case $ARTSCONFIG in
  17233. [\\/]* | ?:[\\/]*)
  17234. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17235. ;;
  17236. *)
  17237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17238. for as_dir in $PATH
  17239. do
  17240. IFS=$as_save_IFS
  17241. test -z "$as_dir" && as_dir=.
  17242. for ac_exec_ext in '' $ac_executable_extensions; do
  17243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17244. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17246. break 2
  17247. fi
  17248. done
  17249. done
  17250. IFS=$as_save_IFS
  17251. ;;
  17252. esac
  17253. fi
  17254. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17255. if test -n "$ARTSCONFIG"; then
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17257. $as_echo "$ARTSCONFIG" >&6; }
  17258. else
  17259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17260. $as_echo "no" >&6; }
  17261. fi
  17262. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17263. : # arts isn't installed
  17264. else
  17265. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17266. ARTS_LIBS=`$ARTSCONFIG --libs`
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17268. $as_echo_n "checking for aRts development environment... " >&6; }
  17269. audio_arts=no
  17270. save_CFLAGS="$CFLAGS"
  17271. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17273. /* end confdefs.h. */
  17274. #include <artsc.h>
  17275. int
  17276. main ()
  17277. {
  17278. arts_stream_t stream;
  17279. ;
  17280. return 0;
  17281. }
  17282. _ACEOF
  17283. if ac_fn_c_try_compile "$LINENO"; then :
  17284. audio_arts=yes
  17285. fi
  17286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17287. CFLAGS="$save_CFLAGS"
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17289. $as_echo "$audio_arts" >&6; }
  17290. if test x$audio_arts = xyes; then
  17291. # Check whether --enable-arts-shared was given.
  17292. if test "${enable_arts_shared+set}" = set; then :
  17293. enableval=$enable_arts_shared;
  17294. else
  17295. enable_arts_shared=yes
  17296. fi
  17297. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17298. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17299. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17300. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17301. if test x$have_loadso != xyes && \
  17302. test x$enable_arts_shared = xyes; then
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17304. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17305. fi
  17306. if test x$have_loadso = xyes && \
  17307. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17308. echo "-- dynamic libartsc -> $arts_lib"
  17309. cat >>confdefs.h <<_ACEOF
  17310. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17311. _ACEOF
  17312. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17313. else
  17314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17315. SUMMARY_audio="${SUMMARY_audio} arts"
  17316. fi
  17317. have_audio=yes
  17318. fi
  17319. fi
  17320. fi
  17321. }
  17322. CheckNAS()
  17323. {
  17324. # Check whether --enable-nas was given.
  17325. if test "${enable_nas+set}" = set; then :
  17326. enableval=$enable_nas;
  17327. else
  17328. enable_nas=yes
  17329. fi
  17330. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17331. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17332. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17333. have_nas_hdr=yes
  17334. fi
  17335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17336. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17337. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17338. $as_echo_n "(cached) " >&6
  17339. else
  17340. ac_check_lib_save_LIBS=$LIBS
  17341. LIBS="-laudio $LIBS"
  17342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17343. /* end confdefs.h. */
  17344. /* Override any GCC internal prototype to avoid an error.
  17345. Use char because int might match the return type of a GCC
  17346. builtin and then its argument prototype would still apply. */
  17347. #ifdef __cplusplus
  17348. extern "C"
  17349. #endif
  17350. char AuOpenServer ();
  17351. int
  17352. main ()
  17353. {
  17354. return AuOpenServer ();
  17355. ;
  17356. return 0;
  17357. }
  17358. _ACEOF
  17359. if ac_fn_c_try_link "$LINENO"; then :
  17360. ac_cv_lib_audio_AuOpenServer=yes
  17361. else
  17362. ac_cv_lib_audio_AuOpenServer=no
  17363. fi
  17364. rm -f core conftest.err conftest.$ac_objext \
  17365. conftest$ac_exeext conftest.$ac_ext
  17366. LIBS=$ac_check_lib_save_LIBS
  17367. fi
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17369. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17370. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17371. have_nas_lib=yes
  17372. fi
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17374. $as_echo_n "checking for NAS audio support... " >&6; }
  17375. have_nas=no
  17376. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17377. have_nas=yes
  17378. NAS_LIBS="-laudio"
  17379. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17380. have_nas=yes
  17381. NAS_CFLAGS="-I/usr/X11R6/include/"
  17382. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17383. fi
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17385. $as_echo "$have_nas" >&6; }
  17386. if test x$have_nas = xyes; then
  17387. # Check whether --enable-nas-shared was given.
  17388. if test "${enable_nas_shared+set}" = set; then :
  17389. enableval=$enable_nas_shared;
  17390. else
  17391. enable_nas_shared=yes
  17392. fi
  17393. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17394. if test x$have_loadso != xyes && \
  17395. test x$enable_nas_shared = xyes; then
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17397. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17398. fi
  17399. if test x$have_loadso = xyes && \
  17400. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17401. echo "-- dynamic libaudio -> $nas_lib"
  17402. cat >>confdefs.h <<_ACEOF
  17403. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17404. _ACEOF
  17405. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17406. else
  17407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17408. SUMMARY_audio="${SUMMARY_audio} nas"
  17409. fi
  17410. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17411. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17412. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17413. have_audio=yes
  17414. fi
  17415. fi
  17416. }
  17417. CheckSNDIO()
  17418. {
  17419. # Check whether --enable-sndio was given.
  17420. if test "${enable_sndio+set}" = set; then :
  17421. enableval=$enable_sndio;
  17422. else
  17423. enable_sndio=yes
  17424. fi
  17425. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17426. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17427. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17428. have_sndio_hdr=yes
  17429. fi
  17430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17431. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17432. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17433. $as_echo_n "(cached) " >&6
  17434. else
  17435. ac_check_lib_save_LIBS=$LIBS
  17436. LIBS="-lsndio $LIBS"
  17437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17438. /* end confdefs.h. */
  17439. /* Override any GCC internal prototype to avoid an error.
  17440. Use char because int might match the return type of a GCC
  17441. builtin and then its argument prototype would still apply. */
  17442. #ifdef __cplusplus
  17443. extern "C"
  17444. #endif
  17445. char sio_open ();
  17446. int
  17447. main ()
  17448. {
  17449. return sio_open ();
  17450. ;
  17451. return 0;
  17452. }
  17453. _ACEOF
  17454. if ac_fn_c_try_link "$LINENO"; then :
  17455. ac_cv_lib_sndio_sio_open=yes
  17456. else
  17457. ac_cv_lib_sndio_sio_open=no
  17458. fi
  17459. rm -f core conftest.err conftest.$ac_objext \
  17460. conftest$ac_exeext conftest.$ac_ext
  17461. LIBS=$ac_check_lib_save_LIBS
  17462. fi
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17464. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17465. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17466. have_sndio_lib=yes
  17467. fi
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17469. $as_echo_n "checking for sndio audio support... " >&6; }
  17470. have_sndio=no
  17471. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17472. have_sndio=yes
  17473. SNDIO_LIBS="-lsndio"
  17474. fi
  17475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17476. $as_echo "$have_sndio" >&6; }
  17477. if test x$have_sndio = xyes; then
  17478. # Check whether --enable-sndio-shared was given.
  17479. if test "${enable_sndio_shared+set}" = set; then :
  17480. enableval=$enable_sndio_shared;
  17481. else
  17482. enable_sndio_shared=yes
  17483. fi
  17484. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17485. if test x$have_loadso != xyes && \
  17486. test x$enable_sndio_shared = xyes; then
  17487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17488. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17489. fi
  17490. if test x$have_loadso = xyes && \
  17491. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17492. echo "-- dynamic libsndio -> $sndio_lib"
  17493. cat >>confdefs.h <<_ACEOF
  17494. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17495. _ACEOF
  17496. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17497. else
  17498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17499. SUMMARY_audio="${SUMMARY_audio} sndio"
  17500. fi
  17501. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17502. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17503. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17504. have_audio=yes
  17505. fi
  17506. fi
  17507. }
  17508. CheckFusionSound()
  17509. {
  17510. # Check whether --enable-fusionsound was given.
  17511. if test "${enable_fusionsound+set}" = set; then :
  17512. enableval=$enable_fusionsound;
  17513. else
  17514. enable_fusionsound=no
  17515. fi
  17516. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17517. pkg_failed=no
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17519. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17520. if test -n "$FUSIONSOUND_CFLAGS"; then
  17521. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17522. elif test -n "$PKG_CONFIG"; then
  17523. if test -n "$PKG_CONFIG" && \
  17524. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17525. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17526. ac_status=$?
  17527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17528. test $ac_status = 0; }; then
  17529. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17530. test "x$?" != "x0" && pkg_failed=yes
  17531. else
  17532. pkg_failed=yes
  17533. fi
  17534. else
  17535. pkg_failed=untried
  17536. fi
  17537. if test -n "$FUSIONSOUND_LIBS"; then
  17538. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17539. elif test -n "$PKG_CONFIG"; then
  17540. if test -n "$PKG_CONFIG" && \
  17541. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17542. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17543. ac_status=$?
  17544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17545. test $ac_status = 0; }; then
  17546. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17547. test "x$?" != "x0" && pkg_failed=yes
  17548. else
  17549. pkg_failed=yes
  17550. fi
  17551. else
  17552. pkg_failed=untried
  17553. fi
  17554. if test $pkg_failed = yes; then
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17556. $as_echo "no" >&6; }
  17557. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17558. _pkg_short_errors_supported=yes
  17559. else
  17560. _pkg_short_errors_supported=no
  17561. fi
  17562. if test $_pkg_short_errors_supported = yes; then
  17563. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17564. else
  17565. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17566. fi
  17567. # Put the nasty error message in config.log where it belongs
  17568. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17569. fusionsound=no
  17570. elif test $pkg_failed = untried; then
  17571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17572. $as_echo "no" >&6; }
  17573. fusionsound=no
  17574. else
  17575. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17576. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17578. $as_echo "yes" >&6; }
  17579. fusionsound=yes
  17580. fi
  17581. if test x$fusionsound = xyes; then
  17582. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17583. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17584. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17585. # Check whether --enable-fusionsound-shared was given.
  17586. if test "${enable_fusionsound_shared+set}" = set; then :
  17587. enableval=$enable_fusionsound_shared;
  17588. else
  17589. enable_fusionsound_shared=yes
  17590. fi
  17591. fusionsound_shared=no
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17593. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17594. if test x$have_loadso != xyes && \
  17595. test x$enable_fusionsound_shared = xyes; then
  17596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17597. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17598. fi
  17599. if test x$have_loadso = xyes && \
  17600. test x$enable_fusionsound_shared = xyes; then
  17601. cat >>confdefs.h <<_ACEOF
  17602. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17603. _ACEOF
  17604. fusionsound_shared=yes
  17605. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17606. else
  17607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17608. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17609. fi
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17611. $as_echo "$fusionsound_shared" >&6; }
  17612. have_audio=yes
  17613. fi
  17614. fi
  17615. }
  17616. CheckDiskAudio()
  17617. {
  17618. # Check whether --enable-diskaudio was given.
  17619. if test "${enable_diskaudio+set}" = set; then :
  17620. enableval=$enable_diskaudio;
  17621. else
  17622. enable_diskaudio=yes
  17623. fi
  17624. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17625. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17626. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17627. SUMMARY_audio="${SUMMARY_audio} disk"
  17628. have_audio=yes
  17629. fi
  17630. }
  17631. CheckDummyAudio()
  17632. {
  17633. # Check whether --enable-dummyaudio was given.
  17634. if test "${enable_dummyaudio+set}" = set; then :
  17635. enableval=$enable_dummyaudio;
  17636. else
  17637. enable_dummyaudio=yes
  17638. fi
  17639. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17640. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17641. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17642. SUMMARY_audio="${SUMMARY_audio} dummy"
  17643. have_audio=yes
  17644. fi
  17645. }
  17646. CheckLibSampleRate()
  17647. {
  17648. # Check whether --enable-libsamplerate was given.
  17649. if test "${enable_libsamplerate+set}" = set; then :
  17650. enableval=$enable_libsamplerate;
  17651. else
  17652. enable_libsamplerate=yes
  17653. fi
  17654. if test x$enable_libsamplerate = xyes; then
  17655. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17656. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17657. have_samplerate_h_hdr=yes
  17658. else
  17659. have_samplerate_h_hdr=no
  17660. fi
  17661. if test x$have_samplerate_h_hdr = xyes; then
  17662. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17663. # Check whether --enable-libsamplerate-shared was given.
  17664. if test "${enable_libsamplerate_shared+set}" = set; then :
  17665. enableval=$enable_libsamplerate_shared;
  17666. else
  17667. enable_libsamplerate_shared=yes
  17668. fi
  17669. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17670. if test x$have_loadso != xyes && \
  17671. test x$enable_libsamplerate_shared = xyes; then
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17673. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17674. fi
  17675. if test x$have_loadso = xyes && \
  17676. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17677. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17678. cat >>confdefs.h <<_ACEOF
  17679. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17680. _ACEOF
  17681. else
  17682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17683. fi
  17684. fi
  17685. fi
  17686. }
  17687. CheckARM()
  17688. {
  17689. # Check whether --enable-arm-simd was given.
  17690. if test "${enable_arm_simd+set}" = set; then :
  17691. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17692. else
  17693. enable_arm_simd=no
  17694. fi
  17695. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17696. save_CFLAGS="$CFLAGS"
  17697. have_arm_simd=no
  17698. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17700. $as_echo_n "checking for ARM SIMD... " >&6; }
  17701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17702. /* end confdefs.h. */
  17703. .text
  17704. .arch armv6
  17705. .object_arch armv4
  17706. .arm
  17707. .altmacro
  17708. #ifndef __ARM_EABI__
  17709. #error EABI is required (to be sure that calling conventions are compatible)
  17710. #endif
  17711. pld [r0]
  17712. uqadd8 r0, r0, r0
  17713. _ACEOF
  17714. if ac_fn_c_try_compile "$LINENO"; then :
  17715. have_arm_simd=yes
  17716. fi
  17717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17719. $as_echo "$have_arm_simd" >&6; }
  17720. CFLAGS="$save_CFLAGS"
  17721. if test x$have_arm_simd = xyes; then
  17722. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17723. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17724. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17725. fi
  17726. fi
  17727. }
  17728. CheckNEON()
  17729. {
  17730. # Check whether --enable-arm-neon was given.
  17731. if test "${enable_arm_neon+set}" = set; then :
  17732. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17733. else
  17734. enable_arm_neon=no
  17735. fi
  17736. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17737. save_CFLAGS="$CFLAGS"
  17738. have_arm_neon=no
  17739. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17741. $as_echo_n "checking for ARM NEON... " >&6; }
  17742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17743. /* end confdefs.h. */
  17744. .text
  17745. .fpu neon
  17746. .arch armv7a
  17747. .object_arch armv4
  17748. .eabi_attribute 10, 0
  17749. .arm
  17750. .altmacro
  17751. #ifndef __ARM_EABI__
  17752. #error EABI is required (to be sure that calling conventions are compatible)
  17753. #endif
  17754. pld [r0]
  17755. vmovn.u16 d0, q0
  17756. _ACEOF
  17757. if ac_fn_c_try_compile "$LINENO"; then :
  17758. have_arm_neon=yes
  17759. fi
  17760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17762. $as_echo "$have_arm_neon" >&6; }
  17763. CFLAGS="$save_CFLAGS"
  17764. if test x$have_arm_neon = xyes; then
  17765. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17766. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17767. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17768. fi
  17769. fi
  17770. }
  17771. CheckObjectiveCARC()
  17772. {
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17774. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17775. have_clang_objc_arc=no
  17776. save_CFLAGS="$CFLAGS"
  17777. CFLAGS="$save_CFLAGS -fobjc-arc"
  17778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17779. /* end confdefs.h. */
  17780. int x = 0;
  17781. int
  17782. main ()
  17783. {
  17784. ;
  17785. return 0;
  17786. }
  17787. _ACEOF
  17788. if ac_fn_c_try_compile "$LINENO"; then :
  17789. have_clang_objc_arc=yes
  17790. fi
  17791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17793. $as_echo "$have_clang_objc_arc" >&6; }
  17794. CFLAGS="$save_CFLAGS"
  17795. if test x$have_clang_objc_arc = xyes; then
  17796. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17797. fi
  17798. }
  17799. CheckVisibilityHidden()
  17800. {
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17802. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17803. have_gcc_fvisibility=no
  17804. visibility_CFLAGS="-fvisibility=hidden"
  17805. save_CFLAGS="$CFLAGS"
  17806. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17808. /* end confdefs.h. */
  17809. #if !defined(__GNUC__) || __GNUC__ < 4
  17810. #error SDL only uses visibility attributes in GCC 4 or newer
  17811. #endif
  17812. int
  17813. main ()
  17814. {
  17815. ;
  17816. return 0;
  17817. }
  17818. _ACEOF
  17819. if ac_fn_c_try_compile "$LINENO"; then :
  17820. have_gcc_fvisibility=yes
  17821. fi
  17822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17824. $as_echo "$have_gcc_fvisibility" >&6; }
  17825. CFLAGS="$save_CFLAGS"
  17826. if test x$have_gcc_fvisibility = xyes; then
  17827. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17828. fi
  17829. }
  17830. CheckNoStrictAliasing()
  17831. {
  17832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17833. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17834. have_gcc_no_strict_aliasing=no
  17835. save_CFLAGS="$CFLAGS"
  17836. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17838. /* end confdefs.h. */
  17839. int x = 0;
  17840. int
  17841. main ()
  17842. {
  17843. ;
  17844. return 0;
  17845. }
  17846. _ACEOF
  17847. if ac_fn_c_try_compile "$LINENO"; then :
  17848. have_gcc_no_strict_aliasing=yes
  17849. fi
  17850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17852. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17853. CFLAGS="$save_CFLAGS"
  17854. if test x$have_gcc_no_strict_aliasing = xyes; then
  17855. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17856. fi
  17857. }
  17858. CheckStackBoundary()
  17859. {
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17861. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17862. have_gcc_preferred_stack_boundary=no
  17863. save_CFLAGS="$CFLAGS"
  17864. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17866. /* end confdefs.h. */
  17867. int x = 0;
  17868. int
  17869. main ()
  17870. {
  17871. ;
  17872. return 0;
  17873. }
  17874. _ACEOF
  17875. if ac_fn_c_try_compile "$LINENO"; then :
  17876. have_gcc_preferred_stack_boundary=yes
  17877. fi
  17878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17880. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17881. CFLAGS="$save_CFLAGS"
  17882. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17883. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17884. fi
  17885. }
  17886. CheckDeclarationAfterStatement()
  17887. {
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17889. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17890. have_gcc_declaration_after_statement=no
  17891. save_CFLAGS="$CFLAGS"
  17892. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17894. /* end confdefs.h. */
  17895. int x = 0;
  17896. int
  17897. main ()
  17898. {
  17899. ;
  17900. return 0;
  17901. }
  17902. _ACEOF
  17903. if ac_fn_c_try_compile "$LINENO"; then :
  17904. have_gcc_declaration_after_statement=yes
  17905. fi
  17906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17908. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17909. CFLAGS="$save_CFLAGS"
  17910. if test x$have_gcc_declaration_after_statement = xyes; then
  17911. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17912. fi
  17913. }
  17914. CheckWarnAll()
  17915. {
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17917. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17918. have_gcc_Wall=no
  17919. save_CFLAGS="$CFLAGS"
  17920. CFLAGS="$save_CFLAGS -Wall"
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. int x = 0;
  17924. int
  17925. main ()
  17926. {
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"; then :
  17932. have_gcc_Wall=yes
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17936. $as_echo "$have_gcc_Wall" >&6; }
  17937. CFLAGS="$save_CFLAGS"
  17938. if test x$have_gcc_Wall = xyes; then
  17939. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17941. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17942. need_gcc_Wno_multichar=no
  17943. case "$host" in
  17944. *-*-haiku*)
  17945. need_gcc_Wno_multichar=yes
  17946. ;;
  17947. esac
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17949. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17950. if test x$need_gcc_Wno_multichar = xyes; then
  17951. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17952. fi
  17953. fi
  17954. }
  17955. CheckWayland()
  17956. {
  17957. # Check whether --enable-video-wayland was given.
  17958. if test "${enable_video_wayland+set}" = set; then :
  17959. enableval=$enable_video_wayland;
  17960. else
  17961. enable_video_wayland=yes
  17962. fi
  17963. # Check whether --enable-video-wayland-qt-touch was given.
  17964. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17965. enableval=$enable_video_wayland_qt_touch;
  17966. else
  17967. enable_video_wayland_qt_touch=yes
  17968. fi
  17969. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17971. $as_echo_n "checking for Wayland support... " >&6; }
  17972. video_wayland=no
  17973. if test x$video_opengl_egl = xyes && \
  17974. test x$video_opengles_v2 = xyes; then
  17975. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17976. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17977. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17978. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17979. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17980. WAYLAND_SCANNER_CODE_MODE=private-code
  17981. else
  17982. WAYLAND_SCANNER_CODE_MODE=code
  17983. fi
  17984. video_wayland=yes
  17985. fi
  17986. fi
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17988. $as_echo "$video_wayland" >&6; }
  17989. if test x$video_wayland = xyes; then
  17990. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17991. if test x$enable_video_wayland_qt_touch = xyes; then
  17992. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17993. fi
  17994. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17995. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17996. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17997. # Check whether --enable-wayland-shared was given.
  17998. if test "${enable_wayland_shared+set}" = set; then :
  17999. enableval=$enable_wayland_shared;
  18000. else
  18001. enable_wayland_shared=maybe
  18002. fi
  18003. case "$host" in
  18004. *)
  18005. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18006. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18007. if test x$wayland_egl_lib = x; then
  18008. # This works in Ubuntu 13.10, maybe others
  18009. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18010. fi
  18011. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18012. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18013. ;;
  18014. esac
  18015. if test x$enable_wayland_shared = xmaybe; then
  18016. enable_wayland_shared=yes
  18017. fi
  18018. if test x$have_loadso != xyes && \
  18019. test x$enable_wayland_shared = xyes; then
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  18021. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  18022. enable_wayland_shared=no
  18023. fi
  18024. if test x$have_loadso = xyes && \
  18025. test x$enable_wayland_shared = xyes && \
  18026. test x$wayland_client_lib != x && \
  18027. test x$wayland_egl_lib != x && \
  18028. test x$wayland_cursor_lib != x && \
  18029. test x$xkbcommon_lib != x; then
  18030. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  18031. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  18032. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  18033. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  18034. cat >>confdefs.h <<_ACEOF
  18035. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  18036. _ACEOF
  18037. cat >>confdefs.h <<_ACEOF
  18038. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  18039. _ACEOF
  18040. cat >>confdefs.h <<_ACEOF
  18041. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  18042. _ACEOF
  18043. cat >>confdefs.h <<_ACEOF
  18044. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  18045. _ACEOF
  18046. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  18047. else
  18048. enable_wayland_shared=no
  18049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  18050. SUMMARY_video="${SUMMARY_video} wayland"
  18051. fi
  18052. have_video=yes
  18053. # Check whether --enable-libdecor was given.
  18054. if test "${enable_libdecor+set}" = set; then :
  18055. enableval=$enable_libdecor;
  18056. else
  18057. enable_libdecor=yes
  18058. fi
  18059. if test x$enable_libdecor = xyes; then
  18060. pkg_failed=no
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  18062. $as_echo_n "checking for libdecor-0... " >&6; }
  18063. if test -n "$DECOR_CFLAGS"; then
  18064. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  18065. elif test -n "$PKG_CONFIG"; then
  18066. if test -n "$PKG_CONFIG" && \
  18067. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18068. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18069. ac_status=$?
  18070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18071. test $ac_status = 0; }; then
  18072. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  18073. test "x$?" != "x0" && pkg_failed=yes
  18074. else
  18075. pkg_failed=yes
  18076. fi
  18077. else
  18078. pkg_failed=untried
  18079. fi
  18080. if test -n "$DECOR_LIBS"; then
  18081. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  18082. elif test -n "$PKG_CONFIG"; then
  18083. if test -n "$PKG_CONFIG" && \
  18084. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  18085. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  18086. ac_status=$?
  18087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18088. test $ac_status = 0; }; then
  18089. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  18090. test "x$?" != "x0" && pkg_failed=yes
  18091. else
  18092. pkg_failed=yes
  18093. fi
  18094. else
  18095. pkg_failed=untried
  18096. fi
  18097. if test $pkg_failed = yes; then
  18098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18099. $as_echo "no" >&6; }
  18100. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18101. _pkg_short_errors_supported=yes
  18102. else
  18103. _pkg_short_errors_supported=no
  18104. fi
  18105. if test $_pkg_short_errors_supported = yes; then
  18106. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  18107. else
  18108. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  18109. fi
  18110. # Put the nasty error message in config.log where it belongs
  18111. echo "$DECOR_PKG_ERRORS" >&5
  18112. video_libdecor=no
  18113. elif test $pkg_failed = untried; then
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18115. $as_echo "no" >&6; }
  18116. video_libdecor=no
  18117. else
  18118. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  18119. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  18120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18121. $as_echo "yes" >&6; }
  18122. video_libdecor=yes
  18123. fi
  18124. if test x$video_libdecor = xyes; then
  18125. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  18126. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  18127. # Check whether --enable-libdecor-shared was given.
  18128. if test "${enable_libdecor_shared+set}" = set; then :
  18129. enableval=$enable_libdecor_shared;
  18130. else
  18131. enable_libdecor_shared=yes
  18132. fi
  18133. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18134. if test x$enable_wayland_shared != xyes; then
  18135. enable_libdecor_shared=no
  18136. fi
  18137. if test x$have_loadso != xyes && \
  18138. test x$enable_libdecor_shared = xyes; then
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  18140. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  18141. fi
  18142. if test x$have_loadso = xyes && \
  18143. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  18144. echo "-- dynamic libdecor -> $decor_lib"
  18145. cat >>confdefs.h <<_ACEOF
  18146. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  18147. _ACEOF
  18148. else
  18149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  18150. fi
  18151. fi
  18152. fi
  18153. fi
  18154. fi
  18155. }
  18156. CheckNativeClient()
  18157. {
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #if !defined(__native_client__)
  18161. #error "NO NACL"
  18162. #endif
  18163. int
  18164. main ()
  18165. {
  18166. ;
  18167. return 0;
  18168. }
  18169. _ACEOF
  18170. if ac_fn_c_try_compile "$LINENO"; then :
  18171. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  18172. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  18173. $as_echo "#define HAVE_POW 1" >>confdefs.h
  18174. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  18175. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18176. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18177. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  18178. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  18179. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  18180. SUMMARY_audio="${SUMMARY_audio} nacl"
  18181. have_audio=yes
  18182. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  18183. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  18184. have_video=yes
  18185. fi
  18186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18187. }
  18188. CheckRPI()
  18189. {
  18190. # Check whether --enable-video-rpi was given.
  18191. if test "${enable_video_rpi+set}" = set; then :
  18192. enableval=$enable_video_rpi;
  18193. else
  18194. enable_video_rpi=yes
  18195. fi
  18196. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18197. pkg_failed=no
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18199. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18200. if test -n "$RPI_CFLAGS"; then
  18201. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18202. elif test -n "$PKG_CONFIG"; then
  18203. if test -n "$PKG_CONFIG" && \
  18204. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18205. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18206. ac_status=$?
  18207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18208. test $ac_status = 0; }; then
  18209. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18210. test "x$?" != "x0" && pkg_failed=yes
  18211. else
  18212. pkg_failed=yes
  18213. fi
  18214. else
  18215. pkg_failed=untried
  18216. fi
  18217. if test -n "$RPI_LIBS"; then
  18218. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18219. elif test -n "$PKG_CONFIG"; then
  18220. if test -n "$PKG_CONFIG" && \
  18221. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18222. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18223. ac_status=$?
  18224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18225. test $ac_status = 0; }; then
  18226. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18227. test "x$?" != "x0" && pkg_failed=yes
  18228. else
  18229. pkg_failed=yes
  18230. fi
  18231. else
  18232. pkg_failed=untried
  18233. fi
  18234. if test $pkg_failed = yes; then
  18235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18236. $as_echo "no" >&6; }
  18237. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18238. _pkg_short_errors_supported=yes
  18239. else
  18240. _pkg_short_errors_supported=no
  18241. fi
  18242. if test $_pkg_short_errors_supported = yes; then
  18243. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18244. else
  18245. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18246. fi
  18247. # Put the nasty error message in config.log where it belongs
  18248. echo "$RPI_PKG_ERRORS" >&5
  18249. video_rpi=no
  18250. elif test $pkg_failed = untried; then
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18252. $as_echo "no" >&6; }
  18253. video_rpi=no
  18254. else
  18255. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18256. RPI_LIBS=$pkg_cv_RPI_LIBS
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18258. $as_echo "yes" >&6; }
  18259. video_rpi=yes
  18260. fi
  18261. if test x$video_rpi = xno; then
  18262. if test x$ARCH = xnetbsd; then
  18263. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18264. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18265. else
  18266. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18267. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18268. fi
  18269. fi
  18270. # Save the original compiler flags and libraries
  18271. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18272. # Add the Raspberry Pi compiler flags and libraries
  18273. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18275. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18276. have_video_rpi=no
  18277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18278. /* end confdefs.h. */
  18279. #include <bcm_host.h>
  18280. #include <EGL/eglplatform.h>
  18281. int
  18282. main ()
  18283. {
  18284. EGL_DISPMANX_WINDOW_T window;
  18285. bcm_host_init();
  18286. ;
  18287. return 0;
  18288. }
  18289. _ACEOF
  18290. if ac_fn_c_try_link "$LINENO"; then :
  18291. have_video_rpi=yes
  18292. fi
  18293. rm -f core conftest.err conftest.$ac_objext \
  18294. conftest$ac_exeext conftest.$ac_ext
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18296. $as_echo "$have_video_rpi" >&6; }
  18297. # Restore the compiler flags and libraries
  18298. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18299. if test x$have_video_rpi = xyes; then
  18300. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18301. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18302. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18304. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18305. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18306. SUMMARY_video="${SUMMARY_video} rpi"
  18307. have_video=yes
  18308. fi
  18309. fi
  18310. }
  18311. CheckX11()
  18312. {
  18313. # Check whether --enable-video-x11 was given.
  18314. if test "${enable_video_x11+set}" = set; then :
  18315. enableval=$enable_video_x11;
  18316. else
  18317. enable_video_x11=yes
  18318. fi
  18319. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18320. case "$host" in
  18321. *-*-darwin*)
  18322. # This isn't necessary for X11, but fixes GLX detection
  18323. if test "x$x_includes" = xNONE && \
  18324. test "x$x_libraries" = xNONE && \
  18325. test -d /opt/X11/include && \
  18326. test -d /opt/X11/lib; then
  18327. x_includes="/opt/X11/include"
  18328. x_libraries="/opt/X11/lib"
  18329. fi
  18330. ;;
  18331. esac
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18333. $as_echo_n "checking for X... " >&6; }
  18334. # Check whether --with-x was given.
  18335. if test "${with_x+set}" = set; then :
  18336. withval=$with_x;
  18337. fi
  18338. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18339. if test "x$with_x" = xno; then
  18340. # The user explicitly disabled X.
  18341. have_x=disabled
  18342. else
  18343. case $x_includes,$x_libraries in #(
  18344. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18345. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18346. $as_echo_n "(cached) " >&6
  18347. else
  18348. # One or both of the vars are not set, and there is no cached value.
  18349. ac_x_includes=no
  18350. ac_x_libraries=no
  18351. # Do we need to do anything special at all?
  18352. ac_save_LIBS=$LIBS
  18353. LIBS="-lX11 $LIBS"
  18354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18355. /* end confdefs.h. */
  18356. #include <X11/Xlib.h>
  18357. int
  18358. main ()
  18359. {
  18360. XrmInitialize ()
  18361. ;
  18362. return 0;
  18363. }
  18364. _ACEOF
  18365. if ac_fn_c_try_link "$LINENO"; then :
  18366. # We can compile and link X programs with no special options.
  18367. ac_x_includes=
  18368. ac_x_libraries=
  18369. fi
  18370. rm -f core conftest.err conftest.$ac_objext \
  18371. conftest$ac_exeext conftest.$ac_ext
  18372. LIBS="$ac_save_LIBS"
  18373. # If that didn't work, only try xmkmf and filesystem searches
  18374. # for native compilation.
  18375. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18376. rm -f -r conftest.dir
  18377. if mkdir conftest.dir; then
  18378. cd conftest.dir
  18379. cat >Imakefile <<'_ACEOF'
  18380. incroot:
  18381. @echo incroot='${INCROOT}'
  18382. usrlibdir:
  18383. @echo usrlibdir='${USRLIBDIR}'
  18384. libdir:
  18385. @echo libdir='${LIBDIR}'
  18386. _ACEOF
  18387. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18388. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18389. for ac_var in incroot usrlibdir libdir; do
  18390. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18391. done
  18392. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18393. for ac_extension in a so sl dylib la dll; do
  18394. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18395. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18396. ac_im_usrlibdir=$ac_im_libdir; break
  18397. fi
  18398. done
  18399. # Screen out bogus values from the imake configuration. They are
  18400. # bogus both because they are the default anyway, and because
  18401. # using them would break gcc on systems where it needs fixed includes.
  18402. case $ac_im_incroot in
  18403. /usr/include) ac_x_includes= ;;
  18404. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18405. esac
  18406. case $ac_im_usrlibdir in
  18407. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18408. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18409. esac
  18410. fi
  18411. cd ..
  18412. rm -f -r conftest.dir
  18413. fi
  18414. # Standard set of common directories for X headers.
  18415. # Check X11 before X11Rn because it is often a symlink to the current release.
  18416. ac_x_header_dirs='
  18417. /usr/X11/include
  18418. /usr/X11R7/include
  18419. /usr/X11R6/include
  18420. /usr/X11R5/include
  18421. /usr/X11R4/include
  18422. /usr/include/X11
  18423. /usr/include/X11R7
  18424. /usr/include/X11R6
  18425. /usr/include/X11R5
  18426. /usr/include/X11R4
  18427. /usr/local/X11/include
  18428. /usr/local/X11R7/include
  18429. /usr/local/X11R6/include
  18430. /usr/local/X11R5/include
  18431. /usr/local/X11R4/include
  18432. /usr/local/include/X11
  18433. /usr/local/include/X11R7
  18434. /usr/local/include/X11R6
  18435. /usr/local/include/X11R5
  18436. /usr/local/include/X11R4
  18437. /opt/X11/include
  18438. /usr/X386/include
  18439. /usr/x386/include
  18440. /usr/XFree86/include/X11
  18441. /usr/include
  18442. /usr/local/include
  18443. /usr/unsupported/include
  18444. /usr/athena/include
  18445. /usr/local/x11r5/include
  18446. /usr/lpp/Xamples/include
  18447. /usr/openwin/include
  18448. /usr/openwin/share/include'
  18449. if test "$ac_x_includes" = no; then
  18450. # Guess where to find include files, by looking for Xlib.h.
  18451. # First, try using that file with no special directory specified.
  18452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18453. /* end confdefs.h. */
  18454. #include <X11/Xlib.h>
  18455. _ACEOF
  18456. if ac_fn_c_try_cpp "$LINENO"; then :
  18457. # We can compile using X headers with no special include directory.
  18458. ac_x_includes=
  18459. else
  18460. for ac_dir in $ac_x_header_dirs; do
  18461. if test -r "$ac_dir/X11/Xlib.h"; then
  18462. ac_x_includes=$ac_dir
  18463. break
  18464. fi
  18465. done
  18466. fi
  18467. rm -f conftest.err conftest.i conftest.$ac_ext
  18468. fi # $ac_x_includes = no
  18469. if test "$ac_x_libraries" = no; then
  18470. # Check for the libraries.
  18471. # See if we find them without any special options.
  18472. # Don't add to $LIBS permanently.
  18473. ac_save_LIBS=$LIBS
  18474. LIBS="-lX11 $LIBS"
  18475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18476. /* end confdefs.h. */
  18477. #include <X11/Xlib.h>
  18478. int
  18479. main ()
  18480. {
  18481. XrmInitialize ()
  18482. ;
  18483. return 0;
  18484. }
  18485. _ACEOF
  18486. if ac_fn_c_try_link "$LINENO"; then :
  18487. LIBS=$ac_save_LIBS
  18488. # We can link X programs with no special library path.
  18489. ac_x_libraries=
  18490. else
  18491. LIBS=$ac_save_LIBS
  18492. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18493. do
  18494. # Don't even attempt the hair of trying to link an X program!
  18495. for ac_extension in a so sl dylib la dll; do
  18496. if test -r "$ac_dir/libX11.$ac_extension"; then
  18497. ac_x_libraries=$ac_dir
  18498. break 2
  18499. fi
  18500. done
  18501. done
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext \
  18504. conftest$ac_exeext conftest.$ac_ext
  18505. fi # $ac_x_libraries = no
  18506. fi
  18507. # Record the results.
  18508. case $ac_x_includes,$ac_x_libraries in #(
  18509. no,* | *,no | *\'*) :
  18510. # Didn't find X, or a directory has "'" in its name.
  18511. ac_cv_have_x="have_x=no" ;; #(
  18512. *) :
  18513. # Record where we found X for the cache.
  18514. ac_cv_have_x="have_x=yes\
  18515. ac_x_includes='$ac_x_includes'\
  18516. ac_x_libraries='$ac_x_libraries'" ;;
  18517. esac
  18518. fi
  18519. ;; #(
  18520. *) have_x=yes;;
  18521. esac
  18522. eval "$ac_cv_have_x"
  18523. fi # $with_x != no
  18524. if test "$have_x" != yes; then
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18526. $as_echo "$have_x" >&6; }
  18527. no_x=yes
  18528. else
  18529. # If each of the values was on the command line, it overrides each guess.
  18530. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18531. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18532. # Update the cache value to reflect the command line values.
  18533. ac_cv_have_x="have_x=yes\
  18534. ac_x_includes='$x_includes'\
  18535. ac_x_libraries='$x_libraries'"
  18536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18537. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18538. fi
  18539. if test "$no_x" = yes; then
  18540. # Not all programs may use this symbol, but it does not hurt to define it.
  18541. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18542. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18543. else
  18544. if test -n "$x_includes"; then
  18545. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18546. fi
  18547. # It would also be nice to do this for all -L options, not just this one.
  18548. if test -n "$x_libraries"; then
  18549. X_LIBS="$X_LIBS -L$x_libraries"
  18550. # For Solaris; some versions of Sun CC require a space after -R and
  18551. # others require no space. Words are not sufficient . . . .
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18553. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18554. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18555. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18556. ac_c_werror_flag=yes
  18557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18558. /* end confdefs.h. */
  18559. int
  18560. main ()
  18561. {
  18562. ;
  18563. return 0;
  18564. }
  18565. _ACEOF
  18566. if ac_fn_c_try_link "$LINENO"; then :
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18568. $as_echo "no" >&6; }
  18569. X_LIBS="$X_LIBS -R$x_libraries"
  18570. else
  18571. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18573. /* end confdefs.h. */
  18574. int
  18575. main ()
  18576. {
  18577. ;
  18578. return 0;
  18579. }
  18580. _ACEOF
  18581. if ac_fn_c_try_link "$LINENO"; then :
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18583. $as_echo "yes" >&6; }
  18584. X_LIBS="$X_LIBS -R $x_libraries"
  18585. else
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18587. $as_echo "neither works" >&6; }
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext \
  18593. conftest$ac_exeext conftest.$ac_ext
  18594. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18595. LIBS=$ac_xsave_LIBS
  18596. fi
  18597. # Check for system-dependent libraries X programs must link with.
  18598. # Do this before checking for the system-independent R6 libraries
  18599. # (-lICE), since we may need -lsocket or whatever for X linking.
  18600. if test "$ISC" = yes; then
  18601. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18602. else
  18603. # Martyn Johnson says this is needed for Ultrix, if the X
  18604. # libraries were built with DECnet support. And Karl Berry says
  18605. # the Alpha needs dnet_stub (dnet does not exist).
  18606. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18608. /* end confdefs.h. */
  18609. /* Override any GCC internal prototype to avoid an error.
  18610. Use char because int might match the return type of a GCC
  18611. builtin and then its argument prototype would still apply. */
  18612. #ifdef __cplusplus
  18613. extern "C"
  18614. #endif
  18615. char XOpenDisplay ();
  18616. int
  18617. main ()
  18618. {
  18619. return XOpenDisplay ();
  18620. ;
  18621. return 0;
  18622. }
  18623. _ACEOF
  18624. if ac_fn_c_try_link "$LINENO"; then :
  18625. else
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18627. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18628. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18629. $as_echo_n "(cached) " >&6
  18630. else
  18631. ac_check_lib_save_LIBS=$LIBS
  18632. LIBS="-ldnet $LIBS"
  18633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18634. /* end confdefs.h. */
  18635. /* Override any GCC internal prototype to avoid an error.
  18636. Use char because int might match the return type of a GCC
  18637. builtin and then its argument prototype would still apply. */
  18638. #ifdef __cplusplus
  18639. extern "C"
  18640. #endif
  18641. char dnet_ntoa ();
  18642. int
  18643. main ()
  18644. {
  18645. return dnet_ntoa ();
  18646. ;
  18647. return 0;
  18648. }
  18649. _ACEOF
  18650. if ac_fn_c_try_link "$LINENO"; then :
  18651. ac_cv_lib_dnet_dnet_ntoa=yes
  18652. else
  18653. ac_cv_lib_dnet_dnet_ntoa=no
  18654. fi
  18655. rm -f core conftest.err conftest.$ac_objext \
  18656. conftest$ac_exeext conftest.$ac_ext
  18657. LIBS=$ac_check_lib_save_LIBS
  18658. fi
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18660. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18661. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18662. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18663. fi
  18664. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18666. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18667. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18668. $as_echo_n "(cached) " >&6
  18669. else
  18670. ac_check_lib_save_LIBS=$LIBS
  18671. LIBS="-ldnet_stub $LIBS"
  18672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18673. /* end confdefs.h. */
  18674. /* Override any GCC internal prototype to avoid an error.
  18675. Use char because int might match the return type of a GCC
  18676. builtin and then its argument prototype would still apply. */
  18677. #ifdef __cplusplus
  18678. extern "C"
  18679. #endif
  18680. char dnet_ntoa ();
  18681. int
  18682. main ()
  18683. {
  18684. return dnet_ntoa ();
  18685. ;
  18686. return 0;
  18687. }
  18688. _ACEOF
  18689. if ac_fn_c_try_link "$LINENO"; then :
  18690. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18691. else
  18692. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18693. fi
  18694. rm -f core conftest.err conftest.$ac_objext \
  18695. conftest$ac_exeext conftest.$ac_ext
  18696. LIBS=$ac_check_lib_save_LIBS
  18697. fi
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18699. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18700. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18701. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18702. fi
  18703. fi
  18704. fi
  18705. rm -f core conftest.err conftest.$ac_objext \
  18706. conftest$ac_exeext conftest.$ac_ext
  18707. LIBS="$ac_xsave_LIBS"
  18708. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18709. # to get the SysV transport functions.
  18710. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18711. # needs -lnsl.
  18712. # The nsl library prevents programs from opening the X display
  18713. # on Irix 5.2, according to T.E. Dickey.
  18714. # The functions gethostbyname, getservbyname, and inet_addr are
  18715. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18716. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18717. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18718. fi
  18719. if test $ac_cv_func_gethostbyname = no; then
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18721. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18722. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18723. $as_echo_n "(cached) " >&6
  18724. else
  18725. ac_check_lib_save_LIBS=$LIBS
  18726. LIBS="-lnsl $LIBS"
  18727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18728. /* end confdefs.h. */
  18729. /* Override any GCC internal prototype to avoid an error.
  18730. Use char because int might match the return type of a GCC
  18731. builtin and then its argument prototype would still apply. */
  18732. #ifdef __cplusplus
  18733. extern "C"
  18734. #endif
  18735. char gethostbyname ();
  18736. int
  18737. main ()
  18738. {
  18739. return gethostbyname ();
  18740. ;
  18741. return 0;
  18742. }
  18743. _ACEOF
  18744. if ac_fn_c_try_link "$LINENO"; then :
  18745. ac_cv_lib_nsl_gethostbyname=yes
  18746. else
  18747. ac_cv_lib_nsl_gethostbyname=no
  18748. fi
  18749. rm -f core conftest.err conftest.$ac_objext \
  18750. conftest$ac_exeext conftest.$ac_ext
  18751. LIBS=$ac_check_lib_save_LIBS
  18752. fi
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18754. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18755. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18756. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18757. fi
  18758. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18760. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18761. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18762. $as_echo_n "(cached) " >&6
  18763. else
  18764. ac_check_lib_save_LIBS=$LIBS
  18765. LIBS="-lbsd $LIBS"
  18766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18767. /* end confdefs.h. */
  18768. /* Override any GCC internal prototype to avoid an error.
  18769. Use char because int might match the return type of a GCC
  18770. builtin and then its argument prototype would still apply. */
  18771. #ifdef __cplusplus
  18772. extern "C"
  18773. #endif
  18774. char gethostbyname ();
  18775. int
  18776. main ()
  18777. {
  18778. return gethostbyname ();
  18779. ;
  18780. return 0;
  18781. }
  18782. _ACEOF
  18783. if ac_fn_c_try_link "$LINENO"; then :
  18784. ac_cv_lib_bsd_gethostbyname=yes
  18785. else
  18786. ac_cv_lib_bsd_gethostbyname=no
  18787. fi
  18788. rm -f core conftest.err conftest.$ac_objext \
  18789. conftest$ac_exeext conftest.$ac_ext
  18790. LIBS=$ac_check_lib_save_LIBS
  18791. fi
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18793. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18794. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18795. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18796. fi
  18797. fi
  18798. fi
  18799. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18800. # socket/setsockopt and other routines are undefined under SCO ODT
  18801. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18802. # on later versions), says Simon Leinen: it contains gethostby*
  18803. # variants that don't use the name server (or something). -lsocket
  18804. # must be given before -lnsl if both are needed. We assume that
  18805. # if connect needs -lnsl, so does gethostbyname.
  18806. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18807. if test "x$ac_cv_func_connect" = xyes; then :
  18808. fi
  18809. if test $ac_cv_func_connect = no; then
  18810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18811. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18812. if ${ac_cv_lib_socket_connect+:} false; then :
  18813. $as_echo_n "(cached) " >&6
  18814. else
  18815. ac_check_lib_save_LIBS=$LIBS
  18816. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18818. /* end confdefs.h. */
  18819. /* Override any GCC internal prototype to avoid an error.
  18820. Use char because int might match the return type of a GCC
  18821. builtin and then its argument prototype would still apply. */
  18822. #ifdef __cplusplus
  18823. extern "C"
  18824. #endif
  18825. char connect ();
  18826. int
  18827. main ()
  18828. {
  18829. return connect ();
  18830. ;
  18831. return 0;
  18832. }
  18833. _ACEOF
  18834. if ac_fn_c_try_link "$LINENO"; then :
  18835. ac_cv_lib_socket_connect=yes
  18836. else
  18837. ac_cv_lib_socket_connect=no
  18838. fi
  18839. rm -f core conftest.err conftest.$ac_objext \
  18840. conftest$ac_exeext conftest.$ac_ext
  18841. LIBS=$ac_check_lib_save_LIBS
  18842. fi
  18843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18844. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18845. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18846. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18847. fi
  18848. fi
  18849. # Guillermo Gomez says -lposix is necessary on A/UX.
  18850. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18851. if test "x$ac_cv_func_remove" = xyes; then :
  18852. fi
  18853. if test $ac_cv_func_remove = no; then
  18854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18855. $as_echo_n "checking for remove in -lposix... " >&6; }
  18856. if ${ac_cv_lib_posix_remove+:} false; then :
  18857. $as_echo_n "(cached) " >&6
  18858. else
  18859. ac_check_lib_save_LIBS=$LIBS
  18860. LIBS="-lposix $LIBS"
  18861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18862. /* end confdefs.h. */
  18863. /* Override any GCC internal prototype to avoid an error.
  18864. Use char because int might match the return type of a GCC
  18865. builtin and then its argument prototype would still apply. */
  18866. #ifdef __cplusplus
  18867. extern "C"
  18868. #endif
  18869. char remove ();
  18870. int
  18871. main ()
  18872. {
  18873. return remove ();
  18874. ;
  18875. return 0;
  18876. }
  18877. _ACEOF
  18878. if ac_fn_c_try_link "$LINENO"; then :
  18879. ac_cv_lib_posix_remove=yes
  18880. else
  18881. ac_cv_lib_posix_remove=no
  18882. fi
  18883. rm -f core conftest.err conftest.$ac_objext \
  18884. conftest$ac_exeext conftest.$ac_ext
  18885. LIBS=$ac_check_lib_save_LIBS
  18886. fi
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18888. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18889. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18890. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18891. fi
  18892. fi
  18893. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18894. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18895. if test "x$ac_cv_func_shmat" = xyes; then :
  18896. fi
  18897. if test $ac_cv_func_shmat = no; then
  18898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18899. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18900. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18901. $as_echo_n "(cached) " >&6
  18902. else
  18903. ac_check_lib_save_LIBS=$LIBS
  18904. LIBS="-lipc $LIBS"
  18905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18906. /* end confdefs.h. */
  18907. /* Override any GCC internal prototype to avoid an error.
  18908. Use char because int might match the return type of a GCC
  18909. builtin and then its argument prototype would still apply. */
  18910. #ifdef __cplusplus
  18911. extern "C"
  18912. #endif
  18913. char shmat ();
  18914. int
  18915. main ()
  18916. {
  18917. return shmat ();
  18918. ;
  18919. return 0;
  18920. }
  18921. _ACEOF
  18922. if ac_fn_c_try_link "$LINENO"; then :
  18923. ac_cv_lib_ipc_shmat=yes
  18924. else
  18925. ac_cv_lib_ipc_shmat=no
  18926. fi
  18927. rm -f core conftest.err conftest.$ac_objext \
  18928. conftest$ac_exeext conftest.$ac_ext
  18929. LIBS=$ac_check_lib_save_LIBS
  18930. fi
  18931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18932. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18933. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18934. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18935. fi
  18936. fi
  18937. fi
  18938. # Check for libraries that X11R6 Xt/Xaw programs need.
  18939. ac_save_LDFLAGS=$LDFLAGS
  18940. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18941. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18942. # check for ICE first), but we must link in the order -lSM -lICE or
  18943. # we get undefined symbols. So assume we have SM if we have ICE.
  18944. # These have to be linked with before -lX11, unlike the other
  18945. # libraries we check for below, so use a different variable.
  18946. # John Interrante, Karl Berry
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18948. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18949. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18950. $as_echo_n "(cached) " >&6
  18951. else
  18952. ac_check_lib_save_LIBS=$LIBS
  18953. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18955. /* end confdefs.h. */
  18956. /* Override any GCC internal prototype to avoid an error.
  18957. Use char because int might match the return type of a GCC
  18958. builtin and then its argument prototype would still apply. */
  18959. #ifdef __cplusplus
  18960. extern "C"
  18961. #endif
  18962. char IceConnectionNumber ();
  18963. int
  18964. main ()
  18965. {
  18966. return IceConnectionNumber ();
  18967. ;
  18968. return 0;
  18969. }
  18970. _ACEOF
  18971. if ac_fn_c_try_link "$LINENO"; then :
  18972. ac_cv_lib_ICE_IceConnectionNumber=yes
  18973. else
  18974. ac_cv_lib_ICE_IceConnectionNumber=no
  18975. fi
  18976. rm -f core conftest.err conftest.$ac_objext \
  18977. conftest$ac_exeext conftest.$ac_ext
  18978. LIBS=$ac_check_lib_save_LIBS
  18979. fi
  18980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18981. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18982. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18983. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18984. fi
  18985. LDFLAGS=$ac_save_LDFLAGS
  18986. fi
  18987. if test x$have_x = xyes; then
  18988. # Check whether --enable-x11-shared was given.
  18989. if test "${enable_x11_shared+set}" = set; then :
  18990. enableval=$enable_x11_shared;
  18991. else
  18992. enable_x11_shared=maybe
  18993. fi
  18994. case "$host" in
  18995. *-*-darwin*)
  18996. # Apple now puts this in /opt/X11
  18997. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18998. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18999. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  19000. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  19001. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  19002. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  19003. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  19004. xss_lib='/opt/X11/lib/libXss.1.dylib'
  19005. ;;
  19006. *-*-openbsd*)
  19007. x11_lib='libX11.so'
  19008. x11ext_lib='libXext.so'
  19009. xcursor_lib='libXcursor.so'
  19010. xinput_lib='libXi.so'
  19011. xfixes_lib='libXfixes.so'
  19012. xrandr_lib='libXrandr.so'
  19013. xrender_lib='libXrender.so'
  19014. xss_lib='libXss.so'
  19015. ;;
  19016. *)
  19017. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19018. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19019. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19020. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19021. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19022. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19023. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19024. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  19025. ;;
  19026. esac
  19027. if test x$ac_cv_func_shmat != xyes; then
  19028. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  19029. fi
  19030. CFLAGS="$CFLAGS $X_CFLAGS"
  19031. LDFLAGS="$LDFLAGS $X_LIBS"
  19032. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  19033. #include <X11/Xproto.h>
  19034. "
  19035. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  19036. have_xext_h_hdr=yes
  19037. else
  19038. have_xext_h_hdr=no
  19039. fi
  19040. if test x$have_xext_h_hdr != xyes; then
  19041. as_fn_error $? "
  19042. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  19043. " "$LINENO" 5
  19044. fi
  19045. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  19046. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  19047. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  19048. # Needed so SDL applications can include SDL_syswm.h
  19049. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  19050. if test x$enable_x11_shared = xmaybe; then
  19051. enable_x11_shared=yes
  19052. fi
  19053. if test x$have_loadso != xyes && \
  19054. test x$enable_x11_shared = xyes; then
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  19056. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  19057. enable_x11_shared=no
  19058. fi
  19059. if test x$have_loadso = xyes && \
  19060. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  19061. echo "-- dynamic libX11 -> $x11_lib"
  19062. echo "-- dynamic libX11ext -> $x11ext_lib"
  19063. cat >>confdefs.h <<_ACEOF
  19064. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  19065. _ACEOF
  19066. cat >>confdefs.h <<_ACEOF
  19067. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  19068. _ACEOF
  19069. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  19070. else
  19071. enable_x11_shared=no
  19072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  19073. SUMMARY_video="${SUMMARY_video} x11"
  19074. fi
  19075. have_video=yes
  19076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  19077. $as_echo_n "checking for XGenericEvent... " >&6; }
  19078. have_XGenericEvent=no
  19079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19080. /* end confdefs.h. */
  19081. #include <X11/Xlib.h>
  19082. int
  19083. main ()
  19084. {
  19085. Display *display;
  19086. XEvent event;
  19087. XGenericEventCookie *cookie = &event.xcookie;
  19088. XNextEvent(display, &event);
  19089. XGetEventData(display, cookie);
  19090. XFreeEventData(display, cookie);
  19091. ;
  19092. return 0;
  19093. }
  19094. _ACEOF
  19095. if ac_fn_c_try_compile "$LINENO"; then :
  19096. have_XGenericEvent=yes
  19097. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  19098. fi
  19099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  19101. $as_echo "$have_XGenericEvent" >&6; }
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  19103. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  19104. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  19105. $as_echo_n "(cached) " >&6
  19106. else
  19107. ac_check_lib_save_LIBS=$LIBS
  19108. LIBS="-lX11 $LIBS"
  19109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19110. /* end confdefs.h. */
  19111. /* Override any GCC internal prototype to avoid an error.
  19112. Use char because int might match the return type of a GCC
  19113. builtin and then its argument prototype would still apply. */
  19114. #ifdef __cplusplus
  19115. extern "C"
  19116. #endif
  19117. char XkbKeycodeToKeysym ();
  19118. int
  19119. main ()
  19120. {
  19121. return XkbKeycodeToKeysym ();
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. if ac_fn_c_try_link "$LINENO"; then :
  19127. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  19128. else
  19129. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  19130. fi
  19131. rm -f core conftest.err conftest.$ac_objext \
  19132. conftest$ac_exeext conftest.$ac_ext
  19133. LIBS=$ac_check_lib_save_LIBS
  19134. fi
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  19136. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  19137. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  19138. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  19139. fi
  19140. # Check whether --enable-video-x11-xcursor was given.
  19141. if test "${enable_video_x11_xcursor+set}" = set; then :
  19142. enableval=$enable_video_x11_xcursor;
  19143. else
  19144. enable_video_x11_xcursor=yes
  19145. fi
  19146. if test x$enable_video_x11_xcursor = xyes; then
  19147. definitely_enable_video_x11_xcursor=no
  19148. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  19149. "
  19150. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  19151. have_xcursor_h_hdr=yes
  19152. else
  19153. have_xcursor_h_hdr=no
  19154. fi
  19155. if test x$have_xcursor_h_hdr = xyes; then
  19156. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  19157. echo "-- dynamic libXcursor -> $xcursor_lib"
  19158. cat >>confdefs.h <<_ACEOF
  19159. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  19160. _ACEOF
  19161. definitely_enable_video_x11_xcursor=yes
  19162. else
  19163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  19164. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  19165. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  19166. $as_echo_n "(cached) " >&6
  19167. else
  19168. ac_check_lib_save_LIBS=$LIBS
  19169. LIBS="-lXcursor $LIBS"
  19170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19171. /* end confdefs.h. */
  19172. /* Override any GCC internal prototype to avoid an error.
  19173. Use char because int might match the return type of a GCC
  19174. builtin and then its argument prototype would still apply. */
  19175. #ifdef __cplusplus
  19176. extern "C"
  19177. #endif
  19178. char XcursorImageCreate ();
  19179. int
  19180. main ()
  19181. {
  19182. return XcursorImageCreate ();
  19183. ;
  19184. return 0;
  19185. }
  19186. _ACEOF
  19187. if ac_fn_c_try_link "$LINENO"; then :
  19188. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  19189. else
  19190. ac_cv_lib_Xcursor_XcursorImageCreate=no
  19191. fi
  19192. rm -f core conftest.err conftest.$ac_objext \
  19193. conftest$ac_exeext conftest.$ac_ext
  19194. LIBS=$ac_check_lib_save_LIBS
  19195. fi
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19197. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19198. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19199. have_xcursor_lib=yes
  19200. fi
  19201. if test x$have_xcursor_lib = xyes ; then
  19202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19203. definitely_enable_video_x11_xcursor=yes
  19204. fi
  19205. fi
  19206. fi
  19207. fi
  19208. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19209. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19210. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19211. fi
  19212. # Check whether --enable-video-x11-xdbe was given.
  19213. if test "${enable_video_x11_xdbe+set}" = set; then :
  19214. enableval=$enable_video_x11_xdbe;
  19215. else
  19216. enable_video_x11_xdbe=yes
  19217. fi
  19218. if test x$enable_video_x11_xdbe = xyes; then
  19219. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19220. "
  19221. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19222. have_dbe_h_hdr=yes
  19223. else
  19224. have_dbe_h_hdr=no
  19225. fi
  19226. if test x$have_dbe_h_hdr = xyes; then
  19227. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19228. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19229. fi
  19230. fi
  19231. # Check whether --enable-video-x11-xinput was given.
  19232. if test "${enable_video_x11_xinput+set}" = set; then :
  19233. enableval=$enable_video_x11_xinput;
  19234. else
  19235. enable_video_x11_xinput=yes
  19236. fi
  19237. if test x$enable_video_x11_xinput = xyes; then
  19238. definitely_enable_video_x11_xinput=no
  19239. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19240. "
  19241. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19242. have_xinput_h_hdr=yes
  19243. else
  19244. have_xinput_h_hdr=no
  19245. fi
  19246. if test x$have_xinput_h_hdr = xyes; then
  19247. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19248. echo "-- dynamic libXi -> $xinput_lib"
  19249. cat >>confdefs.h <<_ACEOF
  19250. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19251. _ACEOF
  19252. definitely_enable_video_x11_xinput=yes
  19253. else
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19255. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19256. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19257. $as_echo_n "(cached) " >&6
  19258. else
  19259. ac_check_lib_save_LIBS=$LIBS
  19260. LIBS="-lXi $LIBS"
  19261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19262. /* end confdefs.h. */
  19263. /* Override any GCC internal prototype to avoid an error.
  19264. Use char because int might match the return type of a GCC
  19265. builtin and then its argument prototype would still apply. */
  19266. #ifdef __cplusplus
  19267. extern "C"
  19268. #endif
  19269. char XOpenDevice ();
  19270. int
  19271. main ()
  19272. {
  19273. return XOpenDevice ();
  19274. ;
  19275. return 0;
  19276. }
  19277. _ACEOF
  19278. if ac_fn_c_try_link "$LINENO"; then :
  19279. ac_cv_lib_Xi_XOpenDevice=yes
  19280. else
  19281. ac_cv_lib_Xi_XOpenDevice=no
  19282. fi
  19283. rm -f core conftest.err conftest.$ac_objext \
  19284. conftest$ac_exeext conftest.$ac_ext
  19285. LIBS=$ac_check_lib_save_LIBS
  19286. fi
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19288. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19289. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19290. have_xinput_lib=yes
  19291. fi
  19292. if test x$have_xinput_lib = xyes ; then
  19293. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19294. definitely_enable_video_x11_xinput=yes
  19295. fi
  19296. fi
  19297. fi
  19298. fi
  19299. if test x$definitely_enable_video_x11_xinput = xyes; then
  19300. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19301. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19303. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19304. have_xinput2_multitouch=no
  19305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19306. /* end confdefs.h. */
  19307. #include <X11/Xlib.h>
  19308. #include <X11/Xproto.h>
  19309. #include <X11/extensions/XInput2.h>
  19310. int
  19311. main ()
  19312. {
  19313. int event_type = XI_TouchBegin;
  19314. XITouchClassInfo *t;
  19315. ;
  19316. return 0;
  19317. }
  19318. _ACEOF
  19319. if ac_fn_c_try_compile "$LINENO"; then :
  19320. have_xinput2_multitouch=yes
  19321. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19322. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19323. fi
  19324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19326. $as_echo "$have_xinput2_multitouch" >&6; }
  19327. fi
  19328. # Check whether --enable-video-x11-xfixes was given.
  19329. if test "${enable_video_x11_xfixes+set}" = set; then :
  19330. enableval=$enable_video_x11_xfixes;
  19331. else
  19332. enable_video_x11_xfixes=yes
  19333. fi
  19334. if test x$enable_video_x11_xfixes = xyes; then
  19335. definitely_enable_video_x11_xfixes=no
  19336. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19338. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19340. /* end confdefs.h. */
  19341. #include <X11/Xlib.h>
  19342. #include <X11/Xproto.h>
  19343. #include <X11/extensions/XInput2.h>
  19344. #include <X11/extensions/Xfixes.h>
  19345. int
  19346. main ()
  19347. {
  19348. BarrierEventID b;
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. if ac_fn_c_try_compile "$LINENO"; then :
  19354. have_xfixes_h_hdr=yes
  19355. else
  19356. have_xfixes_h_hdr=no
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19360. $as_echo "$have_xfixes_h_hdr" >&6; }
  19361. if test x$have_xfixes_h_hdr = xyes; then
  19362. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19363. echo "-- dynamic libXfixes -> $xfixes_lib"
  19364. cat >>confdefs.h <<_ACEOF
  19365. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19366. _ACEOF
  19367. definitely_enable_video_x11_xfixes=yes
  19368. else
  19369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19370. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19371. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19372. $as_echo_n "(cached) " >&6
  19373. else
  19374. ac_check_lib_save_LIBS=$LIBS
  19375. LIBS="-lXfixes $LIBS"
  19376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19377. /* end confdefs.h. */
  19378. /* Override any GCC internal prototype to avoid an error.
  19379. Use char because int might match the return type of a GCC
  19380. builtin and then its argument prototype would still apply. */
  19381. #ifdef __cplusplus
  19382. extern "C"
  19383. #endif
  19384. char XFixesCreatePointerBarrier ();
  19385. int
  19386. main ()
  19387. {
  19388. return XFixesCreatePointerBarrier ();
  19389. ;
  19390. return 0;
  19391. }
  19392. _ACEOF
  19393. if ac_fn_c_try_link "$LINENO"; then :
  19394. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19395. else
  19396. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19397. fi
  19398. rm -f core conftest.err conftest.$ac_objext \
  19399. conftest$ac_exeext conftest.$ac_ext
  19400. LIBS=$ac_check_lib_save_LIBS
  19401. fi
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19403. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19404. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19405. have_xfixes_lib=yes
  19406. fi
  19407. if test x$have_xfixes_lib = xyes ; then
  19408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19409. definitely_enable_video_x11_xfixes=yes
  19410. fi
  19411. fi
  19412. fi
  19413. fi
  19414. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19415. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19416. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19417. fi
  19418. # Check whether --enable-video-x11-xrandr was given.
  19419. if test "${enable_video_x11_xrandr+set}" = set; then :
  19420. enableval=$enable_video_x11_xrandr;
  19421. else
  19422. enable_video_x11_xrandr=yes
  19423. fi
  19424. if test x$enable_video_x11_xrandr = xyes; then
  19425. definitely_enable_video_x11_xrandr=no
  19426. have_xrandr_h_hdr=no
  19427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19428. /* end confdefs.h. */
  19429. #include <X11/Xlib.h>
  19430. #include <X11/extensions/Xrandr.h>
  19431. int
  19432. main ()
  19433. {
  19434. XRRScreenResources *res = NULL;
  19435. ;
  19436. return 0;
  19437. }
  19438. _ACEOF
  19439. if ac_fn_c_try_compile "$LINENO"; then :
  19440. have_xrandr_h_hdr=yes
  19441. fi
  19442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19443. if test x$have_xrandr_h_hdr = xyes; then
  19444. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19445. echo "-- dynamic libXrandr -> $xrandr_lib"
  19446. cat >>confdefs.h <<_ACEOF
  19447. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19448. _ACEOF
  19449. definitely_enable_video_x11_xrandr=yes
  19450. else
  19451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19452. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19453. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19454. $as_echo_n "(cached) " >&6
  19455. else
  19456. ac_check_lib_save_LIBS=$LIBS
  19457. LIBS="-lXrandr $LIBS"
  19458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19459. /* end confdefs.h. */
  19460. /* Override any GCC internal prototype to avoid an error.
  19461. Use char because int might match the return type of a GCC
  19462. builtin and then its argument prototype would still apply. */
  19463. #ifdef __cplusplus
  19464. extern "C"
  19465. #endif
  19466. char XRRQueryExtension ();
  19467. int
  19468. main ()
  19469. {
  19470. return XRRQueryExtension ();
  19471. ;
  19472. return 0;
  19473. }
  19474. _ACEOF
  19475. if ac_fn_c_try_link "$LINENO"; then :
  19476. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19477. else
  19478. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19479. fi
  19480. rm -f core conftest.err conftest.$ac_objext \
  19481. conftest$ac_exeext conftest.$ac_ext
  19482. LIBS=$ac_check_lib_save_LIBS
  19483. fi
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19485. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19486. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19487. have_xrandr_lib=yes
  19488. fi
  19489. if test x$have_xrandr_lib = xyes ; then
  19490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19491. definitely_enable_video_x11_xrandr=yes
  19492. fi
  19493. fi
  19494. fi
  19495. fi
  19496. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19497. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19498. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19499. fi
  19500. # Check whether --enable-video-x11-scrnsaver was given.
  19501. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19502. enableval=$enable_video_x11_scrnsaver;
  19503. else
  19504. enable_video_x11_scrnsaver=yes
  19505. fi
  19506. if test x$enable_video_x11_scrnsaver = xyes; then
  19507. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19508. "
  19509. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19510. have_scrnsaver_h_hdr=yes
  19511. else
  19512. have_scrnsaver_h_hdr=no
  19513. fi
  19514. if test x$have_scrnsaver_h_hdr = xyes; then
  19515. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19516. echo "-- dynamic libXss -> $xss_lib"
  19517. cat >>confdefs.h <<_ACEOF
  19518. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19519. _ACEOF
  19520. definitely_enable_video_x11_scrnsaver=yes
  19521. else
  19522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19523. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19524. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19525. $as_echo_n "(cached) " >&6
  19526. else
  19527. ac_check_lib_save_LIBS=$LIBS
  19528. LIBS="-lXss $LIBS"
  19529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19530. /* end confdefs.h. */
  19531. /* Override any GCC internal prototype to avoid an error.
  19532. Use char because int might match the return type of a GCC
  19533. builtin and then its argument prototype would still apply. */
  19534. #ifdef __cplusplus
  19535. extern "C"
  19536. #endif
  19537. char XScreenSaverSuspend ();
  19538. int
  19539. main ()
  19540. {
  19541. return XScreenSaverSuspend ();
  19542. ;
  19543. return 0;
  19544. }
  19545. _ACEOF
  19546. if ac_fn_c_try_link "$LINENO"; then :
  19547. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19548. else
  19549. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19550. fi
  19551. rm -f core conftest.err conftest.$ac_objext \
  19552. conftest$ac_exeext conftest.$ac_ext
  19553. LIBS=$ac_check_lib_save_LIBS
  19554. fi
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19556. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19557. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19558. have_xss_lib=yes
  19559. fi
  19560. if test x$have_xss_lib = xyes ; then
  19561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19562. definitely_enable_video_x11_scrnsaver=yes
  19563. fi
  19564. fi
  19565. fi
  19566. fi
  19567. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19568. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19569. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19570. fi
  19571. # Check whether --enable-video-x11-xshape was given.
  19572. if test "${enable_video_x11_xshape+set}" = set; then :
  19573. enableval=$enable_video_x11_xshape;
  19574. else
  19575. enable_video_x11_xshape=yes
  19576. fi
  19577. if test x$enable_video_x11_xshape = xyes; then
  19578. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19579. "
  19580. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19581. have_shape_h_hdr=yes
  19582. else
  19583. have_shape_h_hdr=no
  19584. fi
  19585. if test x$have_shape_h_hdr = xyes; then
  19586. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19587. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19588. fi
  19589. fi
  19590. fi
  19591. fi
  19592. if test x$have_x != xyes; then
  19593. # Prevent Mesa from including X11 headers
  19594. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19595. fi
  19596. }
  19597. CheckVivanteVideo()
  19598. {
  19599. # Check whether --enable-video-vivante was given.
  19600. if test "${enable_video_vivante+set}" = set; then :
  19601. enableval=$enable_video_vivante;
  19602. else
  19603. enable_video_vivante=yes
  19604. fi
  19605. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19607. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19608. have_vivante_vdk=no
  19609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19610. /* end confdefs.h. */
  19611. #define LINUX
  19612. #define EGL_API_FB
  19613. #include <gc_vdk.h>
  19614. int
  19615. main ()
  19616. {
  19617. ;
  19618. return 0;
  19619. }
  19620. _ACEOF
  19621. if ac_fn_c_try_compile "$LINENO"; then :
  19622. have_vivante_vdk=yes
  19623. fi
  19624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19626. $as_echo "$have_vivante_vdk" >&6; }
  19627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19628. $as_echo_n "checking for Vivante FB API... " >&6; }
  19629. have_vivante_egl=no
  19630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19631. /* end confdefs.h. */
  19632. #define LINUX
  19633. #define EGL_API_FB
  19634. #include <EGL/eglvivante.h>
  19635. int
  19636. main ()
  19637. {
  19638. ;
  19639. return 0;
  19640. }
  19641. _ACEOF
  19642. if ac_fn_c_try_compile "$LINENO"; then :
  19643. have_vivante_egl=yes
  19644. fi
  19645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19647. $as_echo "$have_vivante_egl" >&6; }
  19648. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19649. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19650. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19651. if test x$have_vivante_vdk = xyes; then
  19652. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19653. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19654. fi
  19655. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19656. SUMMARY_video="${SUMMARY_video} vivante"
  19657. have_video=yes
  19658. fi
  19659. fi
  19660. }
  19661. CheckHaikuVideo()
  19662. {
  19663. if test x$enable_video = xyes; then
  19664. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19665. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19666. have_video=yes
  19667. SUMMARY_video="${SUMMARY_video} haiku"
  19668. fi
  19669. }
  19670. CheckCOCOA()
  19671. {
  19672. # Check whether --enable-video-cocoa was given.
  19673. if test "${enable_video_cocoa+set}" = set; then :
  19674. enableval=$enable_video_cocoa;
  19675. else
  19676. enable_video_cocoa=yes
  19677. fi
  19678. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19679. save_CFLAGS="$CFLAGS"
  19680. CFLAGS="$CFLAGS -x objective-c"
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19682. $as_echo_n "checking for Cocoa framework... " >&6; }
  19683. have_cocoa=no
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. #import <Cocoa/Cocoa.h>
  19687. int
  19688. main ()
  19689. {
  19690. ;
  19691. return 0;
  19692. }
  19693. _ACEOF
  19694. if ac_fn_c_try_compile "$LINENO"; then :
  19695. have_cocoa=yes
  19696. fi
  19697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19699. $as_echo "$have_cocoa" >&6; }
  19700. CFLAGS="$save_CFLAGS"
  19701. if test x$have_cocoa = xyes; then
  19702. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19703. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19704. SUMMARY_video="${SUMMARY_video} cocoa"
  19705. have_video=yes
  19706. fi
  19707. fi
  19708. }
  19709. CheckMETAL()
  19710. {
  19711. # Check whether --enable-video-metal was given.
  19712. if test "${enable_video_metal+set}" = set; then :
  19713. enableval=$enable_video_metal;
  19714. else
  19715. enable_video_metal=yes
  19716. fi
  19717. # Check whether --enable-render-metal was given.
  19718. if test "${enable_render_metal+set}" = set; then :
  19719. enableval=$enable_render_metal;
  19720. else
  19721. enable_render_metal=yes
  19722. fi
  19723. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19724. save_CFLAGS="$CFLAGS"
  19725. CFLAGS="$CFLAGS -x objective-c"
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19727. $as_echo_n "checking for Metal framework... " >&6; }
  19728. have_metal=no
  19729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19730. /* end confdefs.h. */
  19731. #import <Cocoa/Cocoa.h>
  19732. #import <Metal/Metal.h>
  19733. #import <QuartzCore/CAMetalLayer.h>
  19734. #if TARGET_CPU_X86
  19735. #error Metal doesn't work on this configuration
  19736. #endif
  19737. int
  19738. main ()
  19739. {
  19740. ;
  19741. return 0;
  19742. }
  19743. _ACEOF
  19744. if ac_fn_c_try_compile "$LINENO"; then :
  19745. have_metal=yes
  19746. fi
  19747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19748. CFLAGS="$save_CFLAGS"
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19750. $as_echo "$have_metal" >&6; }
  19751. if test x$have_metal = xyes; then
  19752. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19753. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19754. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19755. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19756. fi
  19757. SUMMARY_video="${SUMMARY_video} metal"
  19758. else
  19759. enable_video_metal=no
  19760. enable_render_metal=no
  19761. fi
  19762. fi
  19763. }
  19764. CheckDirectFB()
  19765. {
  19766. # Check whether --enable-video-directfb was given.
  19767. if test "${enable_video_directfb+set}" = set; then :
  19768. enableval=$enable_video_directfb;
  19769. else
  19770. enable_video_directfb=no
  19771. fi
  19772. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19773. pkg_failed=no
  19774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19775. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19776. if test -n "$DIRECTFB_CFLAGS"; then
  19777. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19778. elif test -n "$PKG_CONFIG"; then
  19779. if test -n "$PKG_CONFIG" && \
  19780. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19781. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19782. ac_status=$?
  19783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19784. test $ac_status = 0; }; then
  19785. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19786. test "x$?" != "x0" && pkg_failed=yes
  19787. else
  19788. pkg_failed=yes
  19789. fi
  19790. else
  19791. pkg_failed=untried
  19792. fi
  19793. if test -n "$DIRECTFB_LIBS"; then
  19794. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19795. elif test -n "$PKG_CONFIG"; then
  19796. if test -n "$PKG_CONFIG" && \
  19797. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19798. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19799. ac_status=$?
  19800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19801. test $ac_status = 0; }; then
  19802. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19803. test "x$?" != "x0" && pkg_failed=yes
  19804. else
  19805. pkg_failed=yes
  19806. fi
  19807. else
  19808. pkg_failed=untried
  19809. fi
  19810. if test $pkg_failed = yes; then
  19811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19812. $as_echo "no" >&6; }
  19813. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19814. _pkg_short_errors_supported=yes
  19815. else
  19816. _pkg_short_errors_supported=no
  19817. fi
  19818. if test $_pkg_short_errors_supported = yes; then
  19819. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19820. else
  19821. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19822. fi
  19823. # Put the nasty error message in config.log where it belongs
  19824. echo "$DIRECTFB_PKG_ERRORS" >&5
  19825. video_directfb=no
  19826. elif test $pkg_failed = untried; then
  19827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19828. $as_echo "no" >&6; }
  19829. video_directfb=no
  19830. else
  19831. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19832. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19834. $as_echo "yes" >&6; }
  19835. video_directfb=yes
  19836. fi
  19837. if test x$video_directfb = xyes; then
  19838. # SuSE 11.1 installs directfb-config without directfb-devel
  19839. save_CPPFLAGS="$CPPFLAGS"
  19840. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19841. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19842. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19843. have_directfb_hdr=yes
  19844. else
  19845. have_directfb_hdr=no
  19846. fi
  19847. CPPFLAGS="$save_CPPFLAGS"
  19848. video_directfb=$have_directfb_hdr
  19849. fi
  19850. if test x$video_directfb = xyes; then
  19851. # Check whether --enable-directfb-shared was given.
  19852. if test "${enable_directfb_shared+set}" = set; then :
  19853. enableval=$enable_directfb_shared;
  19854. else
  19855. enable_directfb_shared=yes
  19856. fi
  19857. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19858. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19859. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19860. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19861. directfb_shared=no
  19862. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19863. if test x$have_loadso != xyes && \
  19864. test x$enable_directfb_shared = xyes; then
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19866. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19867. fi
  19868. if test x$have_loadso = xyes && \
  19869. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19870. directfb_shared=yes
  19871. echo "-- dynamic libdirectfb -> $directfb_lib"
  19872. cat >>confdefs.h <<_ACEOF
  19873. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19874. _ACEOF
  19875. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19876. else
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19878. SUMMARY_video="${SUMMARY_video} directfb"
  19879. fi
  19880. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19881. have_video=yes
  19882. fi
  19883. fi
  19884. }
  19885. CheckKMSDRM()
  19886. {
  19887. # Check whether --enable-video-kmsdrm was given.
  19888. if test "${enable_video_kmsdrm+set}" = set; then :
  19889. enableval=$enable_video_kmsdrm;
  19890. else
  19891. enable_video_kmsdrm=yes
  19892. fi
  19893. if test x$enable_video = xyes && \
  19894. test x$enable_video_kmsdrm = xyes && \
  19895. test x$video_opengl_egl = xyes; then
  19896. video_kmsdrm=no
  19897. pkg_failed=no
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19899. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19900. if test -n "$LIBDRM_CFLAGS"; then
  19901. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19902. elif test -n "$PKG_CONFIG"; then
  19903. if test -n "$PKG_CONFIG" && \
  19904. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19905. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19906. ac_status=$?
  19907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19908. test $ac_status = 0; }; then
  19909. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19910. test "x$?" != "x0" && pkg_failed=yes
  19911. else
  19912. pkg_failed=yes
  19913. fi
  19914. else
  19915. pkg_failed=untried
  19916. fi
  19917. if test -n "$LIBDRM_LIBS"; then
  19918. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19919. elif test -n "$PKG_CONFIG"; then
  19920. if test -n "$PKG_CONFIG" && \
  19921. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19922. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19923. ac_status=$?
  19924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19925. test $ac_status = 0; }; then
  19926. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19927. test "x$?" != "x0" && pkg_failed=yes
  19928. else
  19929. pkg_failed=yes
  19930. fi
  19931. else
  19932. pkg_failed=untried
  19933. fi
  19934. if test $pkg_failed = yes; then
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19936. $as_echo "no" >&6; }
  19937. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19938. _pkg_short_errors_supported=yes
  19939. else
  19940. _pkg_short_errors_supported=no
  19941. fi
  19942. if test $_pkg_short_errors_supported = yes; then
  19943. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19944. else
  19945. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19946. fi
  19947. # Put the nasty error message in config.log where it belongs
  19948. echo "$LIBDRM_PKG_ERRORS" >&5
  19949. libdrm_avail=no
  19950. elif test $pkg_failed = untried; then
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19952. $as_echo "no" >&6; }
  19953. libdrm_avail=no
  19954. else
  19955. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19956. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19958. $as_echo "yes" >&6; }
  19959. libdrm_avail=yes
  19960. fi
  19961. pkg_failed=no
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19963. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19964. if test -n "$LIBGBM_CFLAGS"; then
  19965. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19966. elif test -n "$PKG_CONFIG"; then
  19967. if test -n "$PKG_CONFIG" && \
  19968. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19969. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19970. ac_status=$?
  19971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19972. test $ac_status = 0; }; then
  19973. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19974. test "x$?" != "x0" && pkg_failed=yes
  19975. else
  19976. pkg_failed=yes
  19977. fi
  19978. else
  19979. pkg_failed=untried
  19980. fi
  19981. if test -n "$LIBGBM_LIBS"; then
  19982. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19983. elif test -n "$PKG_CONFIG"; then
  19984. if test -n "$PKG_CONFIG" && \
  19985. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19986. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19987. ac_status=$?
  19988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19989. test $ac_status = 0; }; then
  19990. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19991. test "x$?" != "x0" && pkg_failed=yes
  19992. else
  19993. pkg_failed=yes
  19994. fi
  19995. else
  19996. pkg_failed=untried
  19997. fi
  19998. if test $pkg_failed = yes; then
  19999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20000. $as_echo "no" >&6; }
  20001. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20002. _pkg_short_errors_supported=yes
  20003. else
  20004. _pkg_short_errors_supported=no
  20005. fi
  20006. if test $_pkg_short_errors_supported = yes; then
  20007. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20008. else
  20009. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  20010. fi
  20011. # Put the nasty error message in config.log where it belongs
  20012. echo "$LIBGBM_PKG_ERRORS" >&5
  20013. libgbm_avail=no
  20014. elif test $pkg_failed = untried; then
  20015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20016. $as_echo "no" >&6; }
  20017. libgbm_avail=no
  20018. else
  20019. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  20020. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  20021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20022. $as_echo "yes" >&6; }
  20023. libgbm_avail=yes
  20024. fi
  20025. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  20026. video_kmsdrm=yes
  20027. fi
  20028. if test x$video_kmsdrm = xyes; then
  20029. # Check whether --enable-kmsdrm-shared was given.
  20030. if test "${enable_kmsdrm_shared+set}" = set; then :
  20031. enableval=$enable_kmsdrm_shared;
  20032. else
  20033. enable_kmsdrm_shared=yes
  20034. fi
  20035. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  20036. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  20037. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  20039. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  20040. kmsdrm_shared=no
  20041. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  20042. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  20043. if test x$have_loadso != xyes && \
  20044. test x$enable_kmsdrm_shared = xyes; then
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  20046. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  20047. fi
  20048. if test x$have_loadso = xyes && \
  20049. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  20050. kmsdrm_shared=yes
  20051. cat >>confdefs.h <<_ACEOF
  20052. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  20053. _ACEOF
  20054. cat >>confdefs.h <<_ACEOF
  20055. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  20056. _ACEOF
  20057. cat >>confdefs.h <<_ACEOF
  20058. #define HAVE_KMSDRM_SHARED "TRUE"
  20059. _ACEOF
  20060. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  20061. else
  20062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  20063. SUMMARY_video="${SUMMARY_video} kmsdrm"
  20064. fi
  20065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  20066. $as_echo "$kmsdrm_shared" >&6; }
  20067. if test x$kmsdrm_shared = xyes; then
  20068. echo "-- dynamic libdrm -> $drm_lib"
  20069. echo "-- dynamic libgbm -> $gbm_lib"
  20070. fi
  20071. have_video=yes
  20072. fi
  20073. fi
  20074. }
  20075. CheckDummyVideo()
  20076. {
  20077. # Check whether --enable-video-dummy was given.
  20078. if test "${enable_video_dummy+set}" = set; then :
  20079. enableval=$enable_video_dummy;
  20080. else
  20081. enable_video_dummy=yes
  20082. fi
  20083. if test x$enable_video_dummy = xyes; then
  20084. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  20085. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  20086. have_video=yes
  20087. SUMMARY_video="${SUMMARY_video} dummy"
  20088. fi
  20089. }
  20090. CheckOffscreenVideo()
  20091. {
  20092. # Check whether --enable-video-offscreen was given.
  20093. if test "${enable_video_offscreen+set}" = set; then :
  20094. enableval=$enable_video_offscreen;
  20095. else
  20096. enable_video_offscreen=no
  20097. fi
  20098. if test x$enable_video_offscreen = xyes; then
  20099. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  20100. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  20101. have_video=yes
  20102. SUMMARY_video="${SUMMARY_video} offscreen"
  20103. fi
  20104. }
  20105. CheckQNXVideo()
  20106. {
  20107. if test x$enable_video = xyes; then
  20108. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  20109. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  20110. have_video=yes
  20111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  20112. SUMMARY_video="${SUMMARY_video} qnx"
  20113. fi
  20114. }
  20115. CheckQNXAudio()
  20116. {
  20117. if test x$enable_audio = xyes; then
  20118. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  20119. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  20120. have_audio=yes
  20121. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  20122. SUMMARY_audio="${SUMMARY_audio} qsa"
  20123. fi
  20124. }
  20125. # Check whether --enable-video-opengl was given.
  20126. if test "${enable_video_opengl+set}" = set; then :
  20127. enableval=$enable_video_opengl;
  20128. else
  20129. enable_video_opengl=yes
  20130. fi
  20131. CheckGLX()
  20132. {
  20133. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  20135. $as_echo_n "checking for GLX support... " >&6; }
  20136. video_opengl_glx=no
  20137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20138. /* end confdefs.h. */
  20139. #include <GL/glx.h>
  20140. int
  20141. main ()
  20142. {
  20143. ;
  20144. return 0;
  20145. }
  20146. _ACEOF
  20147. if ac_fn_c_try_compile "$LINENO"; then :
  20148. video_opengl_glx=yes
  20149. fi
  20150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20152. $as_echo "$video_opengl_glx" >&6; }
  20153. if test x$video_opengl_glx = xyes; then
  20154. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20155. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20156. fi
  20157. fi
  20158. }
  20159. # Check whether --enable-video-opengles was given.
  20160. if test "${enable_video_opengles+set}" = set; then :
  20161. enableval=$enable_video_opengles;
  20162. else
  20163. enable_video_opengles=yes
  20164. fi
  20165. # Check whether --enable-video-opengles1 was given.
  20166. if test "${enable_video_opengles1+set}" = set; then :
  20167. enableval=$enable_video_opengles1;
  20168. else
  20169. enable_video_opengles1=yes
  20170. fi
  20171. # Check whether --enable-video-opengles2 was given.
  20172. if test "${enable_video_opengles2+set}" = set; then :
  20173. enableval=$enable_video_opengles2;
  20174. else
  20175. enable_video_opengles2=yes
  20176. fi
  20177. CheckEGL()
  20178. {
  20179. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20181. $as_echo_n "checking for EGL support... " >&6; }
  20182. video_opengl_egl=no
  20183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20184. /* end confdefs.h. */
  20185. #define LINUX
  20186. #define EGL_API_FB
  20187. #define MESA_EGL_NO_X11_HEADERS
  20188. #define EGL_NO_X11
  20189. #include <EGL/egl.h>
  20190. #include <EGL/eglext.h>
  20191. int
  20192. main ()
  20193. {
  20194. ;
  20195. return 0;
  20196. }
  20197. _ACEOF
  20198. if ac_fn_c_try_compile "$LINENO"; then :
  20199. video_opengl_egl=yes
  20200. fi
  20201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20203. $as_echo "$video_opengl_egl" >&6; }
  20204. if test x$video_opengl_egl = xyes; then
  20205. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20206. fi
  20207. fi
  20208. }
  20209. CheckOpenGL()
  20210. {
  20211. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20213. $as_echo_n "checking for OpenGL headers... " >&6; }
  20214. video_opengl=no
  20215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20216. /* end confdefs.h. */
  20217. #include <GL/gl.h>
  20218. #include <GL/glext.h>
  20219. int
  20220. main ()
  20221. {
  20222. ;
  20223. return 0;
  20224. }
  20225. _ACEOF
  20226. if ac_fn_c_try_compile "$LINENO"; then :
  20227. video_opengl=yes
  20228. fi
  20229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20231. $as_echo "$video_opengl" >&6; }
  20232. if test x$video_opengl = xyes; then
  20233. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20234. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20235. SUMMARY_video="${SUMMARY_video} opengl"
  20236. fi
  20237. fi
  20238. }
  20239. CheckOpenGLES()
  20240. {
  20241. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20242. if test x$enable_video_opengles1 = xyes; then
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20244. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20245. video_opengles_v1=no
  20246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20247. /* end confdefs.h. */
  20248. #include <GLES/gl.h>
  20249. #include <GLES/glext.h>
  20250. int
  20251. main ()
  20252. {
  20253. ;
  20254. return 0;
  20255. }
  20256. _ACEOF
  20257. if ac_fn_c_try_compile "$LINENO"; then :
  20258. video_opengles_v1=yes
  20259. fi
  20260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20262. $as_echo "$video_opengles_v1" >&6; }
  20263. if test x$video_opengles_v1 = xyes; then
  20264. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20265. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20266. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20267. fi
  20268. fi
  20269. if test x$enable_video_opengles2 = xyes; then
  20270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20271. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20272. video_opengles_v2=no
  20273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20274. /* end confdefs.h. */
  20275. #include <GLES2/gl2.h>
  20276. #include <GLES2/gl2ext.h>
  20277. int
  20278. main ()
  20279. {
  20280. ;
  20281. return 0;
  20282. }
  20283. _ACEOF
  20284. if ac_fn_c_try_compile "$LINENO"; then :
  20285. video_opengles_v2=yes
  20286. fi
  20287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20289. $as_echo "$video_opengles_v2" >&6; }
  20290. if test x$video_opengles_v2 = xyes; then
  20291. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20292. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20293. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20294. fi
  20295. fi
  20296. fi
  20297. }
  20298. CheckWINDOWSGL()
  20299. {
  20300. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20301. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20302. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20303. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20304. SUMMARY_video="${SUMMARY_video} opengl"
  20305. fi
  20306. }
  20307. CheckWINDOWSGLES()
  20308. {
  20309. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20311. $as_echo_n "checking for EGL support... " >&6; }
  20312. video_opengl_egl=no
  20313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20314. /* end confdefs.h. */
  20315. #include <EGL/egl.h>
  20316. int
  20317. main ()
  20318. {
  20319. ;
  20320. return 0;
  20321. }
  20322. _ACEOF
  20323. if ac_fn_c_try_compile "$LINENO"; then :
  20324. video_opengl_egl=yes
  20325. fi
  20326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20328. $as_echo "$video_opengl_egl" >&6; }
  20329. if test x$video_opengl_egl = xyes; then
  20330. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20331. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20332. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20333. fi
  20334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20335. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20336. video_opengles_v2=no
  20337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20338. /* end confdefs.h. */
  20339. #include <GLES2/gl2.h>
  20340. #include <GLES2/gl2ext.h>
  20341. int
  20342. main ()
  20343. {
  20344. ;
  20345. return 0;
  20346. }
  20347. _ACEOF
  20348. if ac_fn_c_try_compile "$LINENO"; then :
  20349. video_opengles_v2=yes
  20350. fi
  20351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20353. $as_echo "$video_opengles_v2" >&6; }
  20354. if test x$video_opengles_v2 = xyes; then
  20355. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20356. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20357. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20358. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20359. fi
  20360. fi
  20361. }
  20362. CheckHaikuGL()
  20363. {
  20364. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20365. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20366. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20367. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20369. SUMMARY_video="${SUMMARY_video} opengl"
  20370. fi
  20371. }
  20372. CheckMacGL()
  20373. {
  20374. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20375. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20376. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20377. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20378. SUMMARY_video="${SUMMARY_video} opengl"
  20379. fi
  20380. }
  20381. CheckMacGLES()
  20382. {
  20383. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20384. video_opengl_egl=yes
  20385. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20386. video_opengles_v2=yes
  20387. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20388. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20389. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20390. fi
  20391. }
  20392. CheckEmscriptenGLES()
  20393. {
  20394. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20396. $as_echo_n "checking for EGL support... " >&6; }
  20397. video_opengl_egl=no
  20398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20399. /* end confdefs.h. */
  20400. #include <EGL/egl.h>
  20401. int
  20402. main ()
  20403. {
  20404. ;
  20405. return 0;
  20406. }
  20407. _ACEOF
  20408. if ac_fn_c_try_compile "$LINENO"; then :
  20409. video_opengl_egl=yes
  20410. fi
  20411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20413. $as_echo "$video_opengl_egl" >&6; }
  20414. if test x$video_opengl_egl = xyes; then
  20415. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20416. fi
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20418. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20419. video_opengles_v2=no
  20420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20421. /* end confdefs.h. */
  20422. #include <GLES2/gl2.h>
  20423. #include <GLES2/gl2ext.h>
  20424. int
  20425. main ()
  20426. {
  20427. ;
  20428. return 0;
  20429. }
  20430. _ACEOF
  20431. if ac_fn_c_try_compile "$LINENO"; then :
  20432. video_opengles_v2=yes
  20433. fi
  20434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20436. $as_echo "$video_opengles_v2" >&6; }
  20437. if test x$video_opengles_v2 = xyes; then
  20438. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20439. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20440. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20441. fi
  20442. fi
  20443. }
  20444. # Check whether --enable-video-vulkan was given.
  20445. if test "${enable_video_vulkan+set}" = set; then :
  20446. enableval=$enable_video_vulkan;
  20447. else
  20448. enable_video_vulkan=yes
  20449. fi
  20450. CheckVulkan()
  20451. {
  20452. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20453. case "$host" in
  20454. *-*-android*)
  20455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20456. /* end confdefs.h. */
  20457. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20458. #error Vulkan doesn't work on this configuration
  20459. #endif
  20460. int
  20461. main ()
  20462. {
  20463. ;
  20464. return 0;
  20465. }
  20466. _ACEOF
  20467. if ac_fn_c_try_compile "$LINENO"; then :
  20468. else
  20469. enable_video_vulkan=no
  20470. fi
  20471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20472. ;;
  20473. *-*-darwin*)
  20474. save_CFLAGS="$CFLAGS"
  20475. CFLAGS="$CFLAGS -x objective-c"
  20476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20477. /* end confdefs.h. */
  20478. #include <Cocoa/Cocoa.h>
  20479. #include <Metal/Metal.h>
  20480. #include <QuartzCore/CAMetalLayer.h>
  20481. #if TARGET_CPU_X86
  20482. #error Vulkan doesn't work on this configuration
  20483. #endif
  20484. int
  20485. main ()
  20486. {
  20487. ;
  20488. return 0;
  20489. }
  20490. _ACEOF
  20491. if ac_fn_c_try_compile "$LINENO"; then :
  20492. else
  20493. enable_video_vulkan=no
  20494. fi
  20495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20496. CFLAGS="$save_CFLAGS"
  20497. ;;
  20498. *)
  20499. ;;
  20500. esac
  20501. if test x$enable_video_vulkan = xno; then
  20502. # For reasons I am totally unable to see, I get an undefined macro error if
  20503. # I put this in the AC_TRY_COMPILE.
  20504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20505. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20506. fi
  20507. fi
  20508. if test x$have_loadso != xyes; then
  20509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20510. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20511. enable_video_vulkan=no
  20512. fi
  20513. if test x$enable_video_vulkan = xyes; then
  20514. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20515. SUMMARY_video="${SUMMARY_video} vulkan"
  20516. fi
  20517. }
  20518. CheckInputEvents()
  20519. {
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20521. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20522. use_input_events=no
  20523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20524. /* end confdefs.h. */
  20525. #include <linux/input.h>
  20526. int
  20527. main ()
  20528. {
  20529. #ifndef EVIOCGNAME
  20530. #error EVIOCGNAME() ioctl not available
  20531. #endif
  20532. ;
  20533. return 0;
  20534. }
  20535. _ACEOF
  20536. if ac_fn_c_try_compile "$LINENO"; then :
  20537. use_input_events=yes
  20538. fi
  20539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20541. $as_echo "$use_input_events" >&6; }
  20542. if test x$use_input_events = xyes; then
  20543. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20544. SUMMARY_input="${SUMMARY_input} linuxev"
  20545. fi
  20546. }
  20547. CheckInputKD()
  20548. {
  20549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20550. $as_echo_n "checking for Linux kd.h... " >&6; }
  20551. use_input_kd=no
  20552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20553. /* end confdefs.h. */
  20554. #include <linux/kd.h>
  20555. #include <linux/keyboard.h>
  20556. int
  20557. main ()
  20558. {
  20559. struct kbentry kbe;
  20560. kbe.kb_table = KG_CTRL;
  20561. ioctl(0, KDGKBENT, &kbe);
  20562. ;
  20563. return 0;
  20564. }
  20565. _ACEOF
  20566. if ac_fn_c_try_compile "$LINENO"; then :
  20567. use_input_kd=yes
  20568. fi
  20569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20571. $as_echo "$use_input_kd" >&6; }
  20572. if test x$use_input_kd = xyes; then
  20573. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20574. SUMMARY_input="${SUMMARY_input} linuxkd"
  20575. fi
  20576. }
  20577. CheckInputKBIO()
  20578. {
  20579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20580. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20581. use_input_kbio=no
  20582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20583. /* end confdefs.h. */
  20584. #include <sys/kbio.h>
  20585. #include <sys/ioctl.h>
  20586. int
  20587. main ()
  20588. {
  20589. accentmap_t accTable;
  20590. ioctl(0, KDENABIO, 1);
  20591. ;
  20592. return 0;
  20593. }
  20594. _ACEOF
  20595. if ac_fn_c_try_compile "$LINENO"; then :
  20596. use_input_kbio=yes
  20597. fi
  20598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20600. $as_echo "$use_input_kbio" >&6; }
  20601. if test x$use_input_kbio = xyes; then
  20602. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20603. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20604. fi
  20605. }
  20606. CheckInputWSCONS()
  20607. {
  20608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20609. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20610. use_input_wscons=no
  20611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20612. /* end confdefs.h. */
  20613. #include <sys/time.h>
  20614. #include <dev/wscons/wsconsio.h>
  20615. #include <dev/wscons/wsksymdef.h>
  20616. #include <dev/wscons/wsksymvar.h>
  20617. #include <sys/ioctl.h>
  20618. int
  20619. main ()
  20620. {
  20621. struct wskbd_map_data data;
  20622. ioctl(0, WSKBDIO_GETMAP, &data);
  20623. ;
  20624. return 0;
  20625. }
  20626. _ACEOF
  20627. if ac_fn_c_try_compile "$LINENO"; then :
  20628. use_input_wscons=yes
  20629. fi
  20630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20632. $as_echo "$use_input_wscons" >&6; }
  20633. if test x$use_input_wscons = xyes; then
  20634. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20635. SUMMARY_input="${SUMMARY_input} wscons"
  20636. fi
  20637. }
  20638. CheckLibUDev()
  20639. {
  20640. # Check whether --enable-libudev was given.
  20641. if test "${enable_libudev+set}" = set; then :
  20642. enableval=$enable_libudev;
  20643. else
  20644. enable_libudev=yes
  20645. fi
  20646. if test x$enable_libudev = xyes; then
  20647. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20648. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20649. have_libudev_h_hdr=yes
  20650. else
  20651. have_libudev_h_hdr=no
  20652. fi
  20653. if test x$have_libudev_h_hdr = xyes; then
  20654. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20655. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20656. if test x$udev_lib != x; then
  20657. echo "-- dynamic udev -> $udev_lib"
  20658. cat >>confdefs.h <<_ACEOF
  20659. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20660. _ACEOF
  20661. fi
  20662. fi
  20663. fi
  20664. }
  20665. CheckDBus()
  20666. {
  20667. # Check whether --enable-dbus was given.
  20668. if test "${enable_dbus+set}" = set; then :
  20669. enableval=$enable_dbus;
  20670. else
  20671. enable_dbus=yes
  20672. fi
  20673. if test x$enable_dbus = xyes; then
  20674. pkg_failed=no
  20675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20676. $as_echo_n "checking for dbus-1... " >&6; }
  20677. if test -n "$DBUS_CFLAGS"; then
  20678. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20679. elif test -n "$PKG_CONFIG"; then
  20680. if test -n "$PKG_CONFIG" && \
  20681. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20682. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20683. ac_status=$?
  20684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20685. test $ac_status = 0; }; then
  20686. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20687. test "x$?" != "x0" && pkg_failed=yes
  20688. else
  20689. pkg_failed=yes
  20690. fi
  20691. else
  20692. pkg_failed=untried
  20693. fi
  20694. if test -n "$DBUS_LIBS"; then
  20695. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20696. elif test -n "$PKG_CONFIG"; then
  20697. if test -n "$PKG_CONFIG" && \
  20698. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20699. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20700. ac_status=$?
  20701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20702. test $ac_status = 0; }; then
  20703. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20704. test "x$?" != "x0" && pkg_failed=yes
  20705. else
  20706. pkg_failed=yes
  20707. fi
  20708. else
  20709. pkg_failed=untried
  20710. fi
  20711. if test $pkg_failed = yes; then
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20713. $as_echo "no" >&6; }
  20714. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20715. _pkg_short_errors_supported=yes
  20716. else
  20717. _pkg_short_errors_supported=no
  20718. fi
  20719. if test $_pkg_short_errors_supported = yes; then
  20720. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20721. else
  20722. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20723. fi
  20724. # Put the nasty error message in config.log where it belongs
  20725. echo "$DBUS_PKG_ERRORS" >&5
  20726. have_dbus=no
  20727. elif test $pkg_failed = untried; then
  20728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20729. $as_echo "no" >&6; }
  20730. have_dbus=no
  20731. else
  20732. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20733. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20735. $as_echo "yes" >&6; }
  20736. have_dbus=yes
  20737. fi
  20738. save_CPPFLAGS="$CPPFLAGS"
  20739. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20740. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20741. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20742. have_dbus_dbus_h_hdr=yes
  20743. else
  20744. have_dbus_dbus_h_hdr=no
  20745. fi
  20746. CPPFLAGS="$save_CPPFLAGS"
  20747. if test x$have_dbus_dbus_h_hdr = xyes; then
  20748. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20749. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20750. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20751. fi
  20752. fi
  20753. }
  20754. CheckIME()
  20755. {
  20756. # Check whether --enable-ime was given.
  20757. if test "${enable_ime+set}" = set; then :
  20758. enableval=$enable_ime;
  20759. else
  20760. enable_ime=yes
  20761. fi
  20762. if test x$enable_ime = xyes; then
  20763. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20764. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20765. fi
  20766. }
  20767. CheckInotify()
  20768. {
  20769. save_LIBS="$LIBS"
  20770. case "$host" in
  20771. *-*-freebsd*) LIBS="$LIBS -linotify"
  20772. ;;
  20773. esac
  20774. for ac_header in sys/inotify.h
  20775. do :
  20776. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20777. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20778. cat >>confdefs.h <<_ACEOF
  20779. #define HAVE_SYS_INOTIFY_H 1
  20780. _ACEOF
  20781. have_inotify_inotify_h_hdr=yes
  20782. fi
  20783. done
  20784. for ac_func in inotify_init
  20785. do :
  20786. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20787. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20788. cat >>confdefs.h <<_ACEOF
  20789. #define HAVE_INOTIFY_INIT 1
  20790. _ACEOF
  20791. have_inotify=yes
  20792. fi
  20793. done
  20794. for ac_func in inotify_init1
  20795. do :
  20796. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20797. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20798. cat >>confdefs.h <<_ACEOF
  20799. #define HAVE_INOTIFY_INIT1 1
  20800. _ACEOF
  20801. fi
  20802. done
  20803. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20804. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20805. case "$host" in
  20806. *-*-freebsd*)
  20807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20808. ;;
  20809. esac
  20810. fi
  20811. LIBS="$save_LIBS"
  20812. }
  20813. CheckIBus()
  20814. {
  20815. # Check whether --enable-ibus was given.
  20816. if test "${enable_ibus+set}" = set; then :
  20817. enableval=$enable_ibus;
  20818. else
  20819. enable_ibus=yes
  20820. fi
  20821. if test x$enable_ibus = xyes; then
  20822. pkg_failed=no
  20823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20824. $as_echo_n "checking for ibus-1.0... " >&6; }
  20825. if test -n "$IBUS_CFLAGS"; then
  20826. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20827. elif test -n "$PKG_CONFIG"; then
  20828. if test -n "$PKG_CONFIG" && \
  20829. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20830. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20831. ac_status=$?
  20832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20833. test $ac_status = 0; }; then
  20834. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20835. test "x$?" != "x0" && pkg_failed=yes
  20836. else
  20837. pkg_failed=yes
  20838. fi
  20839. else
  20840. pkg_failed=untried
  20841. fi
  20842. if test -n "$IBUS_LIBS"; then
  20843. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20844. elif test -n "$PKG_CONFIG"; then
  20845. if test -n "$PKG_CONFIG" && \
  20846. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20847. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20848. ac_status=$?
  20849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20850. test $ac_status = 0; }; then
  20851. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20852. test "x$?" != "x0" && pkg_failed=yes
  20853. else
  20854. pkg_failed=yes
  20855. fi
  20856. else
  20857. pkg_failed=untried
  20858. fi
  20859. if test $pkg_failed = yes; then
  20860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20861. $as_echo "no" >&6; }
  20862. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20863. _pkg_short_errors_supported=yes
  20864. else
  20865. _pkg_short_errors_supported=no
  20866. fi
  20867. if test $_pkg_short_errors_supported = yes; then
  20868. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20869. else
  20870. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20871. fi
  20872. # Put the nasty error message in config.log where it belongs
  20873. echo "$IBUS_PKG_ERRORS" >&5
  20874. have_ibus=no
  20875. elif test $pkg_failed = untried; then
  20876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20877. $as_echo "no" >&6; }
  20878. have_ibus=no
  20879. else
  20880. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20881. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20883. $as_echo "yes" >&6; }
  20884. have_ibus=yes
  20885. fi
  20886. save_CPPFLAGS="$CPPFLAGS"
  20887. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20888. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20889. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20890. have_ibus_ibus_h_hdr=yes
  20891. else
  20892. have_ibus_ibus_h_hdr=no
  20893. fi
  20894. CPPFLAGS="$save_CPPFLAGS"
  20895. if test x$have_ibus_ibus_h_hdr = xyes; then
  20896. if test x$enable_ime != xyes; then
  20897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20898. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20899. have_ibus_ibus_h_hdr=no
  20900. elif test x$enable_dbus != xyes; then
  20901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20902. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20903. have_ibus_ibus_h_hdr=no
  20904. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20906. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20907. have_ibus_ibus_h_hdr=no
  20908. else
  20909. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20910. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20911. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20912. fi
  20913. fi
  20914. fi
  20915. }
  20916. CheckFcitx()
  20917. {
  20918. # Check whether --enable-fcitx was given.
  20919. if test "${enable_fcitx+set}" = set; then :
  20920. enableval=$enable_fcitx;
  20921. else
  20922. enable_fcitx=yes
  20923. fi
  20924. if test x$enable_fcitx = xyes; then
  20925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20926. $as_echo_n "checking for fcitx support... " >&6; }
  20927. have_fcitx=no
  20928. if test x$enable_ime != xyes; then
  20929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20930. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20931. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20933. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20934. else
  20935. have_fcitx=yes
  20936. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20937. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20938. fi
  20939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20940. $as_echo "$have_fcitx" >&6; }
  20941. fi
  20942. }
  20943. CheckJoystickMFI()
  20944. {
  20945. # Check whether --enable-joystick-mfi was given.
  20946. if test "${enable_joystick_mfi+set}" = set; then :
  20947. enableval=$enable_joystick_mfi;
  20948. else
  20949. enable_joystick_mfi=yes
  20950. fi
  20951. if test x$enable_joystick_mfi = xyes; then
  20952. save_CFLAGS="$CFLAGS"
  20953. save_LDFLAGS="$LDFLAGS"
  20954. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20955. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20957. $as_echo_n "checking for GameController framework... " >&6; }
  20958. enable_joystick_mfi=no
  20959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20960. /* end confdefs.h. */
  20961. #include <AvailabilityMacros.h>
  20962. #include <TargetConditionals.h>
  20963. #import <GameController/GameController.h>
  20964. int
  20965. main ()
  20966. {
  20967. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20968. #error GameController framework doesn't work on this configuration
  20969. #endif
  20970. #if TARGET_CPU_X86
  20971. #error GameController framework doesn't work on this configuration
  20972. #endif
  20973. ;
  20974. return 0;
  20975. }
  20976. _ACEOF
  20977. if ac_fn_c_try_link "$LINENO"; then :
  20978. enable_joystick_mfi=yes
  20979. fi
  20980. rm -f core conftest.err conftest.$ac_objext \
  20981. conftest$ac_exeext conftest.$ac_ext
  20982. CFLAGS="$save_CFLAGS"
  20983. LDFLAGS="$save_LDFLAGS"
  20984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20985. $as_echo "$enable_joystick_mfi" >&6; }
  20986. if test x$enable_joystick_mfi = xyes; then
  20987. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20988. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20989. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20990. fi
  20991. fi
  20992. }
  20993. CheckPTHREAD()
  20994. {
  20995. case "$host" in
  20996. *-*-emscripten*)
  20997. enable_pthreads_default=no
  20998. ;;
  20999. *)
  21000. enable_pthreads_default=yes
  21001. ;;
  21002. esac
  21003. # Check whether --enable-pthreads was given.
  21004. if test "${enable_pthreads+set}" = set; then :
  21005. enableval=$enable_pthreads;
  21006. else
  21007. enable_pthreads=maybe
  21008. fi
  21009. # Check whether --enable-pthread-sem was given.
  21010. if test "${enable_pthread_sem+set}" = set; then :
  21011. enableval=$enable_pthread_sem;
  21012. else
  21013. enable_pthread_sem=maybe
  21014. fi
  21015. if test x$enable_pthreads = xmaybe; then
  21016. enable_pthreads=$enable_pthreads_default
  21017. fi
  21018. if test x$enable_pthread_sem = xmaybe; then
  21019. enable_pthread_sem=$enable_pthreads
  21020. fi
  21021. case "$host" in
  21022. *-*-android*)
  21023. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21024. pthread_lib=""
  21025. ;;
  21026. *-*-linux*|*-*-uclinux*)
  21027. pthread_cflags="-D_REENTRANT"
  21028. pthread_lib="-lpthread"
  21029. ;;
  21030. *-*-bsdi*)
  21031. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21032. pthread_lib=""
  21033. ;;
  21034. *-*-darwin*)
  21035. pthread_cflags="-D_THREAD_SAFE"
  21036. # causes Carbon.p complaints?
  21037. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21038. ;;
  21039. *-*-freebsd*|*-*-dragonfly*)
  21040. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21041. pthread_lib="-pthread"
  21042. ;;
  21043. *-*-netbsd*)
  21044. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  21045. pthread_lib="-lpthread"
  21046. ;;
  21047. *-*-openbsd*)
  21048. pthread_cflags="-D_REENTRANT"
  21049. pthread_lib="-pthread"
  21050. ;;
  21051. *-*-solaris2.9)
  21052. # From Solaris 9+, posix4's preferred name is rt.
  21053. pthread_cflags="-D_REENTRANT"
  21054. pthread_lib="-lpthread -lrt"
  21055. ;;
  21056. *-*-solaris2.10)
  21057. # Solaris 10+ merged pthread into libc.
  21058. pthread_cflags="-D_REENTRANT"
  21059. pthread_lib="-lrt"
  21060. ;;
  21061. *-*-solaris*)
  21062. # Solaris 11+ merged rt into libc.
  21063. pthread_cflags="-D_REENTRANT"
  21064. pthread_lib=""
  21065. ;;
  21066. *-*-sysv5*)
  21067. pthread_cflags="-D_REENTRANT -Kthread"
  21068. pthread_lib=""
  21069. ;;
  21070. *-*-aix*)
  21071. pthread_cflags="-D_REENTRANT -mthreads"
  21072. pthread_lib="-lpthread"
  21073. ;;
  21074. *-*-hpux11*)
  21075. pthread_cflags="-D_REENTRANT"
  21076. pthread_lib="-L/usr/lib -lpthread"
  21077. ;;
  21078. *-*-haiku*)
  21079. pthread_cflags="-D_REENTRANT"
  21080. pthread_lib=""
  21081. ;;
  21082. *-*-nto*)
  21083. pthread_cflags="-D_REENTRANT"
  21084. pthread_lib=""
  21085. ;;
  21086. *-*-emscripten*)
  21087. pthread_cflags="-D_REENTRANT -pthread"
  21088. pthread_lib="-pthread"
  21089. ;;
  21090. *)
  21091. pthread_cflags="-D_REENTRANT"
  21092. pthread_lib="-lpthread"
  21093. ;;
  21094. esac
  21095. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  21096. # Save the original compiler flags and libraries
  21097. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21098. # Add the pthread compiler flags and libraries
  21099. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21100. # Check to see if we have pthread support on this system
  21101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  21102. $as_echo_n "checking for pthreads... " >&6; }
  21103. use_pthreads=no
  21104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21105. /* end confdefs.h. */
  21106. #include <pthread.h>
  21107. int
  21108. main ()
  21109. {
  21110. pthread_attr_t type;
  21111. pthread_attr_init(&type);
  21112. ;
  21113. return 0;
  21114. }
  21115. _ACEOF
  21116. if ac_fn_c_try_link "$LINENO"; then :
  21117. use_pthreads=yes
  21118. fi
  21119. rm -f core conftest.err conftest.$ac_objext \
  21120. conftest$ac_exeext conftest.$ac_ext
  21121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  21122. $as_echo "$use_pthreads" >&6; }
  21123. # Restore the compiler flags and libraries
  21124. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21125. # Do futher testing if we have pthread support...
  21126. if test x$use_pthreads = xyes; then
  21127. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  21128. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  21129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  21130. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  21131. # Save the original compiler flags and libraries
  21132. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21133. # Add the pthread compiler flags and libraries
  21134. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21135. # Check to see if recursive mutexes are available
  21136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  21137. $as_echo_n "checking for recursive mutexes... " >&6; }
  21138. has_recursive_mutexes=no
  21139. if test x$has_recursive_mutexes = xno; then
  21140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21141. /* end confdefs.h. */
  21142. #define _GNU_SOURCE 1
  21143. #include <pthread.h>
  21144. int
  21145. main ()
  21146. {
  21147. pthread_mutexattr_t attr;
  21148. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21149. ;
  21150. return 0;
  21151. }
  21152. _ACEOF
  21153. if ac_fn_c_try_link "$LINENO"; then :
  21154. has_recursive_mutexes=yes
  21155. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21156. fi
  21157. rm -f core conftest.err conftest.$ac_objext \
  21158. conftest$ac_exeext conftest.$ac_ext
  21159. fi
  21160. if test x$has_recursive_mutexes = xno; then
  21161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21162. /* end confdefs.h. */
  21163. #define _GNU_SOURCE 1
  21164. #include <pthread.h>
  21165. int
  21166. main ()
  21167. {
  21168. pthread_mutexattr_t attr;
  21169. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21170. ;
  21171. return 0;
  21172. }
  21173. _ACEOF
  21174. if ac_fn_c_try_link "$LINENO"; then :
  21175. has_recursive_mutexes=yes
  21176. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext \
  21179. conftest$ac_exeext conftest.$ac_ext
  21180. fi
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21182. $as_echo "$has_recursive_mutexes" >&6; }
  21183. # Check to see if pthread semaphore support is missing
  21184. if test x$enable_pthread_sem = xyes; then
  21185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21186. $as_echo_n "checking for pthread semaphores... " >&6; }
  21187. have_pthread_sem=no
  21188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21189. /* end confdefs.h. */
  21190. #include <pthread.h>
  21191. #include <semaphore.h>
  21192. int
  21193. main ()
  21194. {
  21195. ;
  21196. return 0;
  21197. }
  21198. _ACEOF
  21199. if ac_fn_c_try_compile "$LINENO"; then :
  21200. have_pthread_sem=yes
  21201. fi
  21202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21204. $as_echo "$have_pthread_sem" >&6; }
  21205. fi
  21206. if test x$have_pthread_sem = xyes; then
  21207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21208. $as_echo_n "checking for sem_timedwait... " >&6; }
  21209. have_sem_timedwait=no
  21210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21211. /* end confdefs.h. */
  21212. #include <pthread.h>
  21213. #include <semaphore.h>
  21214. int
  21215. main ()
  21216. {
  21217. sem_timedwait(NULL, NULL);
  21218. ;
  21219. return 0;
  21220. }
  21221. _ACEOF
  21222. if ac_fn_c_try_link "$LINENO"; then :
  21223. have_sem_timedwait=yes
  21224. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21225. fi
  21226. rm -f core conftest.err conftest.$ac_objext \
  21227. conftest$ac_exeext conftest.$ac_ext
  21228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21229. $as_echo "$have_sem_timedwait" >&6; }
  21230. fi
  21231. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21232. "
  21233. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21234. have_pthread_np_h=yes
  21235. else
  21236. have_pthread_np_h=no
  21237. fi
  21238. if test x$have_pthread_np_h = xyes; then
  21239. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21240. fi
  21241. # Check to see if pthread naming is available
  21242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21243. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. /* Override any GCC internal prototype to avoid an error.
  21247. Use char because int might match the return type of a GCC
  21248. builtin and then its argument prototype would still apply. */
  21249. #ifdef __cplusplus
  21250. extern "C"
  21251. #endif
  21252. char pthread_setname_np ();
  21253. int
  21254. main ()
  21255. {
  21256. return pthread_setname_np ();
  21257. ;
  21258. return 0;
  21259. }
  21260. _ACEOF
  21261. if ac_fn_c_try_link "$LINENO"; then :
  21262. has_pthread_setname_np=yes
  21263. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21264. else
  21265. has_pthread_setname_np=no
  21266. fi
  21267. rm -f core conftest.err conftest.$ac_objext \
  21268. conftest$ac_exeext conftest.$ac_ext
  21269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21270. $as_echo "$has_pthread_setname_np" >&6; }
  21271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21272. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21274. /* end confdefs.h. */
  21275. /* Override any GCC internal prototype to avoid an error.
  21276. Use char because int might match the return type of a GCC
  21277. builtin and then its argument prototype would still apply. */
  21278. #ifdef __cplusplus
  21279. extern "C"
  21280. #endif
  21281. char pthread_set_name_np ();
  21282. int
  21283. main ()
  21284. {
  21285. return pthread_set_name_np ();
  21286. ;
  21287. return 0;
  21288. }
  21289. _ACEOF
  21290. if ac_fn_c_try_link "$LINENO"; then :
  21291. has_pthread_set_name_np=yes
  21292. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21293. else
  21294. has_pthread_set_name_np=no
  21295. fi
  21296. rm -f core conftest.err conftest.$ac_objext \
  21297. conftest$ac_exeext conftest.$ac_ext
  21298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21299. $as_echo "$has_pthread_set_name_np" >&6; }
  21300. # Restore the compiler flags and libraries
  21301. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21302. # Basic thread creation functions
  21303. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21304. # Semaphores
  21305. # We can fake these with mutexes and condition variables if necessary
  21306. if test x$have_pthread_sem = xyes; then
  21307. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21308. else
  21309. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21310. fi
  21311. # Mutexes
  21312. # We can fake these with semaphores if necessary
  21313. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21314. # Condition variables
  21315. # We can fake these with semaphores and mutexes if necessary
  21316. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21317. # Thread local storage
  21318. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21319. have_threads=yes
  21320. fi
  21321. fi
  21322. }
  21323. CheckWINDOWS()
  21324. {
  21325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21326. $as_echo_n "checking Windows compiler... " >&6; }
  21327. have_win32_gcc=no
  21328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21329. /* end confdefs.h. */
  21330. #include <windows.h>
  21331. int
  21332. main ()
  21333. {
  21334. ;
  21335. return 0;
  21336. }
  21337. _ACEOF
  21338. if ac_fn_c_try_compile "$LINENO"; then :
  21339. have_win32_gcc=yes
  21340. fi
  21341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21343. $as_echo "$have_win32_gcc" >&6; }
  21344. if test x$have_win32_gcc != xyes; then
  21345. as_fn_error $? "
  21346. *** Your compiler ($CC) does not produce Windows executables!
  21347. " "$LINENO" 5
  21348. fi
  21349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21350. $as_echo_n "checking Windows CE... " >&6; }
  21351. have_wince=no
  21352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21353. /* end confdefs.h. */
  21354. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21355. #error This is not Windows CE
  21356. #endif
  21357. int
  21358. main ()
  21359. {
  21360. ;
  21361. return 0;
  21362. }
  21363. _ACEOF
  21364. if ac_fn_c_try_compile "$LINENO"; then :
  21365. have_wince=yes
  21366. as_fn_error $? "
  21367. *** Sorry, Windows CE is no longer supported.
  21368. " "$LINENO" 5
  21369. fi
  21370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21372. $as_echo "$have_wince" >&6; }
  21373. # This fixes Windows stack alignment with newer GCC
  21374. CheckStackBoundary
  21375. # headers needed elsewhere
  21376. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21377. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21378. have_tpcshrd_h=yes
  21379. fi
  21380. if test x$have_tpcshrd_h = xyes; then
  21381. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21382. fi
  21383. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21384. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21385. have_roapi_h=yes
  21386. fi
  21387. if test x$have_roapi_h = xyes; then
  21388. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21389. fi
  21390. }
  21391. CheckOS2()
  21392. {
  21393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21394. $as_echo_n "checking OS/2 compiler... " >&6; }
  21395. have_os2_gcc=no
  21396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21397. /* end confdefs.h. */
  21398. #include <os2.h>
  21399. int
  21400. main ()
  21401. {
  21402. ;
  21403. return 0;
  21404. }
  21405. _ACEOF
  21406. if ac_fn_c_try_compile "$LINENO"; then :
  21407. have_os2_gcc=yes
  21408. fi
  21409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21411. $as_echo "$have_os2_gcc" >&6; }
  21412. if test x$have_os2_gcc != xyes; then
  21413. as_fn_error $? "
  21414. *** Your compiler ($CC) does not produce OS/2 executables!
  21415. " "$LINENO" 5
  21416. fi
  21417. }
  21418. CheckDIRECTX()
  21419. {
  21420. # Check whether --enable-directx was given.
  21421. if test "${enable_directx+set}" = set; then :
  21422. enableval=$enable_directx;
  21423. else
  21424. enable_directx=yes
  21425. fi
  21426. if test x$enable_directx = xyes; then
  21427. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21428. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21429. have_d3d=yes
  21430. fi
  21431. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21432. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21433. have_d3d11=yes
  21434. fi
  21435. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21436. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21437. have_ddraw=yes
  21438. fi
  21439. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21440. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21441. have_dsound=yes
  21442. fi
  21443. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21444. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21445. have_dinput=yes
  21446. fi
  21447. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21448. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21449. have_dxgi=yes
  21450. fi
  21451. if test x$have_ddraw = xyes; then
  21452. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21453. fi
  21454. if test x$have_dinput = xyes; then
  21455. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21456. fi
  21457. if test x$have_dsound = xyes; then
  21458. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21459. fi
  21460. if test x$have_dxgi = xyes; then
  21461. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21462. fi
  21463. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21464. # FIXME: ...so force it off for now.
  21465. case "$host" in
  21466. *-*-cygwin*)
  21467. have_dinput=false
  21468. ;;
  21469. esac
  21470. fi
  21471. # Check whether --enable-xinput was given.
  21472. if test "${enable_xinput+set}" = set; then :
  21473. enableval=$enable_xinput;
  21474. else
  21475. enable_xinput=yes
  21476. fi
  21477. if test x$enable_xinput = xyes; then
  21478. have_xinput_gamepadex=no
  21479. have_xinput_stateex=no
  21480. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21481. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21482. have_xinput=yes
  21483. fi
  21484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21485. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21487. /* end confdefs.h. */
  21488. #include <windows.h>
  21489. #include <xinput.h>
  21490. XINPUT_GAMEPAD_EX x1;
  21491. int
  21492. main ()
  21493. {
  21494. ;
  21495. return 0;
  21496. }
  21497. _ACEOF
  21498. if ac_fn_c_try_compile "$LINENO"; then :
  21499. have_xinput_gamepadex=yes
  21500. fi
  21501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21503. $as_echo "$have_xinput_gamepadex" >&6; }
  21504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21505. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21507. /* end confdefs.h. */
  21508. #include <windows.h>
  21509. #include <xinput.h>
  21510. XINPUT_STATE_EX s1;
  21511. int
  21512. main ()
  21513. {
  21514. ;
  21515. return 0;
  21516. }
  21517. _ACEOF
  21518. if ac_fn_c_try_compile "$LINENO"; then :
  21519. have_xinput_stateex=yes
  21520. fi
  21521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21523. $as_echo "$have_xinput_stateex" >&6; }
  21524. if test x$have_xinput = xyes; then
  21525. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21526. fi
  21527. if test x$have_xinput_gamepadex = xyes; then
  21528. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21529. fi
  21530. if test x$have_xinput_stateex = xyes; then
  21531. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21532. fi
  21533. fi
  21534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21535. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21537. /* end confdefs.h. */
  21538. #define COBJMACROS
  21539. #include <windows.gaming.input.h>
  21540. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21541. int
  21542. main ()
  21543. {
  21544. ;
  21545. return 0;
  21546. }
  21547. _ACEOF
  21548. if ac_fn_c_try_compile "$LINENO"; then :
  21549. have_wgi=yes
  21550. else
  21551. have_wgi=no
  21552. fi
  21553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21555. $as_echo "$have_wgi" >&6; }
  21556. if test x$have_wgi = xyes; then
  21557. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21558. fi
  21559. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21560. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21561. have_wasapi=yes
  21562. fi
  21563. if test x$have_wasapi = xyes; then
  21564. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21565. fi
  21566. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21567. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21568. else
  21569. have_wasapi=no
  21570. fi
  21571. if test x$have_wasapi = xyes; then
  21572. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21573. fi
  21574. # Check whether --enable-wasapi was given.
  21575. if test "${enable_wasapi+set}" = set; then :
  21576. enableval=$enable_wasapi;
  21577. else
  21578. enable_wasapi=yes
  21579. fi
  21580. }
  21581. CheckDLOPEN()
  21582. {
  21583. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21584. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21585. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21586. have_dlfcn_h=yes
  21587. else
  21588. have_dlfcn_h=no
  21589. fi
  21590. have_dlopen=no
  21591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21592. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21593. if ${ac_cv_lib_c_dlopen+:} false; then :
  21594. $as_echo_n "(cached) " >&6
  21595. else
  21596. ac_check_lib_save_LIBS=$LIBS
  21597. LIBS="-lc $LIBS"
  21598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21599. /* end confdefs.h. */
  21600. /* Override any GCC internal prototype to avoid an error.
  21601. Use char because int might match the return type of a GCC
  21602. builtin and then its argument prototype would still apply. */
  21603. #ifdef __cplusplus
  21604. extern "C"
  21605. #endif
  21606. char dlopen ();
  21607. int
  21608. main ()
  21609. {
  21610. return dlopen ();
  21611. ;
  21612. return 0;
  21613. }
  21614. _ACEOF
  21615. if ac_fn_c_try_link "$LINENO"; then :
  21616. ac_cv_lib_c_dlopen=yes
  21617. else
  21618. ac_cv_lib_c_dlopen=no
  21619. fi
  21620. rm -f core conftest.err conftest.$ac_objext \
  21621. conftest$ac_exeext conftest.$ac_ext
  21622. LIBS=$ac_check_lib_save_LIBS
  21623. fi
  21624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21625. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21626. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21627. have_dlopen=yes
  21628. else
  21629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21630. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21631. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21632. $as_echo_n "(cached) " >&6
  21633. else
  21634. ac_check_lib_save_LIBS=$LIBS
  21635. LIBS="-ldl $LIBS"
  21636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21637. /* end confdefs.h. */
  21638. /* Override any GCC internal prototype to avoid an error.
  21639. Use char because int might match the return type of a GCC
  21640. builtin and then its argument prototype would still apply. */
  21641. #ifdef __cplusplus
  21642. extern "C"
  21643. #endif
  21644. char dlopen ();
  21645. int
  21646. main ()
  21647. {
  21648. return dlopen ();
  21649. ;
  21650. return 0;
  21651. }
  21652. _ACEOF
  21653. if ac_fn_c_try_link "$LINENO"; then :
  21654. ac_cv_lib_dl_dlopen=yes
  21655. else
  21656. ac_cv_lib_dl_dlopen=no
  21657. fi
  21658. rm -f core conftest.err conftest.$ac_objext \
  21659. conftest$ac_exeext conftest.$ac_ext
  21660. LIBS=$ac_check_lib_save_LIBS
  21661. fi
  21662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21663. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21664. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21665. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21666. fi
  21667. fi
  21668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21669. $as_echo_n "checking for dlopen... " >&6; }
  21670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21671. $as_echo "$have_dlopen" >&6; }
  21672. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21673. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21674. if test x$enable_loadso = xyes; then
  21675. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21676. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21677. have_loadso=yes
  21678. fi
  21679. fi
  21680. }
  21681. CheckO_CLOEXEC()
  21682. {
  21683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21684. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21686. /* end confdefs.h. */
  21687. #include <fcntl.h>
  21688. int flag = O_CLOEXEC;
  21689. int
  21690. main ()
  21691. {
  21692. ;
  21693. return 0;
  21694. }
  21695. _ACEOF
  21696. if ac_fn_c_try_compile "$LINENO"; then :
  21697. have_o_cloexec=yes
  21698. else
  21699. have_o_cloexec=no
  21700. fi
  21701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21703. $as_echo "$have_o_cloexec" >&6; }
  21704. if test $have_o_cloexec = yes; then
  21705. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21706. fi
  21707. }
  21708. CheckUSBHID()
  21709. {
  21710. case "$host" in
  21711. *-*-*bsd*|*-*-dragonfly*)
  21712. if test x$enable_joystick = xyes; then
  21713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21714. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21715. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21716. $as_echo_n "(cached) " >&6
  21717. else
  21718. ac_check_lib_save_LIBS=$LIBS
  21719. LIBS="-lusbhid $LIBS"
  21720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21721. /* end confdefs.h. */
  21722. /* Override any GCC internal prototype to avoid an error.
  21723. Use char because int might match the return type of a GCC
  21724. builtin and then its argument prototype would still apply. */
  21725. #ifdef __cplusplus
  21726. extern "C"
  21727. #endif
  21728. char hid_init ();
  21729. int
  21730. main ()
  21731. {
  21732. return hid_init ();
  21733. ;
  21734. return 0;
  21735. }
  21736. _ACEOF
  21737. if ac_fn_c_try_link "$LINENO"; then :
  21738. ac_cv_lib_usbhid_hid_init=yes
  21739. else
  21740. ac_cv_lib_usbhid_hid_init=no
  21741. fi
  21742. rm -f core conftest.err conftest.$ac_objext \
  21743. conftest$ac_exeext conftest.$ac_ext
  21744. LIBS=$ac_check_lib_save_LIBS
  21745. fi
  21746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21747. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21748. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21749. have_libusbhid=yes
  21750. fi
  21751. if test x$have_libusbhid = xyes; then
  21752. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21753. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21754. USB_CFLAGS="-DHAVE_USBHID_H"
  21755. fi
  21756. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21757. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21758. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21759. fi
  21760. USB_LIBS="$USB_LIBS -lusbhid"
  21761. else
  21762. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21763. if test "x$ac_cv_header_usb_h" = xyes; then :
  21764. USB_CFLAGS="-DHAVE_USB_H"
  21765. fi
  21766. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21767. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21768. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21769. fi
  21770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21771. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21772. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21773. $as_echo_n "(cached) " >&6
  21774. else
  21775. ac_check_lib_save_LIBS=$LIBS
  21776. LIBS="-lusb $LIBS"
  21777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21778. /* end confdefs.h. */
  21779. /* Override any GCC internal prototype to avoid an error.
  21780. Use char because int might match the return type of a GCC
  21781. builtin and then its argument prototype would still apply. */
  21782. #ifdef __cplusplus
  21783. extern "C"
  21784. #endif
  21785. char hid_init ();
  21786. int
  21787. main ()
  21788. {
  21789. return hid_init ();
  21790. ;
  21791. return 0;
  21792. }
  21793. _ACEOF
  21794. if ac_fn_c_try_link "$LINENO"; then :
  21795. ac_cv_lib_usb_hid_init=yes
  21796. else
  21797. ac_cv_lib_usb_hid_init=no
  21798. fi
  21799. rm -f core conftest.err conftest.$ac_objext \
  21800. conftest$ac_exeext conftest.$ac_ext
  21801. LIBS=$ac_check_lib_save_LIBS
  21802. fi
  21803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21804. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21805. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21806. USB_LIBS="$USB_LIBS -lusb"
  21807. fi
  21808. fi
  21809. save_CFLAGS="$CFLAGS"
  21810. CFLAGS="$CFLAGS $USB_CFLAGS"
  21811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21812. $as_echo_n "checking for usbhid... " >&6; }
  21813. have_usbhid=no
  21814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21815. /* end confdefs.h. */
  21816. #include <sys/types.h>
  21817. #if defined(HAVE_USB_H)
  21818. #include <usb.h>
  21819. #endif
  21820. #ifdef __DragonFly__
  21821. # include <bus/u4b/usb.h>
  21822. # include <bus/u4b/usbhid.h>
  21823. #else
  21824. # include <dev/usb/usb.h>
  21825. # include <dev/usb/usbhid.h>
  21826. #endif
  21827. #if defined(HAVE_USBHID_H)
  21828. #include <usbhid.h>
  21829. #elif defined(HAVE_LIBUSB_H)
  21830. #include <libusb.h>
  21831. #elif defined(HAVE_LIBUSBHID_H)
  21832. #include <libusbhid.h>
  21833. #endif
  21834. int
  21835. main ()
  21836. {
  21837. struct report_desc *repdesc;
  21838. struct usb_ctl_report *repbuf;
  21839. hid_kind_t hidkind;
  21840. ;
  21841. return 0;
  21842. }
  21843. _ACEOF
  21844. if ac_fn_c_try_compile "$LINENO"; then :
  21845. have_usbhid=yes
  21846. fi
  21847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21849. $as_echo "$have_usbhid" >&6; }
  21850. if test x$have_usbhid = xyes; then
  21851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21852. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21853. have_usbhid_ucr_data=no
  21854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21855. /* end confdefs.h. */
  21856. #include <sys/types.h>
  21857. #if defined(HAVE_USB_H)
  21858. #include <usb.h>
  21859. #endif
  21860. #ifdef __DragonFly__
  21861. # include <bus/u4b/usb.h>
  21862. # include <bus/u4b/usbhid.h>
  21863. #else
  21864. # include <dev/usb/usb.h>
  21865. # include <dev/usb/usbhid.h>
  21866. #endif
  21867. #if defined(HAVE_USBHID_H)
  21868. #include <usbhid.h>
  21869. #elif defined(HAVE_LIBUSB_H)
  21870. #include <libusb.h>
  21871. #elif defined(HAVE_LIBUSBHID_H)
  21872. #include <libusbhid.h>
  21873. #endif
  21874. int
  21875. main ()
  21876. {
  21877. struct usb_ctl_report buf;
  21878. if (buf.ucr_data) { }
  21879. ;
  21880. return 0;
  21881. }
  21882. _ACEOF
  21883. if ac_fn_c_try_compile "$LINENO"; then :
  21884. have_usbhid_ucr_data=yes
  21885. fi
  21886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21887. if test x$have_usbhid_ucr_data = xyes; then
  21888. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21889. fi
  21890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21891. $as_echo "$have_usbhid_ucr_data" >&6; }
  21892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21893. $as_echo_n "checking for new usbhid API... " >&6; }
  21894. have_usbhid_new=no
  21895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21896. /* end confdefs.h. */
  21897. #include <sys/types.h>
  21898. #if defined(HAVE_USB_H)
  21899. #include <usb.h>
  21900. #endif
  21901. #ifdef __DragonFly__
  21902. #include <bus/u4b/usb.h>
  21903. #include <bus/u4b/usbhid.h>
  21904. #else
  21905. #include <dev/usb/usb.h>
  21906. #include <dev/usb/usbhid.h>
  21907. #endif
  21908. #if defined(HAVE_USBHID_H)
  21909. #include <usbhid.h>
  21910. #elif defined(HAVE_LIBUSB_H)
  21911. #include <libusb.h>
  21912. #elif defined(HAVE_LIBUSBHID_H)
  21913. #include <libusbhid.h>
  21914. #endif
  21915. int
  21916. main ()
  21917. {
  21918. report_desc_t d;
  21919. hid_start_parse(d, 1, 1);
  21920. ;
  21921. return 0;
  21922. }
  21923. _ACEOF
  21924. if ac_fn_c_try_compile "$LINENO"; then :
  21925. have_usbhid_new=yes
  21926. fi
  21927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21928. if test x$have_usbhid_new = xyes; then
  21929. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21930. fi
  21931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21932. $as_echo "$have_usbhid_new" >&6; }
  21933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21934. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21935. have_machine_joystick=no
  21936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21937. /* end confdefs.h. */
  21938. #include <machine/joystick.h>
  21939. int
  21940. main ()
  21941. {
  21942. struct joystick t;
  21943. ;
  21944. return 0;
  21945. }
  21946. _ACEOF
  21947. if ac_fn_c_try_compile "$LINENO"; then :
  21948. have_machine_joystick=yes
  21949. fi
  21950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21951. if test x$have_machine_joystick = xyes; then
  21952. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21953. fi
  21954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21955. $as_echo "$have_machine_joystick" >&6; }
  21956. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21957. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21958. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21960. have_joystick=yes
  21961. fi
  21962. CFLAGS="$save_CFLAGS"
  21963. fi
  21964. ;;
  21965. esac
  21966. }
  21967. CheckHIDAPI()
  21968. {
  21969. # Check whether --enable-hidapi-joystick was given.
  21970. if test "${enable_hidapi_joystick+set}" = set; then :
  21971. enableval=$enable_hidapi_joystick;
  21972. else
  21973. enable_hidapi_joystick=yes
  21974. fi
  21975. # Check whether --enable-hidapi-libusb was given.
  21976. if test "${enable_hidapi_libusb+set}" = set; then :
  21977. enableval=$enable_hidapi_libusb;
  21978. else
  21979. enable_hidapi_libusb=maybe
  21980. fi
  21981. if test x$enable_hidapi = xyes; then
  21982. case "$host" in
  21983. # libusb does not support iOS
  21984. *-ios-* )
  21985. enable_hidapi_libusb=no
  21986. ;;
  21987. # On the other hand, *BSD specifically uses libusb only
  21988. *-*-*bsd* )
  21989. enable_hidapi_libusb=yes
  21990. require_hidapi_libusb=yes
  21991. ;;
  21992. *-*-os2* )
  21993. enable_hidapi_libusb=yes
  21994. ;;
  21995. esac
  21996. hidapi_support=yes
  21997. if test x$enable_hidapi_libusb = xyes; then
  21998. pkg_failed=no
  21999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  22000. $as_echo_n "checking for libusb-1.0... " >&6; }
  22001. if test -n "$LIBUSB_CFLAGS"; then
  22002. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  22003. elif test -n "$PKG_CONFIG"; then
  22004. if test -n "$PKG_CONFIG" && \
  22005. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22006. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22007. ac_status=$?
  22008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22009. test $ac_status = 0; }; then
  22010. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  22011. test "x$?" != "x0" && pkg_failed=yes
  22012. else
  22013. pkg_failed=yes
  22014. fi
  22015. else
  22016. pkg_failed=untried
  22017. fi
  22018. if test -n "$LIBUSB_LIBS"; then
  22019. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  22020. elif test -n "$PKG_CONFIG"; then
  22021. if test -n "$PKG_CONFIG" && \
  22022. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  22023. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  22024. ac_status=$?
  22025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22026. test $ac_status = 0; }; then
  22027. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  22028. test "x$?" != "x0" && pkg_failed=yes
  22029. else
  22030. pkg_failed=yes
  22031. fi
  22032. else
  22033. pkg_failed=untried
  22034. fi
  22035. if test $pkg_failed = yes; then
  22036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22037. $as_echo "no" >&6; }
  22038. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22039. _pkg_short_errors_supported=yes
  22040. else
  22041. _pkg_short_errors_supported=no
  22042. fi
  22043. if test $_pkg_short_errors_supported = yes; then
  22044. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22045. else
  22046. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  22047. fi
  22048. # Put the nasty error message in config.log where it belongs
  22049. echo "$LIBUSB_PKG_ERRORS" >&5
  22050. have_libusb=no
  22051. elif test $pkg_failed = untried; then
  22052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22053. $as_echo "no" >&6; }
  22054. have_libusb=no
  22055. else
  22056. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  22057. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  22058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22059. $as_echo "yes" >&6; }
  22060. have_libusb=yes
  22061. fi
  22062. save_CPPFLAGS="$CPPFLAGS"
  22063. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  22064. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22065. if test "x$ac_cv_header_libusb_h" = xyes; then :
  22066. have_libusb_h=yes
  22067. else
  22068. have_libusb_h=no
  22069. fi
  22070. CPPFLAGS="$save_CPPFLAGS"
  22071. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  22072. hidapi_support=no
  22073. fi
  22074. fi
  22075. if test x$hidapi_support = xyes; then
  22076. if test x$have_libusb_h = xyes; then
  22077. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  22078. if test x$require_hidapi_libusb = xyes; then
  22079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  22080. else
  22081. if test x$have_loadso != xyes; then
  22082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  22083. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  22084. fi
  22085. # libusb is loaded dynamically, so don't add it to LDFLAGS
  22086. libusb_lib=""
  22087. case "$host" in
  22088. *-*-darwin* )
  22089. libusb_lib="libusb-1.0.0.dylib"
  22090. ;;
  22091. *-*-cygwin* | *-*-mingw* )
  22092. libusb_lib="libusb-1.0.dll"
  22093. ;;
  22094. *-*-os2* )
  22095. libusb_lib="usb100.dll"
  22096. ;;
  22097. esac
  22098. if test x$libusb_lib = x; then
  22099. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22100. fi
  22101. cat >>confdefs.h <<_ACEOF
  22102. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  22103. _ACEOF
  22104. fi
  22105. fi
  22106. fi
  22107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  22108. $as_echo_n "checking for hidapi joystick support... " >&6; }
  22109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  22110. $as_echo "$hidapi_support" >&6; }
  22111. fi
  22112. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  22113. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  22114. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  22115. fi
  22116. }
  22117. CheckClockGettime()
  22118. {
  22119. # Check whether --enable-clock_gettime was given.
  22120. if test "${enable_clock_gettime+set}" = set; then :
  22121. enableval=$enable_clock_gettime;
  22122. else
  22123. enable_clock_gettime=yes
  22124. fi
  22125. if test x$enable_clock_gettime = xyes; then
  22126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  22127. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  22128. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  22129. $as_echo_n "(cached) " >&6
  22130. else
  22131. ac_check_lib_save_LIBS=$LIBS
  22132. LIBS="-lrt $LIBS"
  22133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22134. /* end confdefs.h. */
  22135. /* Override any GCC internal prototype to avoid an error.
  22136. Use char because int might match the return type of a GCC
  22137. builtin and then its argument prototype would still apply. */
  22138. #ifdef __cplusplus
  22139. extern "C"
  22140. #endif
  22141. char clock_gettime ();
  22142. int
  22143. main ()
  22144. {
  22145. return clock_gettime ();
  22146. ;
  22147. return 0;
  22148. }
  22149. _ACEOF
  22150. if ac_fn_c_try_link "$LINENO"; then :
  22151. ac_cv_lib_rt_clock_gettime=yes
  22152. else
  22153. ac_cv_lib_rt_clock_gettime=no
  22154. fi
  22155. rm -f core conftest.err conftest.$ac_objext \
  22156. conftest$ac_exeext conftest.$ac_ext
  22157. LIBS=$ac_check_lib_save_LIBS
  22158. fi
  22159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22160. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22161. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22162. have_clock_gettime=yes
  22163. fi
  22164. if test x$have_clock_gettime = xyes; then
  22165. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22167. else
  22168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22169. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22170. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22171. $as_echo_n "(cached) " >&6
  22172. else
  22173. ac_check_lib_save_LIBS=$LIBS
  22174. LIBS="-lc $LIBS"
  22175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22176. /* end confdefs.h. */
  22177. /* Override any GCC internal prototype to avoid an error.
  22178. Use char because int might match the return type of a GCC
  22179. builtin and then its argument prototype would still apply. */
  22180. #ifdef __cplusplus
  22181. extern "C"
  22182. #endif
  22183. char clock_gettime ();
  22184. int
  22185. main ()
  22186. {
  22187. return clock_gettime ();
  22188. ;
  22189. return 0;
  22190. }
  22191. _ACEOF
  22192. if ac_fn_c_try_link "$LINENO"; then :
  22193. ac_cv_lib_c_clock_gettime=yes
  22194. else
  22195. ac_cv_lib_c_clock_gettime=no
  22196. fi
  22197. rm -f core conftest.err conftest.$ac_objext \
  22198. conftest$ac_exeext conftest.$ac_ext
  22199. LIBS=$ac_check_lib_save_LIBS
  22200. fi
  22201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22202. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22203. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22204. have_clock_gettime=yes
  22205. fi
  22206. if test x$have_clock_gettime = xyes; then
  22207. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22209. fi
  22210. fi
  22211. fi
  22212. }
  22213. CheckLinuxVersion()
  22214. {
  22215. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22216. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22217. have_linux_version_h=yes
  22218. fi
  22219. if test x$have_linux_version_h = xyes; then
  22220. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22221. fi
  22222. }
  22223. CheckRPATH()
  22224. {
  22225. # Check whether --enable-rpath was given.
  22226. if test "${enable_rpath+set}" = set; then :
  22227. enableval=$enable_rpath;
  22228. else
  22229. enable_rpath=yes
  22230. fi
  22231. }
  22232. CheckEventSignals()
  22233. {
  22234. # Check whether --enable-backgrounding-signal was given.
  22235. if test "${enable_backgrounding_signal+set}" = set; then :
  22236. enableval=$enable_backgrounding_signal;
  22237. else
  22238. enable_backgrounding_signal=no
  22239. fi
  22240. if test x$enable_backgrounding_signal != xno; then
  22241. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22242. fi
  22243. # Check whether --enable-foregrounding-signal was given.
  22244. if test "${enable_foregrounding_signal+set}" = set; then :
  22245. enableval=$enable_foregrounding_signal;
  22246. else
  22247. enable_foregrounding_signal=no
  22248. fi
  22249. if test x$enable_foregrounding_signal != xno; then
  22250. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22251. fi
  22252. }
  22253. CheckVirtualJoystick()
  22254. {
  22255. # Check whether --enable-joystick-virtual was given.
  22256. if test "${enable_joystick_virtual+set}" = set; then :
  22257. enableval=$enable_joystick_virtual;
  22258. else
  22259. enable_joystick_virtual=yes
  22260. fi
  22261. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22262. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22263. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22264. have_joystick_virtual=yes
  22265. fi
  22266. }
  22267. CheckWarnAll
  22268. CheckNoStrictAliasing
  22269. CheckEventSignals
  22270. have_locale=no
  22271. case "$host" in
  22272. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22273. case "$host" in
  22274. *-*-android*)
  22275. # Android
  22276. ARCH=android
  22277. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22278. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22279. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22280. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22282. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22283. if test x$enable_video = xyes; then
  22284. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22285. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22286. SUMMARY_video="${SUMMARY_video} android"
  22287. have_video=yes
  22288. fi
  22289. ;;
  22290. *-*-linux*) ARCH=linux ;;
  22291. *-*-uclinux*) ARCH=linux ;;
  22292. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22293. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22294. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22295. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22296. *-*-bsdi*) ARCH=bsdi ;;
  22297. *-*-freebsd*) ARCH=freebsd ;;
  22298. *-*-dragonfly*) ARCH=freebsd ;;
  22299. *-*-netbsd*) ARCH=netbsd ;;
  22300. *-*-openbsd*) ARCH=openbsd ;;
  22301. *-*-sysv5*) ARCH=sysv5 ;;
  22302. *-*-solaris*) ARCH=solaris ;;
  22303. *-*-hpux*) ARCH=hpux ;;
  22304. *-*-aix*) ARCH=aix ;;
  22305. *-*-minix*) ARCH=minix ;;
  22306. *-*-nto*) ARCH=nto
  22307. CheckQNXVideo
  22308. ;;
  22309. esac
  22310. CheckVisibilityHidden
  22311. CheckDeclarationAfterStatement
  22312. CheckDummyVideo
  22313. CheckOffscreenVideo
  22314. CheckDiskAudio
  22315. CheckDummyAudio
  22316. CheckDLOPEN
  22317. CheckARM
  22318. CheckNEON
  22319. CheckO_CLOEXEC
  22320. CheckOSS
  22321. CheckALSA
  22322. CheckPipewire
  22323. CheckPulseAudio
  22324. CheckJACK
  22325. CheckARTSC
  22326. CheckESD
  22327. CheckNAS
  22328. CheckSNDIO
  22329. CheckFusionSound
  22330. CheckLibSampleRate
  22331. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22332. CheckRPI
  22333. CheckX11
  22334. CheckDirectFB
  22335. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22336. CheckEGL
  22337. CheckKMSDRM
  22338. CheckGLX
  22339. CheckOpenGL
  22340. CheckOpenGLES
  22341. CheckVulkan
  22342. CheckWayland
  22343. CheckInputEvents
  22344. CheckLibUDev
  22345. CheckDBus
  22346. CheckIME
  22347. CheckInotify
  22348. CheckIBus
  22349. CheckFcitx
  22350. case $ARCH in
  22351. linux)
  22352. CheckInputKD
  22353. ;;
  22354. freebsd)
  22355. CheckInputKBIO
  22356. ;;
  22357. openbsd|netbsd)
  22358. CheckInputWSCONS
  22359. ;;
  22360. esac
  22361. CheckUSBHID
  22362. CheckHIDAPI
  22363. CheckPTHREAD
  22364. CheckClockGettime
  22365. CheckLinuxVersion
  22366. CheckRPATH
  22367. CheckVivanteVideo
  22368. # Set up files for the misc library
  22369. if test x$enable_misc = xyes; then
  22370. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22371. have_misc=yes
  22372. fi
  22373. # Set up files for the locale library
  22374. if test x$enable_locale = xyes; then
  22375. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22376. have_locale=yes
  22377. fi
  22378. # Set up files for the audio library
  22379. if test x$enable_audio = xyes; then
  22380. case $ARCH in
  22381. sysv5|solaris|hpux)
  22382. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22383. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22384. SUMMARY_audio="${SUMMARY_audio} sun"
  22385. have_audio=yes
  22386. ;;
  22387. netbsd) # Don't use this on OpenBSD, it's busted.
  22388. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22389. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22390. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22391. have_audio=yes
  22392. ;;
  22393. aix)
  22394. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22395. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22396. SUMMARY_audio="${SUMMARY_audio} paudio"
  22397. have_audio=yes
  22398. ;;
  22399. android)
  22400. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22401. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22402. SUMMARY_audio="${SUMMARY_audio} android"
  22403. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22404. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22405. SUMMARY_audio="${SUMMARY_audio} openslES"
  22406. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22407. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22408. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22409. have_audio=yes
  22410. ;;
  22411. nto)
  22412. CheckQNXAudio
  22413. ;;
  22414. esac
  22415. fi
  22416. # Set up files for the joystick library
  22417. if test x$enable_joystick = xyes; then
  22418. case $ARCH in
  22419. linux)
  22420. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22421. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22422. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22423. have_joystick=yes
  22424. ;;
  22425. freebsd)
  22426. if test x$use_input_events = xyes; then
  22427. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22428. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22429. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22430. have_joystick=yes
  22431. fi
  22432. ;;
  22433. android)
  22434. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22435. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22436. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22437. have_joystick=yes
  22438. ;;
  22439. esac
  22440. fi
  22441. # Set up files for the haptic library
  22442. if test x$enable_haptic = xyes; then
  22443. case $ARCH in
  22444. linux|freebsd)
  22445. if test x$use_input_events = xyes; then
  22446. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22447. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22448. have_haptic=yes
  22449. fi
  22450. ;;
  22451. android)
  22452. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22453. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22454. have_haptic=yes
  22455. ;;
  22456. esac
  22457. fi
  22458. # Set up files for the sensor library
  22459. if test x$enable_sensor = xyes; then
  22460. case $ARCH in
  22461. android)
  22462. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22463. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22464. have_sensor=yes
  22465. ;;
  22466. esac
  22467. fi
  22468. # Set up files for the power library
  22469. if test x$enable_power = xyes; then
  22470. case $ARCH in
  22471. linux)
  22472. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22473. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22474. have_power=yes
  22475. ;;
  22476. android)
  22477. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22478. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22479. have_power=yes
  22480. ;;
  22481. esac
  22482. fi
  22483. # Set up files for the filesystem library
  22484. if test x$enable_filesystem = xyes; then
  22485. case $ARCH in
  22486. android)
  22487. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22488. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22489. have_filesystem=yes
  22490. ;;
  22491. *)
  22492. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22493. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22494. have_filesystem=yes
  22495. ;;
  22496. esac
  22497. fi
  22498. # Set up files for the timer library
  22499. if test x$enable_timers = xyes; then
  22500. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22501. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22502. have_timers=yes
  22503. fi
  22504. # Set up files for udev hotplugging support
  22505. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22506. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22507. fi
  22508. # Set up files for evdev input
  22509. if test x$use_input_events = xyes; then
  22510. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22511. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22512. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22513. fi
  22514. # Set up files for wscons input
  22515. if test x$use_input_wscons = xyes; then
  22516. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22517. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22518. fi
  22519. # Set up other core UNIX files
  22520. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22521. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22522. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22523. ;;
  22524. *-*-cygwin* | *-*-mingw*)
  22525. ARCH=win32
  22526. if test "$build" != "$host"; then # cross-compiling
  22527. # Default cross-compile location
  22528. ac_default_prefix=/usr/local/cross-tools/$host
  22529. else
  22530. # Look for the location of the tools and install there
  22531. if test "$BUILD_PREFIX" != ""; then
  22532. ac_default_prefix=$BUILD_PREFIX
  22533. fi
  22534. fi
  22535. if test x$enable_loadso = xyes; then
  22536. have_loadso=yes
  22537. fi
  22538. CheckDeclarationAfterStatement
  22539. CheckDummyVideo
  22540. CheckOffscreenVideo
  22541. CheckDiskAudio
  22542. CheckDummyAudio
  22543. CheckWINDOWS
  22544. CheckWINDOWSGL
  22545. CheckWINDOWSGLES
  22546. CheckVulkan
  22547. CheckDIRECTX
  22548. CheckHIDAPI
  22549. # Set up the core platform files
  22550. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22551. # Set up files for the misc library
  22552. if test x$enable_misc = xyes; then
  22553. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22554. have_misc=yes
  22555. fi
  22556. # Use the Windows locale APIs.
  22557. if test x$enable_locale = xyes; then
  22558. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22559. have_locale=yes
  22560. fi
  22561. # Set up files for the video library
  22562. if test x$enable_video = xyes; then
  22563. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22564. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22565. have_video=yes
  22566. # Check whether --enable-render-d3d was given.
  22567. if test "${enable_render_d3d+set}" = set; then :
  22568. enableval=$enable_render_d3d;
  22569. else
  22570. enable_render_d3d=yes
  22571. fi
  22572. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22573. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22574. SUMMARY_video="${SUMMARY_video} d3d9"
  22575. fi
  22576. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22577. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22578. SUMMARY_video="${SUMMARY_video} d3d11"
  22579. fi
  22580. fi
  22581. # Set up files for the audio library
  22582. if test x$enable_audio = xyes; then
  22583. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22584. SUMMARY_audio="${SUMMARY_audio} winmm"
  22585. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22586. if test x$have_dsound = xyes; then
  22587. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22588. SUMMARY_audio="${SUMMARY_audio} directsound"
  22589. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22590. fi
  22591. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22592. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22593. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22594. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22595. fi
  22596. have_audio=yes
  22597. fi
  22598. # Set up files for the joystick library
  22599. if test x$enable_joystick = xyes; then
  22600. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22601. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22602. if test x$have_xinput = xyes; then
  22603. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22604. fi
  22605. if test x$have_wgi = xyes; then
  22606. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22607. fi
  22608. if test x$have_dinput = xyes; then
  22609. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22610. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22611. fi
  22612. fi
  22613. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22614. have_joystick=yes
  22615. fi
  22616. if test x$enable_haptic = xyes; then
  22617. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22618. if test x$have_xinput = xyes; then
  22619. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22620. fi
  22621. if test x$have_dinput = xyes; then
  22622. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22623. fi
  22624. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22625. have_haptic=yes
  22626. fi
  22627. fi
  22628. # Set up files for the sensor library
  22629. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22630. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22631. have_winsensors=yes
  22632. else
  22633. have_winsensors=no
  22634. fi
  22635. if test x$have_winsensors = xyes; then
  22636. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22637. fi
  22638. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22639. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22640. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22641. have_sensor=yes
  22642. fi
  22643. # Set up files for the power library
  22644. if test x$enable_power = xyes; then
  22645. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22646. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22647. have_power=yes
  22648. fi
  22649. # Set up files for the filesystem library
  22650. if test x$enable_filesystem = xyes; then
  22651. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22652. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22653. have_filesystem=yes
  22654. fi
  22655. # Set up files for the thread library
  22656. if test x$enable_threads = xyes; then
  22657. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22658. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22659. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22660. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22661. have_threads=yes
  22662. fi
  22663. # Set up files for the timer library
  22664. if test x$enable_timers = xyes; then
  22665. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22666. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22667. have_timers=yes
  22668. fi
  22669. # Set up files for the shared object loading library
  22670. if test x$enable_loadso = xyes; then
  22671. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22672. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22673. fi
  22674. # Set up the system libraries we need
  22675. if test -f /lib/w32api/libuuid.a; then
  22676. LIBUUID=/lib/w32api/libuuid.a
  22677. else
  22678. LIBUUID=-luuid
  22679. fi
  22680. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22681. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22682. # The Windows platform requires special setup
  22683. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22684. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22685. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22686. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22687. # Check to see if this is a mingw or cygwin build
  22688. have_mingw32=
  22689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22690. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22691. if ${ac_cv_lib_mingw32_main+:} false; then :
  22692. $as_echo_n "(cached) " >&6
  22693. else
  22694. ac_check_lib_save_LIBS=$LIBS
  22695. LIBS="-lmingw32 $LIBS"
  22696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22697. /* end confdefs.h. */
  22698. int
  22699. main ()
  22700. {
  22701. return main ();
  22702. ;
  22703. return 0;
  22704. }
  22705. _ACEOF
  22706. if ac_fn_c_try_link "$LINENO"; then :
  22707. ac_cv_lib_mingw32_main=yes
  22708. else
  22709. ac_cv_lib_mingw32_main=no
  22710. fi
  22711. rm -f core conftest.err conftest.$ac_objext \
  22712. conftest$ac_exeext conftest.$ac_ext
  22713. LIBS=$ac_check_lib_save_LIBS
  22714. fi
  22715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22716. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22717. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22718. have_mingw32=yes
  22719. fi
  22720. if test x$have_mingw32 = xyes; then
  22721. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22722. else
  22723. SDL_LIBS="-lcygwin $SDL_LIBS"
  22724. fi
  22725. ;;
  22726. *-*-beos*)
  22727. as_fn_error $? "
  22728. *** BeOS support has been removed as of SDL 2.0.2.
  22729. " "$LINENO" 5
  22730. ;;
  22731. *-*-haiku*)
  22732. ARCH=haiku
  22733. ac_default_prefix=/boot/system
  22734. CheckDummyVideo
  22735. CheckOffscreenVideo
  22736. CheckDiskAudio
  22737. CheckDummyAudio
  22738. CheckDLOPEN
  22739. CheckO_CLOEXEC
  22740. CheckHaikuVideo
  22741. CheckHaikuGL
  22742. CheckPTHREAD
  22743. # Set up files for the audio library
  22744. if test x$enable_audio = xyes; then
  22745. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22746. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22747. SUMMARY_audio="${SUMMARY_audio} haiku"
  22748. have_audio=yes
  22749. fi
  22750. # Set up files for the joystick library
  22751. if test x$enable_joystick = xyes; then
  22752. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22753. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22754. have_joystick=yes
  22755. fi
  22756. # Set up files for the timer library
  22757. if test x$enable_timers = xyes; then
  22758. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22759. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22760. have_timers=yes
  22761. fi
  22762. # Set up files for the system power library
  22763. if test x$enable_power = xyes; then
  22764. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22765. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22766. have_power=yes
  22767. fi
  22768. # Set up files for the system filesystem library
  22769. if test x$enable_filesystem = xyes; then
  22770. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22771. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22772. have_filesystem=yes
  22773. fi
  22774. # Set up files for the misc library
  22775. if test x$enable_misc = xyes; then
  22776. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22777. have_misc=yes
  22778. fi
  22779. # Set up files for the locale library
  22780. if test x$enable_locale = xyes; then
  22781. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22782. have_locale=yes
  22783. fi
  22784. # The Haiku platform requires special setup.
  22785. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22787. ;;
  22788. *-ios-*)
  22789. ARCH=ios
  22790. CheckVisibilityHidden
  22791. CheckDeclarationAfterStatement
  22792. CheckDummyVideo
  22793. CheckOffscreenVideo
  22794. CheckDiskAudio
  22795. CheckDummyAudio
  22796. CheckDLOPEN
  22797. CheckO_CLOEXEC
  22798. CheckMETAL
  22799. CheckVulkan
  22800. CheckPTHREAD
  22801. # Set up files for the misc library
  22802. if test x$enable_misc = xyes; then
  22803. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22804. have_misc=yes
  22805. fi
  22806. # Set up files for the locale library
  22807. if test x$enable_locale = xyes; then
  22808. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22809. have_locale=yes
  22810. fi
  22811. # Set up files for the audio library
  22812. if test x$enable_audio = xyes; then
  22813. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22814. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22815. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22816. have_audio=yes
  22817. fi
  22818. # Set up files for the joystick library
  22819. if test x$enable_joystick = xyes; then
  22820. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22821. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22822. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22823. have_joystick=yes
  22824. else
  22825. # Need this code for accelerometer as joystick support
  22826. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22827. fi
  22828. # Set up files for the haptic library
  22829. #if test x$enable_haptic = xyes; then
  22830. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22831. # have_haptic=yes
  22832. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22833. #fi
  22834. # Set up files for the sensor library
  22835. if test x$enable_sensor = xyes; then
  22836. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22837. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22838. have_sensor=yes
  22839. fi
  22840. # Set up files for the power library
  22841. if test x$enable_power = xyes; then
  22842. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22843. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22844. have_power=yes
  22845. fi
  22846. # Set up files for the filesystem library
  22847. if test x$enable_filesystem = xyes; then
  22848. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22849. have_filesystem=yes
  22850. fi
  22851. # Set up additional files for the file library
  22852. if test x$enable_file = xyes; then
  22853. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22854. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22855. fi
  22856. # Set up files for the timer library
  22857. if test x$enable_timers = xyes; then
  22858. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22860. have_timers=yes
  22861. fi
  22862. # Set up other core UNIX files
  22863. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22864. # The iOS platform requires special setup.
  22865. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22866. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22867. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22868. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22869. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22870. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22871. SUMMARY_video="${SUMMARY_video} uikit"
  22872. have_video=yes
  22873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22879. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22884. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22885. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22886. fi
  22887. ;;
  22888. *-*-darwin* )
  22889. # This could be either full "Mac OS X", or plain "Darwin" which is
  22890. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22891. # Next line is broken, and a few files below require Mac OS X (full)
  22892. ARCH=macosx
  22893. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22894. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22895. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22896. CheckObjectiveCARC
  22897. CheckVisibilityHidden
  22898. CheckDeclarationAfterStatement
  22899. CheckDummyVideo
  22900. CheckOffscreenVideo
  22901. CheckDiskAudio
  22902. CheckDummyAudio
  22903. CheckDLOPEN
  22904. CheckO_CLOEXEC
  22905. CheckCOCOA
  22906. CheckMETAL
  22907. CheckX11
  22908. CheckMacGL
  22909. CheckMacGLES
  22910. CheckGLX
  22911. CheckOpenGL
  22912. CheckVulkan
  22913. CheckPTHREAD
  22914. CheckHIDAPI
  22915. # Set up files for the misc library
  22916. if test x$enable_misc = xyes; then
  22917. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22918. have_misc=yes
  22919. fi
  22920. # Set up files for the locale library
  22921. if test x$enable_locale = xyes; then
  22922. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22923. have_locale=yes
  22924. fi
  22925. # Set up files for the audio library
  22926. if test x$enable_audio = xyes; then
  22927. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22928. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22930. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22931. have_audio=yes
  22932. fi
  22933. # Set up files for the joystick library
  22934. if test x$enable_joystick = xyes; then
  22935. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22936. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22937. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22938. CheckJoystickMFI
  22939. have_joystick=yes
  22940. fi
  22941. # Set up files for the haptic library
  22942. if test x$enable_haptic = xyes; then
  22943. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22944. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22946. have_haptic=yes
  22947. fi
  22948. # Set up files for the power library
  22949. if test x$enable_power = xyes; then
  22950. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22951. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22952. have_power=yes
  22953. fi
  22954. # Set up files for the filesystem library
  22955. if test x$enable_filesystem = xyes; then
  22956. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22957. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22958. have_filesystem=yes
  22959. fi
  22960. # Set up files for the timer library
  22961. if test x$enable_timers = xyes; then
  22962. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22963. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22964. have_timers=yes
  22965. fi
  22966. # Set up additional files for the file library
  22967. if test x$enable_file = xyes; then
  22968. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22969. fi
  22970. # Set up other core UNIX files
  22971. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22972. # The Mac OS X platform requires special setup.
  22973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22978. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22980. fi
  22981. ;;
  22982. *-nacl|*-pnacl)
  22983. ARCH=nacl
  22984. CheckNativeClient
  22985. CheckDummyAudio
  22986. CheckDummyVideo
  22987. CheckOffscreenVideo
  22988. CheckInputEvents
  22989. CheckPTHREAD
  22990. CheckO_CLOEXEC
  22991. # Set up files for the timer library
  22992. if test x$enable_timers = xyes; then
  22993. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22994. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22995. have_timers=yes
  22996. fi
  22997. if test x$enable_filesystem = xyes; then
  22998. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22999. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  23000. have_filesystem=yes
  23001. fi
  23002. ;;
  23003. *-*-emscripten* )
  23004. if test x$enable_video = xyes; then
  23005. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23006. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  23007. have_video=yes
  23008. SUMMARY_video="${SUMMARY_video} emscripten"
  23009. fi
  23010. if test x$enable_audio = xyes; then
  23011. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  23012. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  23013. have_audio=yes
  23014. SUMMARY_audio="${SUMMARY_audio} emscripten"
  23015. fi
  23016. CheckVisibilityHidden
  23017. CheckDeclarationAfterStatement
  23018. CheckDummyVideo
  23019. CheckOffscreenVideo
  23020. CheckDiskAudio
  23021. CheckDummyAudio
  23022. CheckPTHREAD
  23023. CheckDLOPEN
  23024. CheckClockGettime
  23025. CheckEmscriptenGLES
  23026. # Set up files for the misc library
  23027. if test x$enable_misc = xyes; then
  23028. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  23029. have_misc=yes
  23030. fi
  23031. # Set up files for the power library
  23032. if test x$enable_power = xyes; then
  23033. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  23034. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  23035. have_power=yes
  23036. fi
  23037. # Set up files for the joystick library
  23038. if test x$enable_joystick = xyes; then
  23039. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  23040. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  23041. have_joystick=yes
  23042. fi
  23043. # Set up files for the filesystem library
  23044. if test x$enable_filesystem = xyes; then
  23045. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  23046. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  23047. have_filesystem=yes
  23048. fi
  23049. # Set up files for the timer library
  23050. if test x$enable_timers = xyes; then
  23051. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23052. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23053. have_timers=yes
  23054. fi
  23055. # Set up files for the locale library
  23056. if test x$enable_locale = xyes; then
  23057. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  23058. have_locale=yes
  23059. fi
  23060. ;;
  23061. *-*-riscos*)
  23062. ARCH=riscos
  23063. CheckVisibilityHidden
  23064. CheckDeclarationAfterStatement
  23065. CheckDummyVideo
  23066. CheckOffscreenVideo
  23067. CheckDiskAudio
  23068. CheckDummyAudio
  23069. CheckDLOPEN
  23070. CheckO_CLOEXEC
  23071. CheckOSS
  23072. CheckPTHREAD
  23073. CheckClockGettime
  23074. # Set up files for the misc library
  23075. if test x$enable_misc = xyes; then
  23076. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  23077. have_misc=yes
  23078. fi
  23079. # Set up files for the video library
  23080. if test x$enable_video = xyes; then
  23081. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  23082. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  23083. have_video=yes
  23084. SUMMARY_video="${SUMMARY_video} riscos"
  23085. fi
  23086. # Set up files for the filesystem library
  23087. if test x$enable_filesystem = xyes; then
  23088. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  23089. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  23090. have_filesystem=yes
  23091. fi
  23092. # Set up files for the timer library
  23093. if test x$enable_timers = xyes; then
  23094. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23095. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23096. have_timers=yes
  23097. fi
  23098. ;;
  23099. *-*-os2*)
  23100. ARCH=os2
  23101. if test "$build" != "$host"; then # cross-compiling
  23102. # Default cross-compile location
  23103. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  23104. else
  23105. # Look for the location of the tools and install there
  23106. if test "$BUILD_PREFIX" != ""; then
  23107. ac_default_prefix=$BUILD_PREFIX
  23108. fi
  23109. fi
  23110. enable_static=no # disable static builds
  23111. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  23112. CheckOS2
  23113. CheckDeclarationAfterStatement
  23114. CheckDummyVideo
  23115. CheckDiskAudio
  23116. CheckDummyAudio
  23117. CheckHIDAPI
  23118. # Set up the core platform files
  23119. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  23120. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  23121. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  23122. fi
  23123. # Use the Unix locale APIs.
  23124. if test x$enable_locale = xyes; then
  23125. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23126. have_locale=yes
  23127. fi
  23128. # Set up files for the video library
  23129. if test x$enable_video = xyes; then
  23130. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  23131. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  23132. have_video=yes
  23133. SUMMARY_video="${SUMMARY_video} os/2"
  23134. fi
  23135. # Set up files for the audio library
  23136. if test x$enable_audio = xyes; then
  23137. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  23138. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  23139. have_audio=yes
  23140. SUMMARY_audio="${SUMMARY_audio} os/2"
  23141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  23142. fi
  23143. # Set up files for the thread library
  23144. if test x$enable_threads = xyes; then
  23145. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  23146. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  23147. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23148. have_threads=yes
  23149. fi
  23150. # Set up files for the timer library
  23151. if test x$enable_timers = xyes; then
  23152. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  23153. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  23154. have_timers=yes
  23155. fi
  23156. # Set up files for the shared object loading library
  23157. if test x$enable_loadso = xyes; then
  23158. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23159. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23160. have_loadso=yes
  23161. fi
  23162. # Set up files for the filesystem library
  23163. if test x$enable_filesystem = xyes; then
  23164. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23165. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23166. have_filesystem=yes
  23167. fi
  23168. # Set up files for the joystick library
  23169. if test x$enable_joystick = xyes; then
  23170. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23171. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23172. have_joystick=yes
  23173. fi
  23174. ;;
  23175. *)
  23176. as_fn_error $? "
  23177. *** Unsupported host: Please add to configure.ac
  23178. " "$LINENO" 5
  23179. ;;
  23180. esac
  23181. CheckVirtualJoystick
  23182. # Check whether to install sdl2-config
  23183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23184. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23185. # Check whether --enable-sdl2-config was given.
  23186. if test "${enable_sdl2_config+set}" = set; then :
  23187. enableval=$enable_sdl2_config; case "${enableval}" in
  23188. yes) enable_sdl2_config="TRUE" ;;
  23189. no) enable_sdl2_config="FALSE" ;;
  23190. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23191. esac
  23192. else
  23193. enable_sdl2_config="TRUE"
  23194. fi
  23195. if test "$enable_sdl2_config" = "TRUE"; then
  23196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23197. $as_echo "yes" >&6; }
  23198. else
  23199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23200. $as_echo "no" >&6; }
  23201. fi
  23202. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23203. # Verify that we have all the platform specific files we need
  23204. if test x$have_audio != xyes; then
  23205. if test x$enable_audio = xyes; then
  23206. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23207. fi
  23208. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23209. fi
  23210. if test x$have_video != xyes; then
  23211. if test x$enable_video = xyes; then
  23212. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23213. fi
  23214. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23215. fi
  23216. if test x$have_misc != xyes; then
  23217. if test x$enable_misc = xyes; then
  23218. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23219. fi
  23220. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23221. fi
  23222. if test x$have_locale != xyes; then
  23223. if test x$enable_locale = xyes; then
  23224. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23225. fi
  23226. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23227. fi
  23228. if test x$have_joystick != xyes; then
  23229. if test x$enable_joystick = xyes; then
  23230. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23231. fi
  23232. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23233. fi
  23234. if test x$have_haptic != xyes; then
  23235. if test x$enable_haptic = xyes; then
  23236. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23237. fi
  23238. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23239. fi
  23240. if test x$have_sensor != xyes; then
  23241. if test x$enable_sensor = xyes; then
  23242. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23243. fi
  23244. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23245. fi
  23246. if test x$have_threads != xyes; then
  23247. if test x$enable_threads = xyes; then
  23248. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23249. fi
  23250. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23251. fi
  23252. if test x$have_timers != xyes; then
  23253. if test x$enable_timers = xyes; then
  23254. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23255. fi
  23256. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23257. fi
  23258. if test x$have_filesystem != xyes; then
  23259. if test x$enable_filesystem = xyes; then
  23260. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23261. fi
  23262. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23263. fi
  23264. if test x$have_loadso != xyes; then
  23265. if test x$enable_loadso = xyes; then
  23266. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23267. fi
  23268. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23269. fi
  23270. if test x$SDLMAIN_SOURCES = x; then
  23271. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23272. fi
  23273. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23274. if test x$video_wayland = xyes; then
  23275. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23276. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23277. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23278. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23279. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23280. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23281. echo ;\
  23282. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23283. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23284. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23285. echo ;\
  23286. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23287. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23288. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23289. echo ;\
  23290. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23291. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23292. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23293. done ;\
  23294. echo ;\
  23295. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23296. fi
  23297. OBJECTS=`echo $SOURCES`
  23298. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23299. for EXT in asm cc m c S; do
  23300. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23301. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23302. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23303. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23304. done
  23305. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23306. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23307. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23308. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23309. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23310. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23311. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23312. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23313. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23314. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23315. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23316. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23317. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23318. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23319. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23320. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23321. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23322. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23323. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23324. # Set runtime shared library paths as needed
  23325. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23326. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23327. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23329. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23330. have_enable_new_dtags=no
  23331. save_LDFLAGS="$LDFLAGS"
  23332. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23334. /* end confdefs.h. */
  23335. int
  23336. main ()
  23337. {
  23338. ;
  23339. return 0;
  23340. }
  23341. _ACEOF
  23342. if ac_fn_c_try_link "$LINENO"; then :
  23343. have_enable_new_dtags=yes
  23344. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23345. fi
  23346. rm -f core conftest.err conftest.$ac_objext \
  23347. conftest$ac_exeext conftest.$ac_ext
  23348. LDFLAGS="$save_LDFLAGS"
  23349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23350. $as_echo "$have_enable_new_dtags" >&6; }
  23351. fi
  23352. if test $ARCH = solaris; then
  23353. SDL_RLD_FLAGS="-R\${libdir}"
  23354. fi
  23355. else
  23356. SDL_RLD_FLAGS=""
  23357. fi
  23358. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23359. eval pkg_prefix=$prefix
  23360. eval pkg_cmakedir=$libdir/cmake/SDL2
  23361. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23362. eval pkg_bindir=$bindir
  23363. bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23364. if test x$enable_shared = xyes; then
  23365. PKGCONFIG_LIBS_PRIV="
  23366. Libs.private:"
  23367. ENABLE_SHARED_TRUE=
  23368. ENABLE_SHARED_FALSE="#"
  23369. else
  23370. PKGCONFIG_LIBS_PRIV=
  23371. ENABLE_SHARED_TRUE="#"
  23372. ENABLE_SHARED_FALSE=
  23373. fi
  23374. if test x$enable_static = xyes; then
  23375. ENABLE_STATIC_TRUE=
  23376. ENABLE_STATIC_FALSE="#"
  23377. else
  23378. ENABLE_STATIC_TRUE="#"
  23379. ENABLE_STATIC_FALSE=
  23380. fi
  23381. cat >Makefile.rules <<__EOF__
  23382. # Build rules for objects
  23383. -include \$(OBJECTS:.lo=.d)
  23384. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23385. $srcdir/src/SDL.c: update-revision
  23386. $DEPENDS
  23387. $VERSION_DEPENDS
  23388. $SDLMAIN_DEPENDS
  23389. $SDLTEST_DEPENDS
  23390. $WAYLAND_PROTOCOLS_DEPENDS
  23391. __EOF__
  23392. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23393. ac_config_commands="$ac_config_commands sdl2_config"
  23394. SUMMARY="SDL2 Configure Summary:\n"
  23395. if test x$enable_shared = xyes; then
  23396. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23397. fi
  23398. if test x$enable_static = xyes; then
  23399. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23400. fi
  23401. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23402. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23403. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23404. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23405. if test x$have_x = xyes; then
  23406. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23407. fi
  23408. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23409. if test x$have_joystick_virtual = xyes; then
  23410. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23411. else
  23412. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23413. fi
  23414. if test x$have_samplerate_h_hdr = xyes; then
  23415. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23416. else
  23417. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23418. fi
  23419. if test x$have_libudev_h_hdr = xyes; then
  23420. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23421. else
  23422. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23423. fi
  23424. if test x$have_dbus_dbus_h_hdr = xyes; then
  23425. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23426. else
  23427. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23428. fi
  23429. if test x$enable_ime = xyes; then
  23430. SUMMARY="${SUMMARY}Using ime : YES\n"
  23431. else
  23432. SUMMARY="${SUMMARY}Using ime : NO\n"
  23433. fi
  23434. if test x$have_ibus_ibus_h_hdr = xyes; then
  23435. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23436. else
  23437. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23438. fi
  23439. if test x$have_fcitx = xyes; then
  23440. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23441. else
  23442. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23443. fi
  23444. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23445. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23446. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23447. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23448. SUMMARY="${SUMMARY}configure script with:\n"
  23449. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23450. fi
  23451. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23452. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23453. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23454. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23455. SUMMARY="${SUMMARY}configure script with:\n"
  23456. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23457. fi
  23458. ac_config_commands="$ac_config_commands summary"
  23459. cat >confcache <<\_ACEOF
  23460. # This file is a shell script that caches the results of configure
  23461. # tests run on this system so they can be shared between configure
  23462. # scripts and configure runs, see configure's option --config-cache.
  23463. # It is not useful on other systems. If it contains results you don't
  23464. # want to keep, you may remove or edit it.
  23465. #
  23466. # config.status only pays attention to the cache file if you give it
  23467. # the --recheck option to rerun configure.
  23468. #
  23469. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23470. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23471. # following values.
  23472. _ACEOF
  23473. # The following way of writing the cache mishandles newlines in values,
  23474. # but we know of no workaround that is simple, portable, and efficient.
  23475. # So, we kill variables containing newlines.
  23476. # Ultrix sh set writes to stderr and can't be redirected directly,
  23477. # and sets the high bit in the cache file unless we assign to the vars.
  23478. (
  23479. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23480. eval ac_val=\$$ac_var
  23481. case $ac_val in #(
  23482. *${as_nl}*)
  23483. case $ac_var in #(
  23484. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23485. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23486. esac
  23487. case $ac_var in #(
  23488. _ | IFS | as_nl) ;; #(
  23489. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23490. *) { eval $ac_var=; unset $ac_var;} ;;
  23491. esac ;;
  23492. esac
  23493. done
  23494. (set) 2>&1 |
  23495. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23496. *${as_nl}ac_space=\ *)
  23497. # `set' does not quote correctly, so add quotes: double-quote
  23498. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23499. sed -n \
  23500. "s/'/'\\\\''/g;
  23501. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23502. ;; #(
  23503. *)
  23504. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23505. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23506. ;;
  23507. esac |
  23508. sort
  23509. ) |
  23510. sed '
  23511. /^ac_cv_env_/b end
  23512. t clear
  23513. :clear
  23514. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23515. t end
  23516. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23517. :end' >>confcache
  23518. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23519. if test -w "$cache_file"; then
  23520. if test "x$cache_file" != "x/dev/null"; then
  23521. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23522. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23523. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23524. cat confcache >"$cache_file"
  23525. else
  23526. case $cache_file in #(
  23527. */* | ?:*)
  23528. mv -f confcache "$cache_file"$$ &&
  23529. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23530. *)
  23531. mv -f confcache "$cache_file" ;;
  23532. esac
  23533. fi
  23534. fi
  23535. else
  23536. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23537. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23538. fi
  23539. fi
  23540. rm -f confcache
  23541. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23542. # Let make expand exec_prefix.
  23543. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23544. DEFS=-DHAVE_CONFIG_H
  23545. ac_libobjs=
  23546. ac_ltlibobjs=
  23547. U=
  23548. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23549. # 1. Remove the extension, and $U if already installed.
  23550. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23551. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23552. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23553. # will be set to the directory where LIBOBJS objects are built.
  23554. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23555. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23556. done
  23557. LIBOBJS=$ac_libobjs
  23558. LTLIBOBJS=$ac_ltlibobjs
  23559. : "${CONFIG_STATUS=./config.status}"
  23560. ac_write_fail=0
  23561. ac_clean_files_save=$ac_clean_files
  23562. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23563. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23564. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23565. as_write_fail=0
  23566. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23567. #! $SHELL
  23568. # Generated by $as_me.
  23569. # Run this file to recreate the current configuration.
  23570. # Compiler output produced by configure, useful for debugging
  23571. # configure, is in config.log if it exists.
  23572. debug=false
  23573. ac_cs_recheck=false
  23574. ac_cs_silent=false
  23575. SHELL=\${CONFIG_SHELL-$SHELL}
  23576. export SHELL
  23577. _ASEOF
  23578. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23579. ## -------------------- ##
  23580. ## M4sh Initialization. ##
  23581. ## -------------------- ##
  23582. # Be more Bourne compatible
  23583. DUALCASE=1; export DUALCASE # for MKS sh
  23584. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23585. emulate sh
  23586. NULLCMD=:
  23587. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23588. # is contrary to our usage. Disable this feature.
  23589. alias -g '${1+"$@"}'='"$@"'
  23590. setopt NO_GLOB_SUBST
  23591. else
  23592. case `(set -o) 2>/dev/null` in #(
  23593. *posix*) :
  23594. set -o posix ;; #(
  23595. *) :
  23596. ;;
  23597. esac
  23598. fi
  23599. as_nl='
  23600. '
  23601. export as_nl
  23602. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23603. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23604. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23605. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23606. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23607. # but without wasting forks for bash or zsh.
  23608. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23609. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23610. as_echo='print -r --'
  23611. as_echo_n='print -rn --'
  23612. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23613. as_echo='printf %s\n'
  23614. as_echo_n='printf %s'
  23615. else
  23616. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23617. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23618. as_echo_n='/usr/ucb/echo -n'
  23619. else
  23620. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23621. as_echo_n_body='eval
  23622. arg=$1;
  23623. case $arg in #(
  23624. *"$as_nl"*)
  23625. expr "X$arg" : "X\\(.*\\)$as_nl";
  23626. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23627. esac;
  23628. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23629. '
  23630. export as_echo_n_body
  23631. as_echo_n='sh -c $as_echo_n_body as_echo'
  23632. fi
  23633. export as_echo_body
  23634. as_echo='sh -c $as_echo_body as_echo'
  23635. fi
  23636. # The user is always right.
  23637. if test "${PATH_SEPARATOR+set}" != set; then
  23638. PATH_SEPARATOR=:
  23639. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23640. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23641. PATH_SEPARATOR=';'
  23642. }
  23643. fi
  23644. # IFS
  23645. # We need space, tab and new line, in precisely that order. Quoting is
  23646. # there to prevent editors from complaining about space-tab.
  23647. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23648. # splitting by setting IFS to empty value.)
  23649. IFS=" "" $as_nl"
  23650. # Find who we are. Look in the path if we contain no directory separator.
  23651. as_myself=
  23652. case $0 in #((
  23653. *[\\/]* ) as_myself=$0 ;;
  23654. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23655. for as_dir in $PATH
  23656. do
  23657. IFS=$as_save_IFS
  23658. test -z "$as_dir" && as_dir=.
  23659. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23660. done
  23661. IFS=$as_save_IFS
  23662. ;;
  23663. esac
  23664. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23665. # in which case we are not to be found in the path.
  23666. if test "x$as_myself" = x; then
  23667. as_myself=$0
  23668. fi
  23669. if test ! -f "$as_myself"; then
  23670. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23671. exit 1
  23672. fi
  23673. # Unset variables that we do not need and which cause bugs (e.g. in
  23674. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23675. # suppresses any "Segmentation fault" message there. '((' could
  23676. # trigger a bug in pdksh 5.2.14.
  23677. for as_var in BASH_ENV ENV MAIL MAILPATH
  23678. do eval test x\${$as_var+set} = xset \
  23679. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23680. done
  23681. PS1='$ '
  23682. PS2='> '
  23683. PS4='+ '
  23684. # NLS nuisances.
  23685. LC_ALL=C
  23686. export LC_ALL
  23687. LANGUAGE=C
  23688. export LANGUAGE
  23689. # CDPATH.
  23690. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23691. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23692. # ----------------------------------------
  23693. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23694. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23695. # script with STATUS, using 1 if that was 0.
  23696. as_fn_error ()
  23697. {
  23698. as_status=$1; test $as_status -eq 0 && as_status=1
  23699. if test "$4"; then
  23700. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23701. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23702. fi
  23703. $as_echo "$as_me: error: $2" >&2
  23704. as_fn_exit $as_status
  23705. } # as_fn_error
  23706. # as_fn_set_status STATUS
  23707. # -----------------------
  23708. # Set $? to STATUS, without forking.
  23709. as_fn_set_status ()
  23710. {
  23711. return $1
  23712. } # as_fn_set_status
  23713. # as_fn_exit STATUS
  23714. # -----------------
  23715. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23716. as_fn_exit ()
  23717. {
  23718. set +e
  23719. as_fn_set_status $1
  23720. exit $1
  23721. } # as_fn_exit
  23722. # as_fn_unset VAR
  23723. # ---------------
  23724. # Portably unset VAR.
  23725. as_fn_unset ()
  23726. {
  23727. { eval $1=; unset $1;}
  23728. }
  23729. as_unset=as_fn_unset
  23730. # as_fn_append VAR VALUE
  23731. # ----------------------
  23732. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23733. # advantage of any shell optimizations that allow amortized linear growth over
  23734. # repeated appends, instead of the typical quadratic growth present in naive
  23735. # implementations.
  23736. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23737. eval 'as_fn_append ()
  23738. {
  23739. eval $1+=\$2
  23740. }'
  23741. else
  23742. as_fn_append ()
  23743. {
  23744. eval $1=\$$1\$2
  23745. }
  23746. fi # as_fn_append
  23747. # as_fn_arith ARG...
  23748. # ------------------
  23749. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23750. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23751. # must be portable across $(()) and expr.
  23752. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23753. eval 'as_fn_arith ()
  23754. {
  23755. as_val=$(( $* ))
  23756. }'
  23757. else
  23758. as_fn_arith ()
  23759. {
  23760. as_val=`expr "$@" || test $? -eq 1`
  23761. }
  23762. fi # as_fn_arith
  23763. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23764. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23765. as_expr=expr
  23766. else
  23767. as_expr=false
  23768. fi
  23769. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23770. as_basename=basename
  23771. else
  23772. as_basename=false
  23773. fi
  23774. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23775. as_dirname=dirname
  23776. else
  23777. as_dirname=false
  23778. fi
  23779. as_me=`$as_basename -- "$0" ||
  23780. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23781. X"$0" : 'X\(//\)$' \| \
  23782. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23783. $as_echo X/"$0" |
  23784. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23785. s//\1/
  23786. q
  23787. }
  23788. /^X\/\(\/\/\)$/{
  23789. s//\1/
  23790. q
  23791. }
  23792. /^X\/\(\/\).*/{
  23793. s//\1/
  23794. q
  23795. }
  23796. s/.*/./; q'`
  23797. # Avoid depending upon Character Ranges.
  23798. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23799. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23800. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23801. as_cr_digits='0123456789'
  23802. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23803. ECHO_C= ECHO_N= ECHO_T=
  23804. case `echo -n x` in #(((((
  23805. -n*)
  23806. case `echo 'xy\c'` in
  23807. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23808. xy) ECHO_C='\c';;
  23809. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23810. ECHO_T=' ';;
  23811. esac;;
  23812. *)
  23813. ECHO_N='-n';;
  23814. esac
  23815. rm -f conf$$ conf$$.exe conf$$.file
  23816. if test -d conf$$.dir; then
  23817. rm -f conf$$.dir/conf$$.file
  23818. else
  23819. rm -f conf$$.dir
  23820. mkdir conf$$.dir 2>/dev/null
  23821. fi
  23822. if (echo >conf$$.file) 2>/dev/null; then
  23823. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23824. as_ln_s='ln -s'
  23825. # ... but there are two gotchas:
  23826. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23827. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23828. # In both cases, we have to default to `cp -pR'.
  23829. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23830. as_ln_s='cp -pR'
  23831. elif ln conf$$.file conf$$ 2>/dev/null; then
  23832. as_ln_s=ln
  23833. else
  23834. as_ln_s='cp -pR'
  23835. fi
  23836. else
  23837. as_ln_s='cp -pR'
  23838. fi
  23839. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23840. rmdir conf$$.dir 2>/dev/null
  23841. # as_fn_mkdir_p
  23842. # -------------
  23843. # Create "$as_dir" as a directory, including parents if necessary.
  23844. as_fn_mkdir_p ()
  23845. {
  23846. case $as_dir in #(
  23847. -*) as_dir=./$as_dir;;
  23848. esac
  23849. test -d "$as_dir" || eval $as_mkdir_p || {
  23850. as_dirs=
  23851. while :; do
  23852. case $as_dir in #(
  23853. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23854. *) as_qdir=$as_dir;;
  23855. esac
  23856. as_dirs="'$as_qdir' $as_dirs"
  23857. as_dir=`$as_dirname -- "$as_dir" ||
  23858. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23859. X"$as_dir" : 'X\(//\)[^/]' \| \
  23860. X"$as_dir" : 'X\(//\)$' \| \
  23861. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23862. $as_echo X"$as_dir" |
  23863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23864. s//\1/
  23865. q
  23866. }
  23867. /^X\(\/\/\)[^/].*/{
  23868. s//\1/
  23869. q
  23870. }
  23871. /^X\(\/\/\)$/{
  23872. s//\1/
  23873. q
  23874. }
  23875. /^X\(\/\).*/{
  23876. s//\1/
  23877. q
  23878. }
  23879. s/.*/./; q'`
  23880. test -d "$as_dir" && break
  23881. done
  23882. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23883. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23884. } # as_fn_mkdir_p
  23885. if mkdir -p . 2>/dev/null; then
  23886. as_mkdir_p='mkdir -p "$as_dir"'
  23887. else
  23888. test -d ./-p && rmdir ./-p
  23889. as_mkdir_p=false
  23890. fi
  23891. # as_fn_executable_p FILE
  23892. # -----------------------
  23893. # Test if FILE is an executable regular file.
  23894. as_fn_executable_p ()
  23895. {
  23896. test -f "$1" && test -x "$1"
  23897. } # as_fn_executable_p
  23898. as_test_x='test -x'
  23899. as_executable_p=as_fn_executable_p
  23900. # Sed expression to map a string onto a valid CPP name.
  23901. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23902. # Sed expression to map a string onto a valid variable name.
  23903. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23904. exec 6>&1
  23905. ## ----------------------------------- ##
  23906. ## Main body of $CONFIG_STATUS script. ##
  23907. ## ----------------------------------- ##
  23908. _ASEOF
  23909. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23911. # Save the log message, to keep $0 and so on meaningful, and to
  23912. # report actual input values of CONFIG_FILES etc. instead of their
  23913. # values after options handling.
  23914. ac_log="
  23915. This file was extended by $as_me, which was
  23916. generated by GNU Autoconf 2.69. Invocation command line was
  23917. CONFIG_FILES = $CONFIG_FILES
  23918. CONFIG_HEADERS = $CONFIG_HEADERS
  23919. CONFIG_LINKS = $CONFIG_LINKS
  23920. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23921. $ $0 $@
  23922. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23923. "
  23924. _ACEOF
  23925. case $ac_config_files in *"
  23926. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23927. esac
  23928. case $ac_config_headers in *"
  23929. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23930. esac
  23931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23932. # Files that config.status was made for.
  23933. config_files="$ac_config_files"
  23934. config_headers="$ac_config_headers"
  23935. config_commands="$ac_config_commands"
  23936. _ACEOF
  23937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23938. ac_cs_usage="\
  23939. \`$as_me' instantiates files and other configuration actions
  23940. from templates according to the current configuration. Unless the files
  23941. and actions are specified as TAGs, all are instantiated by default.
  23942. Usage: $0 [OPTION]... [TAG]...
  23943. -h, --help print this help, then exit
  23944. -V, --version print version number and configuration settings, then exit
  23945. --config print configuration, then exit
  23946. -q, --quiet, --silent
  23947. do not print progress messages
  23948. -d, --debug don't remove temporary files
  23949. --recheck update $as_me by reconfiguring in the same conditions
  23950. --file=FILE[:TEMPLATE]
  23951. instantiate the configuration file FILE
  23952. --header=FILE[:TEMPLATE]
  23953. instantiate the configuration header FILE
  23954. Configuration files:
  23955. $config_files
  23956. Configuration headers:
  23957. $config_headers
  23958. Configuration commands:
  23959. $config_commands
  23960. Report bugs to the package provider."
  23961. _ACEOF
  23962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23963. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23964. ac_cs_version="\\
  23965. config.status
  23966. configured by $0, generated by GNU Autoconf 2.69,
  23967. with options \\"\$ac_cs_config\\"
  23968. Copyright (C) 2012 Free Software Foundation, Inc.
  23969. This config.status script is free software; the Free Software Foundation
  23970. gives unlimited permission to copy, distribute and modify it."
  23971. ac_pwd='$ac_pwd'
  23972. srcdir='$srcdir'
  23973. INSTALL='$INSTALL'
  23974. AWK='$AWK'
  23975. test -n "\$AWK" || AWK=awk
  23976. _ACEOF
  23977. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23978. # The default lists apply if the user does not specify any file.
  23979. ac_need_defaults=:
  23980. while test $# != 0
  23981. do
  23982. case $1 in
  23983. --*=?*)
  23984. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23985. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23986. ac_shift=:
  23987. ;;
  23988. --*=)
  23989. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23990. ac_optarg=
  23991. ac_shift=:
  23992. ;;
  23993. *)
  23994. ac_option=$1
  23995. ac_optarg=$2
  23996. ac_shift=shift
  23997. ;;
  23998. esac
  23999. case $ac_option in
  24000. # Handling of the options.
  24001. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24002. ac_cs_recheck=: ;;
  24003. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24004. $as_echo "$ac_cs_version"; exit ;;
  24005. --config | --confi | --conf | --con | --co | --c )
  24006. $as_echo "$ac_cs_config"; exit ;;
  24007. --debug | --debu | --deb | --de | --d | -d )
  24008. debug=: ;;
  24009. --file | --fil | --fi | --f )
  24010. $ac_shift
  24011. case $ac_optarg in
  24012. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24013. '') as_fn_error $? "missing file argument" ;;
  24014. esac
  24015. as_fn_append CONFIG_FILES " '$ac_optarg'"
  24016. ac_need_defaults=false;;
  24017. --header | --heade | --head | --hea )
  24018. $ac_shift
  24019. case $ac_optarg in
  24020. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24021. esac
  24022. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24023. ac_need_defaults=false;;
  24024. --he | --h)
  24025. # Conflict between --help and --header
  24026. as_fn_error $? "ambiguous option: \`$1'
  24027. Try \`$0 --help' for more information.";;
  24028. --help | --hel | -h )
  24029. $as_echo "$ac_cs_usage"; exit ;;
  24030. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24031. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24032. ac_cs_silent=: ;;
  24033. # This is an error.
  24034. -*) as_fn_error $? "unrecognized option: \`$1'
  24035. Try \`$0 --help' for more information." ;;
  24036. *) as_fn_append ac_config_targets " $1"
  24037. ac_need_defaults=false ;;
  24038. esac
  24039. shift
  24040. done
  24041. ac_configure_extra_args=
  24042. if $ac_cs_silent; then
  24043. exec 6>/dev/null
  24044. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24045. fi
  24046. _ACEOF
  24047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24048. if \$ac_cs_recheck; then
  24049. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24050. shift
  24051. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24052. CONFIG_SHELL='$SHELL'
  24053. export CONFIG_SHELL
  24054. exec "\$@"
  24055. fi
  24056. _ACEOF
  24057. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24058. exec 5>>config.log
  24059. {
  24060. echo
  24061. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24062. ## Running $as_me. ##
  24063. _ASBOX
  24064. $as_echo "$ac_log"
  24065. } >&5
  24066. _ACEOF
  24067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24068. #
  24069. # INIT-COMMANDS
  24070. #
  24071. # The HP-UX ksh and POSIX shell print the target directory to stdout
  24072. # if CDPATH is set.
  24073. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24074. sed_quote_subst='$sed_quote_subst'
  24075. double_quote_subst='$double_quote_subst'
  24076. delay_variable_subst='$delay_variable_subst'
  24077. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  24078. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  24079. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  24080. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  24081. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  24082. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  24083. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  24084. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24085. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24086. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  24087. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24088. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24089. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24090. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24091. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24092. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24093. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24094. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24095. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24096. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24097. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24098. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24099. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24100. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24101. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24102. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24103. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24104. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24105. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24106. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24107. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24108. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24109. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24110. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24111. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24112. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24113. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24114. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24115. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24116. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24117. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24118. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24119. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24120. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24121. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24122. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24123. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24124. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24125. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24126. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24127. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24128. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24129. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24130. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24131. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24132. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24133. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24134. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  24135. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24136. 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"`'
  24137. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  24138. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24139. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24140. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  24141. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24142. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24143. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24144. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24145. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24146. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24147. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24148. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24149. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24150. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24151. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24152. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24153. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24154. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24155. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24156. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24157. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24158. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24159. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24160. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24161. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24162. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24163. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24164. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24165. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24166. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24167. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24168. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24169. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24170. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24171. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24172. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24173. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24174. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24175. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24176. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24177. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24178. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24179. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24180. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24181. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24182. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24183. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24184. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24185. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24186. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24187. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24188. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24189. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24190. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24191. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24192. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24193. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24194. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24195. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24196. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24197. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24198. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24199. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24200. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24201. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24202. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24203. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24204. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24205. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24206. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24207. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24208. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24209. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24210. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24211. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24212. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24213. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24214. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24215. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24216. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24217. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24218. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24219. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24220. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24221. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24222. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24223. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24224. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24225. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24226. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24227. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24228. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24229. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24230. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24231. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24232. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24233. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24234. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24235. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24236. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24237. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24238. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24239. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24240. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24241. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24242. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24243. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24244. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24245. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24246. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24247. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24248. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24249. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24250. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24251. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24252. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24253. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24254. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24255. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24256. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24257. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24258. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24259. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24260. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24261. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24262. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24263. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24264. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24265. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24266. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24267. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24268. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24269. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24270. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24271. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24272. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24273. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24274. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24275. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24276. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24277. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24278. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24279. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24280. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24281. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24282. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24283. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24284. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24285. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24286. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24287. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24288. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24289. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24290. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24291. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24292. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24293. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24294. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24295. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24296. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24297. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24298. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24299. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24300. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24301. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24302. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24303. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24304. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24305. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24306. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24307. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24308. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24309. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24310. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24311. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24312. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24313. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24314. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24315. LTCC='$LTCC'
  24316. LTCFLAGS='$LTCFLAGS'
  24317. compiler='$compiler_DEFAULT'
  24318. # A function that is used when there is no print builtin or printf.
  24319. func_fallback_echo ()
  24320. {
  24321. eval 'cat <<_LTECHO_EOF
  24322. \$1
  24323. _LTECHO_EOF'
  24324. }
  24325. # Quote evaled strings.
  24326. for var in AS \
  24327. DLLTOOL \
  24328. OBJDUMP \
  24329. SHELL \
  24330. ECHO \
  24331. PATH_SEPARATOR \
  24332. SED \
  24333. GREP \
  24334. EGREP \
  24335. FGREP \
  24336. LD \
  24337. NM \
  24338. LN_S \
  24339. lt_SP2NL \
  24340. lt_NL2SP \
  24341. reload_flag \
  24342. deplibs_check_method \
  24343. file_magic_cmd \
  24344. file_magic_glob \
  24345. want_nocaseglob \
  24346. sharedlib_from_linklib_cmd \
  24347. AR \
  24348. AR_FLAGS \
  24349. archiver_list_spec \
  24350. STRIP \
  24351. RANLIB \
  24352. CC \
  24353. CFLAGS \
  24354. compiler \
  24355. lt_cv_sys_global_symbol_pipe \
  24356. lt_cv_sys_global_symbol_to_cdecl \
  24357. lt_cv_sys_global_symbol_to_import \
  24358. lt_cv_sys_global_symbol_to_c_name_address \
  24359. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24360. lt_cv_nm_interface \
  24361. nm_file_list_spec \
  24362. lt_cv_truncate_bin \
  24363. lt_prog_compiler_no_builtin_flag \
  24364. lt_prog_compiler_pic \
  24365. lt_prog_compiler_wl \
  24366. lt_prog_compiler_static \
  24367. lt_cv_prog_compiler_c_o \
  24368. need_locks \
  24369. MANIFEST_TOOL \
  24370. DSYMUTIL \
  24371. NMEDIT \
  24372. LIPO \
  24373. OTOOL \
  24374. OTOOL64 \
  24375. shrext_cmds \
  24376. export_dynamic_flag_spec \
  24377. whole_archive_flag_spec \
  24378. compiler_needs_object \
  24379. with_gnu_ld \
  24380. allow_undefined_flag \
  24381. no_undefined_flag \
  24382. hardcode_libdir_flag_spec \
  24383. hardcode_libdir_separator \
  24384. exclude_expsyms \
  24385. include_expsyms \
  24386. file_list_spec \
  24387. variables_saved_for_relink \
  24388. libname_spec \
  24389. library_names_spec \
  24390. soname_spec \
  24391. install_override_mode \
  24392. finish_eval \
  24393. old_striplib \
  24394. striplib \
  24395. compiler_lib_search_dirs \
  24396. predep_objects \
  24397. postdep_objects \
  24398. predeps \
  24399. postdeps \
  24400. compiler_lib_search_path \
  24401. LD_RC \
  24402. LD_CXX \
  24403. reload_flag_RC \
  24404. reload_flag_CXX \
  24405. compiler_RC \
  24406. compiler_CXX \
  24407. lt_prog_compiler_no_builtin_flag_RC \
  24408. lt_prog_compiler_no_builtin_flag_CXX \
  24409. lt_prog_compiler_pic_RC \
  24410. lt_prog_compiler_pic_CXX \
  24411. lt_prog_compiler_wl_RC \
  24412. lt_prog_compiler_wl_CXX \
  24413. lt_prog_compiler_static_RC \
  24414. lt_prog_compiler_static_CXX \
  24415. lt_cv_prog_compiler_c_o_RC \
  24416. lt_cv_prog_compiler_c_o_CXX \
  24417. export_dynamic_flag_spec_RC \
  24418. export_dynamic_flag_spec_CXX \
  24419. whole_archive_flag_spec_RC \
  24420. whole_archive_flag_spec_CXX \
  24421. compiler_needs_object_RC \
  24422. compiler_needs_object_CXX \
  24423. with_gnu_ld_RC \
  24424. with_gnu_ld_CXX \
  24425. allow_undefined_flag_RC \
  24426. allow_undefined_flag_CXX \
  24427. no_undefined_flag_RC \
  24428. no_undefined_flag_CXX \
  24429. hardcode_libdir_flag_spec_RC \
  24430. hardcode_libdir_flag_spec_CXX \
  24431. hardcode_libdir_separator_RC \
  24432. hardcode_libdir_separator_CXX \
  24433. exclude_expsyms_RC \
  24434. exclude_expsyms_CXX \
  24435. include_expsyms_RC \
  24436. include_expsyms_CXX \
  24437. file_list_spec_RC \
  24438. file_list_spec_CXX \
  24439. compiler_lib_search_dirs_RC \
  24440. compiler_lib_search_dirs_CXX \
  24441. predep_objects_RC \
  24442. predep_objects_CXX \
  24443. postdep_objects_RC \
  24444. postdep_objects_CXX \
  24445. predeps_RC \
  24446. predeps_CXX \
  24447. postdeps_RC \
  24448. postdeps_CXX \
  24449. compiler_lib_search_path_RC \
  24450. compiler_lib_search_path_CXX; do
  24451. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24452. *[\\\\\\\`\\"\\\$]*)
  24453. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24454. ;;
  24455. *)
  24456. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24457. ;;
  24458. esac
  24459. done
  24460. # Double-quote double-evaled strings.
  24461. for var in reload_cmds \
  24462. old_postinstall_cmds \
  24463. old_postuninstall_cmds \
  24464. old_archive_cmds \
  24465. extract_expsyms_cmds \
  24466. old_archive_from_new_cmds \
  24467. old_archive_from_expsyms_cmds \
  24468. archive_cmds \
  24469. archive_expsym_cmds \
  24470. module_cmds \
  24471. module_expsym_cmds \
  24472. export_symbols_cmds \
  24473. prelink_cmds \
  24474. postlink_cmds \
  24475. postinstall_cmds \
  24476. postuninstall_cmds \
  24477. finish_cmds \
  24478. sys_lib_search_path_spec \
  24479. configure_time_dlsearch_path \
  24480. configure_time_lt_sys_library_path \
  24481. reload_cmds_RC \
  24482. reload_cmds_CXX \
  24483. old_archive_cmds_RC \
  24484. old_archive_cmds_CXX \
  24485. old_archive_from_new_cmds_RC \
  24486. old_archive_from_new_cmds_CXX \
  24487. old_archive_from_expsyms_cmds_RC \
  24488. old_archive_from_expsyms_cmds_CXX \
  24489. archive_cmds_RC \
  24490. archive_cmds_CXX \
  24491. archive_expsym_cmds_RC \
  24492. archive_expsym_cmds_CXX \
  24493. module_cmds_RC \
  24494. module_cmds_CXX \
  24495. module_expsym_cmds_RC \
  24496. module_expsym_cmds_CXX \
  24497. export_symbols_cmds_RC \
  24498. export_symbols_cmds_CXX \
  24499. prelink_cmds_RC \
  24500. prelink_cmds_CXX \
  24501. postlink_cmds_RC \
  24502. postlink_cmds_CXX; do
  24503. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24504. *[\\\\\\\`\\"\\\$]*)
  24505. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24506. ;;
  24507. *)
  24508. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24509. ;;
  24510. esac
  24511. done
  24512. ac_aux_dir='$ac_aux_dir'
  24513. # See if we are running on zsh, and set the options that allow our
  24514. # commands through without removal of \ escapes INIT.
  24515. if test -n "\${ZSH_VERSION+set}"; then
  24516. setopt NO_GLOB_SUBST
  24517. fi
  24518. PACKAGE='$PACKAGE'
  24519. VERSION='$VERSION'
  24520. RM='$RM'
  24521. ofile='$ofile'
  24522. SUMMARY="$SUMMARY"
  24523. _ACEOF
  24524. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24525. # Handling of arguments.
  24526. for ac_config_target in $ac_config_targets
  24527. do
  24528. case $ac_config_target in
  24529. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24530. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24531. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24532. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24533. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24534. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24535. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24536. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24537. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24538. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24539. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24540. esac
  24541. done
  24542. # If the user did not use the arguments to specify the items to instantiate,
  24543. # then the envvar interface is used. Set only those that are not.
  24544. # We use the long form for the default assignment because of an extremely
  24545. # bizarre bug on SunOS 4.1.3.
  24546. if $ac_need_defaults; then
  24547. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24548. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24549. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24550. fi
  24551. # Have a temporary directory for convenience. Make it in the build tree
  24552. # simply because there is no reason against having it here, and in addition,
  24553. # creating and moving files from /tmp can sometimes cause problems.
  24554. # Hook for its removal unless debugging.
  24555. # Note that there is a small window in which the directory will not be cleaned:
  24556. # after its creation but before its name has been assigned to `$tmp'.
  24557. $debug ||
  24558. {
  24559. tmp= ac_tmp=
  24560. trap 'exit_status=$?
  24561. : "${ac_tmp:=$tmp}"
  24562. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24563. ' 0
  24564. trap 'as_fn_exit 1' 1 2 13 15
  24565. }
  24566. # Create a (secure) tmp directory for tmp files.
  24567. {
  24568. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24569. test -d "$tmp"
  24570. } ||
  24571. {
  24572. tmp=./conf$$-$RANDOM
  24573. (umask 077 && mkdir "$tmp")
  24574. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24575. ac_tmp=$tmp
  24576. # Set up the scripts for CONFIG_FILES section.
  24577. # No need to generate them if there are no CONFIG_FILES.
  24578. # This happens for instance with `./config.status config.h'.
  24579. if test -n "$CONFIG_FILES"; then
  24580. ac_cr=`echo X | tr X '\015'`
  24581. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24582. # But we know of no other shell where ac_cr would be empty at this
  24583. # point, so we can use a bashism as a fallback.
  24584. if test "x$ac_cr" = x; then
  24585. eval ac_cr=\$\'\\r\'
  24586. fi
  24587. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24588. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24589. ac_cs_awk_cr='\\r'
  24590. else
  24591. ac_cs_awk_cr=$ac_cr
  24592. fi
  24593. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24594. _ACEOF
  24595. {
  24596. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24597. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24598. echo "_ACEOF"
  24599. } >conf$$subs.sh ||
  24600. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24601. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24602. ac_delim='%!_!# '
  24603. for ac_last_try in false false false false false :; do
  24604. . ./conf$$subs.sh ||
  24605. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24606. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24607. if test $ac_delim_n = $ac_delim_num; then
  24608. break
  24609. elif $ac_last_try; then
  24610. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24611. else
  24612. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24613. fi
  24614. done
  24615. rm -f conf$$subs.sh
  24616. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24617. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24618. _ACEOF
  24619. sed -n '
  24620. h
  24621. s/^/S["/; s/!.*/"]=/
  24622. p
  24623. g
  24624. s/^[^!]*!//
  24625. :repl
  24626. t repl
  24627. s/'"$ac_delim"'$//
  24628. t delim
  24629. :nl
  24630. h
  24631. s/\(.\{148\}\)..*/\1/
  24632. t more1
  24633. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24634. p
  24635. n
  24636. b repl
  24637. :more1
  24638. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24639. p
  24640. g
  24641. s/.\{148\}//
  24642. t nl
  24643. :delim
  24644. h
  24645. s/\(.\{148\}\)..*/\1/
  24646. t more2
  24647. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24648. p
  24649. b
  24650. :more2
  24651. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24652. p
  24653. g
  24654. s/.\{148\}//
  24655. t delim
  24656. ' <conf$$subs.awk | sed '
  24657. /^[^""]/{
  24658. N
  24659. s/\n//
  24660. }
  24661. ' >>$CONFIG_STATUS || ac_write_fail=1
  24662. rm -f conf$$subs.awk
  24663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24664. _ACAWK
  24665. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24666. for (key in S) S_is_set[key] = 1
  24667. FS = ""
  24668. }
  24669. {
  24670. line = $ 0
  24671. nfields = split(line, field, "@")
  24672. substed = 0
  24673. len = length(field[1])
  24674. for (i = 2; i < nfields; i++) {
  24675. key = field[i]
  24676. keylen = length(key)
  24677. if (S_is_set[key]) {
  24678. value = S[key]
  24679. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24680. len += length(value) + length(field[++i])
  24681. substed = 1
  24682. } else
  24683. len += 1 + keylen
  24684. }
  24685. print line
  24686. }
  24687. _ACAWK
  24688. _ACEOF
  24689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24690. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24691. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24692. else
  24693. cat
  24694. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24695. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24696. _ACEOF
  24697. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24698. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24699. # trailing colons and then remove the whole line if VPATH becomes empty
  24700. # (actually we leave an empty line to preserve line numbers).
  24701. if test "x$srcdir" = x.; then
  24702. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24703. h
  24704. s///
  24705. s/^/:/
  24706. s/[ ]*$/:/
  24707. s/:\$(srcdir):/:/g
  24708. s/:\${srcdir}:/:/g
  24709. s/:@srcdir@:/:/g
  24710. s/^:*//
  24711. s/:*$//
  24712. x
  24713. s/\(=[ ]*\).*/\1/
  24714. G
  24715. s/\n//
  24716. s/^[^=]*=[ ]*$//
  24717. }'
  24718. fi
  24719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24720. fi # test -n "$CONFIG_FILES"
  24721. # Set up the scripts for CONFIG_HEADERS section.
  24722. # No need to generate them if there are no CONFIG_HEADERS.
  24723. # This happens for instance with `./config.status Makefile'.
  24724. if test -n "$CONFIG_HEADERS"; then
  24725. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24726. BEGIN {
  24727. _ACEOF
  24728. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24729. # here-document in config.status, that substitutes the proper values into
  24730. # config.h.in to produce config.h.
  24731. # Create a delimiter string that does not exist in confdefs.h, to ease
  24732. # handling of long lines.
  24733. ac_delim='%!_!# '
  24734. for ac_last_try in false false :; do
  24735. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24736. if test -z "$ac_tt"; then
  24737. break
  24738. elif $ac_last_try; then
  24739. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24740. else
  24741. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24742. fi
  24743. done
  24744. # For the awk script, D is an array of macro values keyed by name,
  24745. # likewise P contains macro parameters if any. Preserve backslash
  24746. # newline sequences.
  24747. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24748. sed -n '
  24749. s/.\{148\}/&'"$ac_delim"'/g
  24750. t rset
  24751. :rset
  24752. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24753. t def
  24754. d
  24755. :def
  24756. s/\\$//
  24757. t bsnl
  24758. s/["\\]/\\&/g
  24759. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24760. D["\1"]=" \3"/p
  24761. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24762. d
  24763. :bsnl
  24764. s/["\\]/\\&/g
  24765. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24766. D["\1"]=" \3\\\\\\n"\\/p
  24767. t cont
  24768. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24769. t cont
  24770. d
  24771. :cont
  24772. n
  24773. s/.\{148\}/&'"$ac_delim"'/g
  24774. t clear
  24775. :clear
  24776. s/\\$//
  24777. t bsnlc
  24778. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24779. d
  24780. :bsnlc
  24781. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24782. b cont
  24783. ' <confdefs.h | sed '
  24784. s/'"$ac_delim"'/"\\\
  24785. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24786. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24787. for (key in D) D_is_set[key] = 1
  24788. FS = ""
  24789. }
  24790. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24791. line = \$ 0
  24792. split(line, arg, " ")
  24793. if (arg[1] == "#") {
  24794. defundef = arg[2]
  24795. mac1 = arg[3]
  24796. } else {
  24797. defundef = substr(arg[1], 2)
  24798. mac1 = arg[2]
  24799. }
  24800. split(mac1, mac2, "(") #)
  24801. macro = mac2[1]
  24802. prefix = substr(line, 1, index(line, defundef) - 1)
  24803. if (D_is_set[macro]) {
  24804. # Preserve the white space surrounding the "#".
  24805. print prefix "define", macro P[macro] D[macro]
  24806. next
  24807. } else {
  24808. # Replace #undef with comments. This is necessary, for example,
  24809. # in the case of _POSIX_SOURCE, which is predefined and required
  24810. # on some systems where configure will not decide to define it.
  24811. if (defundef == "undef") {
  24812. print "/*", prefix defundef, macro, "*/"
  24813. next
  24814. }
  24815. }
  24816. }
  24817. { print }
  24818. _ACAWK
  24819. _ACEOF
  24820. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24821. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24822. fi # test -n "$CONFIG_HEADERS"
  24823. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24824. shift
  24825. for ac_tag
  24826. do
  24827. case $ac_tag in
  24828. :[FHLC]) ac_mode=$ac_tag; continue;;
  24829. esac
  24830. case $ac_mode$ac_tag in
  24831. :[FHL]*:*);;
  24832. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24833. :[FH]-) ac_tag=-:-;;
  24834. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24835. esac
  24836. ac_save_IFS=$IFS
  24837. IFS=:
  24838. set x $ac_tag
  24839. IFS=$ac_save_IFS
  24840. shift
  24841. ac_file=$1
  24842. shift
  24843. case $ac_mode in
  24844. :L) ac_source=$1;;
  24845. :[FH])
  24846. ac_file_inputs=
  24847. for ac_f
  24848. do
  24849. case $ac_f in
  24850. -) ac_f="$ac_tmp/stdin";;
  24851. *) # Look for the file first in the build tree, then in the source tree
  24852. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24853. # because $ac_f cannot contain `:'.
  24854. test -f "$ac_f" ||
  24855. case $ac_f in
  24856. [\\/$]*) false;;
  24857. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24858. esac ||
  24859. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24860. esac
  24861. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24862. as_fn_append ac_file_inputs " '$ac_f'"
  24863. done
  24864. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24865. # use $as_me), people would be surprised to read:
  24866. # /* config.h. Generated by config.status. */
  24867. configure_input='Generated from '`
  24868. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24869. `' by configure.'
  24870. if test x"$ac_file" != x-; then
  24871. configure_input="$ac_file. $configure_input"
  24872. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24873. $as_echo "$as_me: creating $ac_file" >&6;}
  24874. fi
  24875. # Neutralize special characters interpreted by sed in replacement strings.
  24876. case $configure_input in #(
  24877. *\&* | *\|* | *\\* )
  24878. ac_sed_conf_input=`$as_echo "$configure_input" |
  24879. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24880. *) ac_sed_conf_input=$configure_input;;
  24881. esac
  24882. case $ac_tag in
  24883. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24884. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24885. esac
  24886. ;;
  24887. esac
  24888. ac_dir=`$as_dirname -- "$ac_file" ||
  24889. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24890. X"$ac_file" : 'X\(//\)[^/]' \| \
  24891. X"$ac_file" : 'X\(//\)$' \| \
  24892. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24893. $as_echo X"$ac_file" |
  24894. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24895. s//\1/
  24896. q
  24897. }
  24898. /^X\(\/\/\)[^/].*/{
  24899. s//\1/
  24900. q
  24901. }
  24902. /^X\(\/\/\)$/{
  24903. s//\1/
  24904. q
  24905. }
  24906. /^X\(\/\).*/{
  24907. s//\1/
  24908. q
  24909. }
  24910. s/.*/./; q'`
  24911. as_dir="$ac_dir"; as_fn_mkdir_p
  24912. ac_builddir=.
  24913. case "$ac_dir" in
  24914. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24915. *)
  24916. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24917. # A ".." for each directory in $ac_dir_suffix.
  24918. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24919. case $ac_top_builddir_sub in
  24920. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24921. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24922. esac ;;
  24923. esac
  24924. ac_abs_top_builddir=$ac_pwd
  24925. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24926. # for backward compatibility:
  24927. ac_top_builddir=$ac_top_build_prefix
  24928. case $srcdir in
  24929. .) # We are building in place.
  24930. ac_srcdir=.
  24931. ac_top_srcdir=$ac_top_builddir_sub
  24932. ac_abs_top_srcdir=$ac_pwd ;;
  24933. [\\/]* | ?:[\\/]* ) # Absolute name.
  24934. ac_srcdir=$srcdir$ac_dir_suffix;
  24935. ac_top_srcdir=$srcdir
  24936. ac_abs_top_srcdir=$srcdir ;;
  24937. *) # Relative name.
  24938. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24939. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24940. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24941. esac
  24942. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24943. case $ac_mode in
  24944. :F)
  24945. #
  24946. # CONFIG_FILE
  24947. #
  24948. case $INSTALL in
  24949. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24950. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24951. esac
  24952. _ACEOF
  24953. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24954. # If the template does not know about datarootdir, expand it.
  24955. # FIXME: This hack should be removed a few years after 2.60.
  24956. ac_datarootdir_hack=; ac_datarootdir_seen=
  24957. ac_sed_dataroot='
  24958. /datarootdir/ {
  24959. p
  24960. q
  24961. }
  24962. /@datadir@/p
  24963. /@docdir@/p
  24964. /@infodir@/p
  24965. /@localedir@/p
  24966. /@mandir@/p'
  24967. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24968. *datarootdir*) ac_datarootdir_seen=yes;;
  24969. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24971. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24972. _ACEOF
  24973. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24974. ac_datarootdir_hack='
  24975. s&@datadir@&$datadir&g
  24976. s&@docdir@&$docdir&g
  24977. s&@infodir@&$infodir&g
  24978. s&@localedir@&$localedir&g
  24979. s&@mandir@&$mandir&g
  24980. s&\\\${datarootdir}&$datarootdir&g' ;;
  24981. esac
  24982. _ACEOF
  24983. # Neutralize VPATH when `$srcdir' = `.'.
  24984. # Shell code in configure.ac might set extrasub.
  24985. # FIXME: do we really want to maintain this feature?
  24986. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24987. ac_sed_extra="$ac_vpsub
  24988. $extrasub
  24989. _ACEOF
  24990. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24991. :t
  24992. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24993. s|@configure_input@|$ac_sed_conf_input|;t t
  24994. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24995. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24996. s&@srcdir@&$ac_srcdir&;t t
  24997. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24998. s&@top_srcdir@&$ac_top_srcdir&;t t
  24999. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25000. s&@builddir@&$ac_builddir&;t t
  25001. s&@abs_builddir@&$ac_abs_builddir&;t t
  25002. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25003. s&@INSTALL@&$ac_INSTALL&;t t
  25004. $ac_datarootdir_hack
  25005. "
  25006. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  25007. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25008. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25009. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  25010. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  25011. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  25012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25013. which seems to be undefined. Please make sure it is defined" >&5
  25014. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25015. which seems to be undefined. Please make sure it is defined" >&2;}
  25016. rm -f "$ac_tmp/stdin"
  25017. case $ac_file in
  25018. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  25019. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  25020. esac \
  25021. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25022. ;;
  25023. :H)
  25024. #
  25025. # CONFIG_HEADER
  25026. #
  25027. if test x"$ac_file" != x-; then
  25028. {
  25029. $as_echo "/* $configure_input */" \
  25030. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  25031. } >"$ac_tmp/config.h" \
  25032. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25033. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  25034. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  25035. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  25036. else
  25037. rm -f "$ac_file"
  25038. mv "$ac_tmp/config.h" "$ac_file" \
  25039. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  25040. fi
  25041. else
  25042. $as_echo "/* $configure_input */" \
  25043. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  25044. || as_fn_error $? "could not create -" "$LINENO" 5
  25045. fi
  25046. ;;
  25047. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  25048. $as_echo "$as_me: executing $ac_file commands" >&6;}
  25049. ;;
  25050. esac
  25051. case $ac_file$ac_mode in
  25052. "libtool":C)
  25053. # See if we are running on zsh, and set the options that allow our
  25054. # commands through without removal of \ escapes.
  25055. if test -n "${ZSH_VERSION+set}"; then
  25056. setopt NO_GLOB_SUBST
  25057. fi
  25058. cfgfile=${ofile}T
  25059. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  25060. $RM "$cfgfile"
  25061. cat <<_LT_EOF >> "$cfgfile"
  25062. #! $SHELL
  25063. # Generated automatically by $as_me ($PACKAGE) $VERSION
  25064. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25065. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  25066. # Provide generalized library-building support services.
  25067. # Written by Gordon Matzigkeit, 1996
  25068. # Copyright (C) 2014 Free Software Foundation, Inc.
  25069. # This is free software; see the source for copying conditions. There is NO
  25070. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25071. # GNU Libtool is free software; you can redistribute it and/or modify
  25072. # it under the terms of the GNU General Public License as published by
  25073. # the Free Software Foundation; either version 2 of of the License, or
  25074. # (at your option) any later version.
  25075. #
  25076. # As a special exception to the GNU General Public License, if you
  25077. # distribute this file as part of a program or library that is built
  25078. # using GNU Libtool, you may include this file under the same
  25079. # distribution terms that you use for the rest of that program.
  25080. #
  25081. # GNU Libtool is distributed in the hope that it will be useful, but
  25082. # WITHOUT ANY WARRANTY; without even the implied warranty of
  25083. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25084. # GNU General Public License for more details.
  25085. #
  25086. # You should have received a copy of the GNU General Public License
  25087. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  25088. # The names of the tagged configurations supported by this script.
  25089. available_tags='RC CXX '
  25090. # Configured defaults for sys_lib_dlsearch_path munging.
  25091. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  25092. # ### BEGIN LIBTOOL CONFIG
  25093. # Which release of libtool.m4 was used?
  25094. macro_version=$macro_version
  25095. macro_revision=$macro_revision
  25096. # Assembler program.
  25097. AS=$lt_AS
  25098. # DLL creation program.
  25099. DLLTOOL=$lt_DLLTOOL
  25100. # Object dumper program.
  25101. OBJDUMP=$lt_OBJDUMP
  25102. # Whether or not to build shared libraries.
  25103. build_libtool_libs=$enable_shared
  25104. # Whether or not to build static libraries.
  25105. build_old_libs=$enable_static
  25106. # What type of objects to build.
  25107. pic_mode=$pic_mode
  25108. # Whether or not to optimize for fast installation.
  25109. fast_install=$enable_fast_install
  25110. # Shared archive member basename,for filename based shared library versioning on AIX.
  25111. shared_archive_member_spec=$shared_archive_member_spec
  25112. # Shell to use when invoking shell scripts.
  25113. SHELL=$lt_SHELL
  25114. # An echo program that protects backslashes.
  25115. ECHO=$lt_ECHO
  25116. # The PATH separator for the build system.
  25117. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25118. # The host system.
  25119. host_alias=$host_alias
  25120. host=$host
  25121. host_os=$host_os
  25122. # The build system.
  25123. build_alias=$build_alias
  25124. build=$build
  25125. build_os=$build_os
  25126. # A sed program that does not truncate output.
  25127. SED=$lt_SED
  25128. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25129. Xsed="\$SED -e 1s/^X//"
  25130. # A grep program that handles long lines.
  25131. GREP=$lt_GREP
  25132. # An ERE matcher.
  25133. EGREP=$lt_EGREP
  25134. # A literal string matcher.
  25135. FGREP=$lt_FGREP
  25136. # A BSD- or MS-compatible name lister.
  25137. NM=$lt_NM
  25138. # Whether we need soft or hard links.
  25139. LN_S=$lt_LN_S
  25140. # What is the maximum length of a command?
  25141. max_cmd_len=$max_cmd_len
  25142. # Object file suffix (normally "o").
  25143. objext=$ac_objext
  25144. # Executable file suffix (normally "").
  25145. exeext=$exeext
  25146. # whether the shell understands "unset".
  25147. lt_unset=$lt_unset
  25148. # turn spaces into newlines.
  25149. SP2NL=$lt_lt_SP2NL
  25150. # turn newlines into spaces.
  25151. NL2SP=$lt_lt_NL2SP
  25152. # convert \$build file names to \$host format.
  25153. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25154. # convert \$build files to toolchain format.
  25155. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25156. # Method to check whether dependent libraries are shared objects.
  25157. deplibs_check_method=$lt_deplibs_check_method
  25158. # Command to use when deplibs_check_method = "file_magic".
  25159. file_magic_cmd=$lt_file_magic_cmd
  25160. # How to find potential files when deplibs_check_method = "file_magic".
  25161. file_magic_glob=$lt_file_magic_glob
  25162. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25163. want_nocaseglob=$lt_want_nocaseglob
  25164. # Command to associate shared and link libraries.
  25165. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25166. # The archiver.
  25167. AR=$lt_AR
  25168. # Flags to create an archive.
  25169. AR_FLAGS=$lt_AR_FLAGS
  25170. # How to feed a file listing to the archiver.
  25171. archiver_list_spec=$lt_archiver_list_spec
  25172. # A symbol stripping program.
  25173. STRIP=$lt_STRIP
  25174. # Commands used to install an old-style archive.
  25175. RANLIB=$lt_RANLIB
  25176. old_postinstall_cmds=$lt_old_postinstall_cmds
  25177. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25178. # Whether to use a lock for old archive extraction.
  25179. lock_old_archive_extraction=$lock_old_archive_extraction
  25180. # A C compiler.
  25181. LTCC=$lt_CC
  25182. # LTCC compiler flags.
  25183. LTCFLAGS=$lt_CFLAGS
  25184. # Take the output of nm and produce a listing of raw symbols and C names.
  25185. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25186. # Transform the output of nm in a proper C declaration.
  25187. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25188. # Transform the output of nm into a list of symbols to manually relocate.
  25189. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25190. # Transform the output of nm in a C name address pair.
  25191. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25192. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25193. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25194. # The name lister interface.
  25195. nm_interface=$lt_lt_cv_nm_interface
  25196. # Specify filename containing input files for \$NM.
  25197. nm_file_list_spec=$lt_nm_file_list_spec
  25198. # The root where to search for dependent libraries,and where our libraries should be installed.
  25199. lt_sysroot=$lt_sysroot
  25200. # Command to truncate a binary pipe.
  25201. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25202. # The name of the directory that contains temporary libtool files.
  25203. objdir=$objdir
  25204. # Used to examine libraries when file_magic_cmd begins with "file".
  25205. MAGIC_CMD=$MAGIC_CMD
  25206. # Must we lock files when doing compilation?
  25207. need_locks=$lt_need_locks
  25208. # Manifest tool.
  25209. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25210. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25211. DSYMUTIL=$lt_DSYMUTIL
  25212. # Tool to change global to local symbols on Mac OS X.
  25213. NMEDIT=$lt_NMEDIT
  25214. # Tool to manipulate fat objects and archives on Mac OS X.
  25215. LIPO=$lt_LIPO
  25216. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25217. OTOOL=$lt_OTOOL
  25218. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25219. OTOOL64=$lt_OTOOL64
  25220. # Old archive suffix (normally "a").
  25221. libext=$libext
  25222. # Shared library suffix (normally ".so").
  25223. shrext_cmds=$lt_shrext_cmds
  25224. # The commands to extract the exported symbol list from a shared archive.
  25225. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25226. # Variables whose values should be saved in libtool wrapper scripts and
  25227. # restored at link time.
  25228. variables_saved_for_relink=$lt_variables_saved_for_relink
  25229. # Do we need the "lib" prefix for modules?
  25230. need_lib_prefix=$need_lib_prefix
  25231. # Do we need a version for libraries?
  25232. need_version=$need_version
  25233. # Library versioning type.
  25234. version_type=$version_type
  25235. # Shared library runtime path variable.
  25236. runpath_var=$runpath_var
  25237. # Shared library path variable.
  25238. shlibpath_var=$shlibpath_var
  25239. # Is shlibpath searched before the hard-coded library search path?
  25240. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25241. # Format of library name prefix.
  25242. libname_spec=$lt_libname_spec
  25243. # List of archive names. First name is the real one, the rest are links.
  25244. # The last name is the one that the linker finds with -lNAME
  25245. library_names_spec=$lt_library_names_spec
  25246. # The coded name of the library, if different from the real name.
  25247. soname_spec=$lt_soname_spec
  25248. # Permission mode override for installation of shared libraries.
  25249. install_override_mode=$lt_install_override_mode
  25250. # Command to use after installation of a shared archive.
  25251. postinstall_cmds=$lt_postinstall_cmds
  25252. # Command to use after uninstallation of a shared archive.
  25253. postuninstall_cmds=$lt_postuninstall_cmds
  25254. # Commands used to finish a libtool library installation in a directory.
  25255. finish_cmds=$lt_finish_cmds
  25256. # As "finish_cmds", except a single script fragment to be evaled but
  25257. # not shown.
  25258. finish_eval=$lt_finish_eval
  25259. # Whether we should hardcode library paths into libraries.
  25260. hardcode_into_libs=$hardcode_into_libs
  25261. # Compile-time system search path for libraries.
  25262. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25263. # Detected run-time system search path for libraries.
  25264. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25265. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25266. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25267. # Whether dlopen is supported.
  25268. dlopen_support=$enable_dlopen
  25269. # Whether dlopen of programs is supported.
  25270. dlopen_self=$enable_dlopen_self
  25271. # Whether dlopen of statically linked programs is supported.
  25272. dlopen_self_static=$enable_dlopen_self_static
  25273. # Commands to strip libraries.
  25274. old_striplib=$lt_old_striplib
  25275. striplib=$lt_striplib
  25276. # The linker used to build libraries.
  25277. LD=$lt_LD
  25278. # How to create reloadable object files.
  25279. reload_flag=$lt_reload_flag
  25280. reload_cmds=$lt_reload_cmds
  25281. # Commands used to build an old-style archive.
  25282. old_archive_cmds=$lt_old_archive_cmds
  25283. # A language specific compiler.
  25284. CC=$lt_compiler
  25285. # Is the compiler the GNU compiler?
  25286. with_gcc=$GCC
  25287. # Compiler flag to turn off builtin functions.
  25288. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25289. # Additional compiler flags for building library objects.
  25290. pic_flag=$lt_lt_prog_compiler_pic
  25291. # How to pass a linker flag through the compiler.
  25292. wl=$lt_lt_prog_compiler_wl
  25293. # Compiler flag to prevent dynamic linking.
  25294. link_static_flag=$lt_lt_prog_compiler_static
  25295. # Does compiler simultaneously support -c and -o options?
  25296. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25297. # Whether or not to add -lc for building shared libraries.
  25298. build_libtool_need_lc=$archive_cmds_need_lc
  25299. # Whether or not to disallow shared libs when runtime libs are static.
  25300. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25301. # Compiler flag to allow reflexive dlopens.
  25302. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25303. # Compiler flag to generate shared objects directly from archives.
  25304. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25305. # Whether the compiler copes with passing no objects directly.
  25306. compiler_needs_object=$lt_compiler_needs_object
  25307. # Create an old-style archive from a shared archive.
  25308. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25309. # Create a temporary old-style archive to link instead of a shared archive.
  25310. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25311. # Commands used to build a shared archive.
  25312. archive_cmds=$lt_archive_cmds
  25313. archive_expsym_cmds=$lt_archive_expsym_cmds
  25314. # Commands used to build a loadable module if different from building
  25315. # a shared archive.
  25316. module_cmds=$lt_module_cmds
  25317. module_expsym_cmds=$lt_module_expsym_cmds
  25318. # Whether we are building with GNU ld or not.
  25319. with_gnu_ld=$lt_with_gnu_ld
  25320. # Flag that allows shared libraries with undefined symbols to be built.
  25321. allow_undefined_flag=$lt_allow_undefined_flag
  25322. # Flag that enforces no undefined symbols.
  25323. no_undefined_flag=$lt_no_undefined_flag
  25324. # Flag to hardcode \$libdir into a binary during linking.
  25325. # This must work even if \$libdir does not exist
  25326. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25327. # Whether we need a single "-rpath" flag with a separated argument.
  25328. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25329. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25330. # DIR into the resulting binary.
  25331. hardcode_direct=$hardcode_direct
  25332. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25333. # DIR into the resulting binary and the resulting library dependency is
  25334. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25335. # library is relocated.
  25336. hardcode_direct_absolute=$hardcode_direct_absolute
  25337. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25338. # into the resulting binary.
  25339. hardcode_minus_L=$hardcode_minus_L
  25340. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25341. # into the resulting binary.
  25342. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25343. # Set to "yes" if building a shared library automatically hardcodes DIR
  25344. # into the library and all subsequent libraries and executables linked
  25345. # against it.
  25346. hardcode_automatic=$hardcode_automatic
  25347. # Set to yes if linker adds runtime paths of dependent libraries
  25348. # to runtime path list.
  25349. inherit_rpath=$inherit_rpath
  25350. # Whether libtool must link a program against all its dependency libraries.
  25351. link_all_deplibs=$link_all_deplibs
  25352. # Set to "yes" if exported symbols are required.
  25353. always_export_symbols=$always_export_symbols
  25354. # The commands to list exported symbols.
  25355. export_symbols_cmds=$lt_export_symbols_cmds
  25356. # Symbols that should not be listed in the preloaded symbols.
  25357. exclude_expsyms=$lt_exclude_expsyms
  25358. # Symbols that must always be exported.
  25359. include_expsyms=$lt_include_expsyms
  25360. # Commands necessary for linking programs (against libraries) with templates.
  25361. prelink_cmds=$lt_prelink_cmds
  25362. # Commands necessary for finishing linking programs.
  25363. postlink_cmds=$lt_postlink_cmds
  25364. # Specify filename containing input files.
  25365. file_list_spec=$lt_file_list_spec
  25366. # How to hardcode a shared library path into an executable.
  25367. hardcode_action=$hardcode_action
  25368. # The directories searched by this compiler when creating a shared library.
  25369. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25370. # Dependencies to place before and after the objects being linked to
  25371. # create a shared library.
  25372. predep_objects=$lt_predep_objects
  25373. postdep_objects=$lt_postdep_objects
  25374. predeps=$lt_predeps
  25375. postdeps=$lt_postdeps
  25376. # The library search path used internally by the compiler when linking
  25377. # a shared library.
  25378. compiler_lib_search_path=$lt_compiler_lib_search_path
  25379. # ### END LIBTOOL CONFIG
  25380. _LT_EOF
  25381. cat <<'_LT_EOF' >> "$cfgfile"
  25382. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25383. # func_munge_path_list VARIABLE PATH
  25384. # -----------------------------------
  25385. # VARIABLE is name of variable containing _space_ separated list of
  25386. # directories to be munged by the contents of PATH, which is string
  25387. # having a format:
  25388. # "DIR[:DIR]:"
  25389. # string "DIR[ DIR]" will be prepended to VARIABLE
  25390. # ":DIR[:DIR]"
  25391. # string "DIR[ DIR]" will be appended to VARIABLE
  25392. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25393. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25394. # "DIRA[ DIRA]" will be appended to VARIABLE
  25395. # "DIR[:DIR]"
  25396. # VARIABLE will be replaced by "DIR[ DIR]"
  25397. func_munge_path_list ()
  25398. {
  25399. case x$2 in
  25400. x)
  25401. ;;
  25402. *:)
  25403. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25404. ;;
  25405. x:*)
  25406. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25407. ;;
  25408. *::*)
  25409. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25410. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25411. ;;
  25412. *)
  25413. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25414. ;;
  25415. esac
  25416. }
  25417. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25418. func_cc_basename ()
  25419. {
  25420. for cc_temp in $*""; do
  25421. case $cc_temp in
  25422. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25423. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25424. \-*) ;;
  25425. *) break;;
  25426. esac
  25427. done
  25428. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25429. }
  25430. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25431. _LT_EOF
  25432. case $host_os in
  25433. aix3*)
  25434. cat <<\_LT_EOF >> "$cfgfile"
  25435. # AIX sometimes has problems with the GCC collect2 program. For some
  25436. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25437. # vanish in a puff of smoke.
  25438. if test set != "${COLLECT_NAMES+set}"; then
  25439. COLLECT_NAMES=
  25440. export COLLECT_NAMES
  25441. fi
  25442. _LT_EOF
  25443. ;;
  25444. esac
  25445. ltmain=$ac_aux_dir/ltmain.sh
  25446. # We use sed instead of cat because bash on DJGPP gets confused if
  25447. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25448. # text mode, it properly converts lines to CR/LF. This bash problem
  25449. # is reportedly fixed, but why not run on old versions too?
  25450. sed '$q' "$ltmain" >> "$cfgfile" \
  25451. || (rm -f "$cfgfile"; exit 1)
  25452. mv -f "$cfgfile" "$ofile" ||
  25453. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25454. chmod +x "$ofile"
  25455. cat <<_LT_EOF >> "$ofile"
  25456. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25457. # The linker used to build libraries.
  25458. LD=$lt_LD_RC
  25459. # How to create reloadable object files.
  25460. reload_flag=$lt_reload_flag_RC
  25461. reload_cmds=$lt_reload_cmds_RC
  25462. # Commands used to build an old-style archive.
  25463. old_archive_cmds=$lt_old_archive_cmds_RC
  25464. # A language specific compiler.
  25465. CC=$lt_compiler_RC
  25466. # Is the compiler the GNU compiler?
  25467. with_gcc=$GCC_RC
  25468. # Compiler flag to turn off builtin functions.
  25469. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25470. # Additional compiler flags for building library objects.
  25471. pic_flag=$lt_lt_prog_compiler_pic_RC
  25472. # How to pass a linker flag through the compiler.
  25473. wl=$lt_lt_prog_compiler_wl_RC
  25474. # Compiler flag to prevent dynamic linking.
  25475. link_static_flag=$lt_lt_prog_compiler_static_RC
  25476. # Does compiler simultaneously support -c and -o options?
  25477. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25478. # Whether or not to add -lc for building shared libraries.
  25479. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25480. # Whether or not to disallow shared libs when runtime libs are static.
  25481. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25482. # Compiler flag to allow reflexive dlopens.
  25483. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25484. # Compiler flag to generate shared objects directly from archives.
  25485. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25486. # Whether the compiler copes with passing no objects directly.
  25487. compiler_needs_object=$lt_compiler_needs_object_RC
  25488. # Create an old-style archive from a shared archive.
  25489. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25490. # Create a temporary old-style archive to link instead of a shared archive.
  25491. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25492. # Commands used to build a shared archive.
  25493. archive_cmds=$lt_archive_cmds_RC
  25494. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25495. # Commands used to build a loadable module if different from building
  25496. # a shared archive.
  25497. module_cmds=$lt_module_cmds_RC
  25498. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25499. # Whether we are building with GNU ld or not.
  25500. with_gnu_ld=$lt_with_gnu_ld_RC
  25501. # Flag that allows shared libraries with undefined symbols to be built.
  25502. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25503. # Flag that enforces no undefined symbols.
  25504. no_undefined_flag=$lt_no_undefined_flag_RC
  25505. # Flag to hardcode \$libdir into a binary during linking.
  25506. # This must work even if \$libdir does not exist
  25507. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25508. # Whether we need a single "-rpath" flag with a separated argument.
  25509. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25510. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25511. # DIR into the resulting binary.
  25512. hardcode_direct=$hardcode_direct_RC
  25513. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25514. # DIR into the resulting binary and the resulting library dependency is
  25515. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25516. # library is relocated.
  25517. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25518. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25519. # into the resulting binary.
  25520. hardcode_minus_L=$hardcode_minus_L_RC
  25521. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25522. # into the resulting binary.
  25523. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25524. # Set to "yes" if building a shared library automatically hardcodes DIR
  25525. # into the library and all subsequent libraries and executables linked
  25526. # against it.
  25527. hardcode_automatic=$hardcode_automatic_RC
  25528. # Set to yes if linker adds runtime paths of dependent libraries
  25529. # to runtime path list.
  25530. inherit_rpath=$inherit_rpath_RC
  25531. # Whether libtool must link a program against all its dependency libraries.
  25532. link_all_deplibs=$link_all_deplibs_RC
  25533. # Set to "yes" if exported symbols are required.
  25534. always_export_symbols=$always_export_symbols_RC
  25535. # The commands to list exported symbols.
  25536. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25537. # Symbols that should not be listed in the preloaded symbols.
  25538. exclude_expsyms=$lt_exclude_expsyms_RC
  25539. # Symbols that must always be exported.
  25540. include_expsyms=$lt_include_expsyms_RC
  25541. # Commands necessary for linking programs (against libraries) with templates.
  25542. prelink_cmds=$lt_prelink_cmds_RC
  25543. # Commands necessary for finishing linking programs.
  25544. postlink_cmds=$lt_postlink_cmds_RC
  25545. # Specify filename containing input files.
  25546. file_list_spec=$lt_file_list_spec_RC
  25547. # How to hardcode a shared library path into an executable.
  25548. hardcode_action=$hardcode_action_RC
  25549. # The directories searched by this compiler when creating a shared library.
  25550. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25551. # Dependencies to place before and after the objects being linked to
  25552. # create a shared library.
  25553. predep_objects=$lt_predep_objects_RC
  25554. postdep_objects=$lt_postdep_objects_RC
  25555. predeps=$lt_predeps_RC
  25556. postdeps=$lt_postdeps_RC
  25557. # The library search path used internally by the compiler when linking
  25558. # a shared library.
  25559. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25560. # ### END LIBTOOL TAG CONFIG: RC
  25561. _LT_EOF
  25562. cat <<_LT_EOF >> "$ofile"
  25563. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25564. # The linker used to build libraries.
  25565. LD=$lt_LD_CXX
  25566. # How to create reloadable object files.
  25567. reload_flag=$lt_reload_flag_CXX
  25568. reload_cmds=$lt_reload_cmds_CXX
  25569. # Commands used to build an old-style archive.
  25570. old_archive_cmds=$lt_old_archive_cmds_CXX
  25571. # A language specific compiler.
  25572. CC=$lt_compiler_CXX
  25573. # Is the compiler the GNU compiler?
  25574. with_gcc=$GCC_CXX
  25575. # Compiler flag to turn off builtin functions.
  25576. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25577. # Additional compiler flags for building library objects.
  25578. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25579. # How to pass a linker flag through the compiler.
  25580. wl=$lt_lt_prog_compiler_wl_CXX
  25581. # Compiler flag to prevent dynamic linking.
  25582. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25583. # Does compiler simultaneously support -c and -o options?
  25584. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25585. # Whether or not to add -lc for building shared libraries.
  25586. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25587. # Whether or not to disallow shared libs when runtime libs are static.
  25588. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25589. # Compiler flag to allow reflexive dlopens.
  25590. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25591. # Compiler flag to generate shared objects directly from archives.
  25592. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25593. # Whether the compiler copes with passing no objects directly.
  25594. compiler_needs_object=$lt_compiler_needs_object_CXX
  25595. # Create an old-style archive from a shared archive.
  25596. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25597. # Create a temporary old-style archive to link instead of a shared archive.
  25598. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25599. # Commands used to build a shared archive.
  25600. archive_cmds=$lt_archive_cmds_CXX
  25601. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25602. # Commands used to build a loadable module if different from building
  25603. # a shared archive.
  25604. module_cmds=$lt_module_cmds_CXX
  25605. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25606. # Whether we are building with GNU ld or not.
  25607. with_gnu_ld=$lt_with_gnu_ld_CXX
  25608. # Flag that allows shared libraries with undefined symbols to be built.
  25609. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25610. # Flag that enforces no undefined symbols.
  25611. no_undefined_flag=$lt_no_undefined_flag_CXX
  25612. # Flag to hardcode \$libdir into a binary during linking.
  25613. # This must work even if \$libdir does not exist
  25614. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25615. # Whether we need a single "-rpath" flag with a separated argument.
  25616. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25617. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25618. # DIR into the resulting binary.
  25619. hardcode_direct=$hardcode_direct_CXX
  25620. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25621. # DIR into the resulting binary and the resulting library dependency is
  25622. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25623. # library is relocated.
  25624. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25625. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25626. # into the resulting binary.
  25627. hardcode_minus_L=$hardcode_minus_L_CXX
  25628. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25629. # into the resulting binary.
  25630. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25631. # Set to "yes" if building a shared library automatically hardcodes DIR
  25632. # into the library and all subsequent libraries and executables linked
  25633. # against it.
  25634. hardcode_automatic=$hardcode_automatic_CXX
  25635. # Set to yes if linker adds runtime paths of dependent libraries
  25636. # to runtime path list.
  25637. inherit_rpath=$inherit_rpath_CXX
  25638. # Whether libtool must link a program against all its dependency libraries.
  25639. link_all_deplibs=$link_all_deplibs_CXX
  25640. # Set to "yes" if exported symbols are required.
  25641. always_export_symbols=$always_export_symbols_CXX
  25642. # The commands to list exported symbols.
  25643. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25644. # Symbols that should not be listed in the preloaded symbols.
  25645. exclude_expsyms=$lt_exclude_expsyms_CXX
  25646. # Symbols that must always be exported.
  25647. include_expsyms=$lt_include_expsyms_CXX
  25648. # Commands necessary for linking programs (against libraries) with templates.
  25649. prelink_cmds=$lt_prelink_cmds_CXX
  25650. # Commands necessary for finishing linking programs.
  25651. postlink_cmds=$lt_postlink_cmds_CXX
  25652. # Specify filename containing input files.
  25653. file_list_spec=$lt_file_list_spec_CXX
  25654. # How to hardcode a shared library path into an executable.
  25655. hardcode_action=$hardcode_action_CXX
  25656. # The directories searched by this compiler when creating a shared library.
  25657. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25658. # Dependencies to place before and after the objects being linked to
  25659. # create a shared library.
  25660. predep_objects=$lt_predep_objects_CXX
  25661. postdep_objects=$lt_postdep_objects_CXX
  25662. predeps=$lt_predeps_CXX
  25663. postdeps=$lt_postdeps_CXX
  25664. # The library search path used internally by the compiler when linking
  25665. # a shared library.
  25666. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25667. # ### END LIBTOOL TAG CONFIG: CXX
  25668. _LT_EOF
  25669. ;;
  25670. "sdl2_config":C) chmod a+x sdl2-config ;;
  25671. "summary":C) printf "$SUMMARY" ;;
  25672. esac
  25673. done # for ac_tag
  25674. as_fn_exit 0
  25675. _ACEOF
  25676. ac_clean_files=$ac_clean_files_save
  25677. test $ac_write_fail = 0 ||
  25678. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25679. # configure is writing to config.log, and then calls config.status.
  25680. # config.status does its own redirection, appending to config.log.
  25681. # Unfortunately, on DOS this fails, as config.log is still kept open
  25682. # by configure, so config.status won't be able to write to it; its
  25683. # output is simply discarded. So we exec the FD to /dev/null,
  25684. # effectively closing config.log, so it can be properly (re)opened and
  25685. # appended to by config.status. When coming back to configure, we
  25686. # need to make the FD available again.
  25687. if test "$no_create" != yes; then
  25688. ac_cs_success=:
  25689. ac_config_status_args=
  25690. test "$silent" = yes &&
  25691. ac_config_status_args="$ac_config_status_args --quiet"
  25692. exec 5>/dev/null
  25693. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25694. exec 5>>config.log
  25695. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25696. # would make configure fail if this is the last instruction.
  25697. $ac_cs_success || as_fn_exit 1
  25698. fi
  25699. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25701. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25702. fi