configure 965 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell [email protected] about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_EGL_LIBS
  647. RPI_EGL_CFLAGS
  648. RPI_LIBS
  649. RPI_CFLAGS
  650. DECOR_LIBS
  651. DECOR_CFLAGS
  652. FUSIONSOUND_LIBS
  653. FUSIONSOUND_CFLAGS
  654. SNDIO_LIBS
  655. SNDIO_CFLAGS
  656. ARTSCONFIG
  657. PULSEAUDIO_LIBS
  658. PULSEAUDIO_CFLAGS
  659. PIPEWIRE_LIBS
  660. PIPEWIRE_CFLAGS
  661. ESD_CONFIG
  662. ESD_LIBS
  663. ESD_CFLAGS
  664. JACK_LIBS
  665. JACK_CFLAGS
  666. ALSA_LIBS
  667. ALSA_CFLAGS
  668. ALLOCA
  669. CPP
  670. LIBTOOLLINKERTAG
  671. LINKER
  672. SORT
  673. PKG_CONFIG_LIBDIR
  674. PKG_CONFIG_PATH
  675. PKG_CONFIG
  676. SET_MAKE
  677. INSTALL_DATA
  678. INSTALL_SCRIPT
  679. INSTALL_PROGRAM
  680. CXXCPP
  681. ac_ct_CXX
  682. CXXFLAGS
  683. CXX
  684. LT_AGE
  685. LT_REVISION
  686. LT_CURRENT
  687. LT_RELEASE
  688. RC
  689. LT_SYS_LIBRARY_PATH
  690. OTOOL64
  691. OTOOL
  692. LIPO
  693. NMEDIT
  694. DSYMUTIL
  695. MANIFEST_TOOL
  696. AWK
  697. RANLIB
  698. STRIP
  699. ac_ct_AR
  700. AR
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. LIBTOOL
  726. OBJDUMP
  727. DLLTOOL
  728. AS
  729. SDL_VERSION
  730. SDL_BINARY_AGE
  731. SDL_INTERFACE_AGE
  732. SDL_MICRO_VERSION
  733. SDL_MINOR_VERSION
  734. SDL_MAJOR_VERSION
  735. target_alias
  736. host_alias
  737. build_alias
  738. LIBS
  739. ECHO_T
  740. ECHO_N
  741. ECHO_C
  742. DEFS
  743. mandir
  744. localedir
  745. libdir
  746. psdir
  747. pdfdir
  748. dvidir
  749. htmldir
  750. infodir
  751. docdir
  752. oldincludedir
  753. includedir
  754. runstatedir
  755. localstatedir
  756. sharedstatedir
  757. sysconfdir
  758. datadir
  759. datarootdir
  760. libexecdir
  761. sbindir
  762. bindir
  763. program_transform_name
  764. prefix
  765. exec_prefix
  766. PACKAGE_URL
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. enable_largefile
  786. enable_assertions
  787. enable_dependency_tracking
  788. enable_libc
  789. enable_system_iconv
  790. enable_libiconv
  791. enable_gcc_atomics
  792. enable_atomic
  793. enable_audio
  794. enable_video
  795. enable_render
  796. enable_events
  797. enable_joystick
  798. enable_haptic
  799. enable_hidapi
  800. enable_sensor
  801. enable_power
  802. enable_filesystem
  803. enable_timers
  804. enable_file
  805. enable_misc
  806. enable_locale
  807. enable_loadso
  808. enable_cpuinfo
  809. enable_assembly
  810. enable_ssemath
  811. enable_mmx
  812. enable_3dnow
  813. enable_sse
  814. enable_sse2
  815. enable_sse3
  816. enable_altivec
  817. enable_lsx
  818. enable_oss
  819. enable_alsa
  820. with_alsa_prefix
  821. with_alsa_inc_prefix
  822. enable_alsatest
  823. enable_alsa_shared
  824. enable_jack
  825. enable_jack_shared
  826. enable_esd
  827. with_esd_prefix
  828. with_esd_exec_prefix
  829. enable_esdtest
  830. enable_esd_shared
  831. enable_pipewire
  832. enable_pipewire_shared
  833. enable_pulseaudio
  834. enable_pulseaudio_shared
  835. enable_arts
  836. enable_arts_shared
  837. enable_nas
  838. enable_nas_shared
  839. enable_sndio
  840. enable_sndio_shared
  841. enable_fusionsound
  842. enable_fusionsound_shared
  843. enable_diskaudio
  844. enable_dummyaudio
  845. enable_libsamplerate
  846. enable_libsamplerate_shared
  847. enable_arm_simd
  848. enable_arm_neon
  849. enable_werror
  850. enable_video_wayland
  851. enable_video_wayland_qt_touch
  852. enable_wayland_shared
  853. enable_libdecor
  854. enable_libdecor_shared
  855. enable_video_rpi
  856. enable_video_x11
  857. with_x
  858. enable_x11_shared
  859. enable_video_x11_xcursor
  860. enable_video_x11_xdbe
  861. enable_video_x11_xinput
  862. enable_video_x11_xfixes
  863. enable_video_x11_xrandr
  864. enable_video_x11_scrnsaver
  865. enable_video_x11_xshape
  866. enable_video_vivante
  867. enable_video_cocoa
  868. enable_video_metal
  869. enable_render_metal
  870. enable_video_directfb
  871. enable_directfb_shared
  872. enable_video_kmsdrm
  873. enable_kmsdrm_shared
  874. enable_video_dummy
  875. enable_video_offscreen
  876. enable_video_opengl
  877. enable_video_opengles
  878. enable_video_opengles1
  879. enable_video_opengles2
  880. enable_video_vulkan
  881. enable_libudev
  882. enable_dbus
  883. enable_ime
  884. enable_ibus
  885. enable_fcitx
  886. enable_joystick_mfi
  887. enable_pthreads
  888. enable_pthread_sem
  889. enable_directx
  890. enable_xinput
  891. enable_wasapi
  892. enable_hidapi_joystick
  893. enable_hidapi_libusb
  894. enable_clock_gettime
  895. enable_rpath
  896. enable_backgrounding_signal
  897. enable_foregrounding_signal
  898. enable_joystick_virtual
  899. enable_render_d3d
  900. enable_sdl2_config
  901. enable_vendor_info
  902. '
  903. ac_precious_vars='build_alias
  904. host_alias
  905. target_alias
  906. CC
  907. CFLAGS
  908. LDFLAGS
  909. LIBS
  910. CPPFLAGS
  911. LT_SYS_LIBRARY_PATH
  912. CXX
  913. CXXFLAGS
  914. CCC
  915. CXXCPP
  916. PKG_CONFIG
  917. PKG_CONFIG_PATH
  918. PKG_CONFIG_LIBDIR
  919. CPP
  920. JACK_CFLAGS
  921. JACK_LIBS
  922. ESD_CFLAGS
  923. ESD_LIBS
  924. PIPEWIRE_CFLAGS
  925. PIPEWIRE_LIBS
  926. PULSEAUDIO_CFLAGS
  927. PULSEAUDIO_LIBS
  928. SNDIO_CFLAGS
  929. SNDIO_LIBS
  930. FUSIONSOUND_CFLAGS
  931. FUSIONSOUND_LIBS
  932. DECOR_CFLAGS
  933. DECOR_LIBS
  934. RPI_CFLAGS
  935. RPI_LIBS
  936. RPI_EGL_CFLAGS
  937. RPI_EGL_LIBS
  938. XMKMF
  939. DIRECTFB_CFLAGS
  940. DIRECTFB_LIBS
  941. LIBDRM_CFLAGS
  942. LIBDRM_LIBS
  943. LIBGBM_CFLAGS
  944. LIBGBM_LIBS
  945. DBUS_CFLAGS
  946. DBUS_LIBS
  947. IBUS_CFLAGS
  948. IBUS_LIBS
  949. LIBUSB_CFLAGS
  950. LIBUSB_LIBS'
  951. # Initialize some variables set by options.
  952. ac_init_help=
  953. ac_init_version=false
  954. ac_unrecognized_opts=
  955. ac_unrecognized_sep=
  956. # The variables have the same names as the options, with
  957. # dashes changed to underlines.
  958. cache_file=/dev/null
  959. exec_prefix=NONE
  960. no_create=
  961. no_recursion=
  962. prefix=NONE
  963. program_prefix=NONE
  964. program_suffix=NONE
  965. program_transform_name=s,x,x,
  966. silent=
  967. site=
  968. srcdir=
  969. verbose=
  970. x_includes=NONE
  971. x_libraries=NONE
  972. # Installation directory options.
  973. # These are left unexpanded so users can "make install exec_prefix=/foo"
  974. # and all the variables that are supposed to be based on exec_prefix
  975. # by default will actually change.
  976. # Use braces instead of parens because sh, perl, etc. also accept them.
  977. # (The list follows the same order as the GNU Coding Standards.)
  978. bindir='${exec_prefix}/bin'
  979. sbindir='${exec_prefix}/sbin'
  980. libexecdir='${exec_prefix}/libexec'
  981. datarootdir='${prefix}/share'
  982. datadir='${datarootdir}'
  983. sysconfdir='${prefix}/etc'
  984. sharedstatedir='${prefix}/com'
  985. localstatedir='${prefix}/var'
  986. runstatedir='${localstatedir}/run'
  987. includedir='${prefix}/include'
  988. oldincludedir='/usr/include'
  989. docdir='${datarootdir}/doc/${PACKAGE}'
  990. infodir='${datarootdir}/info'
  991. htmldir='${docdir}'
  992. dvidir='${docdir}'
  993. pdfdir='${docdir}'
  994. psdir='${docdir}'
  995. libdir='${exec_prefix}/lib'
  996. localedir='${datarootdir}/locale'
  997. mandir='${datarootdir}/man'
  998. ac_prev=
  999. ac_dashdash=
  1000. for ac_option
  1001. do
  1002. # If the previous option needs an argument, assign it.
  1003. if test -n "$ac_prev"; then
  1004. eval $ac_prev=\$ac_option
  1005. ac_prev=
  1006. continue
  1007. fi
  1008. case $ac_option in
  1009. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1010. *=) ac_optarg= ;;
  1011. *) ac_optarg=yes ;;
  1012. esac
  1013. case $ac_dashdash$ac_option in
  1014. --)
  1015. ac_dashdash=yes ;;
  1016. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1017. ac_prev=bindir ;;
  1018. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1019. bindir=$ac_optarg ;;
  1020. -build | --build | --buil | --bui | --bu)
  1021. ac_prev=build_alias ;;
  1022. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1023. build_alias=$ac_optarg ;;
  1024. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1025. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1026. ac_prev=cache_file ;;
  1027. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1028. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1029. cache_file=$ac_optarg ;;
  1030. --config-cache | -C)
  1031. cache_file=config.cache ;;
  1032. -datadir | --datadir | --datadi | --datad)
  1033. ac_prev=datadir ;;
  1034. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1035. datadir=$ac_optarg ;;
  1036. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1037. | --dataroo | --dataro | --datar)
  1038. ac_prev=datarootdir ;;
  1039. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1040. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1041. datarootdir=$ac_optarg ;;
  1042. -disable-* | --disable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=no ;;
  1057. -docdir | --docdir | --docdi | --doc | --do)
  1058. ac_prev=docdir ;;
  1059. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1060. docdir=$ac_optarg ;;
  1061. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1062. ac_prev=dvidir ;;
  1063. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1064. dvidir=$ac_optarg ;;
  1065. -enable-* | --enable-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "enable_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval enable_$ac_useropt=\$ac_optarg ;;
  1080. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1081. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1082. | --exec | --exe | --ex)
  1083. ac_prev=exec_prefix ;;
  1084. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1085. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1086. | --exec=* | --exe=* | --ex=*)
  1087. exec_prefix=$ac_optarg ;;
  1088. -gas | --gas | --ga | --g)
  1089. # Obsolete; use --with-gas.
  1090. with_gas=yes ;;
  1091. -help | --help | --hel | --he | -h)
  1092. ac_init_help=long ;;
  1093. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1094. ac_init_help=recursive ;;
  1095. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1096. ac_init_help=short ;;
  1097. -host | --host | --hos | --ho)
  1098. ac_prev=host_alias ;;
  1099. -host=* | --host=* | --hos=* | --ho=*)
  1100. host_alias=$ac_optarg ;;
  1101. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1102. ac_prev=htmldir ;;
  1103. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1104. | --ht=*)
  1105. htmldir=$ac_optarg ;;
  1106. -includedir | --includedir | --includedi | --included | --include \
  1107. | --includ | --inclu | --incl | --inc)
  1108. ac_prev=includedir ;;
  1109. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1110. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1111. includedir=$ac_optarg ;;
  1112. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1113. ac_prev=infodir ;;
  1114. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1115. infodir=$ac_optarg ;;
  1116. -libdir | --libdir | --libdi | --libd)
  1117. ac_prev=libdir ;;
  1118. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1119. libdir=$ac_optarg ;;
  1120. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1121. | --libexe | --libex | --libe)
  1122. ac_prev=libexecdir ;;
  1123. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1124. | --libexe=* | --libex=* | --libe=*)
  1125. libexecdir=$ac_optarg ;;
  1126. -localedir | --localedir | --localedi | --localed | --locale)
  1127. ac_prev=localedir ;;
  1128. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1129. localedir=$ac_optarg ;;
  1130. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1131. | --localstate | --localstat | --localsta | --localst | --locals)
  1132. ac_prev=localstatedir ;;
  1133. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1134. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1135. localstatedir=$ac_optarg ;;
  1136. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1137. ac_prev=mandir ;;
  1138. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1139. mandir=$ac_optarg ;;
  1140. -nfp | --nfp | --nf)
  1141. # Obsolete; use --without-fp.
  1142. with_fp=no ;;
  1143. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1144. | --no-cr | --no-c | -n)
  1145. no_create=yes ;;
  1146. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1147. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1148. no_recursion=yes ;;
  1149. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1150. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1151. | --oldin | --oldi | --old | --ol | --o)
  1152. ac_prev=oldincludedir ;;
  1153. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1154. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1155. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1156. oldincludedir=$ac_optarg ;;
  1157. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1158. ac_prev=prefix ;;
  1159. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1160. prefix=$ac_optarg ;;
  1161. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1162. | --program-pre | --program-pr | --program-p)
  1163. ac_prev=program_prefix ;;
  1164. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1165. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1166. program_prefix=$ac_optarg ;;
  1167. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1168. | --program-suf | --program-su | --program-s)
  1169. ac_prev=program_suffix ;;
  1170. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1171. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1172. program_suffix=$ac_optarg ;;
  1173. -program-transform-name | --program-transform-name \
  1174. | --program-transform-nam | --program-transform-na \
  1175. | --program-transform-n | --program-transform- \
  1176. | --program-transform | --program-transfor \
  1177. | --program-transfo | --program-transf \
  1178. | --program-trans | --program-tran \
  1179. | --progr-tra | --program-tr | --program-t)
  1180. ac_prev=program_transform_name ;;
  1181. -program-transform-name=* | --program-transform-name=* \
  1182. | --program-transform-nam=* | --program-transform-na=* \
  1183. | --program-transform-n=* | --program-transform-=* \
  1184. | --program-transform=* | --program-transfor=* \
  1185. | --program-transfo=* | --program-transf=* \
  1186. | --program-trans=* | --program-tran=* \
  1187. | --progr-tra=* | --program-tr=* | --program-t=*)
  1188. program_transform_name=$ac_optarg ;;
  1189. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1190. ac_prev=pdfdir ;;
  1191. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1192. pdfdir=$ac_optarg ;;
  1193. -psdir | --psdir | --psdi | --psd | --ps)
  1194. ac_prev=psdir ;;
  1195. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1196. psdir=$ac_optarg ;;
  1197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1198. | -silent | --silent | --silen | --sile | --sil)
  1199. silent=yes ;;
  1200. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1201. | --runstate | --runstat | --runsta | --runst | --runs \
  1202. | --run | --ru | --r)
  1203. ac_prev=runstatedir ;;
  1204. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1205. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1206. | --run=* | --ru=* | --r=*)
  1207. runstatedir=$ac_optarg ;;
  1208. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1209. ac_prev=sbindir ;;
  1210. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1211. | --sbi=* | --sb=*)
  1212. sbindir=$ac_optarg ;;
  1213. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1214. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1215. | --sharedst | --shareds | --shared | --share | --shar \
  1216. | --sha | --sh)
  1217. ac_prev=sharedstatedir ;;
  1218. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1219. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1220. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1221. | --sha=* | --sh=*)
  1222. sharedstatedir=$ac_optarg ;;
  1223. -site | --site | --sit)
  1224. ac_prev=site ;;
  1225. -site=* | --site=* | --sit=*)
  1226. site=$ac_optarg ;;
  1227. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1228. ac_prev=srcdir ;;
  1229. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1230. srcdir=$ac_optarg ;;
  1231. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1232. | --syscon | --sysco | --sysc | --sys | --sy)
  1233. ac_prev=sysconfdir ;;
  1234. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1235. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1236. sysconfdir=$ac_optarg ;;
  1237. -target | --target | --targe | --targ | --tar | --ta | --t)
  1238. ac_prev=target_alias ;;
  1239. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1240. target_alias=$ac_optarg ;;
  1241. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1242. verbose=yes ;;
  1243. -version | --version | --versio | --versi | --vers | -V)
  1244. ac_init_version=: ;;
  1245. -with-* | --with-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=\$ac_optarg ;;
  1260. -without-* | --without-*)
  1261. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1264. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1265. ac_useropt_orig=$ac_useropt
  1266. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1267. case $ac_user_opts in
  1268. *"
  1269. "with_$ac_useropt"
  1270. "*) ;;
  1271. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1272. ac_unrecognized_sep=', ';;
  1273. esac
  1274. eval with_$ac_useropt=no ;;
  1275. --x)
  1276. # Obsolete; use --with-x.
  1277. with_x=yes ;;
  1278. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1279. | --x-incl | --x-inc | --x-in | --x-i)
  1280. ac_prev=x_includes ;;
  1281. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1282. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1283. x_includes=$ac_optarg ;;
  1284. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1285. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1286. ac_prev=x_libraries ;;
  1287. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1288. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1289. x_libraries=$ac_optarg ;;
  1290. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1291. Try \`$0 --help' for more information"
  1292. ;;
  1293. *=*)
  1294. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1295. # Reject names that are not valid shell variable names.
  1296. case $ac_envvar in #(
  1297. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1298. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1299. esac
  1300. eval $ac_envvar=\$ac_optarg
  1301. export $ac_envvar ;;
  1302. *)
  1303. # FIXME: should be removed in autoconf 3.0.
  1304. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1305. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1306. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1307. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1308. ;;
  1309. esac
  1310. done
  1311. if test -n "$ac_prev"; then
  1312. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1313. as_fn_error $? "missing argument to $ac_option"
  1314. fi
  1315. if test -n "$ac_unrecognized_opts"; then
  1316. case $enable_option_checking in
  1317. no) ;;
  1318. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1319. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1320. esac
  1321. fi
  1322. # Check all directory arguments for consistency.
  1323. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1324. datadir sysconfdir sharedstatedir localstatedir includedir \
  1325. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1326. libdir localedir mandir runstatedir
  1327. do
  1328. eval ac_val=\$$ac_var
  1329. # Remove trailing slashes.
  1330. case $ac_val in
  1331. */ )
  1332. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1333. eval $ac_var=\$ac_val;;
  1334. esac
  1335. # Be sure to have absolute directory names.
  1336. case $ac_val in
  1337. [\\/$]* | ?:[\\/]* ) continue;;
  1338. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1339. esac
  1340. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1341. done
  1342. # There might be people who depend on the old broken behavior: `$host'
  1343. # used to hold the argument of --host etc.
  1344. # FIXME: To remove some day.
  1345. build=$build_alias
  1346. host=$host_alias
  1347. target=$target_alias
  1348. # FIXME: To remove some day.
  1349. if test "x$host_alias" != x; then
  1350. if test "x$build_alias" = x; then
  1351. cross_compiling=maybe
  1352. elif test "x$build_alias" != "x$host_alias"; then
  1353. cross_compiling=yes
  1354. fi
  1355. fi
  1356. ac_tool_prefix=
  1357. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1358. test "$silent" = yes && exec 6>/dev/null
  1359. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1360. ac_ls_di=`ls -di .` &&
  1361. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1362. as_fn_error $? "working directory cannot be determined"
  1363. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1364. as_fn_error $? "pwd does not report name of working directory"
  1365. # Find the source files, if location was not specified.
  1366. if test -z "$srcdir"; then
  1367. ac_srcdir_defaulted=yes
  1368. # Try the directory containing this script, then the parent directory.
  1369. ac_confdir=`$as_dirname -- "$as_myself" ||
  1370. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1371. X"$as_myself" : 'X\(//\)[^/]' \| \
  1372. X"$as_myself" : 'X\(//\)$' \| \
  1373. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1374. printf "%s\n" X"$as_myself" |
  1375. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)[^/].*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\/\)$/{
  1384. s//\1/
  1385. q
  1386. }
  1387. /^X\(\/\).*/{
  1388. s//\1/
  1389. q
  1390. }
  1391. s/.*/./; q'`
  1392. srcdir=$ac_confdir
  1393. if test ! -r "$srcdir/$ac_unique_file"; then
  1394. srcdir=..
  1395. fi
  1396. else
  1397. ac_srcdir_defaulted=no
  1398. fi
  1399. if test ! -r "$srcdir/$ac_unique_file"; then
  1400. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1401. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1402. fi
  1403. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1404. ac_abs_confdir=`(
  1405. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1406. pwd)`
  1407. # When building in place, set srcdir=.
  1408. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1409. srcdir=.
  1410. fi
  1411. # Remove unnecessary trailing slashes from srcdir.
  1412. # Double slashes in file names in object file debugging info
  1413. # mess up M-x gdb in Emacs.
  1414. case $srcdir in
  1415. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1416. esac
  1417. for ac_var in $ac_precious_vars; do
  1418. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1419. eval ac_env_${ac_var}_value=\$${ac_var}
  1420. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1421. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1422. done
  1423. #
  1424. # Report the --help message.
  1425. #
  1426. if test "$ac_init_help" = "long"; then
  1427. # Omit some internal or obsolete options to make the list less imposing.
  1428. # This message is too long to be a string in the A/UX 3.1 sh.
  1429. cat <<_ACEOF
  1430. \`configure' configures this package to adapt to many kinds of systems.
  1431. Usage: $0 [OPTION]... [VAR=VALUE]...
  1432. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1433. VAR=VALUE. See below for descriptions of some of the useful variables.
  1434. Defaults for the options are specified in brackets.
  1435. Configuration:
  1436. -h, --help display this help and exit
  1437. --help=short display options specific to this package
  1438. --help=recursive display the short help of all the included packages
  1439. -V, --version display version information and exit
  1440. -q, --quiet, --silent do not print \`checking ...' messages
  1441. --cache-file=FILE cache test results in FILE [disabled]
  1442. -C, --config-cache alias for \`--cache-file=config.cache'
  1443. -n, --no-create do not create output files
  1444. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1445. Installation directories:
  1446. --prefix=PREFIX install architecture-independent files in PREFIX
  1447. [$ac_default_prefix]
  1448. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1449. [PREFIX]
  1450. By default, \`make install' will install all the files in
  1451. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1452. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1453. for instance \`--prefix=\$HOME'.
  1454. For better control, use the options below.
  1455. Fine tuning of the installation directories:
  1456. --bindir=DIR user executables [EPREFIX/bin]
  1457. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1458. --libexecdir=DIR program executables [EPREFIX/libexec]
  1459. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1460. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1461. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1462. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1463. --libdir=DIR object code libraries [EPREFIX/lib]
  1464. --includedir=DIR C header files [PREFIX/include]
  1465. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1466. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1467. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1468. --infodir=DIR info documentation [DATAROOTDIR/info]
  1469. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1470. --mandir=DIR man documentation [DATAROOTDIR/man]
  1471. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1472. --htmldir=DIR html documentation [DOCDIR]
  1473. --dvidir=DIR dvi documentation [DOCDIR]
  1474. --pdfdir=DIR pdf documentation [DOCDIR]
  1475. --psdir=DIR ps documentation [DOCDIR]
  1476. _ACEOF
  1477. cat <<\_ACEOF
  1478. X features:
  1479. --x-includes=DIR X include files are in DIR
  1480. --x-libraries=DIR X library files are in DIR
  1481. System types:
  1482. --build=BUILD configure for building on BUILD [guessed]
  1483. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1484. _ACEOF
  1485. fi
  1486. if test -n "$ac_init_help"; then
  1487. cat <<\_ACEOF
  1488. Optional Features:
  1489. --disable-option-checking ignore unrecognized --enable/--with options
  1490. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1491. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1492. --enable-shared[=PKGS] build shared libraries [default=yes]
  1493. --enable-static[=PKGS] build static libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --disable-largefile omit support for large files
  1498. --enable-assertions Enable internal sanity checks
  1499. (auto/disabled/release/enabled/paranoid)
  1500. [default=auto]
  1501. --enable-dependency-tracking
  1502. Use gcc -MMD -MT dependency tracking [default=yes]
  1503. --enable-libc Use the system C library [default=yes]
  1504. --enable-system-iconv Use iconv() from system-installed libraries
  1505. [default=no for windows, yes for others]
  1506. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1507. libc version [default=no]
  1508. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1509. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1510. --enable-audio Enable the audio subsystem [default=yes]
  1511. --enable-video Enable the video subsystem [default=yes]
  1512. --enable-render Enable the render subsystem [default=yes]
  1513. --enable-events Enable the events subsystem [default=yes]
  1514. --enable-joystick Enable the joystick subsystem [default=yes]
  1515. --enable-haptic Enable the haptic (force feedback) subsystem
  1516. [default=yes]
  1517. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1518. --enable-sensor Enable the sensor subsystem [default=yes]
  1519. --enable-power Enable the power subsystem [default=yes]
  1520. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1521. --enable-timers Enable the timer subsystem [default=yes]
  1522. --enable-file Enable the file subsystem [default=yes]
  1523. --enable-misc Enable the misc subsystem [default=yes]
  1524. --enable-locale Enable the locale subsystem [default=yes]
  1525. --enable-loadso Enable the shared object loading subsystem
  1526. [default=yes]
  1527. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1528. --enable-assembly Enable assembly routines [default=yes]
  1529. --enable-ssemath Allow GCC to use SSE floating point math
  1530. [default=maybe]
  1531. --enable-mmx use MMX assembly routines [default=yes]
  1532. --enable-3dnow use 3DNow! assembly routines [default=no]
  1533. --enable-sse use SSE assembly routines [default=yes]
  1534. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1535. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1536. --enable-altivec use Altivec assembly routines [default=yes]
  1537. --enable-lsx use LSX assembly routines [default=yes]
  1538. --enable-oss support the OSS audio API [default=maybe]
  1539. --enable-alsa support the ALSA audio API [default=yes]
  1540. --disable-alsatest Do not try to compile and run a test Alsa program
  1541. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1542. --enable-jack use JACK audio [default=yes]
  1543. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1544. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1545. --disable-esdtest Do not try to compile and run a test ESD program
  1546. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1547. --enable-pipewire use Pipewire audio [default=yes]
  1548. --enable-pipewire-shared
  1549. dynamically load Pipewire support [default=yes]
  1550. --enable-pulseaudio use PulseAudio [default=yes]
  1551. --enable-pulseaudio-shared
  1552. dynamically load PulseAudio support [default=yes]
  1553. --enable-arts support the Analog Real Time Synthesizer
  1554. [default=yes]
  1555. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1556. --enable-nas support the NAS audio API [default=yes]
  1557. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1558. --enable-sndio support the sndio audio API [default=yes]
  1559. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1560. --enable-fusionsound use FusionSound audio driver [default=no]
  1561. --enable-fusionsound-shared
  1562. dynamically load fusionsound audio support
  1563. [default=yes]
  1564. --enable-diskaudio support the disk writer audio driver [default=yes]
  1565. --enable-dummyaudio support the dummy audio driver [default=yes]
  1566. --enable-libsamplerate use libsamplerate for audio rate conversion
  1567. [default=yes]
  1568. --enable-libsamplerate-shared
  1569. dynamically load libsamplerate [default=yes]
  1570. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1571. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1572. --enable-werror treat warnings as errors [default=no]
  1573. --enable-video-wayland use Wayland video driver [default=yes]
  1574. --enable-video-wayland-qt-touch
  1575. QtWayland server support for Wayland video driver
  1576. [default=yes]
  1577. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1578. --enable-libdecor use libdecor for Wayland client-side decorations
  1579. [default=yes]
  1580. --enable-libdecor-shared
  1581. dynamically load libdecor [default=yes]
  1582. --enable-video-rpi use Raspberry Pi 0-3 video driver [default=yes]
  1583. --enable-video-x11 use X11 video driver [default=maybe]
  1584. --enable-x11-shared dynamically load X11 support [default=maybe]
  1585. --enable-video-x11-xcursor
  1586. enable X11 Xcursor support [default=yes]
  1587. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1588. --enable-video-x11-xinput
  1589. enable X11 XInput extension for manymouse, tablets,
  1590. etc [default=yes]
  1591. --enable-video-x11-xfixes
  1592. enable X11 Xfixes support [default=yes]
  1593. --enable-video-x11-xrandr
  1594. enable X11 Xrandr extension for fullscreen
  1595. [default=yes]
  1596. --enable-video-x11-scrnsaver
  1597. enable X11 screensaver extension [default=yes]
  1598. --enable-video-x11-xshape
  1599. enable X11 XShape support [default=yes]
  1600. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1601. --enable-video-cocoa use Cocoa video driver [default=yes]
  1602. --enable-video-metal include Metal support [default=yes]
  1603. --enable-render-metal enable the Metal render driver [default=yes]
  1604. --enable-video-directfb use DirectFB video driver [default=no]
  1605. --enable-directfb-shared
  1606. dynamically load directfb support [default=yes]
  1607. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1608. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1609. --enable-video-dummy use dummy video driver [default=yes]
  1610. --enable-video-offscreen
  1611. use offscreen video driver [default=yes]
  1612. --enable-video-opengl include OpenGL support [default=yes]
  1613. --enable-video-opengles include OpenGL ES support [default=yes]
  1614. --enable-video-opengles1
  1615. include OpenGL ES 1.1 support [default=yes]
  1616. --enable-video-opengles2
  1617. include OpenGL ES 2.0 support [default=yes]
  1618. --enable-video-vulkan include Vulkan support [default=yes]
  1619. --enable-libudev enable libudev support [default=yes]
  1620. --enable-dbus enable D-Bus support [default=yes]
  1621. --enable-ime enable IME support [default=yes]
  1622. --enable-ibus enable IBus support [default=yes]
  1623. --enable-fcitx enable fcitx support [default=yes]
  1624. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1625. --enable-pthreads use POSIX threads for multi-threading
  1626. [default=maybe]
  1627. --enable-pthread-sem use pthread semaphores [default=maybe]
  1628. --enable-directx use DirectX for Windows audio/video [default=yes]
  1629. --enable-xinput use Xinput for Windows [default=yes]
  1630. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1631. --enable-hidapi-joystick
  1632. use HIDAPI for low level joystick drivers
  1633. [default=yes]
  1634. --enable-hidapi-libusb use libusb for low level joystick drivers
  1635. [default=maybe]
  1636. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1637. UNIX [default=yes]
  1638. --enable-rpath use an rpath when linking SDL [default=yes]
  1639. --enable-backgrounding-signal
  1640. number to use for magic backgrounding signal or 'no'
  1641. [default=no]
  1642. --enable-foregrounding-signal
  1643. number to use for magic foregrounding signal or 'no'
  1644. [default=no]
  1645. --enable-joystick-virtual
  1646. enable virtual joystick APIs [default=yes]
  1647. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1648. --enable-sdl2-config Install sdl2-config [default=yes]
  1649. --enable-vendor-info=STRING
  1650. Add vendor info to SDL_REVISION
  1651. Optional Packages:
  1652. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1653. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1654. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1655. both]
  1656. --with-aix-soname=aix|svr4|both
  1657. shared library versioning (aka "SONAME") variant to
  1658. provide on AIX, [default=aix].
  1659. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1660. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1661. compiler's sysroot if not specified).
  1662. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1663. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1664. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1665. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1666. --with-x use the X Window System
  1667. Some influential environment variables:
  1668. CC C compiler command
  1669. CFLAGS C compiler flags
  1670. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1671. nonstandard directory <lib dir>
  1672. LIBS libraries to pass to the linker, e.g. -l<library>
  1673. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1674. you have headers in a nonstandard directory <include dir>
  1675. LT_SYS_LIBRARY_PATH
  1676. User-defined run-time library search path.
  1677. CXX C++ compiler command
  1678. CXXFLAGS C++ compiler flags
  1679. CXXCPP C++ preprocessor
  1680. PKG_CONFIG path to pkg-config utility
  1681. PKG_CONFIG_PATH
  1682. directories to add to pkg-config's search path
  1683. PKG_CONFIG_LIBDIR
  1684. path overriding pkg-config's built-in search path
  1685. CPP C preprocessor
  1686. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1687. JACK_LIBS linker flags for JACK, overriding pkg-config
  1688. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1689. ESD_LIBS linker flags for ESD, overriding pkg-config
  1690. PIPEWIRE_CFLAGS
  1691. C compiler flags for PIPEWIRE, overriding pkg-config
  1692. PIPEWIRE_LIBS
  1693. linker flags for PIPEWIRE, overriding pkg-config
  1694. PULSEAUDIO_CFLAGS
  1695. C compiler flags for PULSEAUDIO, overriding pkg-config
  1696. PULSEAUDIO_LIBS
  1697. linker flags for PULSEAUDIO, overriding pkg-config
  1698. SNDIO_CFLAGS
  1699. C compiler flags for SNDIO, overriding pkg-config
  1700. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1701. FUSIONSOUND_CFLAGS
  1702. C compiler flags for FUSIONSOUND, overriding pkg-config
  1703. FUSIONSOUND_LIBS
  1704. linker flags for FUSIONSOUND, overriding pkg-config
  1705. DECOR_CFLAGS
  1706. C compiler flags for DECOR, overriding pkg-config
  1707. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1708. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1709. RPI_LIBS linker flags for RPI, overriding pkg-config
  1710. RPI_EGL_CFLAGS
  1711. C compiler flags for RPI_EGL, overriding pkg-config
  1712. RPI_EGL_LIBS
  1713. linker flags for RPI_EGL, overriding pkg-config
  1714. XMKMF Path to xmkmf, Makefile generator for X Window System
  1715. DIRECTFB_CFLAGS
  1716. C compiler flags for DIRECTFB, overriding pkg-config
  1717. DIRECTFB_LIBS
  1718. linker flags for DIRECTFB, overriding pkg-config
  1719. LIBDRM_CFLAGS
  1720. C compiler flags for LIBDRM, overriding pkg-config
  1721. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1722. LIBGBM_CFLAGS
  1723. C compiler flags for LIBGBM, overriding pkg-config
  1724. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1725. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1726. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1727. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1728. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1729. LIBUSB_CFLAGS
  1730. C compiler flags for LIBUSB, overriding pkg-config
  1731. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1732. Use these variables to override the choices made by `configure' or to help
  1733. it to find libraries and programs with nonstandard names/locations.
  1734. Report bugs to the package provider.
  1735. _ACEOF
  1736. ac_status=$?
  1737. fi
  1738. if test "$ac_init_help" = "recursive"; then
  1739. # If there are subdirs, report their specific --help.
  1740. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1741. test -d "$ac_dir" ||
  1742. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1743. continue
  1744. ac_builddir=.
  1745. case "$ac_dir" in
  1746. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1747. *)
  1748. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1749. # A ".." for each directory in $ac_dir_suffix.
  1750. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1751. case $ac_top_builddir_sub in
  1752. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1753. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1754. esac ;;
  1755. esac
  1756. ac_abs_top_builddir=$ac_pwd
  1757. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1758. # for backward compatibility:
  1759. ac_top_builddir=$ac_top_build_prefix
  1760. case $srcdir in
  1761. .) # We are building in place.
  1762. ac_srcdir=.
  1763. ac_top_srcdir=$ac_top_builddir_sub
  1764. ac_abs_top_srcdir=$ac_pwd ;;
  1765. [\\/]* | ?:[\\/]* ) # Absolute name.
  1766. ac_srcdir=$srcdir$ac_dir_suffix;
  1767. ac_top_srcdir=$srcdir
  1768. ac_abs_top_srcdir=$srcdir ;;
  1769. *) # Relative name.
  1770. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1771. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1772. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1773. esac
  1774. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1775. cd "$ac_dir" || { ac_status=$?; continue; }
  1776. # Check for configure.gnu first; this name is used for a wrapper for
  1777. # Metaconfig's "Configure" on case-insensitive file systems.
  1778. if test -f "$ac_srcdir/configure.gnu"; then
  1779. echo &&
  1780. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1781. elif test -f "$ac_srcdir/configure"; then
  1782. echo &&
  1783. $SHELL "$ac_srcdir/configure" --help=recursive
  1784. else
  1785. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1786. fi || ac_status=$?
  1787. cd "$ac_pwd" || { ac_status=$?; break; }
  1788. done
  1789. fi
  1790. test -n "$ac_init_help" && exit $ac_status
  1791. if $ac_init_version; then
  1792. cat <<\_ACEOF
  1793. configure
  1794. generated by GNU Autoconf 2.71
  1795. Copyright (C) 2021 Free Software Foundation, Inc.
  1796. This configure script is free software; the Free Software Foundation
  1797. gives unlimited permission to copy, distribute and modify it.
  1798. _ACEOF
  1799. exit
  1800. fi
  1801. ## ------------------------ ##
  1802. ## Autoconf initialization. ##
  1803. ## ------------------------ ##
  1804. # ac_fn_c_try_compile LINENO
  1805. # --------------------------
  1806. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_c_try_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext conftest.beam
  1811. if { { ac_try="$ac_compile"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. printf "%s\n" "$ac_try_echo"; } >&5
  1818. (eval "$ac_compile") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest.$ac_objext
  1830. then :
  1831. ac_retval=0
  1832. else $as_nop
  1833. printf "%s\n" "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. as_fn_set_status $ac_retval
  1839. } # ac_fn_c_try_compile
  1840. # ac_fn_c_try_link LINENO
  1841. # -----------------------
  1842. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1843. ac_fn_c_try_link ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1847. if { { ac_try="$ac_link"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. printf "%s\n" "$ac_try_echo"; } >&5
  1854. (eval "$ac_link") 2>conftest.err
  1855. ac_status=$?
  1856. if test -s conftest.err; then
  1857. grep -v '^ *+' conftest.err >conftest.er1
  1858. cat conftest.er1 >&5
  1859. mv -f conftest.er1 conftest.err
  1860. fi
  1861. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; } && {
  1863. test -z "$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. } && test -s conftest$ac_exeext && {
  1866. test "$cross_compiling" = yes ||
  1867. test -x conftest$ac_exeext
  1868. }
  1869. then :
  1870. ac_retval=0
  1871. else $as_nop
  1872. printf "%s\n" "$as_me: failed program was:" >&5
  1873. sed 's/^/| /' conftest.$ac_ext >&5
  1874. ac_retval=1
  1875. fi
  1876. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1877. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1878. # interfere with the next link command; also delete a directory that is
  1879. # left behind by Apple's compiler. We do this before executing the actions.
  1880. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_link
  1884. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1885. # -------------------------------------------------------
  1886. # Tests whether HEADER exists and can be compiled using the include files in
  1887. # INCLUDES, setting the cache variable VAR accordingly.
  1888. ac_fn_c_check_header_compile ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. printf %s "checking for $2... " >&6; }
  1893. if eval test \${$3+y}
  1894. then :
  1895. printf %s "(cached) " >&6
  1896. else $as_nop
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. #include <$2>
  1901. _ACEOF
  1902. if ac_fn_c_try_compile "$LINENO"
  1903. then :
  1904. eval "$3=yes"
  1905. else $as_nop
  1906. eval "$3=no"
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1909. fi
  1910. eval ac_res=\$$3
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. printf "%s\n" "$ac_res" >&6; }
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. } # ac_fn_c_check_header_compile
  1915. # ac_fn_c_check_func LINENO FUNC VAR
  1916. # ----------------------------------
  1917. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1918. ac_fn_c_check_func ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. printf %s "checking for $2... " >&6; }
  1923. if eval test \${$3+y}
  1924. then :
  1925. printf %s "(cached) " >&6
  1926. else $as_nop
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below. */
  1934. #include <limits.h>
  1935. #undef $2
  1936. /* Override any GCC internal prototype to avoid an error.
  1937. Use char because int might match the return type of a GCC
  1938. builtin and then its argument prototype would still apply. */
  1939. #ifdef __cplusplus
  1940. extern "C"
  1941. #endif
  1942. char $2 ();
  1943. /* The GNU C library defines this for functions which it implements
  1944. to always fail with ENOSYS. Some functions are actually named
  1945. something starting with __ and the normal name is an alias. */
  1946. #if defined __stub_$2 || defined __stub___$2
  1947. choke me
  1948. #endif
  1949. int
  1950. main (void)
  1951. {
  1952. return $2 ();
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_link "$LINENO"
  1958. then :
  1959. eval "$3=yes"
  1960. else $as_nop
  1961. eval "$3=no"
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1964. conftest$ac_exeext conftest.$ac_ext
  1965. fi
  1966. eval ac_res=\$$3
  1967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1968. printf "%s\n" "$ac_res" >&6; }
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_func
  1971. # ac_fn_cxx_try_compile LINENO
  1972. # ----------------------------
  1973. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1974. ac_fn_cxx_try_compile ()
  1975. {
  1976. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1977. rm -f conftest.$ac_objext conftest.beam
  1978. if { { ac_try="$ac_compile"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. printf "%s\n" "$ac_try_echo"; } >&5
  1985. (eval "$ac_compile") 2>conftest.err
  1986. ac_status=$?
  1987. if test -s conftest.err; then
  1988. grep -v '^ *+' conftest.err >conftest.er1
  1989. cat conftest.er1 >&5
  1990. mv -f conftest.er1 conftest.err
  1991. fi
  1992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1993. test $ac_status = 0; } && {
  1994. test -z "$ac_cxx_werror_flag" ||
  1995. test ! -s conftest.err
  1996. } && test -s conftest.$ac_objext
  1997. then :
  1998. ac_retval=0
  1999. else $as_nop
  2000. printf "%s\n" "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. printf "%s\n" "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }
  2032. then :
  2033. ac_retval=0
  2034. else $as_nop
  2035. printf "%s\n" "$as_me: failed program was:" >&5
  2036. sed 's/^/| /' conftest.$ac_ext >&5
  2037. ac_retval=1
  2038. fi
  2039. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2040. as_fn_set_status $ac_retval
  2041. } # ac_fn_cxx_try_cpp
  2042. # ac_fn_cxx_try_link LINENO
  2043. # -------------------------
  2044. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2045. ac_fn_cxx_try_link ()
  2046. {
  2047. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2048. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2049. if { { ac_try="$ac_link"
  2050. case "(($ac_try" in
  2051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2052. *) ac_try_echo=$ac_try;;
  2053. esac
  2054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2055. printf "%s\n" "$ac_try_echo"; } >&5
  2056. (eval "$ac_link") 2>conftest.err
  2057. ac_status=$?
  2058. if test -s conftest.err; then
  2059. grep -v '^ *+' conftest.err >conftest.er1
  2060. cat conftest.er1 >&5
  2061. mv -f conftest.er1 conftest.err
  2062. fi
  2063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2064. test $ac_status = 0; } && {
  2065. test -z "$ac_cxx_werror_flag" ||
  2066. test ! -s conftest.err
  2067. } && test -s conftest$ac_exeext && {
  2068. test "$cross_compiling" = yes ||
  2069. test -x conftest$ac_exeext
  2070. }
  2071. then :
  2072. ac_retval=0
  2073. else $as_nop
  2074. printf "%s\n" "$as_me: failed program was:" >&5
  2075. sed 's/^/| /' conftest.$ac_ext >&5
  2076. ac_retval=1
  2077. fi
  2078. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2079. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2080. # interfere with the next link command; also delete a directory that is
  2081. # left behind by Apple's compiler. We do this before executing the actions.
  2082. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. as_fn_set_status $ac_retval
  2085. } # ac_fn_cxx_try_link
  2086. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2087. # -------------------------------------------
  2088. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2089. # variable VAR accordingly.
  2090. ac_fn_c_check_type ()
  2091. {
  2092. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. printf %s "checking for $2... " >&6; }
  2095. if eval test \${$3+y}
  2096. then :
  2097. printf %s "(cached) " >&6
  2098. else $as_nop
  2099. eval "$3=no"
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof ($2))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main (void)
  2119. {
  2120. if (sizeof (($2)))
  2121. return 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"
  2127. then :
  2128. else $as_nop
  2129. eval "$3=yes"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$3
  2136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. printf "%s\n" "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_type
  2140. # ac_fn_c_try_cpp LINENO
  2141. # ----------------------
  2142. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_c_try_cpp ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2147. case "(($ac_try" in
  2148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2149. *) ac_try_echo=$ac_try;;
  2150. esac
  2151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2152. printf "%s\n" "$ac_try_echo"; } >&5
  2153. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2154. ac_status=$?
  2155. if test -s conftest.err; then
  2156. grep -v '^ *+' conftest.err >conftest.er1
  2157. cat conftest.er1 >&5
  2158. mv -f conftest.er1 conftest.err
  2159. fi
  2160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2161. test $ac_status = 0; } > conftest.i && {
  2162. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2163. test ! -s conftest.err
  2164. }
  2165. then :
  2166. ac_retval=0
  2167. else $as_nop
  2168. printf "%s\n" "$as_me: failed program was:" >&5
  2169. sed 's/^/| /' conftest.$ac_ext >&5
  2170. ac_retval=1
  2171. fi
  2172. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2173. as_fn_set_status $ac_retval
  2174. } # ac_fn_c_try_cpp
  2175. # ac_fn_c_try_run LINENO
  2176. # ----------------------
  2177. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2178. # executables *can* be run.
  2179. ac_fn_c_try_run ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. if { { ac_try="$ac_link"
  2183. case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_link") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2193. { { case "(($ac_try" in
  2194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2195. *) ac_try_echo=$ac_try;;
  2196. esac
  2197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2198. printf "%s\n" "$ac_try_echo"; } >&5
  2199. (eval "$ac_try") 2>&5
  2200. ac_status=$?
  2201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2202. test $ac_status = 0; }; }
  2203. then :
  2204. ac_retval=0
  2205. else $as_nop
  2206. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2207. printf "%s\n" "$as_me: failed program was:" >&5
  2208. sed 's/^/| /' conftest.$ac_ext >&5
  2209. ac_retval=$ac_status
  2210. fi
  2211. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2212. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2213. as_fn_set_status $ac_retval
  2214. } # ac_fn_c_try_run
  2215. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2216. # ----------------------------------------------------
  2217. # Tries to find if the field MEMBER exists in type AGGR, after including
  2218. # INCLUDES, setting cache variable VAR accordingly.
  2219. ac_fn_c_check_member ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2223. printf %s "checking for $2.$3... " >&6; }
  2224. if eval test \${$4+y}
  2225. then :
  2226. printf %s "(cached) " >&6
  2227. else $as_nop
  2228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2229. /* end confdefs.h. */
  2230. $5
  2231. int
  2232. main (void)
  2233. {
  2234. static $2 ac_aggr;
  2235. if (ac_aggr.$3)
  2236. return 0;
  2237. ;
  2238. return 0;
  2239. }
  2240. _ACEOF
  2241. if ac_fn_c_try_compile "$LINENO"
  2242. then :
  2243. eval "$4=yes"
  2244. else $as_nop
  2245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2246. /* end confdefs.h. */
  2247. $5
  2248. int
  2249. main (void)
  2250. {
  2251. static $2 ac_aggr;
  2252. if (sizeof ac_aggr.$3)
  2253. return 0;
  2254. ;
  2255. return 0;
  2256. }
  2257. _ACEOF
  2258. if ac_fn_c_try_compile "$LINENO"
  2259. then :
  2260. eval "$4=yes"
  2261. else $as_nop
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. printf "%s\n" "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2274. # ------------------------------------------------------------------
  2275. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2276. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2277. ac_fn_check_decl ()
  2278. {
  2279. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2280. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2282. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2283. if eval test \${$3+y}
  2284. then :
  2285. printf %s "(cached) " >&6
  2286. else $as_nop
  2287. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2288. eval ac_save_FLAGS=\$$6
  2289. as_fn_append $6 " $5"
  2290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2291. /* end confdefs.h. */
  2292. $4
  2293. int
  2294. main (void)
  2295. {
  2296. #ifndef $as_decl_name
  2297. #ifdef __cplusplus
  2298. (void) $as_decl_use;
  2299. #else
  2300. (void) $as_decl_name;
  2301. #endif
  2302. #endif
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. if ac_fn_c_try_compile "$LINENO"
  2308. then :
  2309. eval "$3=yes"
  2310. else $as_nop
  2311. eval "$3=no"
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2314. eval $6=\$ac_save_FLAGS
  2315. fi
  2316. eval ac_res=\$$3
  2317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2318. printf "%s\n" "$ac_res" >&6; }
  2319. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2320. } # ac_fn_check_decl
  2321. ac_configure_args_raw=
  2322. for ac_arg
  2323. do
  2324. case $ac_arg in
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2329. done
  2330. case $ac_configure_args_raw in
  2331. *$as_nl*)
  2332. ac_safe_unquote= ;;
  2333. *)
  2334. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2335. ac_unsafe_a="$ac_unsafe_z#~"
  2336. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2337. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2338. esac
  2339. cat >config.log <<_ACEOF
  2340. This file contains any messages produced by compilers while
  2341. running configure, to aid debugging if configure makes a mistake.
  2342. It was created by $as_me, which was
  2343. generated by GNU Autoconf 2.71. Invocation command line was
  2344. $ $0$ac_configure_args_raw
  2345. _ACEOF
  2346. exec 5>>config.log
  2347. {
  2348. cat <<_ASUNAME
  2349. ## --------- ##
  2350. ## Platform. ##
  2351. ## --------- ##
  2352. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2353. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2354. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2355. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2356. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2357. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2358. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2359. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2360. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2361. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2362. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2363. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2364. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2365. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2366. _ASUNAME
  2367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2368. for as_dir in $PATH
  2369. do
  2370. IFS=$as_save_IFS
  2371. case $as_dir in #(((
  2372. '') as_dir=./ ;;
  2373. */) ;;
  2374. *) as_dir=$as_dir/ ;;
  2375. esac
  2376. printf "%s\n" "PATH: $as_dir"
  2377. done
  2378. IFS=$as_save_IFS
  2379. } >&5
  2380. cat >&5 <<_ACEOF
  2381. ## ----------- ##
  2382. ## Core tests. ##
  2383. ## ----------- ##
  2384. _ACEOF
  2385. # Keep a trace of the command line.
  2386. # Strip out --no-create and --no-recursion so they do not pile up.
  2387. # Strip out --silent because we don't want to record it for future runs.
  2388. # Also quote any args containing shell meta-characters.
  2389. # Make two passes to allow for proper duplicate-argument suppression.
  2390. ac_configure_args=
  2391. ac_configure_args0=
  2392. ac_configure_args1=
  2393. ac_must_keep_next=false
  2394. for ac_pass in 1 2
  2395. do
  2396. for ac_arg
  2397. do
  2398. case $ac_arg in
  2399. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2401. | -silent | --silent | --silen | --sile | --sil)
  2402. continue ;;
  2403. *\'*)
  2404. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2405. esac
  2406. case $ac_pass in
  2407. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2408. 2)
  2409. as_fn_append ac_configure_args1 " '$ac_arg'"
  2410. if test $ac_must_keep_next = true; then
  2411. ac_must_keep_next=false # Got value, back to normal.
  2412. else
  2413. case $ac_arg in
  2414. *=* | --config-cache | -C | -disable-* | --disable-* \
  2415. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2416. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2417. | -with-* | --with-* | -without-* | --without-* | --x)
  2418. case "$ac_configure_args0 " in
  2419. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2420. esac
  2421. ;;
  2422. -* ) ac_must_keep_next=true ;;
  2423. esac
  2424. fi
  2425. as_fn_append ac_configure_args " '$ac_arg'"
  2426. ;;
  2427. esac
  2428. done
  2429. done
  2430. { ac_configure_args0=; unset ac_configure_args0;}
  2431. { ac_configure_args1=; unset ac_configure_args1;}
  2432. # When interrupted or exit'd, cleanup temporary files, and complete
  2433. # config.log. We remove comments because anyway the quotes in there
  2434. # would cause problems or look ugly.
  2435. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2436. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2437. trap 'exit_status=$?
  2438. # Sanitize IFS.
  2439. IFS=" "" $as_nl"
  2440. # Save into config.log some information that might help in debugging.
  2441. {
  2442. echo
  2443. printf "%s\n" "## ---------------- ##
  2444. ## Cache variables. ##
  2445. ## ---------------- ##"
  2446. echo
  2447. # The following way of writing the cache mishandles newlines in values,
  2448. (
  2449. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2450. eval ac_val=\$$ac_var
  2451. case $ac_val in #(
  2452. *${as_nl}*)
  2453. case $ac_var in #(
  2454. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2455. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2456. esac
  2457. case $ac_var in #(
  2458. _ | IFS | as_nl) ;; #(
  2459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2460. *) { eval $ac_var=; unset $ac_var;} ;;
  2461. esac ;;
  2462. esac
  2463. done
  2464. (set) 2>&1 |
  2465. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2466. *${as_nl}ac_space=\ *)
  2467. sed -n \
  2468. "s/'\''/'\''\\\\'\'''\''/g;
  2469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2470. ;; #(
  2471. *)
  2472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2473. ;;
  2474. esac |
  2475. sort
  2476. )
  2477. echo
  2478. printf "%s\n" "## ----------------- ##
  2479. ## Output variables. ##
  2480. ## ----------------- ##"
  2481. echo
  2482. for ac_var in $ac_subst_vars
  2483. do
  2484. eval ac_val=\$$ac_var
  2485. case $ac_val in
  2486. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2487. esac
  2488. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2489. done | sort
  2490. echo
  2491. if test -n "$ac_subst_files"; then
  2492. printf "%s\n" "## ------------------- ##
  2493. ## File substitutions. ##
  2494. ## ------------------- ##"
  2495. echo
  2496. for ac_var in $ac_subst_files
  2497. do
  2498. eval ac_val=\$$ac_var
  2499. case $ac_val in
  2500. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2501. esac
  2502. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2503. done | sort
  2504. echo
  2505. fi
  2506. if test -s confdefs.h; then
  2507. printf "%s\n" "## ----------- ##
  2508. ## confdefs.h. ##
  2509. ## ----------- ##"
  2510. echo
  2511. cat confdefs.h
  2512. echo
  2513. fi
  2514. test "$ac_signal" != 0 &&
  2515. printf "%s\n" "$as_me: caught signal $ac_signal"
  2516. printf "%s\n" "$as_me: exit $exit_status"
  2517. } >&5
  2518. rm -f core *.core core.conftest.* &&
  2519. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2520. exit $exit_status
  2521. ' 0
  2522. for ac_signal in 1 2 13 15; do
  2523. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2524. done
  2525. ac_signal=0
  2526. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2527. rm -f -r conftest* confdefs.h
  2528. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2529. # Predefined preprocessor variables.
  2530. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2531. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2532. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2533. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2534. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2535. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2536. # Let the site file select an alternate cache file if it wants to.
  2537. # Prefer an explicitly selected file to automatically selected ones.
  2538. if test -n "$CONFIG_SITE"; then
  2539. ac_site_files="$CONFIG_SITE"
  2540. elif test "x$prefix" != xNONE; then
  2541. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2542. else
  2543. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2544. fi
  2545. for ac_site_file in $ac_site_files
  2546. do
  2547. case $ac_site_file in #(
  2548. */*) :
  2549. ;; #(
  2550. *) :
  2551. ac_site_file=./$ac_site_file ;;
  2552. esac
  2553. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2555. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2556. sed 's/^/| /' "$ac_site_file" >&5
  2557. . "$ac_site_file" \
  2558. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. as_fn_error $? "failed to load site script $ac_site_file
  2561. See \`config.log' for more details" "$LINENO" 5; }
  2562. fi
  2563. done
  2564. if test -r "$cache_file"; then
  2565. # Some versions of bash will fail to source /dev/null (special files
  2566. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2567. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2569. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2570. case $cache_file in
  2571. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2572. *) . "./$cache_file";;
  2573. esac
  2574. fi
  2575. else
  2576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2577. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2578. >$cache_file
  2579. fi
  2580. # Test code for whether the C compiler supports C89 (global declarations)
  2581. ac_c_conftest_c89_globals='
  2582. /* Does the compiler advertise C89 conformance?
  2583. Do not test the value of __STDC__, because some compilers set it to 0
  2584. while being otherwise adequately conformant. */
  2585. #if !defined __STDC__
  2586. # error "Compiler does not advertise C89 conformance"
  2587. #endif
  2588. #include <stddef.h>
  2589. #include <stdarg.h>
  2590. struct stat;
  2591. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2592. struct buf { int x; };
  2593. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2594. static char *e (p, i)
  2595. char **p;
  2596. int i;
  2597. {
  2598. return p[i];
  2599. }
  2600. static char *f (char * (*g) (char **, int), char **p, ...)
  2601. {
  2602. char *s;
  2603. va_list v;
  2604. va_start (v,p);
  2605. s = g (p, va_arg (v,int));
  2606. va_end (v);
  2607. return s;
  2608. }
  2609. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2610. function prototypes and stuff, but not \xHH hex character constants.
  2611. These do not provoke an error unfortunately, instead are silently treated
  2612. as an "x". The following induces an error, until -std is added to get
  2613. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2614. array size at least. It is necessary to write \x00 == 0 to get something
  2615. that is true only with -std. */
  2616. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2617. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2618. inside strings and character constants. */
  2619. #define FOO(x) '\''x'\''
  2620. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2621. int test (int i, double x);
  2622. struct s1 {int (*f) (int a);};
  2623. struct s2 {int (*f) (double a);};
  2624. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2625. int, int);'
  2626. # Test code for whether the C compiler supports C89 (body of main).
  2627. ac_c_conftest_c89_main='
  2628. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2629. '
  2630. # Test code for whether the C compiler supports C99 (global declarations)
  2631. ac_c_conftest_c99_globals='
  2632. // Does the compiler advertise C99 conformance?
  2633. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2634. # error "Compiler does not advertise C99 conformance"
  2635. #endif
  2636. #include <stdbool.h>
  2637. extern int puts (const char *);
  2638. extern int printf (const char *, ...);
  2639. extern int dprintf (int, const char *, ...);
  2640. extern void *malloc (size_t);
  2641. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2642. // dprintf is used instead of fprintf to avoid needing to declare
  2643. // FILE and stderr.
  2644. #define debug(...) dprintf (2, __VA_ARGS__)
  2645. #define showlist(...) puts (#__VA_ARGS__)
  2646. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2647. static void
  2648. test_varargs_macros (void)
  2649. {
  2650. int x = 1234;
  2651. int y = 5678;
  2652. debug ("Flag");
  2653. debug ("X = %d\n", x);
  2654. showlist (The first, second, and third items.);
  2655. report (x>y, "x is %d but y is %d", x, y);
  2656. }
  2657. // Check long long types.
  2658. #define BIG64 18446744073709551615ull
  2659. #define BIG32 4294967295ul
  2660. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2661. #if !BIG_OK
  2662. #error "your preprocessor is broken"
  2663. #endif
  2664. #if BIG_OK
  2665. #else
  2666. #error "your preprocessor is broken"
  2667. #endif
  2668. static long long int bignum = -9223372036854775807LL;
  2669. static unsigned long long int ubignum = BIG64;
  2670. struct incomplete_array
  2671. {
  2672. int datasize;
  2673. double data[];
  2674. };
  2675. struct named_init {
  2676. int number;
  2677. const wchar_t *name;
  2678. double average;
  2679. };
  2680. typedef const char *ccp;
  2681. static inline int
  2682. test_restrict (ccp restrict text)
  2683. {
  2684. // See if C++-style comments work.
  2685. // Iterate through items via the restricted pointer.
  2686. // Also check for declarations in for loops.
  2687. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2688. continue;
  2689. return 0;
  2690. }
  2691. // Check varargs and va_copy.
  2692. static bool
  2693. test_varargs (const char *format, ...)
  2694. {
  2695. va_list args;
  2696. va_start (args, format);
  2697. va_list args_copy;
  2698. va_copy (args_copy, args);
  2699. const char *str = "";
  2700. int number = 0;
  2701. float fnumber = 0;
  2702. while (*format)
  2703. {
  2704. switch (*format++)
  2705. {
  2706. case '\''s'\'': // string
  2707. str = va_arg (args_copy, const char *);
  2708. break;
  2709. case '\''d'\'': // int
  2710. number = va_arg (args_copy, int);
  2711. break;
  2712. case '\''f'\'': // float
  2713. fnumber = va_arg (args_copy, double);
  2714. break;
  2715. default:
  2716. break;
  2717. }
  2718. }
  2719. va_end (args_copy);
  2720. va_end (args);
  2721. return *str && number && fnumber;
  2722. }
  2723. '
  2724. # Test code for whether the C compiler supports C99 (body of main).
  2725. ac_c_conftest_c99_main='
  2726. // Check bool.
  2727. _Bool success = false;
  2728. success |= (argc != 0);
  2729. // Check restrict.
  2730. if (test_restrict ("String literal") == 0)
  2731. success = true;
  2732. char *restrict newvar = "Another string";
  2733. // Check varargs.
  2734. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2735. test_varargs_macros ();
  2736. // Check flexible array members.
  2737. struct incomplete_array *ia =
  2738. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2739. ia->datasize = 10;
  2740. for (int i = 0; i < ia->datasize; ++i)
  2741. ia->data[i] = i * 1.234;
  2742. // Check named initializers.
  2743. struct named_init ni = {
  2744. .number = 34,
  2745. .name = L"Test wide string",
  2746. .average = 543.34343,
  2747. };
  2748. ni.number = 58;
  2749. int dynamic_array[ni.number];
  2750. dynamic_array[0] = argv[0][0];
  2751. dynamic_array[ni.number - 1] = 543;
  2752. // work around unused variable warnings
  2753. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2754. || dynamic_array[ni.number - 1] != 543);
  2755. '
  2756. # Test code for whether the C compiler supports C11 (global declarations)
  2757. ac_c_conftest_c11_globals='
  2758. // Does the compiler advertise C11 conformance?
  2759. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2760. # error "Compiler does not advertise C11 conformance"
  2761. #endif
  2762. // Check _Alignas.
  2763. char _Alignas (double) aligned_as_double;
  2764. char _Alignas (0) no_special_alignment;
  2765. extern char aligned_as_int;
  2766. char _Alignas (0) _Alignas (int) aligned_as_int;
  2767. // Check _Alignof.
  2768. enum
  2769. {
  2770. int_alignment = _Alignof (int),
  2771. int_array_alignment = _Alignof (int[100]),
  2772. char_alignment = _Alignof (char)
  2773. };
  2774. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2775. // Check _Noreturn.
  2776. int _Noreturn does_not_return (void) { for (;;) continue; }
  2777. // Check _Static_assert.
  2778. struct test_static_assert
  2779. {
  2780. int x;
  2781. _Static_assert (sizeof (int) <= sizeof (long int),
  2782. "_Static_assert does not work in struct");
  2783. long int y;
  2784. };
  2785. // Check UTF-8 literals.
  2786. #define u8 syntax error!
  2787. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2788. // Check duplicate typedefs.
  2789. typedef long *long_ptr;
  2790. typedef long int *long_ptr;
  2791. typedef long_ptr long_ptr;
  2792. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2793. struct anonymous
  2794. {
  2795. union {
  2796. struct { int i; int j; };
  2797. struct { int k; long int l; } w;
  2798. };
  2799. int m;
  2800. } v1;
  2801. '
  2802. # Test code for whether the C compiler supports C11 (body of main).
  2803. ac_c_conftest_c11_main='
  2804. _Static_assert ((offsetof (struct anonymous, i)
  2805. == offsetof (struct anonymous, w.k)),
  2806. "Anonymous union alignment botch");
  2807. v1.i = 2;
  2808. v1.w.k = 5;
  2809. ok |= v1.i != 5;
  2810. '
  2811. # Test code for whether the C compiler supports C11 (complete).
  2812. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2813. ${ac_c_conftest_c99_globals}
  2814. ${ac_c_conftest_c11_globals}
  2815. int
  2816. main (int argc, char **argv)
  2817. {
  2818. int ok = 0;
  2819. ${ac_c_conftest_c89_main}
  2820. ${ac_c_conftest_c99_main}
  2821. ${ac_c_conftest_c11_main}
  2822. return ok;
  2823. }
  2824. "
  2825. # Test code for whether the C compiler supports C99 (complete).
  2826. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2827. ${ac_c_conftest_c99_globals}
  2828. int
  2829. main (int argc, char **argv)
  2830. {
  2831. int ok = 0;
  2832. ${ac_c_conftest_c89_main}
  2833. ${ac_c_conftest_c99_main}
  2834. return ok;
  2835. }
  2836. "
  2837. # Test code for whether the C compiler supports C89 (complete).
  2838. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2839. int
  2840. main (int argc, char **argv)
  2841. {
  2842. int ok = 0;
  2843. ${ac_c_conftest_c89_main}
  2844. return ok;
  2845. }
  2846. "
  2847. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2848. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2849. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2850. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2851. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2852. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2853. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2854. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2855. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2856. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2857. ac_cxx_conftest_cxx98_globals='
  2858. // Does the compiler advertise C++98 conformance?
  2859. #if !defined __cplusplus || __cplusplus < 199711L
  2860. # error "Compiler does not advertise C++98 conformance"
  2861. #endif
  2862. // These inclusions are to reject old compilers that
  2863. // lack the unsuffixed header files.
  2864. #include <cstdlib>
  2865. #include <exception>
  2866. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2867. extern void assert (int);
  2868. namespace std {
  2869. extern int strcmp (const char *, const char *);
  2870. }
  2871. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2872. using std::exception;
  2873. using std::strcmp;
  2874. namespace {
  2875. void test_exception_syntax()
  2876. {
  2877. try {
  2878. throw "test";
  2879. } catch (const char *s) {
  2880. // Extra parentheses suppress a warning when building autoconf itself,
  2881. // due to lint rules shared with more typical C programs.
  2882. assert (!(strcmp) (s, "test"));
  2883. }
  2884. }
  2885. template <typename T> struct test_template
  2886. {
  2887. T const val;
  2888. explicit test_template(T t) : val(t) {}
  2889. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2890. };
  2891. } // anonymous namespace
  2892. '
  2893. # Test code for whether the C++ compiler supports C++98 (body of main)
  2894. ac_cxx_conftest_cxx98_main='
  2895. assert (argc);
  2896. assert (! argv[0]);
  2897. {
  2898. test_exception_syntax ();
  2899. test_template<double> tt (2.0);
  2900. assert (tt.add (4) == 6.0);
  2901. assert (true && !false);
  2902. }
  2903. '
  2904. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2905. ac_cxx_conftest_cxx11_globals='
  2906. // Does the compiler advertise C++ 2011 conformance?
  2907. #if !defined __cplusplus || __cplusplus < 201103L
  2908. # error "Compiler does not advertise C++11 conformance"
  2909. #endif
  2910. namespace cxx11test
  2911. {
  2912. constexpr int get_val() { return 20; }
  2913. struct testinit
  2914. {
  2915. int i;
  2916. double d;
  2917. };
  2918. class delegate
  2919. {
  2920. public:
  2921. delegate(int n) : n(n) {}
  2922. delegate(): delegate(2354) {}
  2923. virtual int getval() { return this->n; };
  2924. protected:
  2925. int n;
  2926. };
  2927. class overridden : public delegate
  2928. {
  2929. public:
  2930. overridden(int n): delegate(n) {}
  2931. virtual int getval() override final { return this->n * 2; }
  2932. };
  2933. class nocopy
  2934. {
  2935. public:
  2936. nocopy(int i): i(i) {}
  2937. nocopy() = default;
  2938. nocopy(const nocopy&) = delete;
  2939. nocopy & operator=(const nocopy&) = delete;
  2940. private:
  2941. int i;
  2942. };
  2943. // for testing lambda expressions
  2944. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2945. {
  2946. return f(v);
  2947. }
  2948. // for testing variadic templates and trailing return types
  2949. template <typename V> auto sum(V first) -> V
  2950. {
  2951. return first;
  2952. }
  2953. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2954. {
  2955. return first + sum(rest...);
  2956. }
  2957. }
  2958. '
  2959. # Test code for whether the C++ compiler supports C++11 (body of main)
  2960. ac_cxx_conftest_cxx11_main='
  2961. {
  2962. // Test auto and decltype
  2963. auto a1 = 6538;
  2964. auto a2 = 48573953.4;
  2965. auto a3 = "String literal";
  2966. int total = 0;
  2967. for (auto i = a3; *i; ++i) { total += *i; }
  2968. decltype(a2) a4 = 34895.034;
  2969. }
  2970. {
  2971. // Test constexpr
  2972. short sa[cxx11test::get_val()] = { 0 };
  2973. }
  2974. {
  2975. // Test initializer lists
  2976. cxx11test::testinit il = { 4323, 435234.23544 };
  2977. }
  2978. {
  2979. // Test range-based for
  2980. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2981. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2982. for (auto &x : array) { x += 23; }
  2983. }
  2984. {
  2985. // Test lambda expressions
  2986. using cxx11test::eval;
  2987. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2988. double d = 2.0;
  2989. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2990. assert (d == 5.0);
  2991. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2992. assert (d == 5.0);
  2993. }
  2994. {
  2995. // Test use of variadic templates
  2996. using cxx11test::sum;
  2997. auto a = sum(1);
  2998. auto b = sum(1, 2);
  2999. auto c = sum(1.0, 2.0, 3.0);
  3000. }
  3001. {
  3002. // Test constructor delegation
  3003. cxx11test::delegate d1;
  3004. cxx11test::delegate d2();
  3005. cxx11test::delegate d3(45);
  3006. }
  3007. {
  3008. // Test override and final
  3009. cxx11test::overridden o1(55464);
  3010. }
  3011. {
  3012. // Test nullptr
  3013. char *c = nullptr;
  3014. }
  3015. {
  3016. // Test template brackets
  3017. test_template<::test_template<int>> v(test_template<int>(12));
  3018. }
  3019. {
  3020. // Unicode literals
  3021. char const *utf8 = u8"UTF-8 string \u2500";
  3022. char16_t const *utf16 = u"UTF-8 string \u2500";
  3023. char32_t const *utf32 = U"UTF-32 string \u2500";
  3024. }
  3025. '
  3026. # Test code for whether the C compiler supports C++11 (complete).
  3027. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3028. ${ac_cxx_conftest_cxx11_globals}
  3029. int
  3030. main (int argc, char **argv)
  3031. {
  3032. int ok = 0;
  3033. ${ac_cxx_conftest_cxx98_main}
  3034. ${ac_cxx_conftest_cxx11_main}
  3035. return ok;
  3036. }
  3037. "
  3038. # Test code for whether the C compiler supports C++98 (complete).
  3039. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3040. int
  3041. main (int argc, char **argv)
  3042. {
  3043. int ok = 0;
  3044. ${ac_cxx_conftest_cxx98_main}
  3045. return ok;
  3046. }
  3047. "
  3048. # Auxiliary files required by this configure script.
  3049. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3050. # Locations in which to look for auxiliary files.
  3051. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3052. # Search for a directory containing all of the required auxiliary files,
  3053. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3054. # If we don't find one directory that contains all the files we need,
  3055. # we report the set of missing files from the *first* directory in
  3056. # $ac_aux_dir_candidates and give up.
  3057. ac_missing_aux_files=""
  3058. ac_first_candidate=:
  3059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3061. as_found=false
  3062. for as_dir in $ac_aux_dir_candidates
  3063. do
  3064. IFS=$as_save_IFS
  3065. case $as_dir in #(((
  3066. '') as_dir=./ ;;
  3067. */) ;;
  3068. *) as_dir=$as_dir/ ;;
  3069. esac
  3070. as_found=:
  3071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3072. ac_aux_dir_found=yes
  3073. ac_install_sh=
  3074. for ac_aux in $ac_aux_files
  3075. do
  3076. # As a special case, if "install-sh" is required, that requirement
  3077. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3078. # and $ac_install_sh is set appropriately for whichever one is found.
  3079. if test x"$ac_aux" = x"install-sh"
  3080. then
  3081. if test -f "${as_dir}install-sh"; then
  3082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3083. ac_install_sh="${as_dir}install-sh -c"
  3084. elif test -f "${as_dir}install.sh"; then
  3085. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3086. ac_install_sh="${as_dir}install.sh -c"
  3087. elif test -f "${as_dir}shtool"; then
  3088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3089. ac_install_sh="${as_dir}shtool install -c"
  3090. else
  3091. ac_aux_dir_found=no
  3092. if $ac_first_candidate; then
  3093. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3094. else
  3095. break
  3096. fi
  3097. fi
  3098. else
  3099. if test -f "${as_dir}${ac_aux}"; then
  3100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3101. else
  3102. ac_aux_dir_found=no
  3103. if $ac_first_candidate; then
  3104. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3105. else
  3106. break
  3107. fi
  3108. fi
  3109. fi
  3110. done
  3111. if test "$ac_aux_dir_found" = yes; then
  3112. ac_aux_dir="$as_dir"
  3113. break
  3114. fi
  3115. ac_first_candidate=false
  3116. as_found=false
  3117. done
  3118. IFS=$as_save_IFS
  3119. if $as_found
  3120. then :
  3121. else $as_nop
  3122. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3123. fi
  3124. # These three variables are undocumented and unsupported,
  3125. # and are intended to be withdrawn in a future Autoconf release.
  3126. # They can cause serious problems if a builder's source tree is in a directory
  3127. # whose full name contains unusual characters.
  3128. if test -f "${ac_aux_dir}config.guess"; then
  3129. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3130. fi
  3131. if test -f "${ac_aux_dir}config.sub"; then
  3132. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3133. fi
  3134. if test -f "$ac_aux_dir/configure"; then
  3135. ac_configure="$SHELL ${ac_aux_dir}configure"
  3136. fi
  3137. # Check that the precious variables saved in the cache have kept the same
  3138. # value.
  3139. ac_cache_corrupted=false
  3140. for ac_var in $ac_precious_vars; do
  3141. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3142. eval ac_new_set=\$ac_env_${ac_var}_set
  3143. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3144. eval ac_new_val=\$ac_env_${ac_var}_value
  3145. case $ac_old_set,$ac_new_set in
  3146. set,)
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3148. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3149. ac_cache_corrupted=: ;;
  3150. ,set)
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3152. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3153. ac_cache_corrupted=: ;;
  3154. ,);;
  3155. *)
  3156. if test "x$ac_old_val" != "x$ac_new_val"; then
  3157. # differences in whitespace do not lead to failure.
  3158. ac_old_val_w=`echo x $ac_old_val`
  3159. ac_new_val_w=`echo x $ac_new_val`
  3160. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3162. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3163. ac_cache_corrupted=:
  3164. else
  3165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3166. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3167. eval $ac_var=\$ac_old_val
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3170. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3172. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3173. fi;;
  3174. esac
  3175. # Pass precious variables to config.status.
  3176. if test "$ac_new_set" = set; then
  3177. case $ac_new_val in
  3178. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3179. *) ac_arg=$ac_var=$ac_new_val ;;
  3180. esac
  3181. case " $ac_configure_args " in
  3182. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3183. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3184. esac
  3185. fi
  3186. done
  3187. if $ac_cache_corrupted; then
  3188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3191. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3192. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3193. and start over" "$LINENO" 5
  3194. fi
  3195. ## -------------------- ##
  3196. ## Main body of script. ##
  3197. ## -------------------- ##
  3198. ac_ext=c
  3199. ac_cpp='$CPP $CPPFLAGS'
  3200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3203. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3204. orig_CFLAGS="$CFLAGS"
  3205. # See docs/release_checklist.md
  3206. SDL_MAJOR_VERSION=2
  3207. SDL_MINOR_VERSION=32
  3208. SDL_MICRO_VERSION=10
  3209. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3210. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3211. case "$SDL_MINOR_VERSION" in #(
  3212. *[02468]) :
  3213. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3214. *) :
  3215. SDL_INTERFACE_AGE=0 ;; #(
  3216. *) :
  3217. ;;
  3218. esac
  3219. # libtool versioning
  3220. case `pwd` in
  3221. *\ * | *\ *)
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3223. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3224. esac
  3225. macro_version='2.4.6'
  3226. macro_revision='2.4.6'
  3227. ltmain=$ac_aux_dir/ltmain.sh
  3228. # Make sure we can run config.sub.
  3229. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3230. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3232. printf %s "checking build system type... " >&6; }
  3233. if test ${ac_cv_build+y}
  3234. then :
  3235. printf %s "(cached) " >&6
  3236. else $as_nop
  3237. ac_build_alias=$build_alias
  3238. test "x$ac_build_alias" = x &&
  3239. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3240. test "x$ac_build_alias" = x &&
  3241. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3242. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3243. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3244. fi
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3246. printf "%s\n" "$ac_cv_build" >&6; }
  3247. case $ac_cv_build in
  3248. *-*-*) ;;
  3249. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3250. esac
  3251. build=$ac_cv_build
  3252. ac_save_IFS=$IFS; IFS='-'
  3253. set x $ac_cv_build
  3254. shift
  3255. build_cpu=$1
  3256. build_vendor=$2
  3257. shift; shift
  3258. # Remember, the first character of IFS is used to create $*,
  3259. # except with old shells:
  3260. build_os=$*
  3261. IFS=$ac_save_IFS
  3262. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3264. printf %s "checking host system type... " >&6; }
  3265. if test ${ac_cv_host+y}
  3266. then :
  3267. printf %s "(cached) " >&6
  3268. else $as_nop
  3269. if test "x$host_alias" = x; then
  3270. ac_cv_host=$ac_cv_build
  3271. else
  3272. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3273. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3274. fi
  3275. fi
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3277. printf "%s\n" "$ac_cv_host" >&6; }
  3278. case $ac_cv_host in
  3279. *-*-*) ;;
  3280. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3281. esac
  3282. host=$ac_cv_host
  3283. ac_save_IFS=$IFS; IFS='-'
  3284. set x $ac_cv_host
  3285. shift
  3286. host_cpu=$1
  3287. host_vendor=$2
  3288. shift; shift
  3289. # Remember, the first character of IFS is used to create $*,
  3290. # except with old shells:
  3291. host_os=$*
  3292. IFS=$ac_save_IFS
  3293. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3294. # Backslashify metacharacters that are still active within
  3295. # double-quoted strings.
  3296. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3297. # Same as above, but do not quote variable references.
  3298. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3299. # Sed substitution to delay expansion of an escaped shell variable in a
  3300. # double_quote_subst'ed string.
  3301. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3302. # Sed substitution to delay expansion of an escaped single quote.
  3303. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3304. # Sed substitution to avoid accidental globbing in evaled expressions
  3305. no_glob_subst='s/\*/\\\*/g'
  3306. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3307. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3308. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3310. printf %s "checking how to print strings... " >&6; }
  3311. # Test print first, because it will be a builtin if present.
  3312. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3313. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3314. ECHO='print -r --'
  3315. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3316. ECHO='printf %s\n'
  3317. else
  3318. # Use this function as a fallback that always works.
  3319. func_fallback_echo ()
  3320. {
  3321. eval 'cat <<_LTECHO_EOF
  3322. $1
  3323. _LTECHO_EOF'
  3324. }
  3325. ECHO='func_fallback_echo'
  3326. fi
  3327. # func_echo_all arg...
  3328. # Invoke $ECHO with all args, space-separated.
  3329. func_echo_all ()
  3330. {
  3331. $ECHO ""
  3332. }
  3333. case $ECHO in
  3334. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3335. printf "%s\n" "printf" >&6; } ;;
  3336. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3337. printf "%s\n" "print -r" >&6; } ;;
  3338. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3339. printf "%s\n" "cat" >&6; } ;;
  3340. esac
  3341. ac_ext=c
  3342. ac_cpp='$CPP $CPPFLAGS'
  3343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3346. if test -n "$ac_tool_prefix"; then
  3347. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3348. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3350. printf %s "checking for $ac_word... " >&6; }
  3351. if test ${ac_cv_prog_CC+y}
  3352. then :
  3353. printf %s "(cached) " >&6
  3354. else $as_nop
  3355. if test -n "$CC"; then
  3356. ac_cv_prog_CC="$CC" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. case $as_dir in #(((
  3363. '') as_dir=./ ;;
  3364. */) ;;
  3365. *) as_dir=$as_dir/ ;;
  3366. esac
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3369. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. fi
  3377. fi
  3378. CC=$ac_cv_prog_CC
  3379. if test -n "$CC"; then
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3381. printf "%s\n" "$CC" >&6; }
  3382. else
  3383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3384. printf "%s\n" "no" >&6; }
  3385. fi
  3386. fi
  3387. if test -z "$ac_cv_prog_CC"; then
  3388. ac_ct_CC=$CC
  3389. # Extract the first word of "gcc", so it can be a program name with args.
  3390. set dummy gcc; ac_word=$2
  3391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3392. printf %s "checking for $ac_word... " >&6; }
  3393. if test ${ac_cv_prog_ac_ct_CC+y}
  3394. then :
  3395. printf %s "(cached) " >&6
  3396. else $as_nop
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. case $as_dir in #(((
  3405. '') as_dir=./ ;;
  3406. */) ;;
  3407. *) as_dir=$as_dir/ ;;
  3408. esac
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3411. ac_cv_prog_ac_ct_CC="gcc"
  3412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3421. if test -n "$ac_ct_CC"; then
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3423. printf "%s\n" "$ac_ct_CC" >&6; }
  3424. else
  3425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. printf "%s\n" "no" >&6; }
  3427. fi
  3428. if test "x$ac_ct_CC" = x; then
  3429. CC=""
  3430. else
  3431. case $cross_compiling:$ac_tool_warned in
  3432. yes:)
  3433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3434. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3435. ac_tool_warned=yes ;;
  3436. esac
  3437. CC=$ac_ct_CC
  3438. fi
  3439. else
  3440. CC="$ac_cv_prog_CC"
  3441. fi
  3442. if test -z "$CC"; then
  3443. if test -n "$ac_tool_prefix"; then
  3444. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3445. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3447. printf %s "checking for $ac_word... " >&6; }
  3448. if test ${ac_cv_prog_CC+y}
  3449. then :
  3450. printf %s "(cached) " >&6
  3451. else $as_nop
  3452. if test -n "$CC"; then
  3453. ac_cv_prog_CC="$CC" # Let the user override the test.
  3454. else
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. case $as_dir in #(((
  3460. '') as_dir=./ ;;
  3461. */) ;;
  3462. *) as_dir=$as_dir/ ;;
  3463. esac
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3466. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3468. break 2
  3469. fi
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. fi
  3474. fi
  3475. CC=$ac_cv_prog_CC
  3476. if test -n "$CC"; then
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3478. printf "%s\n" "$CC" >&6; }
  3479. else
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3481. printf "%s\n" "no" >&6; }
  3482. fi
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. # Extract the first word of "cc", so it can be a program name with args.
  3487. set dummy cc; ac_word=$2
  3488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3489. printf %s "checking for $ac_word... " >&6; }
  3490. if test ${ac_cv_prog_CC+y}
  3491. then :
  3492. printf %s "(cached) " >&6
  3493. else $as_nop
  3494. if test -n "$CC"; then
  3495. ac_cv_prog_CC="$CC" # Let the user override the test.
  3496. else
  3497. ac_prog_rejected=no
  3498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3499. for as_dir in $PATH
  3500. do
  3501. IFS=$as_save_IFS
  3502. case $as_dir in #(((
  3503. '') as_dir=./ ;;
  3504. */) ;;
  3505. *) as_dir=$as_dir/ ;;
  3506. esac
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3509. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3510. ac_prog_rejected=yes
  3511. continue
  3512. fi
  3513. ac_cv_prog_CC="cc"
  3514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3515. break 2
  3516. fi
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test $ac_prog_rejected = yes; then
  3521. # We found a bogon in the path, so make sure we never use it.
  3522. set dummy $ac_cv_prog_CC
  3523. shift
  3524. if test $# != 0; then
  3525. # We chose a different compiler from the bogus one.
  3526. # However, it has the same basename, so the bogon will be chosen
  3527. # first if we set CC to just the basename; use the full file name.
  3528. shift
  3529. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3530. fi
  3531. fi
  3532. fi
  3533. fi
  3534. CC=$ac_cv_prog_CC
  3535. if test -n "$CC"; then
  3536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3537. printf "%s\n" "$CC" >&6; }
  3538. else
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. printf "%s\n" "no" >&6; }
  3541. fi
  3542. fi
  3543. if test -z "$CC"; then
  3544. if test -n "$ac_tool_prefix"; then
  3545. for ac_prog in cl.exe
  3546. do
  3547. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3548. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3550. printf %s "checking for $ac_word... " >&6; }
  3551. if test ${ac_cv_prog_CC+y}
  3552. then :
  3553. printf %s "(cached) " >&6
  3554. else $as_nop
  3555. if test -n "$CC"; then
  3556. ac_cv_prog_CC="$CC" # Let the user override the test.
  3557. else
  3558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3559. for as_dir in $PATH
  3560. do
  3561. IFS=$as_save_IFS
  3562. case $as_dir in #(((
  3563. '') as_dir=./ ;;
  3564. */) ;;
  3565. *) as_dir=$as_dir/ ;;
  3566. esac
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3569. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3570. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3571. break 2
  3572. fi
  3573. done
  3574. done
  3575. IFS=$as_save_IFS
  3576. fi
  3577. fi
  3578. CC=$ac_cv_prog_CC
  3579. if test -n "$CC"; then
  3580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3581. printf "%s\n" "$CC" >&6; }
  3582. else
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3584. printf "%s\n" "no" >&6; }
  3585. fi
  3586. test -n "$CC" && break
  3587. done
  3588. fi
  3589. if test -z "$CC"; then
  3590. ac_ct_CC=$CC
  3591. for ac_prog in cl.exe
  3592. do
  3593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3594. set dummy $ac_prog; ac_word=$2
  3595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. printf %s "checking for $ac_word... " >&6; }
  3597. if test ${ac_cv_prog_ac_ct_CC+y}
  3598. then :
  3599. printf %s "(cached) " >&6
  3600. else $as_nop
  3601. if test -n "$ac_ct_CC"; then
  3602. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. case $as_dir in #(((
  3609. '') as_dir=./ ;;
  3610. */) ;;
  3611. *) as_dir=$as_dir/ ;;
  3612. esac
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_prog"
  3616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3625. if test -n "$ac_ct_CC"; then
  3626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3627. printf "%s\n" "$ac_ct_CC" >&6; }
  3628. else
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. printf "%s\n" "no" >&6; }
  3631. fi
  3632. test -n "$ac_ct_CC" && break
  3633. done
  3634. if test "x$ac_ct_CC" = x; then
  3635. CC=""
  3636. else
  3637. case $cross_compiling:$ac_tool_warned in
  3638. yes:)
  3639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3640. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3641. ac_tool_warned=yes ;;
  3642. esac
  3643. CC=$ac_ct_CC
  3644. fi
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3650. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. printf %s "checking for $ac_word... " >&6; }
  3653. if test ${ac_cv_prog_CC+y}
  3654. then :
  3655. printf %s "(cached) " >&6
  3656. else $as_nop
  3657. if test -n "$CC"; then
  3658. ac_cv_prog_CC="$CC" # Let the user override the test.
  3659. else
  3660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3661. for as_dir in $PATH
  3662. do
  3663. IFS=$as_save_IFS
  3664. case $as_dir in #(((
  3665. '') as_dir=./ ;;
  3666. */) ;;
  3667. *) as_dir=$as_dir/ ;;
  3668. esac
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3671. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3673. break 2
  3674. fi
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. fi
  3679. fi
  3680. CC=$ac_cv_prog_CC
  3681. if test -n "$CC"; then
  3682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3683. printf "%s\n" "$CC" >&6; }
  3684. else
  3685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3686. printf "%s\n" "no" >&6; }
  3687. fi
  3688. fi
  3689. if test -z "$ac_cv_prog_CC"; then
  3690. ac_ct_CC=$CC
  3691. # Extract the first word of "clang", so it can be a program name with args.
  3692. set dummy clang; ac_word=$2
  3693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. printf %s "checking for $ac_word... " >&6; }
  3695. if test ${ac_cv_prog_ac_ct_CC+y}
  3696. then :
  3697. printf %s "(cached) " >&6
  3698. else $as_nop
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. case $as_dir in #(((
  3707. '') as_dir=./ ;;
  3708. */) ;;
  3709. *) as_dir=$as_dir/ ;;
  3710. esac
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_ac_ct_CC="clang"
  3714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3723. if test -n "$ac_ct_CC"; then
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3725. printf "%s\n" "$ac_ct_CC" >&6; }
  3726. else
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. printf "%s\n" "no" >&6; }
  3729. fi
  3730. if test "x$ac_ct_CC" = x; then
  3731. CC=""
  3732. else
  3733. case $cross_compiling:$ac_tool_warned in
  3734. yes:)
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3736. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3737. ac_tool_warned=yes ;;
  3738. esac
  3739. CC=$ac_ct_CC
  3740. fi
  3741. else
  3742. CC="$ac_cv_prog_CC"
  3743. fi
  3744. fi
  3745. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3746. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3747. as_fn_error $? "no acceptable C compiler found in \$PATH
  3748. See \`config.log' for more details" "$LINENO" 5; }
  3749. # Provide some information about the compiler.
  3750. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3751. set X $ac_compile
  3752. ac_compiler=$2
  3753. for ac_option in --version -v -V -qversion -version; do
  3754. { { ac_try="$ac_compiler $ac_option >&5"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3760. printf "%s\n" "$ac_try_echo"; } >&5
  3761. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3762. ac_status=$?
  3763. if test -s conftest.err; then
  3764. sed '10a\
  3765. ... rest of stderr output deleted ...
  3766. 10q' conftest.err >conftest.er1
  3767. cat conftest.er1 >&5
  3768. fi
  3769. rm -f conftest.er1 conftest.err
  3770. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3771. test $ac_status = 0; }
  3772. done
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main (void)
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. ac_clean_files_save=$ac_clean_files
  3783. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3784. # Try to create an executable without -o first, disregard a.out.
  3785. # It will help us diagnose broken compilers, and finding out an intuition
  3786. # of exeext.
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3788. printf %s "checking whether the C compiler works... " >&6; }
  3789. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3790. # The possible output files:
  3791. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3792. ac_rmfiles=
  3793. for ac_file in $ac_files
  3794. do
  3795. case $ac_file in
  3796. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3797. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3798. esac
  3799. done
  3800. rm -f $ac_rmfiles
  3801. if { { ac_try="$ac_link_default"
  3802. case "(($ac_try" in
  3803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3804. *) ac_try_echo=$ac_try;;
  3805. esac
  3806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3807. printf "%s\n" "$ac_try_echo"; } >&5
  3808. (eval "$ac_link_default") 2>&5
  3809. ac_status=$?
  3810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3811. test $ac_status = 0; }
  3812. then :
  3813. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3814. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3815. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3816. # so that the user can short-circuit this test for compilers unknown to
  3817. # Autoconf.
  3818. for ac_file in $ac_files ''
  3819. do
  3820. test -f "$ac_file" || continue
  3821. case $ac_file in
  3822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3823. ;;
  3824. [ab].out )
  3825. # We found the default executable, but exeext='' is most
  3826. # certainly right.
  3827. break;;
  3828. *.* )
  3829. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3830. then :; else
  3831. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3832. fi
  3833. # We set ac_cv_exeext here because the later test for it is not
  3834. # safe: cross compilers may not add the suffix if given an `-o'
  3835. # argument, so we may need to know it at that point already.
  3836. # Even if this section looks crufty: it has the advantage of
  3837. # actually working.
  3838. break;;
  3839. * )
  3840. break;;
  3841. esac
  3842. done
  3843. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3844. else $as_nop
  3845. ac_file=''
  3846. fi
  3847. if test -z "$ac_file"
  3848. then :
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3850. printf "%s\n" "no" >&6; }
  3851. printf "%s\n" "$as_me: failed program was:" >&5
  3852. sed 's/^/| /' conftest.$ac_ext >&5
  3853. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3854. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3855. as_fn_error 77 "C compiler cannot create executables
  3856. See \`config.log' for more details" "$LINENO" 5; }
  3857. else $as_nop
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. printf "%s\n" "yes" >&6; }
  3860. fi
  3861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3862. printf %s "checking for C compiler default output file name... " >&6; }
  3863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3864. printf "%s\n" "$ac_file" >&6; }
  3865. ac_exeext=$ac_cv_exeext
  3866. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3867. ac_clean_files=$ac_clean_files_save
  3868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3869. printf %s "checking for suffix of executables... " >&6; }
  3870. if { { ac_try="$ac_link"
  3871. case "(($ac_try" in
  3872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3873. *) ac_try_echo=$ac_try;;
  3874. esac
  3875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3876. printf "%s\n" "$ac_try_echo"; } >&5
  3877. (eval "$ac_link") 2>&5
  3878. ac_status=$?
  3879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3880. test $ac_status = 0; }
  3881. then :
  3882. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3883. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3884. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3885. # `rm'.
  3886. for ac_file in conftest.exe conftest conftest.*; do
  3887. test -f "$ac_file" || continue
  3888. case $ac_file in
  3889. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3890. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3891. break;;
  3892. * ) break;;
  3893. esac
  3894. done
  3895. else $as_nop
  3896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3897. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3898. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3899. See \`config.log' for more details" "$LINENO" 5; }
  3900. fi
  3901. rm -f conftest conftest$ac_cv_exeext
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3903. printf "%s\n" "$ac_cv_exeext" >&6; }
  3904. rm -f conftest.$ac_ext
  3905. EXEEXT=$ac_cv_exeext
  3906. ac_exeext=$EXEEXT
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <stdio.h>
  3910. int
  3911. main (void)
  3912. {
  3913. FILE *f = fopen ("conftest.out", "w");
  3914. return ferror (f) || fclose (f) != 0;
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. ac_clean_files="$ac_clean_files conftest.out"
  3920. # Check that the compiler produces executables we can run. If not, either
  3921. # the compiler is broken, or we cross compile.
  3922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3923. printf %s "checking whether we are cross compiling... " >&6; }
  3924. if test "$cross_compiling" != yes; then
  3925. { { ac_try="$ac_link"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. printf "%s\n" "$ac_try_echo"; } >&5
  3932. (eval "$ac_link") 2>&5
  3933. ac_status=$?
  3934. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3935. test $ac_status = 0; }
  3936. if { ac_try='./conftest$ac_cv_exeext'
  3937. { { case "(($ac_try" in
  3938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3939. *) ac_try_echo=$ac_try;;
  3940. esac
  3941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3942. printf "%s\n" "$ac_try_echo"; } >&5
  3943. (eval "$ac_try") 2>&5
  3944. ac_status=$?
  3945. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3946. test $ac_status = 0; }; }; then
  3947. cross_compiling=no
  3948. else
  3949. if test "$cross_compiling" = maybe; then
  3950. cross_compiling=yes
  3951. else
  3952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3953. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3954. as_fn_error 77 "cannot run C compiled programs.
  3955. If you meant to cross compile, use \`--host'.
  3956. See \`config.log' for more details" "$LINENO" 5; }
  3957. fi
  3958. fi
  3959. fi
  3960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3961. printf "%s\n" "$cross_compiling" >&6; }
  3962. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3963. ac_clean_files=$ac_clean_files_save
  3964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3965. printf %s "checking for suffix of object files... " >&6; }
  3966. if test ${ac_cv_objext+y}
  3967. then :
  3968. printf %s "(cached) " >&6
  3969. else $as_nop
  3970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3971. /* end confdefs.h. */
  3972. int
  3973. main (void)
  3974. {
  3975. ;
  3976. return 0;
  3977. }
  3978. _ACEOF
  3979. rm -f conftest.o conftest.obj
  3980. if { { ac_try="$ac_compile"
  3981. case "(($ac_try" in
  3982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3983. *) ac_try_echo=$ac_try;;
  3984. esac
  3985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3986. printf "%s\n" "$ac_try_echo"; } >&5
  3987. (eval "$ac_compile") 2>&5
  3988. ac_status=$?
  3989. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3990. test $ac_status = 0; }
  3991. then :
  3992. for ac_file in conftest.o conftest.obj conftest.*; do
  3993. test -f "$ac_file" || continue;
  3994. case $ac_file in
  3995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3997. break;;
  3998. esac
  3999. done
  4000. else $as_nop
  4001. printf "%s\n" "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4004. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4005. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4006. See \`config.log' for more details" "$LINENO" 5; }
  4007. fi
  4008. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4009. fi
  4010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4011. printf "%s\n" "$ac_cv_objext" >&6; }
  4012. OBJEXT=$ac_cv_objext
  4013. ac_objext=$OBJEXT
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4015. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4016. if test ${ac_cv_c_compiler_gnu+y}
  4017. then :
  4018. printf %s "(cached) " >&6
  4019. else $as_nop
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main (void)
  4024. {
  4025. #ifndef __GNUC__
  4026. choke me
  4027. #endif
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_compiler_gnu=yes
  4035. else $as_nop
  4036. ac_compiler_gnu=no
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4039. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4040. fi
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4042. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4044. if test $ac_compiler_gnu = yes; then
  4045. GCC=yes
  4046. else
  4047. GCC=
  4048. fi
  4049. ac_test_CFLAGS=${CFLAGS+y}
  4050. ac_save_CFLAGS=$CFLAGS
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4052. printf %s "checking whether $CC accepts -g... " >&6; }
  4053. if test ${ac_cv_prog_cc_g+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_save_c_werror_flag=$ac_c_werror_flag
  4058. ac_c_werror_flag=yes
  4059. ac_cv_prog_cc_g=no
  4060. CFLAGS="-g"
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. int
  4064. main (void)
  4065. {
  4066. ;
  4067. return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"
  4071. then :
  4072. ac_cv_prog_cc_g=yes
  4073. else $as_nop
  4074. CFLAGS=""
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main (void)
  4079. {
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. if ac_fn_c_try_compile "$LINENO"
  4085. then :
  4086. else $as_nop
  4087. ac_c_werror_flag=$ac_save_c_werror_flag
  4088. CFLAGS="-g"
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. int
  4092. main (void)
  4093. {
  4094. ;
  4095. return 0;
  4096. }
  4097. _ACEOF
  4098. if ac_fn_c_try_compile "$LINENO"
  4099. then :
  4100. ac_cv_prog_cc_g=yes
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4103. fi
  4104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4107. ac_c_werror_flag=$ac_save_c_werror_flag
  4108. fi
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4110. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4111. if test $ac_test_CFLAGS; then
  4112. CFLAGS=$ac_save_CFLAGS
  4113. elif test $ac_cv_prog_cc_g = yes; then
  4114. if test "$GCC" = yes; then
  4115. CFLAGS="-g -O2"
  4116. else
  4117. CFLAGS="-g"
  4118. fi
  4119. else
  4120. if test "$GCC" = yes; then
  4121. CFLAGS="-O2"
  4122. else
  4123. CFLAGS=
  4124. fi
  4125. fi
  4126. ac_prog_cc_stdc=no
  4127. if test x$ac_prog_cc_stdc = xno
  4128. then :
  4129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4130. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4131. if test ${ac_cv_prog_cc_c11+y}
  4132. then :
  4133. printf %s "(cached) " >&6
  4134. else $as_nop
  4135. ac_cv_prog_cc_c11=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. $ac_c_conftest_c11_program
  4140. _ACEOF
  4141. for ac_arg in '' -std=gnu11
  4142. do
  4143. CC="$ac_save_CC $ac_arg"
  4144. if ac_fn_c_try_compile "$LINENO"
  4145. then :
  4146. ac_cv_prog_cc_c11=$ac_arg
  4147. fi
  4148. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4149. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4150. done
  4151. rm -f conftest.$ac_ext
  4152. CC=$ac_save_CC
  4153. fi
  4154. if test "x$ac_cv_prog_cc_c11" = xno
  4155. then :
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4157. printf "%s\n" "unsupported" >&6; }
  4158. else $as_nop
  4159. if test "x$ac_cv_prog_cc_c11" = x
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4162. printf "%s\n" "none needed" >&6; }
  4163. else $as_nop
  4164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4165. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4166. CC="$CC $ac_cv_prog_cc_c11"
  4167. fi
  4168. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4169. ac_prog_cc_stdc=c11
  4170. fi
  4171. fi
  4172. if test x$ac_prog_cc_stdc = xno
  4173. then :
  4174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4175. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4176. if test ${ac_cv_prog_cc_c99+y}
  4177. then :
  4178. printf %s "(cached) " >&6
  4179. else $as_nop
  4180. ac_cv_prog_cc_c99=no
  4181. ac_save_CC=$CC
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. $ac_c_conftest_c99_program
  4185. _ACEOF
  4186. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"
  4190. then :
  4191. ac_cv_prog_cc_c99=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4194. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. if test "x$ac_cv_prog_cc_c99" = xno
  4200. then :
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4202. printf "%s\n" "unsupported" >&6; }
  4203. else $as_nop
  4204. if test "x$ac_cv_prog_cc_c99" = x
  4205. then :
  4206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4207. printf "%s\n" "none needed" >&6; }
  4208. else $as_nop
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4210. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4211. CC="$CC $ac_cv_prog_cc_c99"
  4212. fi
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4214. ac_prog_cc_stdc=c99
  4215. fi
  4216. fi
  4217. if test x$ac_prog_cc_stdc = xno
  4218. then :
  4219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4220. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4221. if test ${ac_cv_prog_cc_c89+y}
  4222. then :
  4223. printf %s "(cached) " >&6
  4224. else $as_nop
  4225. ac_cv_prog_cc_c89=no
  4226. ac_save_CC=$CC
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. $ac_c_conftest_c89_program
  4230. _ACEOF
  4231. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4232. do
  4233. CC="$ac_save_CC $ac_arg"
  4234. if ac_fn_c_try_compile "$LINENO"
  4235. then :
  4236. ac_cv_prog_cc_c89=$ac_arg
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4239. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4240. done
  4241. rm -f conftest.$ac_ext
  4242. CC=$ac_save_CC
  4243. fi
  4244. if test "x$ac_cv_prog_cc_c89" = xno
  4245. then :
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4247. printf "%s\n" "unsupported" >&6; }
  4248. else $as_nop
  4249. if test "x$ac_cv_prog_cc_c89" = x
  4250. then :
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4252. printf "%s\n" "none needed" >&6; }
  4253. else $as_nop
  4254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4255. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4256. CC="$CC $ac_cv_prog_cc_c89"
  4257. fi
  4258. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4259. ac_prog_cc_stdc=c89
  4260. fi
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4268. printf %s "checking for a sed that does not truncate output... " >&6; }
  4269. if test ${ac_cv_path_SED+y}
  4270. then :
  4271. printf %s "(cached) " >&6
  4272. else $as_nop
  4273. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4274. for ac_i in 1 2 3 4 5 6 7; do
  4275. ac_script="$ac_script$as_nl$ac_script"
  4276. done
  4277. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4278. { ac_script=; unset ac_script;}
  4279. if test -z "$SED"; then
  4280. ac_path_SED_found=false
  4281. # Loop through the user's path and test for each of PROGNAME-LIST
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. case $as_dir in #(((
  4287. '') as_dir=./ ;;
  4288. */) ;;
  4289. *) as_dir=$as_dir/ ;;
  4290. esac
  4291. for ac_prog in sed gsed
  4292. do
  4293. for ac_exec_ext in '' $ac_executable_extensions; do
  4294. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4295. as_fn_executable_p "$ac_path_SED" || continue
  4296. # Check for GNU ac_path_SED and select it if it is found.
  4297. # Check for GNU $ac_path_SED
  4298. case `"$ac_path_SED" --version 2>&1` in
  4299. *GNU*)
  4300. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4301. *)
  4302. ac_count=0
  4303. printf %s 0123456789 >"conftest.in"
  4304. while :
  4305. do
  4306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4307. mv "conftest.tmp" "conftest.in"
  4308. cp "conftest.in" "conftest.nl"
  4309. printf "%s\n" '' >> "conftest.nl"
  4310. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4313. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4314. # Best one so far, save it but keep looking for a better one
  4315. ac_cv_path_SED="$ac_path_SED"
  4316. ac_path_SED_max=$ac_count
  4317. fi
  4318. # 10*(2^10) chars as input seems more than enough
  4319. test $ac_count -gt 10 && break
  4320. done
  4321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4322. esac
  4323. $ac_path_SED_found && break 3
  4324. done
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. if test -z "$ac_cv_path_SED"; then
  4329. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4330. fi
  4331. else
  4332. ac_cv_path_SED=$SED
  4333. fi
  4334. fi
  4335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4336. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4337. SED="$ac_cv_path_SED"
  4338. rm -f conftest.sed
  4339. test -z "$SED" && SED=sed
  4340. Xsed="$SED -e 1s/^X//"
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4342. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4343. if test ${ac_cv_path_GREP+y}
  4344. then :
  4345. printf %s "(cached) " >&6
  4346. else $as_nop
  4347. if test -z "$GREP"; then
  4348. ac_path_GREP_found=false
  4349. # Loop through the user's path and test for each of PROGNAME-LIST
  4350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4352. do
  4353. IFS=$as_save_IFS
  4354. case $as_dir in #(((
  4355. '') as_dir=./ ;;
  4356. */) ;;
  4357. *) as_dir=$as_dir/ ;;
  4358. esac
  4359. for ac_prog in grep ggrep
  4360. do
  4361. for ac_exec_ext in '' $ac_executable_extensions; do
  4362. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4363. as_fn_executable_p "$ac_path_GREP" || continue
  4364. # Check for GNU ac_path_GREP and select it if it is found.
  4365. # Check for GNU $ac_path_GREP
  4366. case `"$ac_path_GREP" --version 2>&1` in
  4367. *GNU*)
  4368. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4369. *)
  4370. ac_count=0
  4371. printf %s 0123456789 >"conftest.in"
  4372. while :
  4373. do
  4374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4375. mv "conftest.tmp" "conftest.in"
  4376. cp "conftest.in" "conftest.nl"
  4377. printf "%s\n" 'GREP' >> "conftest.nl"
  4378. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4381. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4382. # Best one so far, save it but keep looking for a better one
  4383. ac_cv_path_GREP="$ac_path_GREP"
  4384. ac_path_GREP_max=$ac_count
  4385. fi
  4386. # 10*(2^10) chars as input seems more than enough
  4387. test $ac_count -gt 10 && break
  4388. done
  4389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4390. esac
  4391. $ac_path_GREP_found && break 3
  4392. done
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. if test -z "$ac_cv_path_GREP"; then
  4397. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4398. fi
  4399. else
  4400. ac_cv_path_GREP=$GREP
  4401. fi
  4402. fi
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4404. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4405. GREP="$ac_cv_path_GREP"
  4406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4407. printf %s "checking for egrep... " >&6; }
  4408. if test ${ac_cv_path_EGREP+y}
  4409. then :
  4410. printf %s "(cached) " >&6
  4411. else $as_nop
  4412. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4413. then ac_cv_path_EGREP="$GREP -E"
  4414. else
  4415. if test -z "$EGREP"; then
  4416. ac_path_EGREP_found=false
  4417. # Loop through the user's path and test for each of PROGNAME-LIST
  4418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4420. do
  4421. IFS=$as_save_IFS
  4422. case $as_dir in #(((
  4423. '') as_dir=./ ;;
  4424. */) ;;
  4425. *) as_dir=$as_dir/ ;;
  4426. esac
  4427. for ac_prog in egrep
  4428. do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4431. as_fn_executable_p "$ac_path_EGREP" || continue
  4432. # Check for GNU ac_path_EGREP and select it if it is found.
  4433. # Check for GNU $ac_path_EGREP
  4434. case `"$ac_path_EGREP" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4437. *)
  4438. ac_count=0
  4439. printf %s 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. printf "%s\n" 'EGREP' >> "conftest.nl"
  4446. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4449. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_EGREP="$ac_path_EGREP"
  4452. ac_path_EGREP_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_EGREP_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_EGREP"; then
  4465. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4466. fi
  4467. else
  4468. ac_cv_path_EGREP=$EGREP
  4469. fi
  4470. fi
  4471. fi
  4472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4473. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4474. EGREP="$ac_cv_path_EGREP"
  4475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4476. printf %s "checking for fgrep... " >&6; }
  4477. if test ${ac_cv_path_FGREP+y}
  4478. then :
  4479. printf %s "(cached) " >&6
  4480. else $as_nop
  4481. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4482. then ac_cv_path_FGREP="$GREP -F"
  4483. else
  4484. if test -z "$FGREP"; then
  4485. ac_path_FGREP_found=false
  4486. # Loop through the user's path and test for each of PROGNAME-LIST
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4489. do
  4490. IFS=$as_save_IFS
  4491. case $as_dir in #(((
  4492. '') as_dir=./ ;;
  4493. */) ;;
  4494. *) as_dir=$as_dir/ ;;
  4495. esac
  4496. for ac_prog in fgrep
  4497. do
  4498. for ac_exec_ext in '' $ac_executable_extensions; do
  4499. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4500. as_fn_executable_p "$ac_path_FGREP" || continue
  4501. # Check for GNU ac_path_FGREP and select it if it is found.
  4502. # Check for GNU $ac_path_FGREP
  4503. case `"$ac_path_FGREP" --version 2>&1` in
  4504. *GNU*)
  4505. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4506. *)
  4507. ac_count=0
  4508. printf %s 0123456789 >"conftest.in"
  4509. while :
  4510. do
  4511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4512. mv "conftest.tmp" "conftest.in"
  4513. cp "conftest.in" "conftest.nl"
  4514. printf "%s\n" 'FGREP' >> "conftest.nl"
  4515. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4518. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4519. # Best one so far, save it but keep looking for a better one
  4520. ac_cv_path_FGREP="$ac_path_FGREP"
  4521. ac_path_FGREP_max=$ac_count
  4522. fi
  4523. # 10*(2^10) chars as input seems more than enough
  4524. test $ac_count -gt 10 && break
  4525. done
  4526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4527. esac
  4528. $ac_path_FGREP_found && break 3
  4529. done
  4530. done
  4531. done
  4532. IFS=$as_save_IFS
  4533. if test -z "$ac_cv_path_FGREP"; then
  4534. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4535. fi
  4536. else
  4537. ac_cv_path_FGREP=$FGREP
  4538. fi
  4539. fi
  4540. fi
  4541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4542. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4543. FGREP="$ac_cv_path_FGREP"
  4544. test -z "$GREP" && GREP=grep
  4545. # Check whether --with-gnu-ld was given.
  4546. if test ${with_gnu_ld+y}
  4547. then :
  4548. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4549. else $as_nop
  4550. with_gnu_ld=no
  4551. fi
  4552. ac_prog=ld
  4553. if test yes = "$GCC"; then
  4554. # Check if gcc -print-prog-name=ld gives a path.
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4556. printf %s "checking for ld used by $CC... " >&6; }
  4557. case $host in
  4558. *-*-mingw* | *-*-windows*)
  4559. # gcc leaves a trailing carriage return, which upsets mingw
  4560. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4561. *)
  4562. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4563. esac
  4564. case $ac_prog in
  4565. # Accept absolute paths.
  4566. [\\/]* | ?:[\\/]*)
  4567. re_direlt='/[^/][^/]*/\.\./'
  4568. # Canonicalize the pathname of ld
  4569. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4570. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4571. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4572. done
  4573. test -z "$LD" && LD=$ac_prog
  4574. ;;
  4575. "")
  4576. # If it fails, then pretend we aren't using GCC.
  4577. ac_prog=ld
  4578. ;;
  4579. *)
  4580. # If it is relative, then search for the first ld in PATH.
  4581. with_gnu_ld=unknown
  4582. ;;
  4583. esac
  4584. elif test yes = "$with_gnu_ld"; then
  4585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4586. printf %s "checking for GNU ld... " >&6; }
  4587. else
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4589. printf %s "checking for non-GNU ld... " >&6; }
  4590. fi
  4591. if test ${lt_cv_path_LD+y}
  4592. then :
  4593. printf %s "(cached) " >&6
  4594. else $as_nop
  4595. if test -z "$LD"; then
  4596. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4597. for ac_dir in $PATH; do
  4598. IFS=$lt_save_ifs
  4599. test -z "$ac_dir" && ac_dir=.
  4600. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4601. lt_cv_path_LD=$ac_dir/$ac_prog
  4602. # Check to see if the program is GNU ld. I'd rather use --version,
  4603. # but apparently some variants of GNU ld only accept -v.
  4604. # Break only if it was the GNU/non-GNU ld that we prefer.
  4605. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4606. *GNU* | *'with BFD'*)
  4607. test no != "$with_gnu_ld" && break
  4608. ;;
  4609. *)
  4610. test yes != "$with_gnu_ld" && break
  4611. ;;
  4612. esac
  4613. fi
  4614. done
  4615. IFS=$lt_save_ifs
  4616. else
  4617. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4618. fi
  4619. fi
  4620. LD=$lt_cv_path_LD
  4621. if test -n "$LD"; then
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4623. printf "%s\n" "$LD" >&6; }
  4624. else
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4626. printf "%s\n" "no" >&6; }
  4627. fi
  4628. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4630. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4631. if test ${lt_cv_prog_gnu_ld+y}
  4632. then :
  4633. printf %s "(cached) " >&6
  4634. else $as_nop
  4635. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4636. case `$LD -v 2>&1 </dev/null` in
  4637. *GNU* | *'with BFD'*)
  4638. lt_cv_prog_gnu_ld=yes
  4639. ;;
  4640. *)
  4641. lt_cv_prog_gnu_ld=no
  4642. ;;
  4643. esac
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4646. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4647. with_gnu_ld=$lt_cv_prog_gnu_ld
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4649. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4650. if test ${lt_cv_path_NM+y}
  4651. then :
  4652. printf %s "(cached) " >&6
  4653. else $as_nop
  4654. if test -n "$NM"; then
  4655. # Let the user override the test.
  4656. lt_cv_path_NM=$NM
  4657. else
  4658. lt_nm_to_check=${ac_tool_prefix}nm
  4659. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4660. lt_nm_to_check="$lt_nm_to_check nm"
  4661. fi
  4662. for lt_tmp_nm in $lt_nm_to_check; do
  4663. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4664. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4665. IFS=$lt_save_ifs
  4666. test -z "$ac_dir" && ac_dir=.
  4667. tmp_nm=$ac_dir/$lt_tmp_nm
  4668. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4669. # Check to see if the nm accepts a BSD-compat flag.
  4670. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4671. # nm: unknown option "B" ignored
  4672. # Tru64's nm complains that /dev/null is an invalid object file
  4673. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4674. case $build_os in
  4675. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4676. *) lt_bad_file=/dev/null ;;
  4677. esac
  4678. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4679. *$lt_bad_file* | *'Invalid file or object type'*)
  4680. lt_cv_path_NM="$tmp_nm -B"
  4681. break 2
  4682. ;;
  4683. *)
  4684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4685. */dev/null*)
  4686. lt_cv_path_NM="$tmp_nm -p"
  4687. break 2
  4688. ;;
  4689. *)
  4690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4691. continue # so that we can try to find one that supports BSD flags
  4692. ;;
  4693. esac
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS=$lt_save_ifs
  4699. done
  4700. : ${lt_cv_path_NM=no}
  4701. fi
  4702. fi
  4703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4704. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4705. if test no != "$lt_cv_path_NM"; then
  4706. NM=$lt_cv_path_NM
  4707. else
  4708. # Didn't find any BSD compatible name lister, look for dumpbin.
  4709. if test -n "$DUMPBIN"; then :
  4710. # Let the user override the test.
  4711. else
  4712. if test -n "$ac_tool_prefix"; then
  4713. for ac_prog in dumpbin "link -dump"
  4714. do
  4715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. printf %s "checking for $ac_word... " >&6; }
  4719. if test ${ac_cv_prog_DUMPBIN+y}
  4720. then :
  4721. printf %s "(cached) " >&6
  4722. else $as_nop
  4723. if test -n "$DUMPBIN"; then
  4724. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4725. else
  4726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4727. for as_dir in $PATH
  4728. do
  4729. IFS=$as_save_IFS
  4730. case $as_dir in #(((
  4731. '') as_dir=./ ;;
  4732. */) ;;
  4733. *) as_dir=$as_dir/ ;;
  4734. esac
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4737. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4739. break 2
  4740. fi
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. fi
  4745. fi
  4746. DUMPBIN=$ac_cv_prog_DUMPBIN
  4747. if test -n "$DUMPBIN"; then
  4748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4749. printf "%s\n" "$DUMPBIN" >&6; }
  4750. else
  4751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4752. printf "%s\n" "no" >&6; }
  4753. fi
  4754. test -n "$DUMPBIN" && break
  4755. done
  4756. fi
  4757. if test -z "$DUMPBIN"; then
  4758. ac_ct_DUMPBIN=$DUMPBIN
  4759. for ac_prog in dumpbin "link -dump"
  4760. do
  4761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4762. set dummy $ac_prog; ac_word=$2
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4764. printf %s "checking for $ac_word... " >&6; }
  4765. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4766. then :
  4767. printf %s "(cached) " >&6
  4768. else $as_nop
  4769. if test -n "$ac_ct_DUMPBIN"; then
  4770. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4771. else
  4772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4773. for as_dir in $PATH
  4774. do
  4775. IFS=$as_save_IFS
  4776. case $as_dir in #(((
  4777. '') as_dir=./ ;;
  4778. */) ;;
  4779. *) as_dir=$as_dir/ ;;
  4780. esac
  4781. for ac_exec_ext in '' $ac_executable_extensions; do
  4782. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4783. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4784. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4785. break 2
  4786. fi
  4787. done
  4788. done
  4789. IFS=$as_save_IFS
  4790. fi
  4791. fi
  4792. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4793. if test -n "$ac_ct_DUMPBIN"; then
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4795. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4796. else
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4798. printf "%s\n" "no" >&6; }
  4799. fi
  4800. test -n "$ac_ct_DUMPBIN" && break
  4801. done
  4802. if test "x$ac_ct_DUMPBIN" = x; then
  4803. DUMPBIN=":"
  4804. else
  4805. case $cross_compiling:$ac_tool_warned in
  4806. yes:)
  4807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4808. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4809. ac_tool_warned=yes ;;
  4810. esac
  4811. DUMPBIN=$ac_ct_DUMPBIN
  4812. fi
  4813. fi
  4814. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4815. *COFF*)
  4816. DUMPBIN="$DUMPBIN -symbols -headers"
  4817. ;;
  4818. *)
  4819. DUMPBIN=:
  4820. ;;
  4821. esac
  4822. fi
  4823. if test : != "$DUMPBIN"; then
  4824. NM=$DUMPBIN
  4825. fi
  4826. fi
  4827. test -z "$NM" && NM=nm
  4828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4829. printf %s "checking the name lister ($NM) interface... " >&6; }
  4830. if test ${lt_cv_nm_interface+y}
  4831. then :
  4832. printf %s "(cached) " >&6
  4833. else $as_nop
  4834. lt_cv_nm_interface="BSD nm"
  4835. echo "int some_variable = 0;" > conftest.$ac_ext
  4836. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4837. (eval "$ac_compile" 2>conftest.err)
  4838. cat conftest.err >&5
  4839. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4840. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4841. cat conftest.err >&5
  4842. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4843. cat conftest.out >&5
  4844. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4845. lt_cv_nm_interface="MS dumpbin"
  4846. fi
  4847. rm -f conftest*
  4848. fi
  4849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4850. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4852. printf %s "checking whether ln -s works... " >&6; }
  4853. LN_S=$as_ln_s
  4854. if test "$LN_S" = "ln -s"; then
  4855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4856. printf "%s\n" "yes" >&6; }
  4857. else
  4858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4859. printf "%s\n" "no, using $LN_S" >&6; }
  4860. fi
  4861. # find the maximum length of command line arguments
  4862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4863. printf %s "checking the maximum length of command line arguments... " >&6; }
  4864. if test ${lt_cv_sys_max_cmd_len+y}
  4865. then :
  4866. printf %s "(cached) " >&6
  4867. else $as_nop
  4868. i=0
  4869. teststring=ABCD
  4870. case $build_os in
  4871. msdosdjgpp*)
  4872. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4873. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4874. # during glob expansion). Even if it were fixed, the result of this
  4875. # check would be larger than it should be.
  4876. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4877. ;;
  4878. gnu*)
  4879. # Under GNU Hurd, this test is not required because there is
  4880. # no limit to the length of command line arguments.
  4881. # Libtool will interpret -1 as no limit whatsoever
  4882. lt_cv_sys_max_cmd_len=-1;
  4883. ;;
  4884. cygwin* | mingw* | windows* | cegcc*)
  4885. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4886. # about 5 minutes as the teststring grows exponentially.
  4887. # Worse, since 9x/ME are not pre-emptively multitasking,
  4888. # you end up with a "frozen" computer, even though with patience
  4889. # the test eventually succeeds (with a max line length of 256k).
  4890. # Instead, let's just punt: use the minimum linelength reported by
  4891. # all of the supported platforms: 8192 (on NT/2K/XP).
  4892. lt_cv_sys_max_cmd_len=8192;
  4893. ;;
  4894. mint*)
  4895. # On MiNT this can take a long time and run out of memory.
  4896. lt_cv_sys_max_cmd_len=8192;
  4897. ;;
  4898. amigaos*)
  4899. # On AmigaOS with pdksh, this test takes hours, literally.
  4900. # So we just punt and use a minimum line length of 8192.
  4901. lt_cv_sys_max_cmd_len=8192;
  4902. ;;
  4903. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4904. # This has been around since 386BSD, at least. Likely further.
  4905. if test -x /sbin/sysctl; then
  4906. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4907. elif test -x /usr/sbin/sysctl; then
  4908. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4909. else
  4910. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4911. fi
  4912. # And add a safety zone
  4913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4915. ;;
  4916. interix*)
  4917. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4918. lt_cv_sys_max_cmd_len=196608
  4919. ;;
  4920. os2*)
  4921. # The test takes a long time on OS/2.
  4922. lt_cv_sys_max_cmd_len=8192
  4923. ;;
  4924. osf*)
  4925. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4926. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4927. # nice to cause kernel panics so lets avoid the loop below.
  4928. # First set a reasonable default.
  4929. lt_cv_sys_max_cmd_len=16384
  4930. #
  4931. if test -x /sbin/sysconfig; then
  4932. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4933. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4934. esac
  4935. fi
  4936. ;;
  4937. sco3.2v5*)
  4938. lt_cv_sys_max_cmd_len=102400
  4939. ;;
  4940. sysv5* | sco5v6* | sysv4.2uw2*)
  4941. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4942. if test -n "$kargmax"; then
  4943. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4944. else
  4945. lt_cv_sys_max_cmd_len=32768
  4946. fi
  4947. ;;
  4948. *)
  4949. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4950. if test -n "$lt_cv_sys_max_cmd_len" && \
  4951. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4954. else
  4955. # Make teststring a little bigger before we do anything with it.
  4956. # a 1K string should be a reasonable start.
  4957. for i in 1 2 3 4 5 6 7 8; do
  4958. teststring=$teststring$teststring
  4959. done
  4960. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4961. # If test is not a shell built-in, we'll probably end up computing a
  4962. # maximum length that is only half of the actual maximum length, but
  4963. # we can't tell.
  4964. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4965. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4966. test 17 != "$i" # 1/2 MB should be enough
  4967. do
  4968. i=`expr $i + 1`
  4969. teststring=$teststring$teststring
  4970. done
  4971. # Only check the string length outside the loop.
  4972. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4973. teststring=
  4974. # Add a significant safety factor because C++ compilers can tack on
  4975. # massive amounts of additional arguments before passing them to the
  4976. # linker. It appears as though 1/2 is a usable value.
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4978. fi
  4979. ;;
  4980. esac
  4981. fi
  4982. if test -n "$lt_cv_sys_max_cmd_len"; then
  4983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4984. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4985. else
  4986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4987. printf "%s\n" "none" >&6; }
  4988. fi
  4989. max_cmd_len=$lt_cv_sys_max_cmd_len
  4990. : ${CP="cp -f"}
  4991. : ${MV="mv -f"}
  4992. : ${RM="rm -f"}
  4993. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4994. lt_unset=unset
  4995. else
  4996. lt_unset=false
  4997. fi
  4998. # test EBCDIC or ASCII
  4999. case `echo X|tr X '\101'` in
  5000. A) # ASCII based system
  5001. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5002. lt_SP2NL='tr \040 \012'
  5003. lt_NL2SP='tr \015\012 \040\040'
  5004. ;;
  5005. *) # EBCDIC based system
  5006. lt_SP2NL='tr \100 \n'
  5007. lt_NL2SP='tr \r\n \100\100'
  5008. ;;
  5009. esac
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5011. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5012. if test ${lt_cv_to_host_file_cmd+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. case $host in
  5017. *-*-mingw* )
  5018. case $build in
  5019. *-*-mingw* | *-*-windows* ) # actually msys
  5020. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5021. ;;
  5022. *-*-cygwin* )
  5023. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5024. ;;
  5025. * ) # otherwise, assume *nix
  5026. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5027. ;;
  5028. esac
  5029. ;;
  5030. *-*-cygwin* )
  5031. case $build in
  5032. *-*-mingw* | *-*-windows* ) # actually msys
  5033. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5034. ;;
  5035. *-*-cygwin* )
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. * ) # otherwise, assume *nix
  5039. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5040. ;;
  5041. esac
  5042. ;;
  5043. * ) # unhandled hosts (and "normal" native builds)
  5044. lt_cv_to_host_file_cmd=func_convert_file_noop
  5045. ;;
  5046. esac
  5047. fi
  5048. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5050. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5052. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5053. if test ${lt_cv_to_tool_file_cmd+y}
  5054. then :
  5055. printf %s "(cached) " >&6
  5056. else $as_nop
  5057. #assume ordinary cross tools, or native build.
  5058. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5059. case $host in
  5060. *-*-mingw* | *-*-windows* )
  5061. case $build in
  5062. *-*-mingw* | *-*-windows* ) # actually msys
  5063. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5064. ;;
  5065. esac
  5066. ;;
  5067. esac
  5068. fi
  5069. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5071. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5073. printf %s "checking for $LD option to reload object files... " >&6; }
  5074. if test ${lt_cv_ld_reload_flag+y}
  5075. then :
  5076. printf %s "(cached) " >&6
  5077. else $as_nop
  5078. lt_cv_ld_reload_flag='-r'
  5079. fi
  5080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5081. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5082. reload_flag=$lt_cv_ld_reload_flag
  5083. case $reload_flag in
  5084. "" | " "*) ;;
  5085. *) reload_flag=" $reload_flag" ;;
  5086. esac
  5087. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5088. case $host_os in
  5089. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5090. if test yes != "$GCC"; then
  5091. reload_cmds=false
  5092. fi
  5093. ;;
  5094. darwin*)
  5095. if test yes = "$GCC"; then
  5096. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5097. else
  5098. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5099. fi
  5100. ;;
  5101. esac
  5102. if test -n "$ac_tool_prefix"; then
  5103. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5104. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5106. printf %s "checking for $ac_word... " >&6; }
  5107. if test ${ac_cv_prog_OBJDUMP+y}
  5108. then :
  5109. printf %s "(cached) " >&6
  5110. else $as_nop
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. case $as_dir in #(((
  5119. '') as_dir=./ ;;
  5120. */) ;;
  5121. *) as_dir=$as_dir/ ;;
  5122. esac
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. OBJDUMP=$ac_cv_prog_OBJDUMP
  5135. if test -n "$OBJDUMP"; then
  5136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5137. printf "%s\n" "$OBJDUMP" >&6; }
  5138. else
  5139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. printf "%s\n" "no" >&6; }
  5141. fi
  5142. fi
  5143. if test -z "$ac_cv_prog_OBJDUMP"; then
  5144. ac_ct_OBJDUMP=$OBJDUMP
  5145. # Extract the first word of "objdump", so it can be a program name with args.
  5146. set dummy objdump; ac_word=$2
  5147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5148. printf %s "checking for $ac_word... " >&6; }
  5149. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5150. then :
  5151. printf %s "(cached) " >&6
  5152. else $as_nop
  5153. if test -n "$ac_ct_OBJDUMP"; then
  5154. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. case $as_dir in #(((
  5161. '') as_dir=./ ;;
  5162. */) ;;
  5163. *) as_dir=$as_dir/ ;;
  5164. esac
  5165. for ac_exec_ext in '' $ac_executable_extensions; do
  5166. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5167. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5168. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5169. break 2
  5170. fi
  5171. done
  5172. done
  5173. IFS=$as_save_IFS
  5174. fi
  5175. fi
  5176. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5177. if test -n "$ac_ct_OBJDUMP"; then
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5179. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5180. else
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5182. printf "%s\n" "no" >&6; }
  5183. fi
  5184. if test "x$ac_ct_OBJDUMP" = x; then
  5185. OBJDUMP="false"
  5186. else
  5187. case $cross_compiling:$ac_tool_warned in
  5188. yes:)
  5189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5190. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5191. ac_tool_warned=yes ;;
  5192. esac
  5193. OBJDUMP=$ac_ct_OBJDUMP
  5194. fi
  5195. else
  5196. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5197. fi
  5198. test -z "$OBJDUMP" && OBJDUMP=objdump
  5199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5200. printf %s "checking how to recognize dependent libraries... " >&6; }
  5201. if test ${lt_cv_deplibs_check_method+y}
  5202. then :
  5203. printf %s "(cached) " >&6
  5204. else $as_nop
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # 'unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # that responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have 'file' or equivalent on your system and you're not sure
  5217. # whether 'pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5235. ;;
  5236. mingw* | windows* | pw32*)
  5237. # Base MSYS/MinGW do not provide the 'file' command needed by
  5238. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5239. # unless we find 'file', for example because we are cross-compiling.
  5240. if ( file / ) >/dev/null 2>&1; then
  5241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5242. lt_cv_file_magic_cmd='func_win32_libid'
  5243. else
  5244. # Keep this pattern in sync with the one in func_win32_libid.
  5245. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
  5246. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5247. fi
  5248. lt_cv_deplibs_check_method=pass_all # SDL customization.
  5249. ;;
  5250. cegcc*)
  5251. # use the weaker test based on 'objdump'. See mingw*.
  5252. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5253. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5254. ;;
  5255. darwin* | rhapsody*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. freebsd* | dragonfly* | midnightbsd*)
  5259. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5260. case $host_cpu in
  5261. i*86 )
  5262. # Not sure whether the presence of OpenBSD here was a mistake.
  5263. # Let's accept both of them until this is cleared up.
  5264. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5265. lt_cv_file_magic_cmd=/usr/bin/file
  5266. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5267. ;;
  5268. esac
  5269. else
  5270. lt_cv_deplibs_check_method=pass_all
  5271. fi
  5272. ;;
  5273. haiku*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. hpux10.20* | hpux11*)
  5277. lt_cv_file_magic_cmd=/usr/bin/file
  5278. case $host_cpu in
  5279. ia64*)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5281. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5282. ;;
  5283. hppa*64*)
  5284. 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]'
  5285. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5286. ;;
  5287. *)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5289. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5290. ;;
  5291. esac
  5292. ;;
  5293. interix[3-9]*)
  5294. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5296. ;;
  5297. irix5* | irix6* | nonstopux*)
  5298. case $LD in
  5299. *-32|*"-32 ") libmagic=32-bit;;
  5300. *-n32|*"-n32 ") libmagic=N32;;
  5301. *-64|*"-64 ") libmagic=64-bit;;
  5302. *) libmagic=never-match;;
  5303. esac
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. # This must be glibc/ELF.
  5307. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. netbsd*)
  5311. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5313. else
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5315. fi
  5316. ;;
  5317. newos6*)
  5318. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5319. lt_cv_file_magic_cmd=/usr/bin/file
  5320. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5321. ;;
  5322. *nto* | *qnx*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. openbsd* | bitrig*)
  5326. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5328. else
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. fi
  5331. ;;
  5332. osf3* | osf4* | osf5*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. rdos*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. solaris*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sysv4 | sysv4.3*)
  5345. case $host_vendor in
  5346. motorola)
  5347. 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]'
  5348. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5349. ;;
  5350. ncr)
  5351. lt_cv_deplibs_check_method=pass_all
  5352. ;;
  5353. sequent)
  5354. lt_cv_file_magic_cmd='/bin/file'
  5355. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5356. ;;
  5357. sni)
  5358. lt_cv_file_magic_cmd='/bin/file'
  5359. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5360. lt_cv_file_magic_test_file=/lib/libc.so
  5361. ;;
  5362. siemens)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. pc)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. ;;
  5370. tpf*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. os2*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. esac
  5377. fi
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5379. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5380. file_magic_glob=
  5381. want_nocaseglob=no
  5382. if test "$build" = "$host"; then
  5383. case $host_os in
  5384. mingw* | windows* | pw32*)
  5385. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5386. want_nocaseglob=yes
  5387. else
  5388. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5389. fi
  5390. ;;
  5391. esac
  5392. fi
  5393. file_magic_cmd=$lt_cv_file_magic_cmd
  5394. deplibs_check_method=$lt_cv_deplibs_check_method
  5395. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5396. if test -n "$ac_tool_prefix"; then
  5397. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5398. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5400. printf %s "checking for $ac_word... " >&6; }
  5401. if test ${ac_cv_prog_DLLTOOL+y}
  5402. then :
  5403. printf %s "(cached) " >&6
  5404. else $as_nop
  5405. if test -n "$DLLTOOL"; then
  5406. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. case $as_dir in #(((
  5413. '') as_dir=./ ;;
  5414. */) ;;
  5415. *) as_dir=$as_dir/ ;;
  5416. esac
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. DLLTOOL=$ac_cv_prog_DLLTOOL
  5429. if test -n "$DLLTOOL"; then
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5431. printf "%s\n" "$DLLTOOL" >&6; }
  5432. else
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. printf "%s\n" "no" >&6; }
  5435. fi
  5436. fi
  5437. if test -z "$ac_cv_prog_DLLTOOL"; then
  5438. ac_ct_DLLTOOL=$DLLTOOL
  5439. # Extract the first word of "dlltool", so it can be a program name with args.
  5440. set dummy dlltool; ac_word=$2
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. printf %s "checking for $ac_word... " >&6; }
  5443. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5444. then :
  5445. printf %s "(cached) " >&6
  5446. else $as_nop
  5447. if test -n "$ac_ct_DLLTOOL"; then
  5448. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. case $as_dir in #(((
  5455. '') as_dir=./ ;;
  5456. */) ;;
  5457. *) as_dir=$as_dir/ ;;
  5458. esac
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5471. if test -n "$ac_ct_DLLTOOL"; then
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5473. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5474. else
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. printf "%s\n" "no" >&6; }
  5477. fi
  5478. if test "x$ac_ct_DLLTOOL" = x; then
  5479. DLLTOOL="false"
  5480. else
  5481. case $cross_compiling:$ac_tool_warned in
  5482. yes:)
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5484. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5485. ac_tool_warned=yes ;;
  5486. esac
  5487. DLLTOOL=$ac_ct_DLLTOOL
  5488. fi
  5489. else
  5490. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5491. fi
  5492. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5494. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5495. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5496. then :
  5497. printf %s "(cached) " >&6
  5498. else $as_nop
  5499. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5500. case $host_os in
  5501. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5502. # two different shell functions defined in ltmain.sh;
  5503. # decide which one to use based on capabilities of $DLLTOOL
  5504. case `$DLLTOOL --help 2>&1` in
  5505. *--identify-strict*)
  5506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5507. ;;
  5508. *)
  5509. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5510. ;;
  5511. esac
  5512. ;;
  5513. *)
  5514. # fallback: assume linklib IS sharedlib
  5515. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5516. ;;
  5517. esac
  5518. fi
  5519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5520. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5521. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5522. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5523. if test -n "$ac_tool_prefix"; then
  5524. for ac_prog in ar
  5525. do
  5526. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5527. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. printf %s "checking for $ac_word... " >&6; }
  5530. if test ${ac_cv_prog_AR+y}
  5531. then :
  5532. printf %s "(cached) " >&6
  5533. else $as_nop
  5534. if test -n "$AR"; then
  5535. ac_cv_prog_AR="$AR" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. case $as_dir in #(((
  5542. '') as_dir=./ ;;
  5543. */) ;;
  5544. *) as_dir=$as_dir/ ;;
  5545. esac
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. AR=$ac_cv_prog_AR
  5558. if test -n "$AR"; then
  5559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5560. printf "%s\n" "$AR" >&6; }
  5561. else
  5562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. printf "%s\n" "no" >&6; }
  5564. fi
  5565. test -n "$AR" && break
  5566. done
  5567. fi
  5568. if test -z "$AR"; then
  5569. ac_ct_AR=$AR
  5570. for ac_prog in ar
  5571. do
  5572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5573. set dummy $ac_prog; ac_word=$2
  5574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. printf %s "checking for $ac_word... " >&6; }
  5576. if test ${ac_cv_prog_ac_ct_AR+y}
  5577. then :
  5578. printf %s "(cached) " >&6
  5579. else $as_nop
  5580. if test -n "$ac_ct_AR"; then
  5581. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. case $as_dir in #(((
  5588. '') as_dir=./ ;;
  5589. */) ;;
  5590. *) as_dir=$as_dir/ ;;
  5591. esac
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_AR="$ac_prog"
  5595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5604. if test -n "$ac_ct_AR"; then
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5606. printf "%s\n" "$ac_ct_AR" >&6; }
  5607. else
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. printf "%s\n" "no" >&6; }
  5610. fi
  5611. test -n "$ac_ct_AR" && break
  5612. done
  5613. if test "x$ac_ct_AR" = x; then
  5614. AR="false"
  5615. else
  5616. case $cross_compiling:$ac_tool_warned in
  5617. yes:)
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5619. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5620. ac_tool_warned=yes ;;
  5621. esac
  5622. AR=$ac_ct_AR
  5623. fi
  5624. fi
  5625. : ${AR=ar}
  5626. : ${AR_FLAGS=cru}
  5627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5628. printf %s "checking for archiver @FILE support... " >&6; }
  5629. if test ${lt_cv_ar_at_file+y}
  5630. then :
  5631. printf %s "(cached) " >&6
  5632. else $as_nop
  5633. lt_cv_ar_at_file=no
  5634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5635. /* end confdefs.h. */
  5636. int
  5637. main (void)
  5638. {
  5639. ;
  5640. return 0;
  5641. }
  5642. _ACEOF
  5643. if ac_fn_c_try_compile "$LINENO"
  5644. then :
  5645. echo conftest.$ac_objext > conftest.lst
  5646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5648. (eval $lt_ar_try) 2>&5
  5649. ac_status=$?
  5650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5651. test $ac_status = 0; }
  5652. if test 0 -eq "$ac_status"; then
  5653. # Ensure the archiver fails upon bogus file names.
  5654. rm -f conftest.$ac_objext libconftest.a
  5655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5656. (eval $lt_ar_try) 2>&5
  5657. ac_status=$?
  5658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5659. test $ac_status = 0; }
  5660. if test 0 -ne "$ac_status"; then
  5661. lt_cv_ar_at_file=@
  5662. fi
  5663. fi
  5664. rm -f conftest.* libconftest.a
  5665. fi
  5666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5667. fi
  5668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5669. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5670. if test no = "$lt_cv_ar_at_file"; then
  5671. archiver_list_spec=
  5672. else
  5673. archiver_list_spec=$lt_cv_ar_at_file
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. printf %s "checking for $ac_word... " >&6; }
  5680. if test ${ac_cv_prog_STRIP+y}
  5681. then :
  5682. printf %s "(cached) " >&6
  5683. else $as_nop
  5684. if test -n "$STRIP"; then
  5685. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. case $as_dir in #(((
  5692. '') as_dir=./ ;;
  5693. */) ;;
  5694. *) as_dir=$as_dir/ ;;
  5695. esac
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5698. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. STRIP=$ac_cv_prog_STRIP
  5708. if test -n "$STRIP"; then
  5709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5710. printf "%s\n" "$STRIP" >&6; }
  5711. else
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. printf "%s\n" "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_STRIP"; then
  5717. ac_ct_STRIP=$STRIP
  5718. # Extract the first word of "strip", so it can be a program name with args.
  5719. set dummy strip; ac_word=$2
  5720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. printf %s "checking for $ac_word... " >&6; }
  5722. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5723. then :
  5724. printf %s "(cached) " >&6
  5725. else $as_nop
  5726. if test -n "$ac_ct_STRIP"; then
  5727. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. case $as_dir in #(((
  5734. '') as_dir=./ ;;
  5735. */) ;;
  5736. *) as_dir=$as_dir/ ;;
  5737. esac
  5738. for ac_exec_ext in '' $ac_executable_extensions; do
  5739. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5740. ac_cv_prog_ac_ct_STRIP="strip"
  5741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5742. break 2
  5743. fi
  5744. done
  5745. done
  5746. IFS=$as_save_IFS
  5747. fi
  5748. fi
  5749. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5750. if test -n "$ac_ct_STRIP"; then
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5752. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5753. else
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. printf "%s\n" "no" >&6; }
  5756. fi
  5757. if test "x$ac_ct_STRIP" = x; then
  5758. STRIP=":"
  5759. else
  5760. case $cross_compiling:$ac_tool_warned in
  5761. yes:)
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5763. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5764. ac_tool_warned=yes ;;
  5765. esac
  5766. STRIP=$ac_ct_STRIP
  5767. fi
  5768. else
  5769. STRIP="$ac_cv_prog_STRIP"
  5770. fi
  5771. test -z "$STRIP" && STRIP=:
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. printf %s "checking for $ac_word... " >&6; }
  5777. if test ${ac_cv_prog_RANLIB+y}
  5778. then :
  5779. printf %s "(cached) " >&6
  5780. else $as_nop
  5781. if test -n "$RANLIB"; then
  5782. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. case $as_dir in #(((
  5789. '') as_dir=./ ;;
  5790. */) ;;
  5791. *) as_dir=$as_dir/ ;;
  5792. esac
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. RANLIB=$ac_cv_prog_RANLIB
  5805. if test -n "$RANLIB"; then
  5806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5807. printf "%s\n" "$RANLIB" >&6; }
  5808. else
  5809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. printf "%s\n" "no" >&6; }
  5811. fi
  5812. fi
  5813. if test -z "$ac_cv_prog_RANLIB"; then
  5814. ac_ct_RANLIB=$RANLIB
  5815. # Extract the first word of "ranlib", so it can be a program name with args.
  5816. set dummy ranlib; ac_word=$2
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5818. printf %s "checking for $ac_word... " >&6; }
  5819. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5820. then :
  5821. printf %s "(cached) " >&6
  5822. else $as_nop
  5823. if test -n "$ac_ct_RANLIB"; then
  5824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. case $as_dir in #(((
  5831. '') as_dir=./ ;;
  5832. */) ;;
  5833. *) as_dir=$as_dir/ ;;
  5834. esac
  5835. for ac_exec_ext in '' $ac_executable_extensions; do
  5836. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5837. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5838. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5839. break 2
  5840. fi
  5841. done
  5842. done
  5843. IFS=$as_save_IFS
  5844. fi
  5845. fi
  5846. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5847. if test -n "$ac_ct_RANLIB"; then
  5848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5849. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5850. else
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5852. printf "%s\n" "no" >&6; }
  5853. fi
  5854. if test "x$ac_ct_RANLIB" = x; then
  5855. RANLIB=":"
  5856. else
  5857. case $cross_compiling:$ac_tool_warned in
  5858. yes:)
  5859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5860. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5861. ac_tool_warned=yes ;;
  5862. esac
  5863. RANLIB=$ac_ct_RANLIB
  5864. fi
  5865. else
  5866. RANLIB="$ac_cv_prog_RANLIB"
  5867. fi
  5868. test -z "$RANLIB" && RANLIB=:
  5869. # Determine commands to create old-style static archives.
  5870. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5871. old_postinstall_cmds='chmod 644 $oldlib'
  5872. old_postuninstall_cmds=
  5873. if test -n "$RANLIB"; then
  5874. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5876. fi
  5877. case $host_os in
  5878. darwin*)
  5879. lock_old_archive_extraction=yes ;;
  5880. *)
  5881. lock_old_archive_extraction=no ;;
  5882. esac
  5883. for ac_prog in gawk mawk nawk awk
  5884. do
  5885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5886. set dummy $ac_prog; ac_word=$2
  5887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. printf %s "checking for $ac_word... " >&6; }
  5889. if test ${ac_cv_prog_AWK+y}
  5890. then :
  5891. printf %s "(cached) " >&6
  5892. else $as_nop
  5893. if test -n "$AWK"; then
  5894. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. case $as_dir in #(((
  5901. '') as_dir=./ ;;
  5902. */) ;;
  5903. *) as_dir=$as_dir/ ;;
  5904. esac
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5907. ac_cv_prog_AWK="$ac_prog"
  5908. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. AWK=$ac_cv_prog_AWK
  5917. if test -n "$AWK"; then
  5918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5919. printf "%s\n" "$AWK" >&6; }
  5920. else
  5921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. printf "%s\n" "no" >&6; }
  5923. fi
  5924. test -n "$AWK" && break
  5925. done
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5934. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5935. if test ${lt_cv_sys_global_symbol_pipe+y}
  5936. then :
  5937. printf %s "(cached) " >&6
  5938. else $as_nop
  5939. # These are sane defaults that work on at least a few old systems.
  5940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5941. # Character class describing NM global symbol codes.
  5942. symcode='[BCDEGRST]'
  5943. # Regexp to match symbols that can be accessed directly from C.
  5944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5945. # Define system-specific variables.
  5946. case $host_os in
  5947. aix*)
  5948. symcode='[BCDT]'
  5949. ;;
  5950. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5951. symcode='[ABCDGISTW]'
  5952. ;;
  5953. hpux*)
  5954. if test ia64 = "$host_cpu"; then
  5955. symcode='[ABCDEGRST]'
  5956. fi
  5957. ;;
  5958. irix* | nonstopux*)
  5959. symcode='[BCDEGRST]'
  5960. ;;
  5961. osf*)
  5962. symcode='[BCDEGQRST]'
  5963. ;;
  5964. solaris*)
  5965. symcode='[BCDRT]'
  5966. ;;
  5967. sco3.2v5*)
  5968. symcode='[DT]'
  5969. ;;
  5970. sysv4.2uw2*)
  5971. symcode='[DT]'
  5972. ;;
  5973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5974. symcode='[ABDT]'
  5975. ;;
  5976. sysv4)
  5977. symcode='[DFNSTU]'
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5986. # Gets list of data symbols to import.
  5987. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5988. # Adjust the below global symbol transforms to fixup imported variables.
  5989. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5990. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5991. lt_c_name_lib_hook="\
  5992. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5993. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5994. else
  5995. # Disable hooks by default.
  5996. lt_cv_sys_global_symbol_to_import=
  5997. lt_cdecl_hook=
  5998. lt_c_name_hook=
  5999. lt_c_name_lib_hook=
  6000. fi
  6001. # Transform an extracted symbol line into a proper C declaration.
  6002. # Some systems (esp. on ia64) link data and code symbols differently,
  6003. # so use this general approach.
  6004. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6005. $lt_cdecl_hook\
  6006. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6007. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6008. # Transform an extracted symbol line into symbol name and symbol address
  6009. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6010. $lt_c_name_hook\
  6011. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6012. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6013. # Transform an extracted symbol line into symbol name with lib prefix and
  6014. # symbol address.
  6015. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6016. $lt_c_name_lib_hook\
  6017. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6018. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6020. # Handle CRLF in mingw tool chain
  6021. opt_cr=
  6022. case $build_os in
  6023. mingw* | windows*)
  6024. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6025. ;;
  6026. esac
  6027. # Try without a prefix underscore, then with it.
  6028. for ac_symprfx in "" "_"; do
  6029. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6030. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6031. # Write the raw and C identifiers.
  6032. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6033. # Fake it for dumpbin and say T for any non-static function,
  6034. # D for any global variable and I for any imported variable.
  6035. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6036. # which start with @ or ?.
  6037. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6038. " {last_section=section; section=\$ 3};"\
  6039. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6040. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6041. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6042. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6043. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6044. " \$ 0!~/External *\|/{next};"\
  6045. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6046. " {if(hide[section]) next};"\
  6047. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6048. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6049. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6050. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6051. " ' prfx=^$ac_symprfx"
  6052. else
  6053. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6054. fi
  6055. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6056. # Check to see that the pipe works correctly.
  6057. pipe_works=no
  6058. rm -f conftest*
  6059. cat > conftest.$ac_ext <<_LT_EOF
  6060. #ifdef __cplusplus
  6061. extern "C" {
  6062. #endif
  6063. char nm_test_var;
  6064. void nm_test_func(void);
  6065. void nm_test_func(void){}
  6066. #ifdef __cplusplus
  6067. }
  6068. #endif
  6069. int main(void){nm_test_var='a';nm_test_func();return(0);}
  6070. _LT_EOF
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6072. (eval $ac_compile) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; }; then
  6076. # Now try to grab the symbols.
  6077. nlist=conftest.nm
  6078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6079. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6080. ac_status=$?
  6081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6082. test $ac_status = 0; } && test -s "$nlist"; then
  6083. # Try sorting and uniquifying the output.
  6084. if sort "$nlist" | uniq > "$nlist"T; then
  6085. mv -f "$nlist"T "$nlist"
  6086. else
  6087. rm -f "$nlist"T
  6088. fi
  6089. # Make sure that we snagged all the symbols we need.
  6090. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6091. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6092. cat <<_LT_EOF > conftest.$ac_ext
  6093. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6094. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6095. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6096. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6097. # define LT_DLSYM_CONST
  6098. #elif defined __osf__
  6099. /* This system does not cope well with relocations in const data. */
  6100. # define LT_DLSYM_CONST
  6101. #else
  6102. # define LT_DLSYM_CONST const
  6103. #endif
  6104. #ifdef __cplusplus
  6105. extern "C" {
  6106. #endif
  6107. _LT_EOF
  6108. # Now generate the symbol file.
  6109. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6110. cat <<_LT_EOF >> conftest.$ac_ext
  6111. /* The mapping between symbol names and symbols. */
  6112. LT_DLSYM_CONST struct {
  6113. const char *name;
  6114. void *address;
  6115. }
  6116. lt__PROGRAM__LTX_preloaded_symbols[] =
  6117. {
  6118. { "@PROGRAM@", (void *) 0 },
  6119. _LT_EOF
  6120. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6121. cat <<\_LT_EOF >> conftest.$ac_ext
  6122. {0, (void *) 0}
  6123. };
  6124. /* This works around a problem in FreeBSD linker */
  6125. #ifdef FREEBSD_WORKAROUND
  6126. static const void *lt_preloaded_setup() {
  6127. return lt__PROGRAM__LTX_preloaded_symbols;
  6128. }
  6129. #endif
  6130. #ifdef __cplusplus
  6131. }
  6132. #endif
  6133. _LT_EOF
  6134. # Now try linking the two files.
  6135. mv conftest.$ac_objext conftstm.$ac_objext
  6136. lt_globsym_save_LIBS=$LIBS
  6137. lt_globsym_save_CFLAGS=$CFLAGS
  6138. LIBS=conftstm.$ac_objext
  6139. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6141. (eval $ac_link) 2>&5
  6142. ac_status=$?
  6143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6144. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6145. pipe_works=yes
  6146. fi
  6147. LIBS=$lt_globsym_save_LIBS
  6148. CFLAGS=$lt_globsym_save_CFLAGS
  6149. else
  6150. echo "cannot find nm_test_func in $nlist" >&5
  6151. fi
  6152. else
  6153. echo "cannot find nm_test_var in $nlist" >&5
  6154. fi
  6155. else
  6156. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6157. fi
  6158. else
  6159. echo "$progname: failed program was:" >&5
  6160. cat conftest.$ac_ext >&5
  6161. fi
  6162. rm -rf conftest* conftst*
  6163. # Do not use the global_symbol_pipe unless it works.
  6164. if test yes = "$pipe_works"; then
  6165. break
  6166. else
  6167. lt_cv_sys_global_symbol_pipe=
  6168. fi
  6169. done
  6170. fi
  6171. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6172. lt_cv_sys_global_symbol_to_cdecl=
  6173. fi
  6174. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6176. printf "%s\n" "failed" >&6; }
  6177. else
  6178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6179. printf "%s\n" "ok" >&6; }
  6180. fi
  6181. # Response file support.
  6182. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6183. nm_file_list_spec='@'
  6184. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6185. nm_file_list_spec='@'
  6186. fi
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6188. printf %s "checking for sysroot... " >&6; }
  6189. # Check whether --with-sysroot was given.
  6190. if test ${with_sysroot+y}
  6191. then :
  6192. withval=$with_sysroot;
  6193. else $as_nop
  6194. with_sysroot=no
  6195. fi
  6196. lt_sysroot=
  6197. case $with_sysroot in #(
  6198. yes)
  6199. if test yes = "$GCC"; then
  6200. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6201. fi
  6202. ;; #(
  6203. /*)
  6204. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6205. ;; #(
  6206. no|'')
  6207. ;; #(
  6208. *)
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6210. printf "%s\n" "$with_sysroot" >&6; }
  6211. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6212. ;;
  6213. esac
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6215. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6217. printf %s "checking for a working dd... " >&6; }
  6218. if test ${ac_cv_path_lt_DD+y}
  6219. then :
  6220. printf %s "(cached) " >&6
  6221. else $as_nop
  6222. printf 0123456789abcdef0123456789abcdef >conftest.i
  6223. cat conftest.i conftest.i >conftest2.i
  6224. : ${lt_DD:=$DD}
  6225. if test -z "$lt_DD"; then
  6226. ac_path_lt_DD_found=false
  6227. # Loop through the user's path and test for each of PROGNAME-LIST
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. case $as_dir in #(((
  6233. '') as_dir=./ ;;
  6234. */) ;;
  6235. *) as_dir=$as_dir/ ;;
  6236. esac
  6237. for ac_prog in dd
  6238. do
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6241. as_fn_executable_p "$ac_path_lt_DD" || continue
  6242. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6243. cmp -s conftest.i conftest.out \
  6244. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6245. fi
  6246. $ac_path_lt_DD_found && break 3
  6247. done
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. if test -z "$ac_cv_path_lt_DD"; then
  6252. :
  6253. fi
  6254. else
  6255. ac_cv_path_lt_DD=$lt_DD
  6256. fi
  6257. rm -f conftest.i conftest2.i conftest.out
  6258. fi
  6259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6260. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6262. printf %s "checking how to truncate binary pipes... " >&6; }
  6263. if test ${lt_cv_truncate_bin+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else $as_nop
  6267. printf 0123456789abcdef0123456789abcdef >conftest.i
  6268. cat conftest.i conftest.i >conftest2.i
  6269. lt_cv_truncate_bin=
  6270. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6271. cmp -s conftest.i conftest.out \
  6272. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6273. fi
  6274. rm -f conftest.i conftest2.i conftest.out
  6275. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6276. fi
  6277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6278. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6279. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6280. func_cc_basename ()
  6281. {
  6282. for cc_temp in $*""; do
  6283. case $cc_temp in
  6284. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6285. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6286. \-*) ;;
  6287. *) break;;
  6288. esac
  6289. done
  6290. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6291. }
  6292. # Check whether --enable-libtool-lock was given.
  6293. if test ${enable_libtool_lock+y}
  6294. then :
  6295. enableval=$enable_libtool_lock;
  6296. fi
  6297. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6298. # Some flags need to be propagated to the compiler or linker for good
  6299. # libtool support.
  6300. case $host in
  6301. ia64-*-hpux*)
  6302. # Find out what ABI is being produced by ac_compile, and set mode
  6303. # options accordingly.
  6304. echo 'int i;' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. case `/usr/bin/file conftest.$ac_objext` in
  6311. *ELF-32*)
  6312. HPUX_IA64_MODE=32
  6313. ;;
  6314. *ELF-64*)
  6315. HPUX_IA64_MODE=64
  6316. ;;
  6317. esac
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. *-*-irix6*)
  6322. # Find out what ABI is being produced by ac_compile, and set linker
  6323. # options accordingly.
  6324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6326. (eval $ac_compile) 2>&5
  6327. ac_status=$?
  6328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6329. test $ac_status = 0; }; then
  6330. if test yes = "$lt_cv_prog_gnu_ld"; then
  6331. case `/usr/bin/file conftest.$ac_objext` in
  6332. *32-bit*)
  6333. LD="${LD-ld} -melf32bsmip"
  6334. ;;
  6335. *N32*)
  6336. LD="${LD-ld} -melf32bmipn32"
  6337. ;;
  6338. *64-bit*)
  6339. LD="${LD-ld} -melf64bmip"
  6340. ;;
  6341. esac
  6342. else
  6343. case `/usr/bin/file conftest.$ac_objext` in
  6344. *32-bit*)
  6345. LD="${LD-ld} -32"
  6346. ;;
  6347. *N32*)
  6348. LD="${LD-ld} -n32"
  6349. ;;
  6350. *64-bit*)
  6351. LD="${LD-ld} -64"
  6352. ;;
  6353. esac
  6354. fi
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. mips64*-*linux*)
  6359. # Find out what ABI is being produced by ac_compile, and set linker
  6360. # options accordingly.
  6361. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. emul=elf
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *32-bit*)
  6370. emul="${emul}32"
  6371. ;;
  6372. *64-bit*)
  6373. emul="${emul}64"
  6374. ;;
  6375. esac
  6376. case `/usr/bin/file conftest.$ac_objext` in
  6377. *MSB*)
  6378. emul="${emul}btsmip"
  6379. ;;
  6380. *LSB*)
  6381. emul="${emul}ltsmip"
  6382. ;;
  6383. esac
  6384. case `/usr/bin/file conftest.$ac_objext` in
  6385. *N32*)
  6386. emul="${emul}n32"
  6387. ;;
  6388. esac
  6389. LD="${LD-ld} -m $emul"
  6390. fi
  6391. rm -rf conftest*
  6392. ;;
  6393. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6394. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6395. # Find out what ABI is being produced by ac_compile, and set linker
  6396. # options accordingly. Note that the listed cases only cover the
  6397. # situations where additional linker options are needed (such as when
  6398. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6399. # vice versa); the common cases where no linker options are needed do
  6400. # not appear in the list.
  6401. echo 'int i;' > conftest.$ac_ext
  6402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6403. (eval $ac_compile) 2>&5
  6404. ac_status=$?
  6405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6406. test $ac_status = 0; }; then
  6407. case `/usr/bin/file conftest.o` in
  6408. *32-bit*)
  6409. case $host in
  6410. x86_64-*kfreebsd*-gnu)
  6411. LD="${LD-ld} -m elf_i386_fbsd"
  6412. ;;
  6413. x86_64-*linux*|x86_64-gnu*)
  6414. case `/usr/bin/file conftest.o` in
  6415. *x86-64*)
  6416. LD="${LD-ld} -m elf32_x86_64"
  6417. ;;
  6418. *)
  6419. LD="${LD-ld} -m elf_i386"
  6420. ;;
  6421. esac
  6422. ;;
  6423. powerpc64le-*linux*)
  6424. LD="${LD-ld} -m elf32lppclinux"
  6425. ;;
  6426. powerpc64-*linux*)
  6427. LD="${LD-ld} -m elf32ppclinux"
  6428. ;;
  6429. s390x-*linux*)
  6430. LD="${LD-ld} -m elf_s390"
  6431. ;;
  6432. sparc64-*linux*)
  6433. LD="${LD-ld} -m elf32_sparc"
  6434. ;;
  6435. esac
  6436. ;;
  6437. *64-bit*)
  6438. case $host in
  6439. x86_64-*kfreebsd*-gnu)
  6440. LD="${LD-ld} -m elf_x86_64_fbsd"
  6441. ;;
  6442. x86_64-*linux*|x86_64-gnu*)
  6443. LD="${LD-ld} -m elf_x86_64"
  6444. ;;
  6445. powerpcle-*linux*|powerpc64le-*linux*)
  6446. LD="${LD-ld} -m elf64lppc"
  6447. ;;
  6448. powerpc-*linux*|powerpc64-*linux*)
  6449. LD="${LD-ld} -m elf64ppc"
  6450. ;;
  6451. s390*-*linux*|s390*-*tpf*)
  6452. LD="${LD-ld} -m elf64_s390"
  6453. ;;
  6454. sparc*-*linux*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. ;;
  6459. esac
  6460. fi
  6461. rm -rf conftest*
  6462. ;;
  6463. *-*-sco3.2v5*)
  6464. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6465. SAVE_CFLAGS=$CFLAGS
  6466. CFLAGS="$CFLAGS -belf"
  6467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6468. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6469. if test ${lt_cv_cc_needs_belf+y}
  6470. then :
  6471. printf %s "(cached) " >&6
  6472. else $as_nop
  6473. ac_ext=c
  6474. ac_cpp='$CPP $CPPFLAGS'
  6475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. int
  6481. main (void)
  6482. {
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. if ac_fn_c_try_link "$LINENO"
  6488. then :
  6489. lt_cv_cc_needs_belf=yes
  6490. else $as_nop
  6491. lt_cv_cc_needs_belf=no
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6494. conftest$ac_exeext conftest.$ac_ext
  6495. ac_ext=c
  6496. ac_cpp='$CPP $CPPFLAGS'
  6497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6500. fi
  6501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6502. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6503. if test yes != "$lt_cv_cc_needs_belf"; then
  6504. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6505. CFLAGS=$SAVE_CFLAGS
  6506. fi
  6507. ;;
  6508. *-*solaris*)
  6509. # Find out what ABI is being produced by ac_compile, and set linker
  6510. # options accordingly.
  6511. echo 'int i;' > conftest.$ac_ext
  6512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6513. (eval $ac_compile) 2>&5
  6514. ac_status=$?
  6515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6516. test $ac_status = 0; }; then
  6517. case `/usr/bin/file conftest.o` in
  6518. *64-bit*)
  6519. case $lt_cv_prog_gnu_ld in
  6520. yes*)
  6521. case $host in
  6522. i?86-*-solaris*|x86_64-*-solaris*)
  6523. LD="${LD-ld} -m elf_x86_64"
  6524. ;;
  6525. sparc*-*-solaris*)
  6526. LD="${LD-ld} -m elf64_sparc"
  6527. ;;
  6528. esac
  6529. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6530. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6531. LD=${LD-ld}_sol2
  6532. fi
  6533. ;;
  6534. *)
  6535. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6536. LD="${LD-ld} -64"
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. fi
  6543. rm -rf conftest*
  6544. ;;
  6545. esac
  6546. need_locks=$enable_libtool_lock
  6547. if test -n "$ac_tool_prefix"; then
  6548. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6549. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. printf %s "checking for $ac_word... " >&6; }
  6552. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6553. then :
  6554. printf %s "(cached) " >&6
  6555. else $as_nop
  6556. if test -n "$MANIFEST_TOOL"; then
  6557. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6558. else
  6559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6560. for as_dir in $PATH
  6561. do
  6562. IFS=$as_save_IFS
  6563. case $as_dir in #(((
  6564. '') as_dir=./ ;;
  6565. */) ;;
  6566. *) as_dir=$as_dir/ ;;
  6567. esac
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6570. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6580. if test -n "$MANIFEST_TOOL"; then
  6581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6582. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6583. else
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. printf "%s\n" "no" >&6; }
  6586. fi
  6587. fi
  6588. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6589. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6590. # Extract the first word of "mt", so it can be a program name with args.
  6591. set dummy mt; ac_word=$2
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. printf %s "checking for $ac_word... " >&6; }
  6594. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6595. then :
  6596. printf %s "(cached) " >&6
  6597. else $as_nop
  6598. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6599. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. case $as_dir in #(((
  6606. '') as_dir=./ ;;
  6607. */) ;;
  6608. *) as_dir=$as_dir/ ;;
  6609. esac
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6612. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6622. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6624. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6625. else
  6626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. printf "%s\n" "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6630. MANIFEST_TOOL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6639. fi
  6640. else
  6641. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6642. fi
  6643. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6645. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6646. if test ${lt_cv_path_mainfest_tool+y}
  6647. then :
  6648. printf %s "(cached) " >&6
  6649. else $as_nop
  6650. lt_cv_path_mainfest_tool=no
  6651. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6652. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6653. cat conftest.err >&5
  6654. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6655. lt_cv_path_mainfest_tool=yes
  6656. fi
  6657. rm -f conftest*
  6658. fi
  6659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6660. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6661. if test yes != "$lt_cv_path_mainfest_tool"; then
  6662. MANIFEST_TOOL=:
  6663. fi
  6664. case $host_os in
  6665. rhapsody* | darwin*)
  6666. if test -n "$ac_tool_prefix"; then
  6667. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6668. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6670. printf %s "checking for $ac_word... " >&6; }
  6671. if test ${ac_cv_prog_DSYMUTIL+y}
  6672. then :
  6673. printf %s "(cached) " >&6
  6674. else $as_nop
  6675. if test -n "$DSYMUTIL"; then
  6676. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6677. else
  6678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6679. for as_dir in $PATH
  6680. do
  6681. IFS=$as_save_IFS
  6682. case $as_dir in #(((
  6683. '') as_dir=./ ;;
  6684. */) ;;
  6685. *) as_dir=$as_dir/ ;;
  6686. esac
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6689. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. fi
  6697. fi
  6698. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6699. if test -n "$DSYMUTIL"; then
  6700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6701. printf "%s\n" "$DSYMUTIL" >&6; }
  6702. else
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6704. printf "%s\n" "no" >&6; }
  6705. fi
  6706. fi
  6707. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6708. ac_ct_DSYMUTIL=$DSYMUTIL
  6709. # Extract the first word of "dsymutil", so it can be a program name with args.
  6710. set dummy dsymutil; ac_word=$2
  6711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6712. printf %s "checking for $ac_word... " >&6; }
  6713. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6714. then :
  6715. printf %s "(cached) " >&6
  6716. else $as_nop
  6717. if test -n "$ac_ct_DSYMUTIL"; then
  6718. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6719. else
  6720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6721. for as_dir in $PATH
  6722. do
  6723. IFS=$as_save_IFS
  6724. case $as_dir in #(((
  6725. '') as_dir=./ ;;
  6726. */) ;;
  6727. *) as_dir=$as_dir/ ;;
  6728. esac
  6729. for ac_exec_ext in '' $ac_executable_extensions; do
  6730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6731. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6733. break 2
  6734. fi
  6735. done
  6736. done
  6737. IFS=$as_save_IFS
  6738. fi
  6739. fi
  6740. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6741. if test -n "$ac_ct_DSYMUTIL"; then
  6742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6743. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6744. else
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6746. printf "%s\n" "no" >&6; }
  6747. fi
  6748. if test "x$ac_ct_DSYMUTIL" = x; then
  6749. DSYMUTIL=":"
  6750. else
  6751. case $cross_compiling:$ac_tool_warned in
  6752. yes:)
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6755. ac_tool_warned=yes ;;
  6756. esac
  6757. DSYMUTIL=$ac_ct_DSYMUTIL
  6758. fi
  6759. else
  6760. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6761. fi
  6762. if test -n "$ac_tool_prefix"; then
  6763. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6764. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6766. printf %s "checking for $ac_word... " >&6; }
  6767. if test ${ac_cv_prog_NMEDIT+y}
  6768. then :
  6769. printf %s "(cached) " >&6
  6770. else $as_nop
  6771. if test -n "$NMEDIT"; then
  6772. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. case $as_dir in #(((
  6779. '') as_dir=./ ;;
  6780. */) ;;
  6781. *) as_dir=$as_dir/ ;;
  6782. esac
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. NMEDIT=$ac_cv_prog_NMEDIT
  6795. if test -n "$NMEDIT"; then
  6796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6797. printf "%s\n" "$NMEDIT" >&6; }
  6798. else
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. printf "%s\n" "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_NMEDIT"; then
  6804. ac_ct_NMEDIT=$NMEDIT
  6805. # Extract the first word of "nmedit", so it can be a program name with args.
  6806. set dummy nmedit; ac_word=$2
  6807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. printf %s "checking for $ac_word... " >&6; }
  6809. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6810. then :
  6811. printf %s "(cached) " >&6
  6812. else $as_nop
  6813. if test -n "$ac_ct_NMEDIT"; then
  6814. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. case $as_dir in #(((
  6821. '') as_dir=./ ;;
  6822. */) ;;
  6823. *) as_dir=$as_dir/ ;;
  6824. esac
  6825. for ac_exec_ext in '' $ac_executable_extensions; do
  6826. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6827. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6829. break 2
  6830. fi
  6831. done
  6832. done
  6833. IFS=$as_save_IFS
  6834. fi
  6835. fi
  6836. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6837. if test -n "$ac_ct_NMEDIT"; then
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6839. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6840. else
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6842. printf "%s\n" "no" >&6; }
  6843. fi
  6844. if test "x$ac_ct_NMEDIT" = x; then
  6845. NMEDIT=":"
  6846. else
  6847. case $cross_compiling:$ac_tool_warned in
  6848. yes:)
  6849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6851. ac_tool_warned=yes ;;
  6852. esac
  6853. NMEDIT=$ac_ct_NMEDIT
  6854. fi
  6855. else
  6856. NMEDIT="$ac_cv_prog_NMEDIT"
  6857. fi
  6858. if test -n "$ac_tool_prefix"; then
  6859. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6860. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6862. printf %s "checking for $ac_word... " >&6; }
  6863. if test ${ac_cv_prog_LIPO+y}
  6864. then :
  6865. printf %s "(cached) " >&6
  6866. else $as_nop
  6867. if test -n "$LIPO"; then
  6868. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6869. else
  6870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6871. for as_dir in $PATH
  6872. do
  6873. IFS=$as_save_IFS
  6874. case $as_dir in #(((
  6875. '') as_dir=./ ;;
  6876. */) ;;
  6877. *) as_dir=$as_dir/ ;;
  6878. esac
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6881. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6883. break 2
  6884. fi
  6885. done
  6886. done
  6887. IFS=$as_save_IFS
  6888. fi
  6889. fi
  6890. LIPO=$ac_cv_prog_LIPO
  6891. if test -n "$LIPO"; then
  6892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6893. printf "%s\n" "$LIPO" >&6; }
  6894. else
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6896. printf "%s\n" "no" >&6; }
  6897. fi
  6898. fi
  6899. if test -z "$ac_cv_prog_LIPO"; then
  6900. ac_ct_LIPO=$LIPO
  6901. # Extract the first word of "lipo", so it can be a program name with args.
  6902. set dummy lipo; ac_word=$2
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. printf %s "checking for $ac_word... " >&6; }
  6905. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6906. then :
  6907. printf %s "(cached) " >&6
  6908. else $as_nop
  6909. if test -n "$ac_ct_LIPO"; then
  6910. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6911. else
  6912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6913. for as_dir in $PATH
  6914. do
  6915. IFS=$as_save_IFS
  6916. case $as_dir in #(((
  6917. '') as_dir=./ ;;
  6918. */) ;;
  6919. *) as_dir=$as_dir/ ;;
  6920. esac
  6921. for ac_exec_ext in '' $ac_executable_extensions; do
  6922. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6923. ac_cv_prog_ac_ct_LIPO="lipo"
  6924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6925. break 2
  6926. fi
  6927. done
  6928. done
  6929. IFS=$as_save_IFS
  6930. fi
  6931. fi
  6932. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6933. if test -n "$ac_ct_LIPO"; then
  6934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6935. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6936. else
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. printf "%s\n" "no" >&6; }
  6939. fi
  6940. if test "x$ac_ct_LIPO" = x; then
  6941. LIPO=":"
  6942. else
  6943. case $cross_compiling:$ac_tool_warned in
  6944. yes:)
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6946. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6947. ac_tool_warned=yes ;;
  6948. esac
  6949. LIPO=$ac_ct_LIPO
  6950. fi
  6951. else
  6952. LIPO="$ac_cv_prog_LIPO"
  6953. fi
  6954. if test -n "$ac_tool_prefix"; then
  6955. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6956. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6958. printf %s "checking for $ac_word... " >&6; }
  6959. if test ${ac_cv_prog_OTOOL+y}
  6960. then :
  6961. printf %s "(cached) " >&6
  6962. else $as_nop
  6963. if test -n "$OTOOL"; then
  6964. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6965. else
  6966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6967. for as_dir in $PATH
  6968. do
  6969. IFS=$as_save_IFS
  6970. case $as_dir in #(((
  6971. '') as_dir=./ ;;
  6972. */) ;;
  6973. *) as_dir=$as_dir/ ;;
  6974. esac
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. OTOOL=$ac_cv_prog_OTOOL
  6987. if test -n "$OTOOL"; then
  6988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6989. printf "%s\n" "$OTOOL" >&6; }
  6990. else
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. printf "%s\n" "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_OTOOL"; then
  6996. ac_ct_OTOOL=$OTOOL
  6997. # Extract the first word of "otool", so it can be a program name with args.
  6998. set dummy otool; ac_word=$2
  6999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. printf %s "checking for $ac_word... " >&6; }
  7001. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7002. then :
  7003. printf %s "(cached) " >&6
  7004. else $as_nop
  7005. if test -n "$ac_ct_OTOOL"; then
  7006. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. case $as_dir in #(((
  7013. '') as_dir=./ ;;
  7014. */) ;;
  7015. *) as_dir=$as_dir/ ;;
  7016. esac
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_OTOOL="otool"
  7020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7029. if test -n "$ac_ct_OTOOL"; then
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7031. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7032. else
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. printf "%s\n" "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_OTOOL" = x; then
  7037. OTOOL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. OTOOL=$ac_ct_OTOOL
  7046. fi
  7047. else
  7048. OTOOL="$ac_cv_prog_OTOOL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. printf %s "checking for $ac_word... " >&6; }
  7055. if test ${ac_cv_prog_OTOOL64+y}
  7056. then :
  7057. printf %s "(cached) " >&6
  7058. else $as_nop
  7059. if test -n "$OTOOL64"; then
  7060. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7061. else
  7062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7063. for as_dir in $PATH
  7064. do
  7065. IFS=$as_save_IFS
  7066. case $as_dir in #(((
  7067. '') as_dir=./ ;;
  7068. */) ;;
  7069. *) as_dir=$as_dir/ ;;
  7070. esac
  7071. for ac_exec_ext in '' $ac_executable_extensions; do
  7072. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7073. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7075. break 2
  7076. fi
  7077. done
  7078. done
  7079. IFS=$as_save_IFS
  7080. fi
  7081. fi
  7082. OTOOL64=$ac_cv_prog_OTOOL64
  7083. if test -n "$OTOOL64"; then
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7085. printf "%s\n" "$OTOOL64" >&6; }
  7086. else
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. printf "%s\n" "no" >&6; }
  7089. fi
  7090. fi
  7091. if test -z "$ac_cv_prog_OTOOL64"; then
  7092. ac_ct_OTOOL64=$OTOOL64
  7093. # Extract the first word of "otool64", so it can be a program name with args.
  7094. set dummy otool64; ac_word=$2
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7096. printf %s "checking for $ac_word... " >&6; }
  7097. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. if test -n "$ac_ct_OTOOL64"; then
  7102. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7103. else
  7104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7105. for as_dir in $PATH
  7106. do
  7107. IFS=$as_save_IFS
  7108. case $as_dir in #(((
  7109. '') as_dir=./ ;;
  7110. */) ;;
  7111. *) as_dir=$as_dir/ ;;
  7112. esac
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7125. if test -n "$ac_ct_OTOOL64"; then
  7126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7127. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7128. else
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. printf "%s\n" "no" >&6; }
  7131. fi
  7132. if test "x$ac_ct_OTOOL64" = x; then
  7133. OTOOL64=":"
  7134. else
  7135. case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141. OTOOL64=$ac_ct_OTOOL64
  7142. fi
  7143. else
  7144. OTOOL64="$ac_cv_prog_OTOOL64"
  7145. fi
  7146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7147. printf %s "checking for -single_module linker flag... " >&6; }
  7148. if test ${lt_cv_apple_cc_single_mod+y}
  7149. then :
  7150. printf %s "(cached) " >&6
  7151. else $as_nop
  7152. lt_cv_apple_cc_single_mod=no
  7153. if test -z "$LT_MULTI_MODULE"; then
  7154. # By default we will add the -single_module flag. You can override
  7155. # by either setting the environment variable LT_MULTI_MODULE
  7156. # non-empty at configure time, or by adding -multi_module to the
  7157. # link flags.
  7158. rm -rf libconftest.dylib*
  7159. echo "int foo(void){return 1;}" > conftest.c
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7163. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7164. _lt_result=$?
  7165. # If there is a non-empty error log, and "single_module"
  7166. # appears in it, assume the flag caused a linker warning
  7167. if test -s conftest.err && $GREP single_module conftest.err; then
  7168. cat conftest.err >&5
  7169. # Otherwise, if the output was created with a 0 exit code from
  7170. # the compiler, it worked.
  7171. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7172. lt_cv_apple_cc_single_mod=yes
  7173. else
  7174. cat conftest.err >&5
  7175. fi
  7176. rm -rf libconftest.dylib*
  7177. rm -f conftest.*
  7178. fi
  7179. fi
  7180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7181. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7182. # Feature test to disable chained fixups since it is not
  7183. # compatible with '-undefined dynamic_lookup'
  7184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
  7185. printf %s "checking for -no_fixup_chains linker flag... " >&6; }
  7186. if test ${lt_cv_support_no_fixup_chains+y}
  7187. then :
  7188. printf %s "(cached) " >&6
  7189. else $as_nop
  7190. save_LDFLAGS=$LDFLAGS
  7191. LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
  7192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7193. /* end confdefs.h. */
  7194. int
  7195. main (void)
  7196. {
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_c_try_link "$LINENO"
  7202. then :
  7203. lt_cv_support_no_fixup_chains=yes
  7204. else $as_nop
  7205. lt_cv_support_no_fixup_chains=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7208. conftest$ac_exeext conftest.$ac_ext
  7209. LDFLAGS=$save_LDFLAGS
  7210. fi
  7211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
  7212. printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7214. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7215. if test ${lt_cv_ld_exported_symbols_list+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. lt_cv_ld_exported_symbols_list=no
  7220. save_LDFLAGS=$LDFLAGS
  7221. echo "_main" > conftest.sym
  7222. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end confdefs.h. */
  7225. int
  7226. main (void)
  7227. {
  7228. ;
  7229. return 0;
  7230. }
  7231. _ACEOF
  7232. if ac_fn_c_try_link "$LINENO"
  7233. then :
  7234. lt_cv_ld_exported_symbols_list=yes
  7235. else $as_nop
  7236. lt_cv_ld_exported_symbols_list=no
  7237. fi
  7238. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7239. conftest$ac_exeext conftest.$ac_ext
  7240. LDFLAGS=$save_LDFLAGS
  7241. fi
  7242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7243. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7245. printf %s "checking for -force_load linker flag... " >&6; }
  7246. if test ${lt_cv_ld_force_load+y}
  7247. then :
  7248. printf %s "(cached) " >&6
  7249. else $as_nop
  7250. lt_cv_ld_force_load=no
  7251. cat > conftest.c << _LT_EOF
  7252. int forced_loaded() { return 2;}
  7253. _LT_EOF
  7254. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7255. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7256. echo "$AR cru libconftest.a conftest.o" >&5
  7257. $AR cru libconftest.a conftest.o 2>&5
  7258. echo "$RANLIB libconftest.a" >&5
  7259. $RANLIB libconftest.a 2>&5
  7260. cat > conftest.c << _LT_EOF
  7261. int main(void) { return 0;}
  7262. _LT_EOF
  7263. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7264. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7265. _lt_result=$?
  7266. if test -s conftest.err && $GREP force_load conftest.err; then
  7267. cat conftest.err >&5
  7268. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7269. lt_cv_ld_force_load=yes
  7270. else
  7271. cat conftest.err >&5
  7272. fi
  7273. rm -f conftest.err libconftest.a conftest conftest.c
  7274. rm -rf conftest.dSYM
  7275. fi
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7277. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7278. case $host_os in
  7279. rhapsody* | darwin1.[012])
  7280. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7281. darwin1.*)
  7282. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7283. darwin*)
  7284. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7285. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7286. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7287. *)
  7288. if test yes = "$lt_cv_support_no_fixup_chains"; then
  7289. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains'
  7290. else
  7291. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
  7292. fi
  7293. ;;
  7294. esac
  7295. ;;
  7296. esac
  7297. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7298. _lt_dar_single_mod='$single_module'
  7299. fi
  7300. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7301. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7302. else
  7303. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7304. fi
  7305. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7306. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7307. else
  7308. _lt_dsymutil=
  7309. fi
  7310. ;;
  7311. esac
  7312. # func_munge_path_list VARIABLE PATH
  7313. # -----------------------------------
  7314. # VARIABLE is name of variable containing _space_ separated list of
  7315. # directories to be munged by the contents of PATH, which is string
  7316. # having a format:
  7317. # "DIR[:DIR]:"
  7318. # string "DIR[ DIR]" will be prepended to VARIABLE
  7319. # ":DIR[:DIR]"
  7320. # string "DIR[ DIR]" will be appended to VARIABLE
  7321. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7322. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7323. # "DIRA[ DIRA]" will be appended to VARIABLE
  7324. # "DIR[:DIR]"
  7325. # VARIABLE will be replaced by "DIR[ DIR]"
  7326. func_munge_path_list ()
  7327. {
  7328. case x$2 in
  7329. x)
  7330. ;;
  7331. *:)
  7332. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7333. ;;
  7334. x:*)
  7335. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7336. ;;
  7337. *::*)
  7338. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7339. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7340. ;;
  7341. *)
  7342. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7343. ;;
  7344. esac
  7345. }
  7346. ac_header= ac_cache=
  7347. for ac_item in $ac_header_c_list
  7348. do
  7349. if test $ac_cache; then
  7350. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7351. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7352. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7353. fi
  7354. ac_header= ac_cache=
  7355. elif test $ac_header; then
  7356. ac_cache=$ac_item
  7357. else
  7358. ac_header=$ac_item
  7359. fi
  7360. done
  7361. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7362. then :
  7363. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7364. fi
  7365. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7366. "
  7367. if test "x$ac_cv_header_dlfcn_h" = xyes
  7368. then :
  7369. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7370. fi
  7371. # Set options
  7372. enable_win32_dll=yes
  7373. case $host in
  7374. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7375. if test -n "$ac_tool_prefix"; then
  7376. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7377. set dummy ${ac_tool_prefix}as; ac_word=$2
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. printf %s "checking for $ac_word... " >&6; }
  7380. if test ${ac_cv_prog_AS+y}
  7381. then :
  7382. printf %s "(cached) " >&6
  7383. else $as_nop
  7384. if test -n "$AS"; then
  7385. ac_cv_prog_AS="$AS" # Let the user override the test.
  7386. else
  7387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7388. for as_dir in $PATH
  7389. do
  7390. IFS=$as_save_IFS
  7391. case $as_dir in #(((
  7392. '') as_dir=./ ;;
  7393. */) ;;
  7394. *) as_dir=$as_dir/ ;;
  7395. esac
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7398. ac_cv_prog_AS="${ac_tool_prefix}as"
  7399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. AS=$ac_cv_prog_AS
  7408. if test -n "$AS"; then
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7410. printf "%s\n" "$AS" >&6; }
  7411. else
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. printf "%s\n" "no" >&6; }
  7414. fi
  7415. fi
  7416. if test -z "$ac_cv_prog_AS"; then
  7417. ac_ct_AS=$AS
  7418. # Extract the first word of "as", so it can be a program name with args.
  7419. set dummy as; ac_word=$2
  7420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7421. printf %s "checking for $ac_word... " >&6; }
  7422. if test ${ac_cv_prog_ac_ct_AS+y}
  7423. then :
  7424. printf %s "(cached) " >&6
  7425. else $as_nop
  7426. if test -n "$ac_ct_AS"; then
  7427. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7428. else
  7429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7430. for as_dir in $PATH
  7431. do
  7432. IFS=$as_save_IFS
  7433. case $as_dir in #(((
  7434. '') as_dir=./ ;;
  7435. */) ;;
  7436. *) as_dir=$as_dir/ ;;
  7437. esac
  7438. for ac_exec_ext in '' $ac_executable_extensions; do
  7439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7440. ac_cv_prog_ac_ct_AS="as"
  7441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7442. break 2
  7443. fi
  7444. done
  7445. done
  7446. IFS=$as_save_IFS
  7447. fi
  7448. fi
  7449. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7450. if test -n "$ac_ct_AS"; then
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7452. printf "%s\n" "$ac_ct_AS" >&6; }
  7453. else
  7454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7455. printf "%s\n" "no" >&6; }
  7456. fi
  7457. if test "x$ac_ct_AS" = x; then
  7458. AS="false"
  7459. else
  7460. case $cross_compiling:$ac_tool_warned in
  7461. yes:)
  7462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7463. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7464. ac_tool_warned=yes ;;
  7465. esac
  7466. AS=$ac_ct_AS
  7467. fi
  7468. else
  7469. AS="$ac_cv_prog_AS"
  7470. fi
  7471. if test -n "$ac_tool_prefix"; then
  7472. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7473. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7475. printf %s "checking for $ac_word... " >&6; }
  7476. if test ${ac_cv_prog_DLLTOOL+y}
  7477. then :
  7478. printf %s "(cached) " >&6
  7479. else $as_nop
  7480. if test -n "$DLLTOOL"; then
  7481. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7482. else
  7483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7484. for as_dir in $PATH
  7485. do
  7486. IFS=$as_save_IFS
  7487. case $as_dir in #(((
  7488. '') as_dir=./ ;;
  7489. */) ;;
  7490. *) as_dir=$as_dir/ ;;
  7491. esac
  7492. for ac_exec_ext in '' $ac_executable_extensions; do
  7493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7494. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7496. break 2
  7497. fi
  7498. done
  7499. done
  7500. IFS=$as_save_IFS
  7501. fi
  7502. fi
  7503. DLLTOOL=$ac_cv_prog_DLLTOOL
  7504. if test -n "$DLLTOOL"; then
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7506. printf "%s\n" "$DLLTOOL" >&6; }
  7507. else
  7508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7509. printf "%s\n" "no" >&6; }
  7510. fi
  7511. fi
  7512. if test -z "$ac_cv_prog_DLLTOOL"; then
  7513. ac_ct_DLLTOOL=$DLLTOOL
  7514. # Extract the first word of "dlltool", so it can be a program name with args.
  7515. set dummy dlltool; ac_word=$2
  7516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7517. printf %s "checking for $ac_word... " >&6; }
  7518. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7519. then :
  7520. printf %s "(cached) " >&6
  7521. else $as_nop
  7522. if test -n "$ac_ct_DLLTOOL"; then
  7523. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7524. else
  7525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7526. for as_dir in $PATH
  7527. do
  7528. IFS=$as_save_IFS
  7529. case $as_dir in #(((
  7530. '') as_dir=./ ;;
  7531. */) ;;
  7532. *) as_dir=$as_dir/ ;;
  7533. esac
  7534. for ac_exec_ext in '' $ac_executable_extensions; do
  7535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7536. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7538. break 2
  7539. fi
  7540. done
  7541. done
  7542. IFS=$as_save_IFS
  7543. fi
  7544. fi
  7545. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7546. if test -n "$ac_ct_DLLTOOL"; then
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7548. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7549. else
  7550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7551. printf "%s\n" "no" >&6; }
  7552. fi
  7553. if test "x$ac_ct_DLLTOOL" = x; then
  7554. DLLTOOL="false"
  7555. else
  7556. case $cross_compiling:$ac_tool_warned in
  7557. yes:)
  7558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7560. ac_tool_warned=yes ;;
  7561. esac
  7562. DLLTOOL=$ac_ct_DLLTOOL
  7563. fi
  7564. else
  7565. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7566. fi
  7567. if test -n "$ac_tool_prefix"; then
  7568. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7569. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7571. printf %s "checking for $ac_word... " >&6; }
  7572. if test ${ac_cv_prog_OBJDUMP+y}
  7573. then :
  7574. printf %s "(cached) " >&6
  7575. else $as_nop
  7576. if test -n "$OBJDUMP"; then
  7577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7578. else
  7579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7580. for as_dir in $PATH
  7581. do
  7582. IFS=$as_save_IFS
  7583. case $as_dir in #(((
  7584. '') as_dir=./ ;;
  7585. */) ;;
  7586. *) as_dir=$as_dir/ ;;
  7587. esac
  7588. for ac_exec_ext in '' $ac_executable_extensions; do
  7589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7592. break 2
  7593. fi
  7594. done
  7595. done
  7596. IFS=$as_save_IFS
  7597. fi
  7598. fi
  7599. OBJDUMP=$ac_cv_prog_OBJDUMP
  7600. if test -n "$OBJDUMP"; then
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7602. printf "%s\n" "$OBJDUMP" >&6; }
  7603. else
  7604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7605. printf "%s\n" "no" >&6; }
  7606. fi
  7607. fi
  7608. if test -z "$ac_cv_prog_OBJDUMP"; then
  7609. ac_ct_OBJDUMP=$OBJDUMP
  7610. # Extract the first word of "objdump", so it can be a program name with args.
  7611. set dummy objdump; ac_word=$2
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7613. printf %s "checking for $ac_word... " >&6; }
  7614. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7615. then :
  7616. printf %s "(cached) " >&6
  7617. else $as_nop
  7618. if test -n "$ac_ct_OBJDUMP"; then
  7619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7620. else
  7621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7622. for as_dir in $PATH
  7623. do
  7624. IFS=$as_save_IFS
  7625. case $as_dir in #(((
  7626. '') as_dir=./ ;;
  7627. */) ;;
  7628. *) as_dir=$as_dir/ ;;
  7629. esac
  7630. for ac_exec_ext in '' $ac_executable_extensions; do
  7631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7634. break 2
  7635. fi
  7636. done
  7637. done
  7638. IFS=$as_save_IFS
  7639. fi
  7640. fi
  7641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7642. if test -n "$ac_ct_OBJDUMP"; then
  7643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7644. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7645. else
  7646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7647. printf "%s\n" "no" >&6; }
  7648. fi
  7649. if test "x$ac_ct_OBJDUMP" = x; then
  7650. OBJDUMP="false"
  7651. else
  7652. case $cross_compiling:$ac_tool_warned in
  7653. yes:)
  7654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7655. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7656. ac_tool_warned=yes ;;
  7657. esac
  7658. OBJDUMP=$ac_ct_OBJDUMP
  7659. fi
  7660. else
  7661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7662. fi
  7663. ;;
  7664. esac
  7665. test -z "$AS" && AS=as
  7666. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7667. test -z "$OBJDUMP" && OBJDUMP=objdump
  7668. enable_dlopen=no
  7669. # Check whether --enable-shared was given.
  7670. if test ${enable_shared+y}
  7671. then :
  7672. enableval=$enable_shared; p=${PACKAGE-default}
  7673. case $enableval in
  7674. yes) enable_shared=yes ;;
  7675. no) enable_shared=no ;;
  7676. *)
  7677. enable_shared=no
  7678. # Look at the argument we got. We use all the common list separators.
  7679. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7680. for pkg in $enableval; do
  7681. IFS=$lt_save_ifs
  7682. if test "X$pkg" = "X$p"; then
  7683. enable_shared=yes
  7684. fi
  7685. done
  7686. IFS=$lt_save_ifs
  7687. ;;
  7688. esac
  7689. else $as_nop
  7690. enable_shared=yes
  7691. fi
  7692. # Check whether --enable-static was given.
  7693. if test ${enable_static+y}
  7694. then :
  7695. enableval=$enable_static; p=${PACKAGE-default}
  7696. case $enableval in
  7697. yes) enable_static=yes ;;
  7698. no) enable_static=no ;;
  7699. *)
  7700. enable_static=no
  7701. # Look at the argument we got. We use all the common list separators.
  7702. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7703. for pkg in $enableval; do
  7704. IFS=$lt_save_ifs
  7705. if test "X$pkg" = "X$p"; then
  7706. enable_static=yes
  7707. fi
  7708. done
  7709. IFS=$lt_save_ifs
  7710. ;;
  7711. esac
  7712. else $as_nop
  7713. enable_static=yes
  7714. fi
  7715. # Check whether --with-pic was given.
  7716. if test ${with_pic+y}
  7717. then :
  7718. withval=$with_pic; lt_p=${PACKAGE-default}
  7719. case $withval in
  7720. yes|no) pic_mode=$withval ;;
  7721. *)
  7722. pic_mode=default
  7723. # Look at the argument we got. We use all the common list separators.
  7724. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7725. for lt_pkg in $withval; do
  7726. IFS=$lt_save_ifs
  7727. if test "X$lt_pkg" = "X$lt_p"; then
  7728. pic_mode=yes
  7729. fi
  7730. done
  7731. IFS=$lt_save_ifs
  7732. ;;
  7733. esac
  7734. else $as_nop
  7735. pic_mode=default
  7736. fi
  7737. # Check whether --enable-fast-install was given.
  7738. if test ${enable_fast_install+y}
  7739. then :
  7740. enableval=$enable_fast_install; p=${PACKAGE-default}
  7741. case $enableval in
  7742. yes) enable_fast_install=yes ;;
  7743. no) enable_fast_install=no ;;
  7744. *)
  7745. enable_fast_install=no
  7746. # Look at the argument we got. We use all the common list separators.
  7747. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7748. for pkg in $enableval; do
  7749. IFS=$lt_save_ifs
  7750. if test "X$pkg" = "X$p"; then
  7751. enable_fast_install=yes
  7752. fi
  7753. done
  7754. IFS=$lt_save_ifs
  7755. ;;
  7756. esac
  7757. else $as_nop
  7758. enable_fast_install=yes
  7759. fi
  7760. shared_archive_member_spec=
  7761. case $host,$enable_shared in
  7762. power*-*-aix[5-9]*,yes)
  7763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7764. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7765. # Check whether --with-aix-soname was given.
  7766. if test ${with_aix_soname+y}
  7767. then :
  7768. withval=$with_aix_soname; case $withval in
  7769. aix|svr4|both)
  7770. ;;
  7771. *)
  7772. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7773. ;;
  7774. esac
  7775. lt_cv_with_aix_soname=$with_aix_soname
  7776. else $as_nop
  7777. if test ${lt_cv_with_aix_soname+y}
  7778. then :
  7779. printf %s "(cached) " >&6
  7780. else $as_nop
  7781. lt_cv_with_aix_soname=aix
  7782. fi
  7783. with_aix_soname=$lt_cv_with_aix_soname
  7784. fi
  7785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7786. printf "%s\n" "$with_aix_soname" >&6; }
  7787. if test aix != "$with_aix_soname"; then
  7788. # For the AIX way of multilib, we name the shared archive member
  7789. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7790. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7791. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7792. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7793. if test 64 = "${OBJECT_MODE-32}"; then
  7794. shared_archive_member_spec=shr_64
  7795. else
  7796. shared_archive_member_spec=shr
  7797. fi
  7798. fi
  7799. ;;
  7800. *)
  7801. with_aix_soname=aix
  7802. ;;
  7803. esac
  7804. # This can be used to rebuild libtool when needed
  7805. LIBTOOL_DEPS=$ltmain
  7806. # Always use our own libtool.
  7807. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7808. test -z "$LN_S" && LN_S="ln -s"
  7809. if test -n "${ZSH_VERSION+set}"; then
  7810. setopt NO_GLOB_SUBST
  7811. fi
  7812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7813. printf %s "checking for objdir... " >&6; }
  7814. if test ${lt_cv_objdir+y}
  7815. then :
  7816. printf %s "(cached) " >&6
  7817. else $as_nop
  7818. rm -f .libs 2>/dev/null
  7819. mkdir .libs 2>/dev/null
  7820. if test -d .libs; then
  7821. lt_cv_objdir=.libs
  7822. else
  7823. # MS-DOS does not allow filenames that begin with a dot.
  7824. lt_cv_objdir=_libs
  7825. fi
  7826. rmdir .libs 2>/dev/null
  7827. fi
  7828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7829. printf "%s\n" "$lt_cv_objdir" >&6; }
  7830. objdir=$lt_cv_objdir
  7831. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7832. case $host_os in
  7833. aix3*)
  7834. # AIX sometimes has problems with the GCC collect2 program. For some
  7835. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7836. # vanish in a puff of smoke.
  7837. if test set != "${COLLECT_NAMES+set}"; then
  7838. COLLECT_NAMES=
  7839. export COLLECT_NAMES
  7840. fi
  7841. ;;
  7842. esac
  7843. # Global variables:
  7844. ofile=libtool
  7845. can_build_shared=yes
  7846. # All known linkers require a '.a' archive for static linking (except MSVC and
  7847. # ICC, which need '.lib').
  7848. libext=a
  7849. with_gnu_ld=$lt_cv_prog_gnu_ld
  7850. old_CC=$CC
  7851. old_CFLAGS=$CFLAGS
  7852. # Set sane defaults for various variables
  7853. test -z "$CC" && CC=cc
  7854. test -z "$LTCC" && LTCC=$CC
  7855. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7856. test -z "$LD" && LD=ld
  7857. test -z "$ac_objext" && ac_objext=o
  7858. func_cc_basename $compiler
  7859. cc_basename=$func_cc_basename_result
  7860. # Only perform the check for file, if the check method requires it
  7861. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7862. case $deplibs_check_method in
  7863. file_magic*)
  7864. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7866. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7867. if test ${lt_cv_path_MAGIC_CMD+y}
  7868. then :
  7869. printf %s "(cached) " >&6
  7870. else $as_nop
  7871. case $MAGIC_CMD in
  7872. [\\/*] | ?:[\\/]*)
  7873. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. lt_save_MAGIC_CMD=$MAGIC_CMD
  7877. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7878. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7879. for ac_dir in $ac_dummy; do
  7880. IFS=$lt_save_ifs
  7881. test -z "$ac_dir" && ac_dir=.
  7882. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7883. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7884. if test -n "$file_magic_test_file"; then
  7885. case $deplibs_check_method in
  7886. "file_magic "*)
  7887. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7888. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7889. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7890. $EGREP "$file_magic_regex" > /dev/null; then
  7891. :
  7892. else
  7893. cat <<_LT_EOF 1>&2
  7894. *** Warning: the command libtool uses to detect shared libraries,
  7895. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7896. *** The result is that libtool may fail to recognize shared libraries
  7897. *** as such. This will affect the creation of libtool libraries that
  7898. *** depend on shared libraries, but programs linked with such libtool
  7899. *** libraries will work regardless of this problem. Nevertheless, you
  7900. *** may want to report the problem to your system manager and/or to
  7901. *** [email protected]
  7902. _LT_EOF
  7903. fi ;;
  7904. esac
  7905. fi
  7906. break
  7907. fi
  7908. done
  7909. IFS=$lt_save_ifs
  7910. MAGIC_CMD=$lt_save_MAGIC_CMD
  7911. ;;
  7912. esac
  7913. fi
  7914. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7915. if test -n "$MAGIC_CMD"; then
  7916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7917. printf "%s\n" "$MAGIC_CMD" >&6; }
  7918. else
  7919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7920. printf "%s\n" "no" >&6; }
  7921. fi
  7922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7923. if test -n "$ac_tool_prefix"; then
  7924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7925. printf %s "checking for file... " >&6; }
  7926. if test ${lt_cv_path_MAGIC_CMD+y}
  7927. then :
  7928. printf %s "(cached) " >&6
  7929. else $as_nop
  7930. case $MAGIC_CMD in
  7931. [\\/*] | ?:[\\/]*)
  7932. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7933. ;;
  7934. *)
  7935. lt_save_MAGIC_CMD=$MAGIC_CMD
  7936. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7938. for ac_dir in $ac_dummy; do
  7939. IFS=$lt_save_ifs
  7940. test -z "$ac_dir" && ac_dir=.
  7941. if test -f "$ac_dir/file"; then
  7942. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7943. if test -n "$file_magic_test_file"; then
  7944. case $deplibs_check_method in
  7945. "file_magic "*)
  7946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7947. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7949. $EGREP "$file_magic_regex" > /dev/null; then
  7950. :
  7951. else
  7952. cat <<_LT_EOF 1>&2
  7953. *** Warning: the command libtool uses to detect shared libraries,
  7954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7955. *** The result is that libtool may fail to recognize shared libraries
  7956. *** as such. This will affect the creation of libtool libraries that
  7957. *** depend on shared libraries, but programs linked with such libtool
  7958. *** libraries will work regardless of this problem. Nevertheless, you
  7959. *** may want to report the problem to your system manager and/or to
  7960. *** [email protected]
  7961. _LT_EOF
  7962. fi ;;
  7963. esac
  7964. fi
  7965. break
  7966. fi
  7967. done
  7968. IFS=$lt_save_ifs
  7969. MAGIC_CMD=$lt_save_MAGIC_CMD
  7970. ;;
  7971. esac
  7972. fi
  7973. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7974. if test -n "$MAGIC_CMD"; then
  7975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7976. printf "%s\n" "$MAGIC_CMD" >&6; }
  7977. else
  7978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7979. printf "%s\n" "no" >&6; }
  7980. fi
  7981. else
  7982. MAGIC_CMD=:
  7983. fi
  7984. fi
  7985. fi
  7986. ;;
  7987. esac
  7988. # Use C for the default configuration in the libtool script
  7989. lt_save_CC=$CC
  7990. ac_ext=c
  7991. ac_cpp='$CPP $CPPFLAGS'
  7992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7995. # Source file extension for C test sources.
  7996. ac_ext=c
  7997. # Object file extension for compiled C test sources.
  7998. objext=o
  7999. objext=$objext
  8000. # Code to be used in simple compile tests
  8001. lt_simple_compile_test_code="int some_variable = 0;"
  8002. # Code to be used in simple link tests
  8003. lt_simple_link_test_code='int main(void){return(0);}'
  8004. # If no C compiler was specified, use CC.
  8005. LTCC=${LTCC-"$CC"}
  8006. # If no C compiler flags were specified, use CFLAGS.
  8007. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8008. # Allow CC to be a program name with arguments.
  8009. compiler=$CC
  8010. # Save the default compiler, since it gets overwritten when the other
  8011. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8012. compiler_DEFAULT=$CC
  8013. # save warnings/boilerplate of simple test code
  8014. ac_outfile=conftest.$ac_objext
  8015. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8016. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8017. _lt_compiler_boilerplate=`cat conftest.err`
  8018. $RM conftest*
  8019. ac_outfile=conftest.$ac_objext
  8020. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8021. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8022. _lt_linker_boilerplate=`cat conftest.err`
  8023. $RM -r conftest*
  8024. ## CAVEAT EMPTOR:
  8025. ## There is no encapsulation within the following macros, do not change
  8026. ## the running order or otherwise move them around unless you know exactly
  8027. ## what you are doing...
  8028. if test -n "$compiler"; then
  8029. lt_prog_compiler_no_builtin_flag=
  8030. if test yes = "$GCC"; then
  8031. case $cc_basename in
  8032. nvcc*)
  8033. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8034. *)
  8035. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8036. esac
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8038. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8039. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8040. then :
  8041. printf %s "(cached) " >&6
  8042. else $as_nop
  8043. lt_cv_prog_compiler_rtti_exceptions=no
  8044. ac_outfile=conftest.$ac_objext
  8045. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8046. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8047. # Insert the option either (1) after the last *FLAGS variable, or
  8048. # (2) before a word containing "conftest.", or (3) at the end.
  8049. # Note that $ac_compile itself does not contain backslashes and begins
  8050. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8051. # The option is referenced via a variable to avoid confusing sed.
  8052. lt_compile=`echo "$ac_compile" | $SED \
  8053. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8054. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8055. -e 's:$: $lt_compiler_flag:'`
  8056. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8057. (eval "$lt_compile" 2>conftest.err)
  8058. ac_status=$?
  8059. cat conftest.err >&5
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. if (exit $ac_status) && test -s "$ac_outfile"; then
  8062. # The compiler can only warn and ignore the option if not recognized
  8063. # So say no if there are warnings other than the usual output.
  8064. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8065. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8066. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8067. lt_cv_prog_compiler_rtti_exceptions=yes
  8068. fi
  8069. fi
  8070. $RM conftest*
  8071. fi
  8072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8073. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8074. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8075. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8076. else
  8077. :
  8078. fi
  8079. fi
  8080. lt_prog_compiler_wl=
  8081. lt_prog_compiler_pic=
  8082. lt_prog_compiler_static=
  8083. if test yes = "$GCC"; then
  8084. lt_prog_compiler_wl='-Wl,'
  8085. lt_prog_compiler_static='-static'
  8086. case $host_os in
  8087. aix*)
  8088. # All AIX code is PIC.
  8089. if test ia64 = "$host_cpu"; then
  8090. # AIX 5 now supports IA64 processor
  8091. lt_prog_compiler_static='-Bstatic'
  8092. fi
  8093. lt_prog_compiler_pic='-fPIC'
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. lt_prog_compiler_pic='-fPIC'
  8100. ;;
  8101. m68k)
  8102. # FIXME: we need at least 68020 code to build shared libraries, but
  8103. # adding the '-m68020' flag to GCC prevents building anything better,
  8104. # like '-m68040'.
  8105. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8106. ;;
  8107. esac
  8108. ;;
  8109. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8110. # PIC is the default for these OSes.
  8111. ;;
  8112. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8113. # This hack is so that the source file can tell whether it is being
  8114. # built for inclusion in a dll (and should export symbols for example).
  8115. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8116. # (--disable-auto-import) libraries
  8117. lt_prog_compiler_pic='-DDLL_EXPORT'
  8118. case $host_os in
  8119. os2*)
  8120. lt_prog_compiler_static='$wl-static'
  8121. ;;
  8122. esac
  8123. ;;
  8124. darwin* | rhapsody*)
  8125. # PIC is the default on this platform
  8126. # Common symbols not allowed in MH_DYLIB files
  8127. lt_prog_compiler_pic='-fno-common'
  8128. ;;
  8129. haiku*)
  8130. # PIC is the default for Haiku.
  8131. # The "-static" flag exists, but is broken.
  8132. lt_prog_compiler_static=
  8133. ;;
  8134. hpux*)
  8135. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8136. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8137. # sets the default TLS model and affects inlining.
  8138. case $host_cpu in
  8139. hppa*64*)
  8140. # +Z the default
  8141. ;;
  8142. *)
  8143. lt_prog_compiler_pic='-fPIC'
  8144. ;;
  8145. esac
  8146. ;;
  8147. interix[3-9]*)
  8148. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8149. # Instead, we relocate shared libraries at runtime.
  8150. ;;
  8151. msdosdjgpp*)
  8152. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8153. # on systems that don't support them.
  8154. lt_prog_compiler_can_build_shared=no
  8155. enable_shared=no
  8156. ;;
  8157. *nto* | *qnx*)
  8158. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8159. # it will coredump.
  8160. lt_prog_compiler_pic='-fPIC -shared'
  8161. ;;
  8162. sysv4*MP*)
  8163. if test -d /usr/nec; then
  8164. lt_prog_compiler_pic=-Kconform_pic
  8165. fi
  8166. ;;
  8167. *)
  8168. lt_prog_compiler_pic='-fPIC'
  8169. ;;
  8170. esac
  8171. case $cc_basename in
  8172. nvcc*) # Cuda Compiler Driver 2.2
  8173. lt_prog_compiler_wl='-Xlinker '
  8174. if test -n "$lt_prog_compiler_pic"; then
  8175. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8176. fi
  8177. ;;
  8178. esac
  8179. else
  8180. # PORTME Check for flag to pass linker flags through the system compiler.
  8181. case $host_os in
  8182. aix*)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. if test ia64 = "$host_cpu"; then
  8185. # AIX 5 now supports IA64 processor
  8186. lt_prog_compiler_static='-Bstatic'
  8187. else
  8188. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8189. fi
  8190. ;;
  8191. darwin* | rhapsody*)
  8192. # PIC is the default on this platform
  8193. # Common symbols not allowed in MH_DYLIB files
  8194. lt_prog_compiler_pic='-fno-common'
  8195. case $cc_basename in
  8196. nagfor*)
  8197. # NAG Fortran compiler
  8198. lt_prog_compiler_wl='-Wl,-Wl,,'
  8199. lt_prog_compiler_pic='-PIC'
  8200. lt_prog_compiler_static='-Bstatic'
  8201. ;;
  8202. esac
  8203. ;;
  8204. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8205. # This hack is so that the source file can tell whether it is being
  8206. # built for inclusion in a dll (and should export symbols for example).
  8207. lt_prog_compiler_pic='-DDLL_EXPORT'
  8208. case $host_os in
  8209. os2*)
  8210. lt_prog_compiler_static='$wl-static'
  8211. ;;
  8212. esac
  8213. ;;
  8214. hpux9* | hpux10* | hpux11*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8217. # not for PA HP-UX.
  8218. case $host_cpu in
  8219. hppa*64*|ia64*)
  8220. # +Z the default
  8221. ;;
  8222. *)
  8223. lt_prog_compiler_pic='+Z'
  8224. ;;
  8225. esac
  8226. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8227. lt_prog_compiler_static='$wl-a ${wl}archive'
  8228. ;;
  8229. irix5* | irix6* | nonstopux*)
  8230. lt_prog_compiler_wl='-Wl,'
  8231. # PIC (with -KPIC) is the default.
  8232. lt_prog_compiler_static='-non_shared'
  8233. ;;
  8234. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8235. case $cc_basename in
  8236. # old Intel for x86_64, which still supported -KPIC.
  8237. ecc*)
  8238. lt_prog_compiler_wl='-Wl,'
  8239. lt_prog_compiler_pic='-KPIC'
  8240. lt_prog_compiler_static='-static'
  8241. ;;
  8242. # icc used to be incompatible with GCC.
  8243. # ICC 10 doesn't accept -KPIC any more.
  8244. icc* | ifort*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-fPIC'
  8247. lt_prog_compiler_static='-static'
  8248. ;;
  8249. # Lahey Fortran 8.1.
  8250. lf95*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. lt_prog_compiler_pic='--shared'
  8253. lt_prog_compiler_static='--static'
  8254. ;;
  8255. nagfor*)
  8256. # NAG Fortran compiler
  8257. lt_prog_compiler_wl='-Wl,-Wl,,'
  8258. lt_prog_compiler_pic='-PIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. ;;
  8261. tcc*)
  8262. # Fabrice Bellard et al's Tiny C Compiler
  8263. lt_prog_compiler_wl='-Wl,'
  8264. lt_prog_compiler_pic='-fPIC'
  8265. lt_prog_compiler_static='-static'
  8266. ;;
  8267. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8268. # Portland Group compilers (*not* the Pentium gcc compiler,
  8269. # which looks to be a dead project)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fpic'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. ;;
  8274. ccc*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. # All Alpha code is PIC.
  8277. lt_prog_compiler_static='-non_shared'
  8278. ;;
  8279. xl* | bgxl* | bgf* | mpixl*)
  8280. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_pic='-qpic'
  8283. lt_prog_compiler_static='-qstaticlink'
  8284. ;;
  8285. *)
  8286. case `$CC -V 2>&1 | sed 5q` in
  8287. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8288. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8289. lt_prog_compiler_pic='-KPIC'
  8290. lt_prog_compiler_static='-Bstatic'
  8291. lt_prog_compiler_wl=''
  8292. ;;
  8293. *Sun\ F* | *Sun*Fortran*)
  8294. lt_prog_compiler_pic='-KPIC'
  8295. lt_prog_compiler_static='-Bstatic'
  8296. lt_prog_compiler_wl='-Qoption ld '
  8297. ;;
  8298. *Sun\ C*)
  8299. # Sun C 5.9
  8300. lt_prog_compiler_pic='-KPIC'
  8301. lt_prog_compiler_static='-Bstatic'
  8302. lt_prog_compiler_wl='-Wl,'
  8303. ;;
  8304. *Intel*\ [CF]*Compiler*)
  8305. lt_prog_compiler_wl='-Wl,'
  8306. lt_prog_compiler_pic='-fPIC'
  8307. lt_prog_compiler_static='-static'
  8308. ;;
  8309. *Portland\ Group*)
  8310. lt_prog_compiler_wl='-Wl,'
  8311. lt_prog_compiler_pic='-fpic'
  8312. lt_prog_compiler_static='-Bstatic'
  8313. ;;
  8314. esac
  8315. ;;
  8316. esac
  8317. ;;
  8318. newsos6)
  8319. lt_prog_compiler_pic='-KPIC'
  8320. lt_prog_compiler_static='-Bstatic'
  8321. ;;
  8322. *nto* | *qnx*)
  8323. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8324. # it will coredump.
  8325. lt_prog_compiler_pic='-fPIC -shared'
  8326. ;;
  8327. osf3* | osf4* | osf5*)
  8328. lt_prog_compiler_wl='-Wl,'
  8329. # All OSF/1 code is PIC.
  8330. lt_prog_compiler_static='-non_shared'
  8331. ;;
  8332. rdos*)
  8333. lt_prog_compiler_static='-non_shared'
  8334. ;;
  8335. solaris*)
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. case $cc_basename in
  8339. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8340. lt_prog_compiler_wl='-Qoption ld ';;
  8341. *)
  8342. lt_prog_compiler_wl='-Wl,';;
  8343. esac
  8344. ;;
  8345. sunos4*)
  8346. lt_prog_compiler_wl='-Qoption ld '
  8347. lt_prog_compiler_pic='-PIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. sysv4 | sysv4.2uw2* | sysv4.3*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_pic='-KPIC'
  8353. lt_prog_compiler_static='-Bstatic'
  8354. ;;
  8355. sysv4*MP*)
  8356. if test -d /usr/nec; then
  8357. lt_prog_compiler_pic='-Kconform_pic'
  8358. lt_prog_compiler_static='-Bstatic'
  8359. fi
  8360. ;;
  8361. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. lt_prog_compiler_pic='-KPIC'
  8364. lt_prog_compiler_static='-Bstatic'
  8365. ;;
  8366. unicos*)
  8367. lt_prog_compiler_wl='-Wl,'
  8368. lt_prog_compiler_can_build_shared=no
  8369. ;;
  8370. uts4*)
  8371. lt_prog_compiler_pic='-pic'
  8372. lt_prog_compiler_static='-Bstatic'
  8373. ;;
  8374. *)
  8375. lt_prog_compiler_can_build_shared=no
  8376. ;;
  8377. esac
  8378. fi
  8379. case $host_os in
  8380. # For platforms that do not support PIC, -DPIC is meaningless:
  8381. *djgpp*)
  8382. lt_prog_compiler_pic=
  8383. ;;
  8384. *)
  8385. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8386. ;;
  8387. esac
  8388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8389. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8390. if test ${lt_cv_prog_compiler_pic+y}
  8391. then :
  8392. printf %s "(cached) " >&6
  8393. else $as_nop
  8394. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8395. fi
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8397. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8398. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8399. #
  8400. # Check to make sure the PIC flag actually works.
  8401. #
  8402. if test -n "$lt_prog_compiler_pic"; then
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8404. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8405. if test ${lt_cv_prog_compiler_pic_works+y}
  8406. then :
  8407. printf %s "(cached) " >&6
  8408. else $as_nop
  8409. lt_cv_prog_compiler_pic_works=no
  8410. ac_outfile=conftest.$ac_objext
  8411. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8412. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8413. # Insert the option either (1) after the last *FLAGS variable, or
  8414. # (2) before a word containing "conftest.", or (3) at the end.
  8415. # Note that $ac_compile itself does not contain backslashes and begins
  8416. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8417. # The option is referenced via a variable to avoid confusing sed.
  8418. lt_compile=`echo "$ac_compile" | $SED \
  8419. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8420. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8421. -e 's:$: $lt_compiler_flag:'`
  8422. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8423. (eval "$lt_compile" 2>conftest.err)
  8424. ac_status=$?
  8425. cat conftest.err >&5
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. if (exit $ac_status) && test -s "$ac_outfile"; then
  8428. # The compiler can only warn and ignore the option if not recognized
  8429. # So say no if there are warnings other than the usual output.
  8430. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8431. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8432. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8433. lt_cv_prog_compiler_pic_works=yes
  8434. fi
  8435. fi
  8436. $RM conftest*
  8437. fi
  8438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8439. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8440. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8441. case $lt_prog_compiler_pic in
  8442. "" | " "*) ;;
  8443. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8444. esac
  8445. else
  8446. lt_prog_compiler_pic=
  8447. lt_prog_compiler_can_build_shared=no
  8448. fi
  8449. fi
  8450. #
  8451. # Check to make sure the static flag actually works.
  8452. #
  8453. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8455. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8456. if test ${lt_cv_prog_compiler_static_works+y}
  8457. then :
  8458. printf %s "(cached) " >&6
  8459. else $as_nop
  8460. lt_cv_prog_compiler_static_works=no
  8461. save_LDFLAGS=$LDFLAGS
  8462. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8463. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8464. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8465. # The linker can only warn and ignore the option if not recognized
  8466. # So say no if there are warnings
  8467. if test -s conftest.err; then
  8468. # Append any errors to the config.log.
  8469. cat conftest.err 1>&5
  8470. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8471. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8472. if diff conftest.exp conftest.er2 >/dev/null; then
  8473. lt_cv_prog_compiler_static_works=yes
  8474. fi
  8475. else
  8476. lt_cv_prog_compiler_static_works=yes
  8477. fi
  8478. fi
  8479. $RM -r conftest*
  8480. LDFLAGS=$save_LDFLAGS
  8481. fi
  8482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8483. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8484. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8485. :
  8486. else
  8487. lt_prog_compiler_static=
  8488. fi
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8490. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8491. if test ${lt_cv_prog_compiler_c_o+y}
  8492. then :
  8493. printf %s "(cached) " >&6
  8494. else $as_nop
  8495. lt_cv_prog_compiler_c_o=no
  8496. $RM -r conftest 2>/dev/null
  8497. mkdir conftest
  8498. cd conftest
  8499. mkdir out
  8500. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8501. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8502. # Insert the option either (1) after the last *FLAGS variable, or
  8503. # (2) before a word containing "conftest.", or (3) at the end.
  8504. # Note that $ac_compile itself does not contain backslashes and begins
  8505. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8506. lt_compile=`echo "$ac_compile" | $SED \
  8507. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8508. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8509. -e 's:$: $lt_compiler_flag:'`
  8510. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8511. (eval "$lt_compile" 2>out/conftest.err)
  8512. ac_status=$?
  8513. cat out/conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8516. then
  8517. # The compiler can only warn and ignore the option if not recognized
  8518. # So say no if there are warnings
  8519. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8520. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8521. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8522. lt_cv_prog_compiler_c_o=yes
  8523. fi
  8524. fi
  8525. chmod u+w . 2>&5
  8526. $RM conftest*
  8527. # SGI C++ compiler will create directory out/ii_files/ for
  8528. # template instantiation
  8529. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8530. $RM out/* && rmdir out
  8531. cd ..
  8532. $RM -r conftest
  8533. $RM conftest*
  8534. fi
  8535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8536. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8538. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8539. if test ${lt_cv_prog_compiler_c_o+y}
  8540. then :
  8541. printf %s "(cached) " >&6
  8542. else $as_nop
  8543. lt_cv_prog_compiler_c_o=no
  8544. $RM -r conftest 2>/dev/null
  8545. mkdir conftest
  8546. cd conftest
  8547. mkdir out
  8548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8549. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8550. # Insert the option either (1) after the last *FLAGS variable, or
  8551. # (2) before a word containing "conftest.", or (3) at the end.
  8552. # Note that $ac_compile itself does not contain backslashes and begins
  8553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8554. lt_compile=`echo "$ac_compile" | $SED \
  8555. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8556. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8557. -e 's:$: $lt_compiler_flag:'`
  8558. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8559. (eval "$lt_compile" 2>out/conftest.err)
  8560. ac_status=$?
  8561. cat out/conftest.err >&5
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8564. then
  8565. # The compiler can only warn and ignore the option if not recognized
  8566. # So say no if there are warnings
  8567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8568. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8569. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8570. lt_cv_prog_compiler_c_o=yes
  8571. fi
  8572. fi
  8573. chmod u+w . 2>&5
  8574. $RM conftest*
  8575. # SGI C++ compiler will create directory out/ii_files/ for
  8576. # template instantiation
  8577. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8578. $RM out/* && rmdir out
  8579. cd ..
  8580. $RM -r conftest
  8581. $RM conftest*
  8582. fi
  8583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8584. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8585. hard_links=nottested
  8586. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8587. # do not overwrite the value of need_locks provided by the user
  8588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8589. printf %s "checking if we can lock with hard links... " >&6; }
  8590. hard_links=yes
  8591. $RM conftest*
  8592. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8593. touch conftest.a
  8594. ln conftest.a conftest.b 2>&5 || hard_links=no
  8595. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8597. printf "%s\n" "$hard_links" >&6; }
  8598. if test no = "$hard_links"; then
  8599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8600. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8601. need_locks=warn
  8602. fi
  8603. else
  8604. need_locks=no
  8605. fi
  8606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8607. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8608. runpath_var=
  8609. allow_undefined_flag=
  8610. always_export_symbols=no
  8611. archive_cmds=
  8612. archive_expsym_cmds=
  8613. compiler_needs_object=no
  8614. enable_shared_with_static_runtimes=no
  8615. export_dynamic_flag_spec=
  8616. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8617. hardcode_automatic=no
  8618. hardcode_direct=no
  8619. hardcode_direct_absolute=no
  8620. hardcode_libdir_flag_spec=
  8621. hardcode_libdir_separator=
  8622. hardcode_minus_L=no
  8623. hardcode_shlibpath_var=unsupported
  8624. inherit_rpath=no
  8625. link_all_deplibs=unknown
  8626. module_cmds=
  8627. module_expsym_cmds=
  8628. old_archive_from_new_cmds=
  8629. old_archive_from_expsyms_cmds=
  8630. thread_safe_flag_spec=
  8631. whole_archive_flag_spec=
  8632. # include_expsyms should be a list of space-separated symbols to be *always*
  8633. # included in the symbol list
  8634. include_expsyms=
  8635. # exclude_expsyms can be an extended regexp of symbols to exclude
  8636. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8637. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8638. # as well as any symbol that contains 'd'.
  8639. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8640. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8641. # platforms (ab)use it in PIC code, but their linkers get confused if
  8642. # the symbol is explicitly referenced. Since portable code cannot
  8643. # rely on this symbol name, it's probably fine to never include it in
  8644. # preloaded symbol tables.
  8645. # Exclude shared library initialization/finalization symbols.
  8646. extract_expsyms_cmds=
  8647. case $host_os in
  8648. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8649. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8650. # When not using gcc, we currently assume that we are using
  8651. # Microsoft Visual C++ or Intel C++ Compiler.
  8652. if test yes != "$GCC"; then
  8653. with_gnu_ld=no
  8654. fi
  8655. ;;
  8656. interix*)
  8657. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8658. with_gnu_ld=yes
  8659. ;;
  8660. openbsd* | bitrig*)
  8661. with_gnu_ld=no
  8662. ;;
  8663. esac
  8664. ld_shlibs=yes
  8665. # On some targets, GNU ld is compatible enough with the native linker
  8666. # that we're better off using the native interface for both.
  8667. lt_use_gnu_ld_interface=no
  8668. if test yes = "$with_gnu_ld"; then
  8669. case $host_os in
  8670. aix*)
  8671. # The AIX port of GNU ld has always aspired to compatibility
  8672. # with the native linker. However, as the warning in the GNU ld
  8673. # block says, versions before 2.19.5* couldn't really create working
  8674. # shared libraries, regardless of the interface used.
  8675. case `$LD -v 2>&1` in
  8676. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8677. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8678. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8679. *)
  8680. lt_use_gnu_ld_interface=yes
  8681. ;;
  8682. esac
  8683. ;;
  8684. *)
  8685. lt_use_gnu_ld_interface=yes
  8686. ;;
  8687. esac
  8688. fi
  8689. if test yes = "$lt_use_gnu_ld_interface"; then
  8690. # If archive_cmds runs LD, not CC, wlarc should be empty
  8691. wlarc='$wl'
  8692. # Set some defaults for GNU ld with shared library support. These
  8693. # are reset later if shared libraries are not supported. Putting them
  8694. # here allows them to be overridden if necessary.
  8695. runpath_var=LD_RUN_PATH
  8696. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8697. export_dynamic_flag_spec='$wl--export-dynamic'
  8698. # ancient GNU ld didn't support --whole-archive et. al.
  8699. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8700. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8701. else
  8702. whole_archive_flag_spec=
  8703. fi
  8704. supports_anon_versioning=no
  8705. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8706. *GNU\ gold*) supports_anon_versioning=yes ;;
  8707. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8708. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8709. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8710. *\ 2.11.*) ;; # other 2.11 versions
  8711. *) supports_anon_versioning=yes ;;
  8712. esac
  8713. # See if GNU ld supports shared libraries.
  8714. case $host_os in
  8715. aix[3-9]*)
  8716. # On AIX/PPC, the GNU linker is very broken
  8717. if test ia64 != "$host_cpu"; then
  8718. ld_shlibs=no
  8719. cat <<_LT_EOF 1>&2
  8720. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8721. *** to be unable to reliably create shared libraries on AIX.
  8722. *** Therefore, libtool is disabling shared libraries support. If you
  8723. *** really care for shared libraries, you may want to install binutils
  8724. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8725. *** You will then need to restart the configuration process.
  8726. _LT_EOF
  8727. fi
  8728. ;;
  8729. amigaos*)
  8730. case $host_cpu in
  8731. powerpc)
  8732. # see comment about AmigaOS4 .so support
  8733. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8734. archive_expsym_cmds=''
  8735. ;;
  8736. m68k)
  8737. 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)'
  8738. hardcode_libdir_flag_spec='-L$libdir'
  8739. hardcode_minus_L=yes
  8740. ;;
  8741. esac
  8742. ;;
  8743. beos*)
  8744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8745. allow_undefined_flag=unsupported
  8746. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8747. # support --undefined. This deserves some investigation. FIXME
  8748. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8749. else
  8750. ld_shlibs=no
  8751. fi
  8752. ;;
  8753. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8754. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8755. # as there is no search path for DLLs.
  8756. hardcode_libdir_flag_spec='-L$libdir'
  8757. export_dynamic_flag_spec='$wl--export-all-symbols'
  8758. allow_undefined_flag=unsupported
  8759. always_export_symbols=no
  8760. enable_shared_with_static_runtimes=yes
  8761. 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'
  8762. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8763. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8764. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8765. # If the export-symbols file already is a .def file, use it as
  8766. # is; otherwise, prepend EXPORTS...
  8767. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8768. cp $export_symbols $output_objdir/$soname.def;
  8769. else
  8770. echo EXPORTS > $output_objdir/$soname.def;
  8771. cat $export_symbols >> $output_objdir/$soname.def;
  8772. fi~
  8773. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8774. else
  8775. ld_shlibs=no
  8776. fi
  8777. ;;
  8778. haiku*)
  8779. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8780. link_all_deplibs=yes
  8781. ;;
  8782. os2*)
  8783. hardcode_libdir_flag_spec='-L$libdir'
  8784. hardcode_minus_L=yes
  8785. allow_undefined_flag=unsupported
  8786. shrext_cmds=.dll
  8787. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8788. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8789. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8790. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8791. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8795. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8796. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8797. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8798. prefix_cmds="$SED"~
  8799. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8800. prefix_cmds="$prefix_cmds -e 1d";
  8801. fi~
  8802. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8803. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8804. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8805. emximp -o $lib $output_objdir/$libname.def'
  8806. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8807. enable_shared_with_static_runtimes=yes
  8808. file_list_spec='@'
  8809. ;;
  8810. interix[3-9]*)
  8811. hardcode_direct=no
  8812. hardcode_shlibpath_var=no
  8813. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8814. export_dynamic_flag_spec='$wl-E'
  8815. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8816. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8817. # default) and relocated if they conflict, which is a slow very memory
  8818. # consuming and fragmenting process. To avoid this, we pick a random,
  8819. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8820. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8821. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8822. 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'
  8823. ;;
  8824. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8825. tmp_diet=no
  8826. if test linux-dietlibc = "$host_os"; then
  8827. case $cc_basename in
  8828. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8829. esac
  8830. fi
  8831. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8832. && test no = "$tmp_diet"
  8833. then
  8834. tmp_addflag=' $pic_flag'
  8835. tmp_sharedflag='-shared'
  8836. case $cc_basename,$host_cpu in
  8837. pgcc*) # Portland Group C compiler
  8838. 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'
  8839. tmp_addflag=' $pic_flag'
  8840. ;;
  8841. pgf77* | pgf90* | pgf95* | pgfortran*)
  8842. # Portland Group f77 and f90 compilers
  8843. 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'
  8844. tmp_addflag=' $pic_flag -Mnomain' ;;
  8845. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8846. tmp_addflag=' -i_dynamic' ;;
  8847. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8848. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8849. ifc* | ifort*) # Intel Fortran compiler
  8850. tmp_addflag=' -nofor_main' ;;
  8851. lf95*) # Lahey Fortran 8.1
  8852. whole_archive_flag_spec=
  8853. tmp_sharedflag='--shared' ;;
  8854. nagfor*) # NAGFOR 5.3
  8855. tmp_sharedflag='-Wl,-shared' ;;
  8856. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8857. tmp_sharedflag='-qmkshrobj'
  8858. tmp_addflag= ;;
  8859. nvcc*) # Cuda Compiler Driver 2.2
  8860. 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'
  8861. compiler_needs_object=yes
  8862. ;;
  8863. esac
  8864. case `$CC -V 2>&1 | sed 5q` in
  8865. *Sun\ C*) # Sun C 5.9
  8866. 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'
  8867. compiler_needs_object=yes
  8868. tmp_sharedflag='-G' ;;
  8869. *Sun\ F*) # Sun Fortran 8.3
  8870. tmp_sharedflag='-G' ;;
  8871. esac
  8872. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8873. if test yes = "$supports_anon_versioning"; then
  8874. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8875. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8876. echo "local: *; };" >> $output_objdir/$libname.ver~
  8877. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8878. fi
  8879. case $cc_basename in
  8880. tcc*)
  8881. export_dynamic_flag_spec='-rdynamic'
  8882. ;;
  8883. xlf* | bgf* | bgxlf* | mpixlf*)
  8884. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8885. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8886. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8887. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8888. if test yes = "$supports_anon_versioning"; then
  8889. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8890. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8891. echo "local: *; };" >> $output_objdir/$libname.ver~
  8892. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8893. fi
  8894. ;;
  8895. esac
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. netbsd*)
  8901. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8902. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8903. wlarc=
  8904. else
  8905. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8906. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8907. fi
  8908. ;;
  8909. solaris*)
  8910. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8911. ld_shlibs=no
  8912. cat <<_LT_EOF 1>&2
  8913. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8914. *** create shared libraries on Solaris systems. Therefore, libtool
  8915. *** is disabling shared libraries support. We urge you to upgrade GNU
  8916. *** binutils to release 2.9.1 or newer. Another option is to modify
  8917. *** your PATH or compiler configuration so that the native linker is
  8918. *** used, and then restart.
  8919. _LT_EOF
  8920. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8921. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8922. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8923. else
  8924. ld_shlibs=no
  8925. fi
  8926. ;;
  8927. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8928. case `$LD -v 2>&1` in
  8929. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8930. ld_shlibs=no
  8931. cat <<_LT_EOF 1>&2
  8932. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8933. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8934. *** is disabling shared libraries support. We urge you to upgrade GNU
  8935. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8936. *** your PATH or compiler configuration so that the native linker is
  8937. *** used, and then restart.
  8938. _LT_EOF
  8939. ;;
  8940. *)
  8941. # For security reasons, it is highly recommended that you always
  8942. # use absolute paths for naming shared libraries, and exclude the
  8943. # DT_RUNPATH tag from executables and libraries. But doing so
  8944. # requires that you compile everything twice, which is a pain.
  8945. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8946. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8947. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8948. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8949. else
  8950. ld_shlibs=no
  8951. fi
  8952. ;;
  8953. esac
  8954. ;;
  8955. sunos4*)
  8956. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8957. wlarc=
  8958. hardcode_direct=yes
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. *)
  8962. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8963. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8964. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8965. else
  8966. ld_shlibs=no
  8967. fi
  8968. ;;
  8969. esac
  8970. if test no = "$ld_shlibs"; then
  8971. runpath_var=
  8972. hardcode_libdir_flag_spec=
  8973. export_dynamic_flag_spec=
  8974. whole_archive_flag_spec=
  8975. fi
  8976. else
  8977. # PORTME fill in a description of your system's linker (not GNU ld)
  8978. case $host_os in
  8979. aix3*)
  8980. allow_undefined_flag=unsupported
  8981. always_export_symbols=yes
  8982. 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'
  8983. # Note: this linker hardcodes the directories in LIBPATH if there
  8984. # are no directories specified by -L.
  8985. hardcode_minus_L=yes
  8986. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8987. # Neither direct hardcoding nor static linking is supported with a
  8988. # broken collect2.
  8989. hardcode_direct=unsupported
  8990. fi
  8991. ;;
  8992. aix[4-9]*)
  8993. if test ia64 = "$host_cpu"; then
  8994. # On IA64, the linker does run time linking by default, so we don't
  8995. # have to do anything special.
  8996. aix_use_runtimelinking=no
  8997. exp_sym_flag='-Bexport'
  8998. no_entry_flag=
  8999. else
  9000. # If we're using GNU nm, then we don't want the "-C" option.
  9001. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9002. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9003. # weak defined symbols like other global defined symbols, whereas
  9004. # GNU nm marks them as "W".
  9005. # While the 'weak' keyword is ignored in the Export File, we need
  9006. # it in the Import File for the 'aix-soname' feature, so we have
  9007. # to replace the "-B" option with "-P" for AIX nm.
  9008. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9009. 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'
  9010. else
  9011. 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'
  9012. fi
  9013. aix_use_runtimelinking=no
  9014. # Test if we are trying to use run time linking or normal
  9015. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9016. # have runtime linking enabled, and use it for executables.
  9017. # For shared libraries, we enable/disable runtime linking
  9018. # depending on the kind of the shared library created -
  9019. # when "with_aix_soname,aix_use_runtimelinking" is:
  9020. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9021. # "aix,yes" lib.so shared, rtl:yes, for executables
  9022. # lib.a static archive
  9023. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9024. # lib.a(lib.so.V) shared, rtl:no, for executables
  9025. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9026. # lib.a(lib.so.V) shared, rtl:no
  9027. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9028. # lib.a static archive
  9029. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9030. for ld_flag in $LDFLAGS; do
  9031. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9032. aix_use_runtimelinking=yes
  9033. break
  9034. fi
  9035. done
  9036. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9037. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9038. # so we don't have lib.a shared libs to link our executables.
  9039. # We have to force runtime linking in this case.
  9040. aix_use_runtimelinking=yes
  9041. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9042. fi
  9043. ;;
  9044. esac
  9045. exp_sym_flag='-bexport'
  9046. no_entry_flag='-bnoentry'
  9047. fi
  9048. # When large executables or shared objects are built, AIX ld can
  9049. # have problems creating the table of contents. If linking a library
  9050. # or program results in "error TOC overflow" add -mminimal-toc to
  9051. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9052. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9053. archive_cmds=''
  9054. hardcode_direct=yes
  9055. hardcode_direct_absolute=yes
  9056. hardcode_libdir_separator=':'
  9057. link_all_deplibs=yes
  9058. file_list_spec='$wl-f,'
  9059. case $with_aix_soname,$aix_use_runtimelinking in
  9060. aix,*) ;; # traditional, no import file
  9061. svr4,* | *,yes) # use import file
  9062. # The Import File defines what to hardcode.
  9063. hardcode_direct=no
  9064. hardcode_direct_absolute=no
  9065. ;;
  9066. esac
  9067. if test yes = "$GCC"; then
  9068. case $host_os in aix4.[012]|aix4.[012].*)
  9069. # We only want to do this on AIX 4.2 and lower, the check
  9070. # below for broken collect2 doesn't work under 4.3+
  9071. collect2name=`$CC -print-prog-name=collect2`
  9072. if test -f "$collect2name" &&
  9073. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9074. then
  9075. # We have reworked collect2
  9076. :
  9077. else
  9078. # We have old collect2
  9079. hardcode_direct=unsupported
  9080. # It fails to find uninstalled libraries when the uninstalled
  9081. # path is not listed in the libpath. Setting hardcode_minus_L
  9082. # to unsupported forces relinking
  9083. hardcode_minus_L=yes
  9084. hardcode_libdir_flag_spec='-L$libdir'
  9085. hardcode_libdir_separator=
  9086. fi
  9087. ;;
  9088. esac
  9089. shared_flag='-shared'
  9090. if test yes = "$aix_use_runtimelinking"; then
  9091. shared_flag="$shared_flag "'$wl-G'
  9092. fi
  9093. # Need to ensure runtime linking is disabled for the traditional
  9094. # shared library, or the linker may eventually find shared libraries
  9095. # /with/ Import File - we do not want to mix them.
  9096. shared_flag_aix='-shared'
  9097. shared_flag_svr4='-shared $wl-G'
  9098. else
  9099. # not using gcc
  9100. if test ia64 = "$host_cpu"; then
  9101. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9102. # chokes on -Wl,-G. The following line is correct:
  9103. shared_flag='-G'
  9104. else
  9105. if test yes = "$aix_use_runtimelinking"; then
  9106. shared_flag='$wl-G'
  9107. else
  9108. shared_flag='$wl-bM:SRE'
  9109. fi
  9110. shared_flag_aix='$wl-bM:SRE'
  9111. shared_flag_svr4='$wl-G'
  9112. fi
  9113. fi
  9114. export_dynamic_flag_spec='$wl-bexpall'
  9115. # It seems that -bexpall does not export symbols beginning with
  9116. # underscore (_), so it is better to generate a list of symbols to export.
  9117. always_export_symbols=yes
  9118. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9119. # Warning - without using the other runtime loading flags (-brtl),
  9120. # -berok will link without error, but may produce a broken library.
  9121. allow_undefined_flag='-berok'
  9122. # Determine the default libpath from the value encoded in an
  9123. # empty executable.
  9124. if test set = "${lt_cv_aix_libpath+set}"; then
  9125. aix_libpath=$lt_cv_aix_libpath
  9126. else
  9127. if test ${lt_cv_aix_libpath_+y}
  9128. then :
  9129. printf %s "(cached) " >&6
  9130. else $as_nop
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main (void)
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"
  9141. then :
  9142. lt_aix_libpath_sed='
  9143. /Import File Strings/,/^$/ {
  9144. /^0/ {
  9145. s/^0 *\([^ ]*\) *$/\1/
  9146. p
  9147. }
  9148. }'
  9149. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9150. # Check for a 64-bit object if we didn't find anything.
  9151. if test -z "$lt_cv_aix_libpath_"; then
  9152. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9153. fi
  9154. fi
  9155. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9156. conftest$ac_exeext conftest.$ac_ext
  9157. if test -z "$lt_cv_aix_libpath_"; then
  9158. lt_cv_aix_libpath_=/usr/lib:/lib
  9159. fi
  9160. fi
  9161. aix_libpath=$lt_cv_aix_libpath_
  9162. fi
  9163. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9164. 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
  9165. else
  9166. if test ia64 = "$host_cpu"; then
  9167. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9168. allow_undefined_flag="-z nodefs"
  9169. 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"
  9170. else
  9171. # Determine the default libpath from the value encoded in an
  9172. # empty executable.
  9173. if test set = "${lt_cv_aix_libpath+set}"; then
  9174. aix_libpath=$lt_cv_aix_libpath
  9175. else
  9176. if test ${lt_cv_aix_libpath_+y}
  9177. then :
  9178. printf %s "(cached) " >&6
  9179. else $as_nop
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. int
  9183. main (void)
  9184. {
  9185. ;
  9186. return 0;
  9187. }
  9188. _ACEOF
  9189. if ac_fn_c_try_link "$LINENO"
  9190. then :
  9191. lt_aix_libpath_sed='
  9192. /Import File Strings/,/^$/ {
  9193. /^0/ {
  9194. s/^0 *\([^ ]*\) *$/\1/
  9195. p
  9196. }
  9197. }'
  9198. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9199. # Check for a 64-bit object if we didn't find anything.
  9200. if test -z "$lt_cv_aix_libpath_"; then
  9201. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9202. fi
  9203. fi
  9204. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9205. conftest$ac_exeext conftest.$ac_ext
  9206. if test -z "$lt_cv_aix_libpath_"; then
  9207. lt_cv_aix_libpath_=/usr/lib:/lib
  9208. fi
  9209. fi
  9210. aix_libpath=$lt_cv_aix_libpath_
  9211. fi
  9212. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9213. # Warning - without using the other run time loading flags,
  9214. # -berok will link without error, but may produce a broken library.
  9215. no_undefined_flag=' $wl-bernotok'
  9216. allow_undefined_flag=' $wl-berok'
  9217. if test yes = "$with_gnu_ld"; then
  9218. # We only use this code for GNU lds that support --whole-archive.
  9219. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9220. else
  9221. # Exported symbols can be pulled into shared objects from archives
  9222. whole_archive_flag_spec='$convenience'
  9223. fi
  9224. archive_cmds_need_lc=yes
  9225. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9226. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9227. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9228. if test svr4 != "$with_aix_soname"; then
  9229. # This is similar to how AIX traditionally builds its shared libraries.
  9230. 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'
  9231. fi
  9232. if test aix != "$with_aix_soname"; then
  9233. 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'
  9234. else
  9235. # used by -dlpreopen to get the symbols
  9236. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9237. fi
  9238. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9239. fi
  9240. fi
  9241. ;;
  9242. amigaos*)
  9243. case $host_cpu in
  9244. powerpc)
  9245. # see comment about AmigaOS4 .so support
  9246. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9247. archive_expsym_cmds=''
  9248. ;;
  9249. m68k)
  9250. 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)'
  9251. hardcode_libdir_flag_spec='-L$libdir'
  9252. hardcode_minus_L=yes
  9253. ;;
  9254. esac
  9255. ;;
  9256. bsdi[45]*)
  9257. export_dynamic_flag_spec=-rdynamic
  9258. ;;
  9259. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9260. # When not using gcc, we currently assume that we are using
  9261. # Microsoft Visual C++ or Intel C++ Compiler.
  9262. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9263. # no search path for DLLs.
  9264. case $cc_basename in
  9265. cl* | icl*)
  9266. # Native MSVC or ICC
  9267. hardcode_libdir_flag_spec=' '
  9268. allow_undefined_flag=unsupported
  9269. always_export_symbols=yes
  9270. file_list_spec='@'
  9271. # Tell ltmain to make .lib files, not .a files.
  9272. libext=lib
  9273. # Tell ltmain to make .dll files, not .so files.
  9274. shrext_cmds=.dll
  9275. # FIXME: Setting linknames here is a bad hack.
  9276. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9277. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9278. cp "$export_symbols" "$output_objdir/$soname.def";
  9279. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9280. else
  9281. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9282. fi~
  9283. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9284. linknames='
  9285. # The linker will not automatically build a static lib if we build a DLL.
  9286. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9287. enable_shared_with_static_runtimes=yes
  9288. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9289. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9290. # Don't use ranlib
  9291. old_postinstall_cmds='chmod 644 $oldlib'
  9292. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9293. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9294. case $lt_outputfile in
  9295. *.exe|*.EXE) ;;
  9296. *)
  9297. lt_outputfile=$lt_outputfile.exe
  9298. lt_tool_outputfile=$lt_tool_outputfile.exe
  9299. ;;
  9300. esac~
  9301. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9302. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9303. $RM "$lt_outputfile.manifest";
  9304. fi'
  9305. ;;
  9306. *)
  9307. # Assume MSVC and ICC wrapper
  9308. hardcode_libdir_flag_spec=' '
  9309. allow_undefined_flag=unsupported
  9310. # Tell ltmain to make .lib files, not .a files.
  9311. libext=lib
  9312. # Tell ltmain to make .dll files, not .so files.
  9313. shrext_cmds=.dll
  9314. # FIXME: Setting linknames here is a bad hack.
  9315. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9316. # The linker will automatically build a .lib file if we build a DLL.
  9317. old_archive_from_new_cmds='true'
  9318. # FIXME: Should let the user specify the lib program.
  9319. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9320. enable_shared_with_static_runtimes=yes
  9321. ;;
  9322. esac
  9323. ;;
  9324. darwin* | rhapsody*)
  9325. archive_cmds_need_lc=no
  9326. hardcode_direct=no
  9327. hardcode_automatic=yes
  9328. hardcode_shlibpath_var=unsupported
  9329. if test yes = "$lt_cv_ld_force_load"; then
  9330. 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\"`'
  9331. else
  9332. whole_archive_flag_spec=''
  9333. fi
  9334. link_all_deplibs=yes
  9335. allow_undefined_flag=$_lt_dar_allow_undefined
  9336. case $cc_basename in
  9337. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9338. *) _lt_dar_can_shared=$GCC ;;
  9339. esac
  9340. if test yes = "$_lt_dar_can_shared"; then
  9341. output_verbose_link_cmd=func_echo_all
  9342. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9343. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9344. 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"
  9345. 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"
  9346. else
  9347. ld_shlibs=no
  9348. fi
  9349. ;;
  9350. dgux*)
  9351. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9352. hardcode_libdir_flag_spec='-L$libdir'
  9353. hardcode_shlibpath_var=no
  9354. ;;
  9355. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9356. # support. Future versions do this automatically, but an explicit c++rt0.o
  9357. # does not break anything, and helps significantly (at the cost of a little
  9358. # extra space).
  9359. freebsd2.2*)
  9360. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9361. hardcode_libdir_flag_spec='-R$libdir'
  9362. hardcode_direct=yes
  9363. hardcode_shlibpath_var=no
  9364. ;;
  9365. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9366. freebsd2.*)
  9367. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9368. hardcode_direct=yes
  9369. hardcode_minus_L=yes
  9370. hardcode_shlibpath_var=no
  9371. ;;
  9372. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9373. freebsd* | dragonfly* | midnightbsd*)
  9374. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9375. hardcode_libdir_flag_spec='-R$libdir'
  9376. hardcode_direct=yes
  9377. hardcode_shlibpath_var=no
  9378. ;;
  9379. hpux9*)
  9380. if test yes = "$GCC"; then
  9381. 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'
  9382. else
  9383. 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'
  9384. fi
  9385. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9386. hardcode_libdir_separator=:
  9387. hardcode_direct=yes
  9388. # hardcode_minus_L: Not really in the search PATH,
  9389. # but as the default location of the library.
  9390. hardcode_minus_L=yes
  9391. export_dynamic_flag_spec='$wl-E'
  9392. ;;
  9393. hpux10*)
  9394. if test yes,no = "$GCC,$with_gnu_ld"; then
  9395. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9396. else
  9397. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9398. fi
  9399. if test no = "$with_gnu_ld"; then
  9400. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9401. hardcode_libdir_separator=:
  9402. hardcode_direct=yes
  9403. hardcode_direct_absolute=yes
  9404. export_dynamic_flag_spec='$wl-E'
  9405. # hardcode_minus_L: Not really in the search PATH,
  9406. # but as the default location of the library.
  9407. hardcode_minus_L=yes
  9408. fi
  9409. ;;
  9410. hpux11*)
  9411. if test yes,no = "$GCC,$with_gnu_ld"; then
  9412. case $host_cpu in
  9413. hppa*64*)
  9414. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9415. ;;
  9416. ia64*)
  9417. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9418. ;;
  9419. *)
  9420. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9421. ;;
  9422. esac
  9423. else
  9424. case $host_cpu in
  9425. hppa*64*)
  9426. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9427. ;;
  9428. ia64*)
  9429. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9430. ;;
  9431. *)
  9432. # Older versions of the 11.00 compiler do not understand -b yet
  9433. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9435. printf %s "checking if $CC understands -b... " >&6; }
  9436. if test ${lt_cv_prog_compiler__b+y}
  9437. then :
  9438. printf %s "(cached) " >&6
  9439. else $as_nop
  9440. lt_cv_prog_compiler__b=no
  9441. save_LDFLAGS=$LDFLAGS
  9442. LDFLAGS="$LDFLAGS -b"
  9443. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9444. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9445. # The linker can only warn and ignore the option if not recognized
  9446. # So say no if there are warnings
  9447. if test -s conftest.err; then
  9448. # Append any errors to the config.log.
  9449. cat conftest.err 1>&5
  9450. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9451. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9452. if diff conftest.exp conftest.er2 >/dev/null; then
  9453. lt_cv_prog_compiler__b=yes
  9454. fi
  9455. else
  9456. lt_cv_prog_compiler__b=yes
  9457. fi
  9458. fi
  9459. $RM -r conftest*
  9460. LDFLAGS=$save_LDFLAGS
  9461. fi
  9462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9463. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9464. if test yes = "$lt_cv_prog_compiler__b"; then
  9465. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9466. else
  9467. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9468. fi
  9469. ;;
  9470. esac
  9471. fi
  9472. if test no = "$with_gnu_ld"; then
  9473. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9474. hardcode_libdir_separator=:
  9475. case $host_cpu in
  9476. hppa*64*|ia64*)
  9477. hardcode_direct=no
  9478. hardcode_shlibpath_var=no
  9479. ;;
  9480. *)
  9481. hardcode_direct=yes
  9482. hardcode_direct_absolute=yes
  9483. export_dynamic_flag_spec='$wl-E'
  9484. # hardcode_minus_L: Not really in the search PATH,
  9485. # but as the default location of the library.
  9486. hardcode_minus_L=yes
  9487. ;;
  9488. esac
  9489. fi
  9490. ;;
  9491. irix5* | irix6* | nonstopux*)
  9492. if test yes = "$GCC"; then
  9493. 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'
  9494. # Try to use the -exported_symbol ld option, if it does not
  9495. # work, assume that -exports_file does not work either and
  9496. # implicitly export all symbols.
  9497. # This should be the same for all languages, so no per-tag cache variable.
  9498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9499. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9500. if test ${lt_cv_irix_exported_symbol+y}
  9501. then :
  9502. printf %s "(cached) " >&6
  9503. else $as_nop
  9504. save_LDFLAGS=$LDFLAGS
  9505. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9507. /* end confdefs.h. */
  9508. int foo (void) { return 0; }
  9509. _ACEOF
  9510. if ac_fn_c_try_link "$LINENO"
  9511. then :
  9512. lt_cv_irix_exported_symbol=yes
  9513. else $as_nop
  9514. lt_cv_irix_exported_symbol=no
  9515. fi
  9516. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9517. conftest$ac_exeext conftest.$ac_ext
  9518. LDFLAGS=$save_LDFLAGS
  9519. fi
  9520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9521. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9522. if test yes = "$lt_cv_irix_exported_symbol"; then
  9523. 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'
  9524. fi
  9525. else
  9526. 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'
  9527. 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'
  9528. fi
  9529. archive_cmds_need_lc='no'
  9530. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9531. hardcode_libdir_separator=:
  9532. inherit_rpath=yes
  9533. link_all_deplibs=yes
  9534. ;;
  9535. linux*)
  9536. case $cc_basename in
  9537. tcc*)
  9538. # Fabrice Bellard et al's Tiny C Compiler
  9539. ld_shlibs=yes
  9540. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9541. ;;
  9542. esac
  9543. ;;
  9544. netbsd*)
  9545. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9546. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9547. else
  9548. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9549. fi
  9550. hardcode_libdir_flag_spec='-R$libdir'
  9551. hardcode_direct=yes
  9552. hardcode_shlibpath_var=no
  9553. ;;
  9554. newsos6)
  9555. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9556. hardcode_direct=yes
  9557. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9558. hardcode_libdir_separator=:
  9559. hardcode_shlibpath_var=no
  9560. ;;
  9561. *nto* | *qnx*)
  9562. ;;
  9563. openbsd* | bitrig*)
  9564. if test -f /usr/libexec/ld.so; then
  9565. hardcode_direct=yes
  9566. hardcode_shlibpath_var=no
  9567. hardcode_direct_absolute=yes
  9568. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9571. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9572. export_dynamic_flag_spec='$wl-E'
  9573. else
  9574. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9575. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9576. fi
  9577. else
  9578. ld_shlibs=no
  9579. fi
  9580. ;;
  9581. os2*)
  9582. hardcode_libdir_flag_spec='-L$libdir'
  9583. hardcode_minus_L=yes
  9584. allow_undefined_flag=unsupported
  9585. shrext_cmds=.dll
  9586. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9587. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9588. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9589. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9590. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9591. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9592. emximp -o $lib $output_objdir/$libname.def'
  9593. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9594. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9595. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9596. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9597. prefix_cmds="$SED"~
  9598. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9599. prefix_cmds="$prefix_cmds -e 1d";
  9600. fi~
  9601. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9602. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9603. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9604. emximp -o $lib $output_objdir/$libname.def'
  9605. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9606. enable_shared_with_static_runtimes=yes
  9607. file_list_spec='@'
  9608. ;;
  9609. osf3*)
  9610. if test yes = "$GCC"; then
  9611. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9612. 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'
  9613. else
  9614. allow_undefined_flag=' -expect_unresolved \*'
  9615. 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'
  9616. fi
  9617. archive_cmds_need_lc='no'
  9618. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9619. hardcode_libdir_separator=:
  9620. ;;
  9621. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9622. if test yes = "$GCC"; then
  9623. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9624. 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'
  9625. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9626. else
  9627. allow_undefined_flag=' -expect_unresolved \*'
  9628. 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'
  9629. 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~
  9630. $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'
  9631. # Both c and cxx compiler support -rpath directly
  9632. hardcode_libdir_flag_spec='-rpath $libdir'
  9633. fi
  9634. archive_cmds_need_lc='no'
  9635. hardcode_libdir_separator=:
  9636. ;;
  9637. solaris*)
  9638. no_undefined_flag=' -z defs'
  9639. if test yes = "$GCC"; then
  9640. wlarc='$wl'
  9641. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9642. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9643. $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'
  9644. else
  9645. case `$CC -V 2>&1` in
  9646. *"Compilers 5.0"*)
  9647. wlarc=''
  9648. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9649. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9650. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9651. ;;
  9652. *)
  9653. wlarc='$wl'
  9654. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9656. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9657. ;;
  9658. esac
  9659. fi
  9660. hardcode_libdir_flag_spec='-R$libdir'
  9661. hardcode_shlibpath_var=no
  9662. case $host_os in
  9663. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9664. *)
  9665. # The compiler driver will combine and reorder linker options,
  9666. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9667. # but is careful enough not to reorder.
  9668. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9669. if test yes = "$GCC"; then
  9670. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9671. else
  9672. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9673. fi
  9674. ;;
  9675. esac
  9676. link_all_deplibs=yes
  9677. ;;
  9678. sunos4*)
  9679. if test sequent = "$host_vendor"; then
  9680. # Use $CC to link under sequent, because it throws in some extra .o
  9681. # files that make .init and .fini sections work.
  9682. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9683. else
  9684. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9685. fi
  9686. hardcode_libdir_flag_spec='-L$libdir'
  9687. hardcode_direct=yes
  9688. hardcode_minus_L=yes
  9689. hardcode_shlibpath_var=no
  9690. ;;
  9691. sysv4)
  9692. case $host_vendor in
  9693. sni)
  9694. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9695. hardcode_direct=yes # is this really true???
  9696. ;;
  9697. siemens)
  9698. ## LD is ld it makes a PLAMLIB
  9699. ## CC just makes a GrossModule.
  9700. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9701. reload_cmds='$CC -r -o $output$reload_objs'
  9702. hardcode_direct=no
  9703. ;;
  9704. motorola)
  9705. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9706. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9707. ;;
  9708. esac
  9709. runpath_var='LD_RUN_PATH'
  9710. hardcode_shlibpath_var=no
  9711. ;;
  9712. sysv4.3*)
  9713. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9714. hardcode_shlibpath_var=no
  9715. export_dynamic_flag_spec='-Bexport'
  9716. ;;
  9717. sysv4*MP*)
  9718. if test -d /usr/nec; then
  9719. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9720. hardcode_shlibpath_var=no
  9721. runpath_var=LD_RUN_PATH
  9722. hardcode_runpath_var=yes
  9723. ld_shlibs=yes
  9724. fi
  9725. ;;
  9726. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9727. no_undefined_flag='$wl-z,text'
  9728. archive_cmds_need_lc=no
  9729. hardcode_shlibpath_var=no
  9730. runpath_var='LD_RUN_PATH'
  9731. if test yes = "$GCC"; then
  9732. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9733. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9734. else
  9735. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9736. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9737. fi
  9738. ;;
  9739. sysv5* | sco3.2v5* | sco5v6*)
  9740. # Note: We CANNOT use -z defs as we might desire, because we do not
  9741. # link with -lc, and that would cause any symbols used from libc to
  9742. # always be unresolved, which means just about no library would
  9743. # ever link correctly. If we're not using GNU ld we use -z text
  9744. # though, which does catch some bad symbols but isn't as heavy-handed
  9745. # as -z defs.
  9746. no_undefined_flag='$wl-z,text'
  9747. allow_undefined_flag='$wl-z,nodefs'
  9748. archive_cmds_need_lc=no
  9749. hardcode_shlibpath_var=no
  9750. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9751. hardcode_libdir_separator=':'
  9752. link_all_deplibs=yes
  9753. export_dynamic_flag_spec='$wl-Bexport'
  9754. runpath_var='LD_RUN_PATH'
  9755. if test yes = "$GCC"; then
  9756. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9757. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9758. else
  9759. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9760. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9761. fi
  9762. ;;
  9763. uts4*)
  9764. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9765. hardcode_libdir_flag_spec='-L$libdir'
  9766. hardcode_shlibpath_var=no
  9767. ;;
  9768. *)
  9769. ld_shlibs=no
  9770. ;;
  9771. esac
  9772. if test sni = "$host_vendor"; then
  9773. case $host in
  9774. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9775. export_dynamic_flag_spec='$wl-Blargedynsym'
  9776. ;;
  9777. esac
  9778. fi
  9779. fi
  9780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9781. printf "%s\n" "$ld_shlibs" >&6; }
  9782. test no = "$ld_shlibs" && can_build_shared=no
  9783. with_gnu_ld=$with_gnu_ld
  9784. #
  9785. # Do we need to explicitly link libc?
  9786. #
  9787. case "x$archive_cmds_need_lc" in
  9788. x|xyes)
  9789. # Assume -lc should be added
  9790. archive_cmds_need_lc=yes
  9791. if test yes,yes = "$GCC,$enable_shared"; then
  9792. case $archive_cmds in
  9793. *'~'*)
  9794. # FIXME: we may have to deal with multi-command sequences.
  9795. ;;
  9796. '$CC '*)
  9797. # Test whether the compiler implicitly links with -lc since on some
  9798. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9799. # to ld, don't add -lc before -lgcc.
  9800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9801. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9802. if test ${lt_cv_archive_cmds_need_lc+y}
  9803. then :
  9804. printf %s "(cached) " >&6
  9805. else $as_nop
  9806. $RM conftest*
  9807. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9809. (eval $ac_compile) 2>&5
  9810. ac_status=$?
  9811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9812. test $ac_status = 0; } 2>conftest.err; then
  9813. soname=conftest
  9814. lib=conftest
  9815. libobjs=conftest.$ac_objext
  9816. deplibs=
  9817. wl=$lt_prog_compiler_wl
  9818. pic_flag=$lt_prog_compiler_pic
  9819. compiler_flags=-v
  9820. linker_flags=-v
  9821. verstring=
  9822. output_objdir=.
  9823. libname=conftest
  9824. lt_save_allow_undefined_flag=$allow_undefined_flag
  9825. allow_undefined_flag=
  9826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9827. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9828. ac_status=$?
  9829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9830. test $ac_status = 0; }
  9831. then
  9832. lt_cv_archive_cmds_need_lc=no
  9833. else
  9834. lt_cv_archive_cmds_need_lc=yes
  9835. fi
  9836. allow_undefined_flag=$lt_save_allow_undefined_flag
  9837. else
  9838. cat conftest.err 1>&5
  9839. fi
  9840. $RM conftest*
  9841. fi
  9842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9843. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9844. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9845. ;;
  9846. esac
  9847. fi
  9848. ;;
  9849. esac
  9850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9851. printf %s "checking dynamic linker characteristics... " >&6; }
  9852. if test yes = "$GCC"; then
  9853. case $host_os in
  9854. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9855. *) lt_awk_arg='/^libraries:/' ;;
  9856. esac
  9857. case $host_os in
  9858. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9859. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9860. esac
  9861. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9862. case $lt_search_path_spec in
  9863. *\;*)
  9864. # if the path contains ";" then we assume it to be the separator
  9865. # otherwise default to the standard path separator (i.e. ":") - it is
  9866. # assumed that no part of a normal pathname contains ";" but that should
  9867. # okay in the real world where ";" in dirpaths is itself problematic.
  9868. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9869. ;;
  9870. *)
  9871. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9872. ;;
  9873. esac
  9874. # Ok, now we have the path, separated by spaces, we can step through it
  9875. # and add multilib dir if necessary...
  9876. lt_tmp_lt_search_path_spec=
  9877. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9878. # ...but if some path component already ends with the multilib dir we assume
  9879. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9880. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9881. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9882. lt_multi_os_dir=
  9883. ;;
  9884. esac
  9885. for lt_sys_path in $lt_search_path_spec; do
  9886. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9887. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9888. elif test -n "$lt_multi_os_dir"; then
  9889. test -d "$lt_sys_path" && \
  9890. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9891. fi
  9892. done
  9893. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9894. BEGIN {RS = " "; FS = "/|\n";} {
  9895. lt_foo = "";
  9896. lt_count = 0;
  9897. for (lt_i = NF; lt_i > 0; lt_i--) {
  9898. if ($lt_i != "" && $lt_i != ".") {
  9899. if ($lt_i == "..") {
  9900. lt_count++;
  9901. } else {
  9902. if (lt_count == 0) {
  9903. lt_foo = "/" $lt_i lt_foo;
  9904. } else {
  9905. lt_count--;
  9906. }
  9907. }
  9908. }
  9909. }
  9910. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9911. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9912. }'`
  9913. # AWK program above erroneously prepends '/' to C:/dos/paths
  9914. # for these hosts.
  9915. case $host_os in
  9916. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9917. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9918. esac
  9919. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9920. else
  9921. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9922. fi
  9923. library_names_spec=
  9924. libname_spec='lib$name'
  9925. soname_spec=
  9926. shrext_cmds=.so
  9927. postinstall_cmds=
  9928. postuninstall_cmds=
  9929. finish_cmds=
  9930. finish_eval=
  9931. shlibpath_var=
  9932. shlibpath_overrides_runpath=unknown
  9933. version_type=none
  9934. dynamic_linker="$host_os ld.so"
  9935. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9936. need_lib_prefix=unknown
  9937. hardcode_into_libs=no
  9938. # when you set need_version to no, make sure it does not cause -set_version
  9939. # flags to be left without arguments
  9940. need_version=unknown
  9941. case $host_os in
  9942. aix3*)
  9943. version_type=linux # correct to gnu/linux during the next big refactor
  9944. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9945. shlibpath_var=LIBPATH
  9946. # AIX 3 has no versioning support, so we append a major version to the name.
  9947. soname_spec='$libname$release$shared_ext$major'
  9948. ;;
  9949. aix[4-9]*)
  9950. version_type=linux # correct to gnu/linux during the next big refactor
  9951. need_lib_prefix=no
  9952. need_version=no
  9953. hardcode_into_libs=yes
  9954. if test ia64 = "$host_cpu"; then
  9955. # AIX 5 supports IA64
  9956. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9957. shlibpath_var=LD_LIBRARY_PATH
  9958. else
  9959. # With GCC up to 2.95.x, collect2 would create an import file
  9960. # for dependence libraries. The import file would start with
  9961. # the line '#! .'. This would cause the generated library to
  9962. # depend on '.', always an invalid library. This was fixed in
  9963. # development snapshots of GCC prior to 3.0.
  9964. case $host_os in
  9965. aix4 | aix4.[01] | aix4.[01].*)
  9966. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9967. echo ' yes '
  9968. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9969. :
  9970. else
  9971. can_build_shared=no
  9972. fi
  9973. ;;
  9974. esac
  9975. # Using Import Files as archive members, it is possible to support
  9976. # filename-based versioning of shared library archives on AIX. While
  9977. # this would work for both with and without runtime linking, it will
  9978. # prevent static linking of such archives. So we do filename-based
  9979. # shared library versioning with .so extension only, which is used
  9980. # when both runtime linking and shared linking is enabled.
  9981. # Unfortunately, runtime linking may impact performance, so we do
  9982. # not want this to be the default eventually. Also, we use the
  9983. # versioned .so libs for executables only if there is the -brtl
  9984. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9985. # To allow for filename-based versioning support, we need to create
  9986. # libNAME.so.V as an archive file, containing:
  9987. # *) an Import File, referring to the versioned filename of the
  9988. # archive as well as the shared archive member, telling the
  9989. # bitwidth (32 or 64) of that shared object, and providing the
  9990. # list of exported symbols of that shared object, eventually
  9991. # decorated with the 'weak' keyword
  9992. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9993. # it being seen by the linker.
  9994. # At run time we better use the real file rather than another symlink,
  9995. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9996. case $with_aix_soname,$aix_use_runtimelinking in
  9997. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9998. # soname into executable. Probably we can add versioning support to
  9999. # collect2, so additional links can be useful in future.
  10000. aix,yes) # traditional libtool
  10001. dynamic_linker='AIX unversionable lib.so'
  10002. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10003. # instead of lib<name>.a to let people know that these are not
  10004. # typical AIX shared libraries.
  10005. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10006. ;;
  10007. aix,no) # traditional AIX only
  10008. dynamic_linker='AIX lib.a(lib.so.V)'
  10009. # We preserve .a as extension for shared libraries through AIX4.2
  10010. # and later when we are not doing run time linking.
  10011. library_names_spec='$libname$release.a $libname.a'
  10012. soname_spec='$libname$release$shared_ext$major'
  10013. ;;
  10014. svr4,*) # full svr4 only
  10015. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10016. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10017. # We do not specify a path in Import Files, so LIBPATH fires.
  10018. shlibpath_overrides_runpath=yes
  10019. ;;
  10020. *,yes) # both, prefer svr4
  10021. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10022. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10023. # unpreferred sharedlib libNAME.a needs extra handling
  10024. 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"'
  10025. 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"'
  10026. # We do not specify a path in Import Files, so LIBPATH fires.
  10027. shlibpath_overrides_runpath=yes
  10028. ;;
  10029. *,no) # both, prefer aix
  10030. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10031. library_names_spec='$libname$release.a $libname.a'
  10032. soname_spec='$libname$release$shared_ext$major'
  10033. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10034. 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)'
  10035. 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"'
  10036. ;;
  10037. esac
  10038. shlibpath_var=LIBPATH
  10039. fi
  10040. ;;
  10041. amigaos*)
  10042. case $host_cpu in
  10043. powerpc)
  10044. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10045. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10047. ;;
  10048. m68k)
  10049. library_names_spec='$libname.ixlibrary $libname.a'
  10050. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10051. 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'
  10052. ;;
  10053. esac
  10054. ;;
  10055. beos*)
  10056. library_names_spec='$libname$shared_ext'
  10057. dynamic_linker="$host_os ld.so"
  10058. shlibpath_var=LIBRARY_PATH
  10059. ;;
  10060. bsdi[45]*)
  10061. version_type=linux # correct to gnu/linux during the next big refactor
  10062. need_version=no
  10063. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10064. soname_spec='$libname$release$shared_ext$major'
  10065. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10066. shlibpath_var=LD_LIBRARY_PATH
  10067. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10068. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10069. # the default ld.so.conf also contains /usr/contrib/lib and
  10070. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10071. # libtool to hard-code these into programs
  10072. ;;
  10073. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10074. version_type=windows
  10075. shrext_cmds=.dll
  10076. need_version=no
  10077. need_lib_prefix=no
  10078. case $GCC,$cc_basename in
  10079. yes,*)
  10080. # gcc
  10081. library_names_spec='$libname.dll.a'
  10082. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10083. postinstall_cmds='base_file=`basename \$file`~
  10084. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10085. dldir=$destdir/`dirname \$dlpath`~
  10086. test -d \$dldir || mkdir -p \$dldir~
  10087. $install_prog $dir/$dlname \$dldir/$dlname~
  10088. chmod a+x \$dldir/$dlname~
  10089. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10090. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10091. fi'
  10092. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10093. dlpath=$dir/\$dldll~
  10094. $RM \$dlpath'
  10095. shlibpath_overrides_runpath=yes
  10096. case $host_os in
  10097. cygwin*)
  10098. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10099. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10100. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  10101. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10102. ;;
  10103. mingw* | windows* | cegcc*)
  10104. # MinGW DLLs use traditional 'lib' prefix
  10105. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10106. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  10107. ;;
  10108. pw32*)
  10109. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10110. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10111. ;;
  10112. esac
  10113. dynamic_linker='Win32 ld.exe'
  10114. ;;
  10115. *,cl* | *,icl*)
  10116. # Native MSVC or ICC
  10117. libname_spec='$name'
  10118. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10119. library_names_spec='$libname.dll.lib'
  10120. case $build_os in
  10121. mingw* | windows*)
  10122. sys_lib_search_path_spec=
  10123. lt_save_ifs=$IFS
  10124. IFS=';'
  10125. for lt_path in $LIB
  10126. do
  10127. IFS=$lt_save_ifs
  10128. # Let DOS variable expansion print the short 8.3 style file name.
  10129. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10130. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10131. done
  10132. IFS=$lt_save_ifs
  10133. # Convert to MSYS style.
  10134. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10135. ;;
  10136. cygwin*)
  10137. # Convert to unix form, then to dos form, then back to unix form
  10138. # but this time dos style (no spaces!) so that the unix form looks
  10139. # like /cygdrive/c/PROGRA~1:/cygdr...
  10140. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10141. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10142. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10143. ;;
  10144. *)
  10145. sys_lib_search_path_spec=$LIB
  10146. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10147. # It is most probably a Windows format PATH.
  10148. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10149. else
  10150. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10151. fi
  10152. # FIXME: find the short name or the path components, as spaces are
  10153. # common. (e.g. "Program Files" -> "PROGRA~1")
  10154. ;;
  10155. esac
  10156. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10157. postinstall_cmds='base_file=`basename \$file`~
  10158. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10159. dldir=$destdir/`dirname \$dlpath`~
  10160. test -d \$dldir || mkdir -p \$dldir~
  10161. $install_prog $dir/$dlname \$dldir/$dlname'
  10162. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10163. dlpath=$dir/\$dldll~
  10164. $RM \$dlpath'
  10165. shlibpath_overrides_runpath=yes
  10166. dynamic_linker='Win32 link.exe'
  10167. ;;
  10168. *)
  10169. # Assume MSVC and ICC wrapper
  10170. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10171. dynamic_linker='Win32 ld.exe'
  10172. ;;
  10173. esac
  10174. # FIXME: first we should search . and the directory the executable is in
  10175. shlibpath_var=PATH
  10176. ;;
  10177. darwin* | rhapsody*)
  10178. dynamic_linker="$host_os dyld"
  10179. version_type=darwin
  10180. need_lib_prefix=no
  10181. need_version=no
  10182. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10183. soname_spec='$libname$release$major$shared_ext'
  10184. shlibpath_overrides_runpath=yes
  10185. shlibpath_var=DYLD_LIBRARY_PATH
  10186. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10187. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10188. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10189. ;;
  10190. dgux*)
  10191. version_type=linux # correct to gnu/linux during the next big refactor
  10192. need_lib_prefix=no
  10193. need_version=no
  10194. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10195. soname_spec='$libname$release$shared_ext$major'
  10196. shlibpath_var=LD_LIBRARY_PATH
  10197. ;;
  10198. freebsd* | dragonfly* | midnightbsd*)
  10199. # DragonFly does not have aout. When/if they implement a new
  10200. # versioning mechanism, adjust this.
  10201. if test -x /usr/bin/objformat; then
  10202. objformat=`/usr/bin/objformat`
  10203. else
  10204. case $host_os in
  10205. freebsd[23].*) objformat=aout ;;
  10206. *) objformat=elf ;;
  10207. esac
  10208. fi
  10209. version_type=freebsd-$objformat
  10210. case $version_type in
  10211. freebsd-elf*)
  10212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10213. soname_spec='$libname$release$shared_ext$major'
  10214. need_version=no
  10215. need_lib_prefix=no
  10216. ;;
  10217. freebsd-*)
  10218. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10219. need_version=yes
  10220. ;;
  10221. esac
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. case $host_os in
  10224. freebsd2.*)
  10225. shlibpath_overrides_runpath=yes
  10226. ;;
  10227. freebsd3.[01]* | freebsdelf3.[01]*)
  10228. shlibpath_overrides_runpath=yes
  10229. hardcode_into_libs=yes
  10230. ;;
  10231. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10232. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10233. shlibpath_overrides_runpath=no
  10234. hardcode_into_libs=yes
  10235. ;;
  10236. *) # from 4.6 on, and DragonFly
  10237. shlibpath_overrides_runpath=yes
  10238. hardcode_into_libs=yes
  10239. ;;
  10240. esac
  10241. ;;
  10242. haiku*)
  10243. version_type=linux # correct to gnu/linux during the next big refactor
  10244. need_lib_prefix=no
  10245. need_version=no
  10246. dynamic_linker="$host_os runtime_loader"
  10247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10248. soname_spec='$libname$release$shared_ext$major'
  10249. shlibpath_var=LIBRARY_PATH
  10250. shlibpath_overrides_runpath=no
  10251. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10252. hardcode_into_libs=yes
  10253. ;;
  10254. hpux9* | hpux10* | hpux11*)
  10255. # Give a soname corresponding to the major version so that dld.sl refuses to
  10256. # link against other versions.
  10257. version_type=sunos
  10258. need_lib_prefix=no
  10259. need_version=no
  10260. case $host_cpu in
  10261. ia64*)
  10262. shrext_cmds='.so'
  10263. hardcode_into_libs=yes
  10264. dynamic_linker="$host_os dld.so"
  10265. shlibpath_var=LD_LIBRARY_PATH
  10266. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10267. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10268. soname_spec='$libname$release$shared_ext$major'
  10269. if test 32 = "$HPUX_IA64_MODE"; then
  10270. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10271. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10272. else
  10273. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10274. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10275. fi
  10276. ;;
  10277. hppa*64*)
  10278. shrext_cmds='.sl'
  10279. hardcode_into_libs=yes
  10280. dynamic_linker="$host_os dld.sl"
  10281. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10282. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10283. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10284. soname_spec='$libname$release$shared_ext$major'
  10285. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10286. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10287. ;;
  10288. *)
  10289. shrext_cmds='.sl'
  10290. dynamic_linker="$host_os dld.sl"
  10291. shlibpath_var=SHLIB_PATH
  10292. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10293. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10294. soname_spec='$libname$release$shared_ext$major'
  10295. ;;
  10296. esac
  10297. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10298. postinstall_cmds='chmod 555 $lib'
  10299. # or fails outright, so override atomically:
  10300. install_override_mode=555
  10301. ;;
  10302. interix[3-9]*)
  10303. version_type=linux # correct to gnu/linux during the next big refactor
  10304. need_lib_prefix=no
  10305. need_version=no
  10306. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10307. soname_spec='$libname$release$shared_ext$major'
  10308. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10309. shlibpath_var=LD_LIBRARY_PATH
  10310. shlibpath_overrides_runpath=no
  10311. hardcode_into_libs=yes
  10312. ;;
  10313. irix5* | irix6* | nonstopux*)
  10314. case $host_os in
  10315. nonstopux*) version_type=nonstopux ;;
  10316. *)
  10317. if test yes = "$lt_cv_prog_gnu_ld"; then
  10318. version_type=linux # correct to gnu/linux during the next big refactor
  10319. else
  10320. version_type=irix
  10321. fi ;;
  10322. esac
  10323. need_lib_prefix=no
  10324. need_version=no
  10325. soname_spec='$libname$release$shared_ext$major'
  10326. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10327. case $host_os in
  10328. irix5* | nonstopux*)
  10329. libsuff= shlibsuff=
  10330. ;;
  10331. *)
  10332. case $LD in # libtool.m4 will add one of these switches to LD
  10333. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10334. libsuff= shlibsuff= libmagic=32-bit;;
  10335. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10336. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10337. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10338. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10339. *) libsuff= shlibsuff= libmagic=never-match;;
  10340. esac
  10341. ;;
  10342. esac
  10343. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10344. shlibpath_overrides_runpath=no
  10345. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10346. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10347. hardcode_into_libs=yes
  10348. ;;
  10349. # No shared lib support for Linux oldld, aout, or coff.
  10350. linux*oldld* | linux*aout* | linux*coff*)
  10351. dynamic_linker=no
  10352. ;;
  10353. linux*android*)
  10354. version_type=none # Android doesn't support versioned libraries.
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. library_names_spec='$libname$release$shared_ext'
  10358. soname_spec='$libname$release$shared_ext'
  10359. finish_cmds=
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. shlibpath_overrides_runpath=yes
  10362. # This implies no fast_install, which is unacceptable.
  10363. # Some rework will be needed to allow for fast_install
  10364. # before this can be enabled.
  10365. hardcode_into_libs=yes
  10366. dynamic_linker='Android linker'
  10367. # Don't embed -rpath directories since the linker doesn't support them.
  10368. hardcode_libdir_flag_spec='-L$libdir'
  10369. ;;
  10370. # This must be glibc/ELF.
  10371. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10372. version_type=linux # correct to gnu/linux during the next big refactor
  10373. need_lib_prefix=no
  10374. need_version=no
  10375. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10376. soname_spec='$libname$release$shared_ext$major'
  10377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. # Some binutils ld are patched to set DT_RUNPATH
  10381. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10382. then :
  10383. printf %s "(cached) " >&6
  10384. else $as_nop
  10385. lt_cv_shlibpath_overrides_runpath=no
  10386. save_LDFLAGS=$LDFLAGS
  10387. save_libdir=$libdir
  10388. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10389. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. int
  10393. main (void)
  10394. {
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_c_try_link "$LINENO"
  10400. then :
  10401. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10402. then :
  10403. lt_cv_shlibpath_overrides_runpath=yes
  10404. fi
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LDFLAGS=$save_LDFLAGS
  10409. libdir=$save_libdir
  10410. fi
  10411. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10412. # This implies no fast_install, which is unacceptable.
  10413. # Some rework will be needed to allow for fast_install
  10414. # before this can be enabled.
  10415. hardcode_into_libs=yes
  10416. # Add ABI-specific directories to the system library path.
  10417. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10418. # Ideally, we could use ldconfig to report *all* directores which are
  10419. # searched for libraries, however this is still not possible. Aside from not
  10420. # being certain /sbin/ldconfig is available, command
  10421. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10422. # even though it is searched at run-time. Try to do the best guess by
  10423. # appending ld.so.conf contents (and includes) to the search path.
  10424. if test -f /etc/ld.so.conf; then
  10425. 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' ' '`
  10426. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10427. fi
  10428. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10429. # powerpc, because MkLinux only supported shared libraries with the
  10430. # GNU dynamic linker. Since this was broken with cross compilers,
  10431. # most powerpc-linux boxes support dynamic linking these days and
  10432. # people can always --disable-shared, the test was removed, and we
  10433. # assume the GNU/Linux dynamic linker is in use.
  10434. dynamic_linker='GNU/Linux ld.so'
  10435. ;;
  10436. netbsd*)
  10437. version_type=sunos
  10438. need_lib_prefix=no
  10439. need_version=no
  10440. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10443. dynamic_linker='NetBSD (a.out) ld.so'
  10444. else
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. dynamic_linker='NetBSD ld.elf_so'
  10448. fi
  10449. shlibpath_var=LD_LIBRARY_PATH
  10450. shlibpath_overrides_runpath=yes
  10451. hardcode_into_libs=yes
  10452. ;;
  10453. newsos6)
  10454. version_type=linux # correct to gnu/linux during the next big refactor
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10456. shlibpath_var=LD_LIBRARY_PATH
  10457. shlibpath_overrides_runpath=yes
  10458. ;;
  10459. *nto* | *qnx*)
  10460. version_type=qnx
  10461. need_lib_prefix=no
  10462. need_version=no
  10463. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10464. soname_spec='$libname$release$shared_ext$major'
  10465. shlibpath_var=LD_LIBRARY_PATH
  10466. shlibpath_overrides_runpath=no
  10467. hardcode_into_libs=yes
  10468. dynamic_linker='ldqnx.so'
  10469. ;;
  10470. openbsd* | bitrig*)
  10471. version_type=sunos
  10472. sys_lib_dlsearch_path_spec=/usr/lib
  10473. need_lib_prefix=no
  10474. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10475. need_version=no
  10476. else
  10477. need_version=yes
  10478. fi
  10479. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10480. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10481. shlibpath_var=LD_LIBRARY_PATH
  10482. shlibpath_overrides_runpath=yes
  10483. ;;
  10484. os2*)
  10485. libname_spec='$name'
  10486. shrext_cmds=.dll
  10487. need_lib_prefix=no
  10488. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10489. # SDL customization: removed versioning support.
  10490. # version_type=windows
  10491. # need_version=no
  10492. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10493. # v=$($ECHO $release$versuffix | tr -d .-);
  10494. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10495. # $ECHO $n$v`$shared_ext'
  10496. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10497. library_names_spec='${libname}_dll.$libext'
  10498. dynamic_linker='OS/2 ld.exe'
  10499. shlibpath_var=BEGINLIBPATH
  10500. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10501. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10502. postinstall_cmds='base_file=`basename \$file`~
  10503. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10504. dldir=$destdir/`dirname \$dlpath`~
  10505. test -d \$dldir || mkdir -p \$dldir~
  10506. $install_prog $dir/$dlname \$dldir/$dlname~
  10507. chmod a+x \$dldir/$dlname~
  10508. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10509. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10510. fi'
  10511. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10512. dlpath=$dir/\$dldll~
  10513. $RM \$dlpath'
  10514. ;;
  10515. osf3* | osf4* | osf5*)
  10516. version_type=osf
  10517. need_lib_prefix=no
  10518. need_version=no
  10519. soname_spec='$libname$release$shared_ext$major'
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10523. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10524. ;;
  10525. rdos*)
  10526. dynamic_linker=no
  10527. ;;
  10528. solaris*)
  10529. version_type=linux # correct to gnu/linux during the next big refactor
  10530. need_lib_prefix=no
  10531. need_version=no
  10532. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10533. soname_spec='$libname$release$shared_ext$major'
  10534. shlibpath_var=LD_LIBRARY_PATH
  10535. shlibpath_overrides_runpath=yes
  10536. hardcode_into_libs=yes
  10537. # ldd complains unless libraries are executable
  10538. postinstall_cmds='chmod +x $lib'
  10539. ;;
  10540. sunos4*)
  10541. version_type=sunos
  10542. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10543. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10544. shlibpath_var=LD_LIBRARY_PATH
  10545. shlibpath_overrides_runpath=yes
  10546. if test yes = "$with_gnu_ld"; then
  10547. need_lib_prefix=no
  10548. fi
  10549. need_version=yes
  10550. ;;
  10551. sysv4 | sysv4.3*)
  10552. version_type=linux # correct to gnu/linux during the next big refactor
  10553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10554. soname_spec='$libname$release$shared_ext$major'
  10555. shlibpath_var=LD_LIBRARY_PATH
  10556. case $host_vendor in
  10557. sni)
  10558. shlibpath_overrides_runpath=no
  10559. need_lib_prefix=no
  10560. runpath_var=LD_RUN_PATH
  10561. ;;
  10562. siemens)
  10563. need_lib_prefix=no
  10564. ;;
  10565. motorola)
  10566. need_lib_prefix=no
  10567. need_version=no
  10568. shlibpath_overrides_runpath=no
  10569. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10570. ;;
  10571. esac
  10572. ;;
  10573. sysv4*MP*)
  10574. if test -d /usr/nec; then
  10575. version_type=linux # correct to gnu/linux during the next big refactor
  10576. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10577. soname_spec='$libname$shared_ext.$major'
  10578. shlibpath_var=LD_LIBRARY_PATH
  10579. fi
  10580. ;;
  10581. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10582. version_type=sco
  10583. need_lib_prefix=no
  10584. need_version=no
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10586. soname_spec='$libname$release$shared_ext$major'
  10587. shlibpath_var=LD_LIBRARY_PATH
  10588. shlibpath_overrides_runpath=yes
  10589. hardcode_into_libs=yes
  10590. if test yes = "$with_gnu_ld"; then
  10591. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10592. else
  10593. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10594. case $host_os in
  10595. sco3.2v5*)
  10596. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10597. ;;
  10598. esac
  10599. fi
  10600. sys_lib_dlsearch_path_spec='/usr/lib'
  10601. ;;
  10602. tpf*)
  10603. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10604. version_type=linux # correct to gnu/linux during the next big refactor
  10605. need_lib_prefix=no
  10606. need_version=no
  10607. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10608. shlibpath_var=LD_LIBRARY_PATH
  10609. shlibpath_overrides_runpath=no
  10610. hardcode_into_libs=yes
  10611. ;;
  10612. uts4*)
  10613. version_type=linux # correct to gnu/linux during the next big refactor
  10614. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10615. soname_spec='$libname$release$shared_ext$major'
  10616. shlibpath_var=LD_LIBRARY_PATH
  10617. ;;
  10618. *)
  10619. dynamic_linker=no
  10620. ;;
  10621. esac
  10622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10623. printf "%s\n" "$dynamic_linker" >&6; }
  10624. test no = "$dynamic_linker" && can_build_shared=no
  10625. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10626. if test yes = "$GCC"; then
  10627. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10628. fi
  10629. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10630. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10631. fi
  10632. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10633. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10634. fi
  10635. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10636. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10637. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10638. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10639. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10640. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10642. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10643. hardcode_action=
  10644. if test -n "$hardcode_libdir_flag_spec" ||
  10645. test -n "$runpath_var" ||
  10646. test yes = "$hardcode_automatic"; then
  10647. # We can hardcode non-existent directories.
  10648. if test no != "$hardcode_direct" &&
  10649. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10650. # have to relink, otherwise we might link with an installed library
  10651. # when we should be linking with a yet-to-be-installed one
  10652. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10653. test no != "$hardcode_minus_L"; then
  10654. # Linking always hardcodes the temporary library directory.
  10655. hardcode_action=relink
  10656. else
  10657. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10658. hardcode_action=immediate
  10659. fi
  10660. else
  10661. # We cannot hardcode anything, or else we can only hardcode existing
  10662. # directories.
  10663. hardcode_action=unsupported
  10664. fi
  10665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10666. printf "%s\n" "$hardcode_action" >&6; }
  10667. if test relink = "$hardcode_action" ||
  10668. test yes = "$inherit_rpath"; then
  10669. # Fast installation is not supported
  10670. enable_fast_install=no
  10671. elif test yes = "$shlibpath_overrides_runpath" ||
  10672. test no = "$enable_shared"; then
  10673. # Fast installation is not necessary
  10674. enable_fast_install=needless
  10675. fi
  10676. if test yes != "$enable_dlopen"; then
  10677. enable_dlopen=unknown
  10678. enable_dlopen_self=unknown
  10679. enable_dlopen_self_static=unknown
  10680. else
  10681. lt_cv_dlopen=no
  10682. lt_cv_dlopen_libs=
  10683. case $host_os in
  10684. beos*)
  10685. lt_cv_dlopen=load_add_on
  10686. lt_cv_dlopen_libs=
  10687. lt_cv_dlopen_self=yes
  10688. ;;
  10689. mingw* | windows* | pw32* | cegcc*)
  10690. lt_cv_dlopen=LoadLibrary
  10691. lt_cv_dlopen_libs=
  10692. ;;
  10693. cygwin*)
  10694. lt_cv_dlopen=dlopen
  10695. lt_cv_dlopen_libs=
  10696. ;;
  10697. darwin*)
  10698. # if libdl is installed we need to link against it
  10699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10700. printf %s "checking for dlopen in -ldl... " >&6; }
  10701. if test ${ac_cv_lib_dl_dlopen+y}
  10702. then :
  10703. printf %s "(cached) " >&6
  10704. else $as_nop
  10705. ac_check_lib_save_LIBS=$LIBS
  10706. LIBS="-ldl $LIBS"
  10707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10708. /* end confdefs.h. */
  10709. /* Override any GCC internal prototype to avoid an error.
  10710. Use char because int might match the return type of a GCC
  10711. builtin and then its argument prototype would still apply. */
  10712. char dlopen ();
  10713. int
  10714. main (void)
  10715. {
  10716. return dlopen ();
  10717. ;
  10718. return 0;
  10719. }
  10720. _ACEOF
  10721. if ac_fn_c_try_link "$LINENO"
  10722. then :
  10723. ac_cv_lib_dl_dlopen=yes
  10724. else $as_nop
  10725. ac_cv_lib_dl_dlopen=no
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. LIBS=$ac_check_lib_save_LIBS
  10730. fi
  10731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10732. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10733. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10734. then :
  10735. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10736. else $as_nop
  10737. lt_cv_dlopen=dyld
  10738. lt_cv_dlopen_libs=
  10739. lt_cv_dlopen_self=yes
  10740. fi
  10741. ;;
  10742. tpf*)
  10743. # Don't try to run any link tests for TPF. We know it's impossible
  10744. # because TPF is a cross-compiler, and we know how we open DSOs.
  10745. lt_cv_dlopen=dlopen
  10746. lt_cv_dlopen_libs=
  10747. lt_cv_dlopen_self=no
  10748. ;;
  10749. *)
  10750. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10751. if test "x$ac_cv_func_shl_load" = xyes
  10752. then :
  10753. lt_cv_dlopen=shl_load
  10754. else $as_nop
  10755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10756. printf %s "checking for shl_load in -ldld... " >&6; }
  10757. if test ${ac_cv_lib_dld_shl_load+y}
  10758. then :
  10759. printf %s "(cached) " >&6
  10760. else $as_nop
  10761. ac_check_lib_save_LIBS=$LIBS
  10762. LIBS="-ldld $LIBS"
  10763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10764. /* end confdefs.h. */
  10765. /* Override any GCC internal prototype to avoid an error.
  10766. Use char because int might match the return type of a GCC
  10767. builtin and then its argument prototype would still apply. */
  10768. char shl_load ();
  10769. int
  10770. main (void)
  10771. {
  10772. return shl_load ();
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. if ac_fn_c_try_link "$LINENO"
  10778. then :
  10779. ac_cv_lib_dld_shl_load=yes
  10780. else $as_nop
  10781. ac_cv_lib_dld_shl_load=no
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10784. conftest$ac_exeext conftest.$ac_ext
  10785. LIBS=$ac_check_lib_save_LIBS
  10786. fi
  10787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10788. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10789. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10790. then :
  10791. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10792. else $as_nop
  10793. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10794. if test "x$ac_cv_func_dlopen" = xyes
  10795. then :
  10796. lt_cv_dlopen=dlopen
  10797. else $as_nop
  10798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10799. printf %s "checking for dlopen in -ldl... " >&6; }
  10800. if test ${ac_cv_lib_dl_dlopen+y}
  10801. then :
  10802. printf %s "(cached) " >&6
  10803. else $as_nop
  10804. ac_check_lib_save_LIBS=$LIBS
  10805. LIBS="-ldl $LIBS"
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. /* Override any GCC internal prototype to avoid an error.
  10809. Use char because int might match the return type of a GCC
  10810. builtin and then its argument prototype would still apply. */
  10811. char dlopen ();
  10812. int
  10813. main (void)
  10814. {
  10815. return dlopen ();
  10816. ;
  10817. return 0;
  10818. }
  10819. _ACEOF
  10820. if ac_fn_c_try_link "$LINENO"
  10821. then :
  10822. ac_cv_lib_dl_dlopen=yes
  10823. else $as_nop
  10824. ac_cv_lib_dl_dlopen=no
  10825. fi
  10826. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10827. conftest$ac_exeext conftest.$ac_ext
  10828. LIBS=$ac_check_lib_save_LIBS
  10829. fi
  10830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10831. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10832. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10833. then :
  10834. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10835. else $as_nop
  10836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10837. printf %s "checking for dlopen in -lsvld... " >&6; }
  10838. if test ${ac_cv_lib_svld_dlopen+y}
  10839. then :
  10840. printf %s "(cached) " >&6
  10841. else $as_nop
  10842. ac_check_lib_save_LIBS=$LIBS
  10843. LIBS="-lsvld $LIBS"
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. /* Override any GCC internal prototype to avoid an error.
  10847. Use char because int might match the return type of a GCC
  10848. builtin and then its argument prototype would still apply. */
  10849. char dlopen ();
  10850. int
  10851. main (void)
  10852. {
  10853. return dlopen ();
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. if ac_fn_c_try_link "$LINENO"
  10859. then :
  10860. ac_cv_lib_svld_dlopen=yes
  10861. else $as_nop
  10862. ac_cv_lib_svld_dlopen=no
  10863. fi
  10864. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10865. conftest$ac_exeext conftest.$ac_ext
  10866. LIBS=$ac_check_lib_save_LIBS
  10867. fi
  10868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10869. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10870. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10871. then :
  10872. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10873. else $as_nop
  10874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10875. printf %s "checking for dld_link in -ldld... " >&6; }
  10876. if test ${ac_cv_lib_dld_dld_link+y}
  10877. then :
  10878. printf %s "(cached) " >&6
  10879. else $as_nop
  10880. ac_check_lib_save_LIBS=$LIBS
  10881. LIBS="-ldld $LIBS"
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. /* Override any GCC internal prototype to avoid an error.
  10885. Use char because int might match the return type of a GCC
  10886. builtin and then its argument prototype would still apply. */
  10887. char dld_link ();
  10888. int
  10889. main (void)
  10890. {
  10891. return dld_link ();
  10892. ;
  10893. return 0;
  10894. }
  10895. _ACEOF
  10896. if ac_fn_c_try_link "$LINENO"
  10897. then :
  10898. ac_cv_lib_dld_dld_link=yes
  10899. else $as_nop
  10900. ac_cv_lib_dld_dld_link=no
  10901. fi
  10902. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10903. conftest$ac_exeext conftest.$ac_ext
  10904. LIBS=$ac_check_lib_save_LIBS
  10905. fi
  10906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10907. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10908. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10909. then :
  10910. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10911. fi
  10912. fi
  10913. fi
  10914. fi
  10915. fi
  10916. fi
  10917. ;;
  10918. esac
  10919. if test no = "$lt_cv_dlopen"; then
  10920. enable_dlopen=no
  10921. else
  10922. enable_dlopen=yes
  10923. fi
  10924. case $lt_cv_dlopen in
  10925. dlopen)
  10926. save_CPPFLAGS=$CPPFLAGS
  10927. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10928. save_LDFLAGS=$LDFLAGS
  10929. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10930. save_LIBS=$LIBS
  10931. LIBS="$lt_cv_dlopen_libs $LIBS"
  10932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10933. printf %s "checking whether a program can dlopen itself... " >&6; }
  10934. if test ${lt_cv_dlopen_self+y}
  10935. then :
  10936. printf %s "(cached) " >&6
  10937. else $as_nop
  10938. if test yes = "$cross_compiling"; then :
  10939. lt_cv_dlopen_self=cross
  10940. else
  10941. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10942. lt_status=$lt_dlunknown
  10943. cat > conftest.$ac_ext <<_LT_EOF
  10944. #line $LINENO "configure"
  10945. #include "confdefs.h"
  10946. #if HAVE_DLFCN_H
  10947. #include <dlfcn.h>
  10948. #endif
  10949. #include <stdio.h>
  10950. #ifdef RTLD_GLOBAL
  10951. # define LT_DLGLOBAL RTLD_GLOBAL
  10952. #else
  10953. # ifdef DL_GLOBAL
  10954. # define LT_DLGLOBAL DL_GLOBAL
  10955. # else
  10956. # define LT_DLGLOBAL 0
  10957. # endif
  10958. #endif
  10959. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10960. find out it does not work in some platform. */
  10961. #ifndef LT_DLLAZY_OR_NOW
  10962. # ifdef RTLD_LAZY
  10963. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10964. # else
  10965. # ifdef DL_LAZY
  10966. # define LT_DLLAZY_OR_NOW DL_LAZY
  10967. # else
  10968. # ifdef RTLD_NOW
  10969. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10970. # else
  10971. # ifdef DL_NOW
  10972. # define LT_DLLAZY_OR_NOW DL_NOW
  10973. # else
  10974. # define LT_DLLAZY_OR_NOW 0
  10975. # endif
  10976. # endif
  10977. # endif
  10978. # endif
  10979. #endif
  10980. /* When -fvisibility=hidden is used, assume the code has been annotated
  10981. correspondingly for the symbols needed. */
  10982. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10983. int fnord (void) __attribute__((visibility("default")));
  10984. #endif
  10985. int fnord (void) { return 42; }
  10986. int main (void)
  10987. {
  10988. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10989. int status = $lt_dlunknown;
  10990. if (self)
  10991. {
  10992. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10993. else
  10994. {
  10995. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10996. else puts (dlerror ());
  10997. }
  10998. /* dlclose (self); */
  10999. }
  11000. else
  11001. puts (dlerror ());
  11002. return status;
  11003. }
  11004. _LT_EOF
  11005. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11006. (eval $ac_link) 2>&5
  11007. ac_status=$?
  11008. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11009. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11010. (./conftest; exit; ) >&5 2>/dev/null
  11011. lt_status=$?
  11012. case x$lt_status in
  11013. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11014. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11015. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11016. esac
  11017. else :
  11018. # compilation failed
  11019. lt_cv_dlopen_self=no
  11020. fi
  11021. fi
  11022. rm -fr conftest*
  11023. fi
  11024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11025. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11026. if test yes = "$lt_cv_dlopen_self"; then
  11027. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11029. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11030. if test ${lt_cv_dlopen_self_static+y}
  11031. then :
  11032. printf %s "(cached) " >&6
  11033. else $as_nop
  11034. if test yes = "$cross_compiling"; then :
  11035. lt_cv_dlopen_self_static=cross
  11036. else
  11037. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11038. lt_status=$lt_dlunknown
  11039. cat > conftest.$ac_ext <<_LT_EOF
  11040. #line $LINENO "configure"
  11041. #include "confdefs.h"
  11042. #if HAVE_DLFCN_H
  11043. #include <dlfcn.h>
  11044. #endif
  11045. #include <stdio.h>
  11046. #ifdef RTLD_GLOBAL
  11047. # define LT_DLGLOBAL RTLD_GLOBAL
  11048. #else
  11049. # ifdef DL_GLOBAL
  11050. # define LT_DLGLOBAL DL_GLOBAL
  11051. # else
  11052. # define LT_DLGLOBAL 0
  11053. # endif
  11054. #endif
  11055. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11056. find out it does not work in some platform. */
  11057. #ifndef LT_DLLAZY_OR_NOW
  11058. # ifdef RTLD_LAZY
  11059. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11060. # else
  11061. # ifdef DL_LAZY
  11062. # define LT_DLLAZY_OR_NOW DL_LAZY
  11063. # else
  11064. # ifdef RTLD_NOW
  11065. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11066. # else
  11067. # ifdef DL_NOW
  11068. # define LT_DLLAZY_OR_NOW DL_NOW
  11069. # else
  11070. # define LT_DLLAZY_OR_NOW 0
  11071. # endif
  11072. # endif
  11073. # endif
  11074. # endif
  11075. #endif
  11076. /* When -fvisibility=hidden is used, assume the code has been annotated
  11077. correspondingly for the symbols needed. */
  11078. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11079. int fnord (void) __attribute__((visibility("default")));
  11080. #endif
  11081. int fnord (void) { return 42; }
  11082. int main (void)
  11083. {
  11084. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11085. int status = $lt_dlunknown;
  11086. if (self)
  11087. {
  11088. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11089. else
  11090. {
  11091. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11092. else puts (dlerror ());
  11093. }
  11094. /* dlclose (self); */
  11095. }
  11096. else
  11097. puts (dlerror ());
  11098. return status;
  11099. }
  11100. _LT_EOF
  11101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11102. (eval $ac_link) 2>&5
  11103. ac_status=$?
  11104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11105. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11106. (./conftest; exit; ) >&5 2>/dev/null
  11107. lt_status=$?
  11108. case x$lt_status in
  11109. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11110. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11111. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11112. esac
  11113. else :
  11114. # compilation failed
  11115. lt_cv_dlopen_self_static=no
  11116. fi
  11117. fi
  11118. rm -fr conftest*
  11119. fi
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11121. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11122. fi
  11123. CPPFLAGS=$save_CPPFLAGS
  11124. LDFLAGS=$save_LDFLAGS
  11125. LIBS=$save_LIBS
  11126. ;;
  11127. esac
  11128. case $lt_cv_dlopen_self in
  11129. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11130. *) enable_dlopen_self=unknown ;;
  11131. esac
  11132. case $lt_cv_dlopen_self_static in
  11133. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11134. *) enable_dlopen_self_static=unknown ;;
  11135. esac
  11136. fi
  11137. striplib=
  11138. old_striplib=
  11139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11140. printf %s "checking whether stripping libraries is possible... " >&6; }
  11141. if test -z "$STRIP"; then
  11142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11143. printf "%s\n" "no" >&6; }
  11144. else
  11145. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11146. old_striplib="$STRIP --strip-debug"
  11147. striplib="$STRIP --strip-unneeded"
  11148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11149. printf "%s\n" "yes" >&6; }
  11150. else
  11151. case $host_os in
  11152. darwin*)
  11153. # FIXME - insert some real tests, host_os isn't really good enough
  11154. striplib="$STRIP -x"
  11155. old_striplib="$STRIP -S"
  11156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11157. printf "%s\n" "yes" >&6; }
  11158. ;;
  11159. freebsd*)
  11160. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11161. old_striplib="$STRIP --strip-debug"
  11162. striplib="$STRIP --strip-unneeded"
  11163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11164. printf "%s\n" "yes" >&6; }
  11165. else
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11167. printf "%s\n" "no" >&6; }
  11168. fi
  11169. ;;
  11170. *)
  11171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11172. printf "%s\n" "no" >&6; }
  11173. ;;
  11174. esac
  11175. fi
  11176. fi
  11177. # Report what library types will actually be built
  11178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11179. printf %s "checking if libtool supports shared libraries... " >&6; }
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11181. printf "%s\n" "$can_build_shared" >&6; }
  11182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11183. printf %s "checking whether to build shared libraries... " >&6; }
  11184. test no = "$can_build_shared" && enable_shared=no
  11185. # On AIX, shared libraries and static libraries use the same namespace, and
  11186. # are all built from PIC.
  11187. case $host_os in
  11188. aix3*)
  11189. test yes = "$enable_shared" && enable_static=no
  11190. if test -n "$RANLIB"; then
  11191. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11192. postinstall_cmds='$RANLIB $lib'
  11193. fi
  11194. ;;
  11195. aix[4-9]*)
  11196. if test ia64 != "$host_cpu"; then
  11197. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11198. yes,aix,yes) ;; # shared object as lib.so file only
  11199. yes,svr4,*) ;; # shared object as lib.so archive member only
  11200. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11201. esac
  11202. fi
  11203. ;;
  11204. esac
  11205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11206. printf "%s\n" "$enable_shared" >&6; }
  11207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11208. printf %s "checking whether to build static libraries... " >&6; }
  11209. # Make sure either enable_shared or enable_static is yes.
  11210. test yes = "$enable_shared" || enable_static=yes
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11212. printf "%s\n" "$enable_static" >&6; }
  11213. fi
  11214. ac_ext=c
  11215. ac_cpp='$CPP $CPPFLAGS'
  11216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11219. CC=$lt_save_CC
  11220. ac_config_commands="$ac_config_commands libtool"
  11221. # Only expand once:
  11222. if test -n "$ac_tool_prefix"; then
  11223. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11224. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11226. printf %s "checking for $ac_word... " >&6; }
  11227. if test ${ac_cv_prog_RC+y}
  11228. then :
  11229. printf %s "(cached) " >&6
  11230. else $as_nop
  11231. if test -n "$RC"; then
  11232. ac_cv_prog_RC="$RC" # Let the user override the test.
  11233. else
  11234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11235. for as_dir in $PATH
  11236. do
  11237. IFS=$as_save_IFS
  11238. case $as_dir in #(((
  11239. '') as_dir=./ ;;
  11240. */) ;;
  11241. *) as_dir=$as_dir/ ;;
  11242. esac
  11243. for ac_exec_ext in '' $ac_executable_extensions; do
  11244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11245. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11247. break 2
  11248. fi
  11249. done
  11250. done
  11251. IFS=$as_save_IFS
  11252. fi
  11253. fi
  11254. RC=$ac_cv_prog_RC
  11255. if test -n "$RC"; then
  11256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11257. printf "%s\n" "$RC" >&6; }
  11258. else
  11259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11260. printf "%s\n" "no" >&6; }
  11261. fi
  11262. fi
  11263. if test -z "$ac_cv_prog_RC"; then
  11264. ac_ct_RC=$RC
  11265. # Extract the first word of "windres", so it can be a program name with args.
  11266. set dummy windres; ac_word=$2
  11267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11268. printf %s "checking for $ac_word... " >&6; }
  11269. if test ${ac_cv_prog_ac_ct_RC+y}
  11270. then :
  11271. printf %s "(cached) " >&6
  11272. else $as_nop
  11273. if test -n "$ac_ct_RC"; then
  11274. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11275. else
  11276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11277. for as_dir in $PATH
  11278. do
  11279. IFS=$as_save_IFS
  11280. case $as_dir in #(((
  11281. '') as_dir=./ ;;
  11282. */) ;;
  11283. *) as_dir=$as_dir/ ;;
  11284. esac
  11285. for ac_exec_ext in '' $ac_executable_extensions; do
  11286. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11287. ac_cv_prog_ac_ct_RC="windres"
  11288. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11289. break 2
  11290. fi
  11291. done
  11292. done
  11293. IFS=$as_save_IFS
  11294. fi
  11295. fi
  11296. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11297. if test -n "$ac_ct_RC"; then
  11298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11299. printf "%s\n" "$ac_ct_RC" >&6; }
  11300. else
  11301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11302. printf "%s\n" "no" >&6; }
  11303. fi
  11304. if test "x$ac_ct_RC" = x; then
  11305. RC=""
  11306. else
  11307. case $cross_compiling:$ac_tool_warned in
  11308. yes:)
  11309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11310. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11311. ac_tool_warned=yes ;;
  11312. esac
  11313. RC=$ac_ct_RC
  11314. fi
  11315. else
  11316. RC="$ac_cv_prog_RC"
  11317. fi
  11318. # Source file extension for RC test sources.
  11319. ac_ext=rc
  11320. # Object file extension for compiled RC test sources.
  11321. objext=o
  11322. objext_RC=$objext
  11323. # Code to be used in simple compile tests
  11324. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11325. # Code to be used in simple link tests
  11326. lt_simple_link_test_code=$lt_simple_compile_test_code
  11327. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11328. # If no C compiler was specified, use CC.
  11329. LTCC=${LTCC-"$CC"}
  11330. # If no C compiler flags were specified, use CFLAGS.
  11331. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11332. # Allow CC to be a program name with arguments.
  11333. compiler=$CC
  11334. # save warnings/boilerplate of simple test code
  11335. ac_outfile=conftest.$ac_objext
  11336. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11337. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11338. _lt_compiler_boilerplate=`cat conftest.err`
  11339. $RM conftest*
  11340. ac_outfile=conftest.$ac_objext
  11341. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11342. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11343. _lt_linker_boilerplate=`cat conftest.err`
  11344. $RM -r conftest*
  11345. # Allow CC to be a program name with arguments.
  11346. lt_save_CC=$CC
  11347. lt_save_CFLAGS=$CFLAGS
  11348. lt_save_GCC=$GCC
  11349. GCC=
  11350. CC=${RC-"windres"}
  11351. CFLAGS=
  11352. compiler=$CC
  11353. compiler_RC=$CC
  11354. func_cc_basename $compiler
  11355. cc_basename=$func_cc_basename_result
  11356. lt_cv_prog_compiler_c_o_RC=yes
  11357. if test -n "$compiler"; then
  11358. :
  11359. fi
  11360. GCC=$lt_save_GCC
  11361. ac_ext=c
  11362. ac_cpp='$CPP $CPPFLAGS'
  11363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11366. CC=$lt_save_CC
  11367. CFLAGS=$lt_save_CFLAGS
  11368. # For historical reasons, the library name redundantly includes the major
  11369. # version twice: libSDL2-2.0.so.0.
  11370. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11371. LT_RELEASE=2.0
  11372. # Increment this if there is an incompatible change - but if that happens,
  11373. # we should rename the library from SDL2 to SDL3, at which point this would
  11374. # reset to 0 anyway.
  11375. LT_MAJOR=0
  11376. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11377. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11378. LT_REVISION=$SDL_INTERFACE_AGE
  11379. for ac_prog in gawk mawk nawk awk
  11380. do
  11381. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11382. set dummy $ac_prog; ac_word=$2
  11383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11384. printf %s "checking for $ac_word... " >&6; }
  11385. if test ${ac_cv_prog_AWK+y}
  11386. then :
  11387. printf %s "(cached) " >&6
  11388. else $as_nop
  11389. if test -n "$AWK"; then
  11390. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11391. else
  11392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11393. for as_dir in $PATH
  11394. do
  11395. IFS=$as_save_IFS
  11396. case $as_dir in #(((
  11397. '') as_dir=./ ;;
  11398. */) ;;
  11399. *) as_dir=$as_dir/ ;;
  11400. esac
  11401. for ac_exec_ext in '' $ac_executable_extensions; do
  11402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11403. ac_cv_prog_AWK="$ac_prog"
  11404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11405. break 2
  11406. fi
  11407. done
  11408. done
  11409. IFS=$as_save_IFS
  11410. fi
  11411. fi
  11412. AWK=$ac_cv_prog_AWK
  11413. if test -n "$AWK"; then
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11415. printf "%s\n" "$AWK" >&6; }
  11416. else
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11418. printf "%s\n" "no" >&6; }
  11419. fi
  11420. test -n "$AWK" && break
  11421. done
  11422. ac_ext=c
  11423. ac_cpp='$CPP $CPPFLAGS'
  11424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11427. if test -n "$ac_tool_prefix"; then
  11428. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11429. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11431. printf %s "checking for $ac_word... " >&6; }
  11432. if test ${ac_cv_prog_CC+y}
  11433. then :
  11434. printf %s "(cached) " >&6
  11435. else $as_nop
  11436. if test -n "$CC"; then
  11437. ac_cv_prog_CC="$CC" # Let the user override the test.
  11438. else
  11439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11440. for as_dir in $PATH
  11441. do
  11442. IFS=$as_save_IFS
  11443. case $as_dir in #(((
  11444. '') as_dir=./ ;;
  11445. */) ;;
  11446. *) as_dir=$as_dir/ ;;
  11447. esac
  11448. for ac_exec_ext in '' $ac_executable_extensions; do
  11449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11450. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11452. break 2
  11453. fi
  11454. done
  11455. done
  11456. IFS=$as_save_IFS
  11457. fi
  11458. fi
  11459. CC=$ac_cv_prog_CC
  11460. if test -n "$CC"; then
  11461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11462. printf "%s\n" "$CC" >&6; }
  11463. else
  11464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11465. printf "%s\n" "no" >&6; }
  11466. fi
  11467. fi
  11468. if test -z "$ac_cv_prog_CC"; then
  11469. ac_ct_CC=$CC
  11470. # Extract the first word of "gcc", so it can be a program name with args.
  11471. set dummy gcc; ac_word=$2
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11473. printf %s "checking for $ac_word... " >&6; }
  11474. if test ${ac_cv_prog_ac_ct_CC+y}
  11475. then :
  11476. printf %s "(cached) " >&6
  11477. else $as_nop
  11478. if test -n "$ac_ct_CC"; then
  11479. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11480. else
  11481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11482. for as_dir in $PATH
  11483. do
  11484. IFS=$as_save_IFS
  11485. case $as_dir in #(((
  11486. '') as_dir=./ ;;
  11487. */) ;;
  11488. *) as_dir=$as_dir/ ;;
  11489. esac
  11490. for ac_exec_ext in '' $ac_executable_extensions; do
  11491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11492. ac_cv_prog_ac_ct_CC="gcc"
  11493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11494. break 2
  11495. fi
  11496. done
  11497. done
  11498. IFS=$as_save_IFS
  11499. fi
  11500. fi
  11501. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11502. if test -n "$ac_ct_CC"; then
  11503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11504. printf "%s\n" "$ac_ct_CC" >&6; }
  11505. else
  11506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11507. printf "%s\n" "no" >&6; }
  11508. fi
  11509. if test "x$ac_ct_CC" = x; then
  11510. CC=""
  11511. else
  11512. case $cross_compiling:$ac_tool_warned in
  11513. yes:)
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11516. ac_tool_warned=yes ;;
  11517. esac
  11518. CC=$ac_ct_CC
  11519. fi
  11520. else
  11521. CC="$ac_cv_prog_CC"
  11522. fi
  11523. if test -z "$CC"; then
  11524. if test -n "$ac_tool_prefix"; then
  11525. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11526. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. printf %s "checking for $ac_word... " >&6; }
  11529. if test ${ac_cv_prog_CC+y}
  11530. then :
  11531. printf %s "(cached) " >&6
  11532. else $as_nop
  11533. if test -n "$CC"; then
  11534. ac_cv_prog_CC="$CC" # Let the user override the test.
  11535. else
  11536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11537. for as_dir in $PATH
  11538. do
  11539. IFS=$as_save_IFS
  11540. case $as_dir in #(((
  11541. '') as_dir=./ ;;
  11542. */) ;;
  11543. *) as_dir=$as_dir/ ;;
  11544. esac
  11545. for ac_exec_ext in '' $ac_executable_extensions; do
  11546. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11547. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11549. break 2
  11550. fi
  11551. done
  11552. done
  11553. IFS=$as_save_IFS
  11554. fi
  11555. fi
  11556. CC=$ac_cv_prog_CC
  11557. if test -n "$CC"; then
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11559. printf "%s\n" "$CC" >&6; }
  11560. else
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11562. printf "%s\n" "no" >&6; }
  11563. fi
  11564. fi
  11565. fi
  11566. if test -z "$CC"; then
  11567. # Extract the first word of "cc", so it can be a program name with args.
  11568. set dummy cc; ac_word=$2
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11570. printf %s "checking for $ac_word... " >&6; }
  11571. if test ${ac_cv_prog_CC+y}
  11572. then :
  11573. printf %s "(cached) " >&6
  11574. else $as_nop
  11575. if test -n "$CC"; then
  11576. ac_cv_prog_CC="$CC" # Let the user override the test.
  11577. else
  11578. ac_prog_rejected=no
  11579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11580. for as_dir in $PATH
  11581. do
  11582. IFS=$as_save_IFS
  11583. case $as_dir in #(((
  11584. '') as_dir=./ ;;
  11585. */) ;;
  11586. *) as_dir=$as_dir/ ;;
  11587. esac
  11588. for ac_exec_ext in '' $ac_executable_extensions; do
  11589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11590. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11591. ac_prog_rejected=yes
  11592. continue
  11593. fi
  11594. ac_cv_prog_CC="cc"
  11595. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11596. break 2
  11597. fi
  11598. done
  11599. done
  11600. IFS=$as_save_IFS
  11601. if test $ac_prog_rejected = yes; then
  11602. # We found a bogon in the path, so make sure we never use it.
  11603. set dummy $ac_cv_prog_CC
  11604. shift
  11605. if test $# != 0; then
  11606. # We chose a different compiler from the bogus one.
  11607. # However, it has the same basename, so the bogon will be chosen
  11608. # first if we set CC to just the basename; use the full file name.
  11609. shift
  11610. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11611. fi
  11612. fi
  11613. fi
  11614. fi
  11615. CC=$ac_cv_prog_CC
  11616. if test -n "$CC"; then
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11618. printf "%s\n" "$CC" >&6; }
  11619. else
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11621. printf "%s\n" "no" >&6; }
  11622. fi
  11623. fi
  11624. if test -z "$CC"; then
  11625. if test -n "$ac_tool_prefix"; then
  11626. for ac_prog in cl.exe
  11627. do
  11628. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11629. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11631. printf %s "checking for $ac_word... " >&6; }
  11632. if test ${ac_cv_prog_CC+y}
  11633. then :
  11634. printf %s "(cached) " >&6
  11635. else $as_nop
  11636. if test -n "$CC"; then
  11637. ac_cv_prog_CC="$CC" # Let the user override the test.
  11638. else
  11639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11640. for as_dir in $PATH
  11641. do
  11642. IFS=$as_save_IFS
  11643. case $as_dir in #(((
  11644. '') as_dir=./ ;;
  11645. */) ;;
  11646. *) as_dir=$as_dir/ ;;
  11647. esac
  11648. for ac_exec_ext in '' $ac_executable_extensions; do
  11649. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11650. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11652. break 2
  11653. fi
  11654. done
  11655. done
  11656. IFS=$as_save_IFS
  11657. fi
  11658. fi
  11659. CC=$ac_cv_prog_CC
  11660. if test -n "$CC"; then
  11661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11662. printf "%s\n" "$CC" >&6; }
  11663. else
  11664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11665. printf "%s\n" "no" >&6; }
  11666. fi
  11667. test -n "$CC" && break
  11668. done
  11669. fi
  11670. if test -z "$CC"; then
  11671. ac_ct_CC=$CC
  11672. for ac_prog in cl.exe
  11673. do
  11674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11675. set dummy $ac_prog; ac_word=$2
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11677. printf %s "checking for $ac_word... " >&6; }
  11678. if test ${ac_cv_prog_ac_ct_CC+y}
  11679. then :
  11680. printf %s "(cached) " >&6
  11681. else $as_nop
  11682. if test -n "$ac_ct_CC"; then
  11683. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11684. else
  11685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11686. for as_dir in $PATH
  11687. do
  11688. IFS=$as_save_IFS
  11689. case $as_dir in #(((
  11690. '') as_dir=./ ;;
  11691. */) ;;
  11692. *) as_dir=$as_dir/ ;;
  11693. esac
  11694. for ac_exec_ext in '' $ac_executable_extensions; do
  11695. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11696. ac_cv_prog_ac_ct_CC="$ac_prog"
  11697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11698. break 2
  11699. fi
  11700. done
  11701. done
  11702. IFS=$as_save_IFS
  11703. fi
  11704. fi
  11705. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11706. if test -n "$ac_ct_CC"; then
  11707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11708. printf "%s\n" "$ac_ct_CC" >&6; }
  11709. else
  11710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11711. printf "%s\n" "no" >&6; }
  11712. fi
  11713. test -n "$ac_ct_CC" && break
  11714. done
  11715. if test "x$ac_ct_CC" = x; then
  11716. CC=""
  11717. else
  11718. case $cross_compiling:$ac_tool_warned in
  11719. yes:)
  11720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11721. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11722. ac_tool_warned=yes ;;
  11723. esac
  11724. CC=$ac_ct_CC
  11725. fi
  11726. fi
  11727. fi
  11728. if test -z "$CC"; then
  11729. if test -n "$ac_tool_prefix"; then
  11730. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11731. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11733. printf %s "checking for $ac_word... " >&6; }
  11734. if test ${ac_cv_prog_CC+y}
  11735. then :
  11736. printf %s "(cached) " >&6
  11737. else $as_nop
  11738. if test -n "$CC"; then
  11739. ac_cv_prog_CC="$CC" # Let the user override the test.
  11740. else
  11741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11742. for as_dir in $PATH
  11743. do
  11744. IFS=$as_save_IFS
  11745. case $as_dir in #(((
  11746. '') as_dir=./ ;;
  11747. */) ;;
  11748. *) as_dir=$as_dir/ ;;
  11749. esac
  11750. for ac_exec_ext in '' $ac_executable_extensions; do
  11751. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11752. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11754. break 2
  11755. fi
  11756. done
  11757. done
  11758. IFS=$as_save_IFS
  11759. fi
  11760. fi
  11761. CC=$ac_cv_prog_CC
  11762. if test -n "$CC"; then
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11764. printf "%s\n" "$CC" >&6; }
  11765. else
  11766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11767. printf "%s\n" "no" >&6; }
  11768. fi
  11769. fi
  11770. if test -z "$ac_cv_prog_CC"; then
  11771. ac_ct_CC=$CC
  11772. # Extract the first word of "clang", so it can be a program name with args.
  11773. set dummy clang; ac_word=$2
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11775. printf %s "checking for $ac_word... " >&6; }
  11776. if test ${ac_cv_prog_ac_ct_CC+y}
  11777. then :
  11778. printf %s "(cached) " >&6
  11779. else $as_nop
  11780. if test -n "$ac_ct_CC"; then
  11781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11782. else
  11783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11784. for as_dir in $PATH
  11785. do
  11786. IFS=$as_save_IFS
  11787. case $as_dir in #(((
  11788. '') as_dir=./ ;;
  11789. */) ;;
  11790. *) as_dir=$as_dir/ ;;
  11791. esac
  11792. for ac_exec_ext in '' $ac_executable_extensions; do
  11793. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11794. ac_cv_prog_ac_ct_CC="clang"
  11795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11796. break 2
  11797. fi
  11798. done
  11799. done
  11800. IFS=$as_save_IFS
  11801. fi
  11802. fi
  11803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11804. if test -n "$ac_ct_CC"; then
  11805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11806. printf "%s\n" "$ac_ct_CC" >&6; }
  11807. else
  11808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11809. printf "%s\n" "no" >&6; }
  11810. fi
  11811. if test "x$ac_ct_CC" = x; then
  11812. CC=""
  11813. else
  11814. case $cross_compiling:$ac_tool_warned in
  11815. yes:)
  11816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11817. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11818. ac_tool_warned=yes ;;
  11819. esac
  11820. CC=$ac_ct_CC
  11821. fi
  11822. else
  11823. CC="$ac_cv_prog_CC"
  11824. fi
  11825. fi
  11826. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11827. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11828. as_fn_error $? "no acceptable C compiler found in \$PATH
  11829. See \`config.log' for more details" "$LINENO" 5; }
  11830. # Provide some information about the compiler.
  11831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11832. set X $ac_compile
  11833. ac_compiler=$2
  11834. for ac_option in --version -v -V -qversion -version; do
  11835. { { ac_try="$ac_compiler $ac_option >&5"
  11836. case "(($ac_try" in
  11837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11838. *) ac_try_echo=$ac_try;;
  11839. esac
  11840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11841. printf "%s\n" "$ac_try_echo"; } >&5
  11842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11843. ac_status=$?
  11844. if test -s conftest.err; then
  11845. sed '10a\
  11846. ... rest of stderr output deleted ...
  11847. 10q' conftest.err >conftest.er1
  11848. cat conftest.er1 >&5
  11849. fi
  11850. rm -f conftest.er1 conftest.err
  11851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11852. test $ac_status = 0; }
  11853. done
  11854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11855. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11856. if test ${ac_cv_c_compiler_gnu+y}
  11857. then :
  11858. printf %s "(cached) " >&6
  11859. else $as_nop
  11860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11861. /* end confdefs.h. */
  11862. int
  11863. main (void)
  11864. {
  11865. #ifndef __GNUC__
  11866. choke me
  11867. #endif
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. if ac_fn_c_try_compile "$LINENO"
  11873. then :
  11874. ac_compiler_gnu=yes
  11875. else $as_nop
  11876. ac_compiler_gnu=no
  11877. fi
  11878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11879. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11880. fi
  11881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11882. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11884. if test $ac_compiler_gnu = yes; then
  11885. GCC=yes
  11886. else
  11887. GCC=
  11888. fi
  11889. ac_test_CFLAGS=${CFLAGS+y}
  11890. ac_save_CFLAGS=$CFLAGS
  11891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11892. printf %s "checking whether $CC accepts -g... " >&6; }
  11893. if test ${ac_cv_prog_cc_g+y}
  11894. then :
  11895. printf %s "(cached) " >&6
  11896. else $as_nop
  11897. ac_save_c_werror_flag=$ac_c_werror_flag
  11898. ac_c_werror_flag=yes
  11899. ac_cv_prog_cc_g=no
  11900. CFLAGS="-g"
  11901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11902. /* end confdefs.h. */
  11903. int
  11904. main (void)
  11905. {
  11906. ;
  11907. return 0;
  11908. }
  11909. _ACEOF
  11910. if ac_fn_c_try_compile "$LINENO"
  11911. then :
  11912. ac_cv_prog_cc_g=yes
  11913. else $as_nop
  11914. CFLAGS=""
  11915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11916. /* end confdefs.h. */
  11917. int
  11918. main (void)
  11919. {
  11920. ;
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if ac_fn_c_try_compile "$LINENO"
  11925. then :
  11926. else $as_nop
  11927. ac_c_werror_flag=$ac_save_c_werror_flag
  11928. CFLAGS="-g"
  11929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11930. /* end confdefs.h. */
  11931. int
  11932. main (void)
  11933. {
  11934. ;
  11935. return 0;
  11936. }
  11937. _ACEOF
  11938. if ac_fn_c_try_compile "$LINENO"
  11939. then :
  11940. ac_cv_prog_cc_g=yes
  11941. fi
  11942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11943. fi
  11944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11947. ac_c_werror_flag=$ac_save_c_werror_flag
  11948. fi
  11949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11950. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11951. if test $ac_test_CFLAGS; then
  11952. CFLAGS=$ac_save_CFLAGS
  11953. elif test $ac_cv_prog_cc_g = yes; then
  11954. if test "$GCC" = yes; then
  11955. CFLAGS="-g -O2"
  11956. else
  11957. CFLAGS="-g"
  11958. fi
  11959. else
  11960. if test "$GCC" = yes; then
  11961. CFLAGS="-O2"
  11962. else
  11963. CFLAGS=
  11964. fi
  11965. fi
  11966. ac_prog_cc_stdc=no
  11967. if test x$ac_prog_cc_stdc = xno
  11968. then :
  11969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11970. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11971. if test ${ac_cv_prog_cc_c11+y}
  11972. then :
  11973. printf %s "(cached) " >&6
  11974. else $as_nop
  11975. ac_cv_prog_cc_c11=no
  11976. ac_save_CC=$CC
  11977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11978. /* end confdefs.h. */
  11979. $ac_c_conftest_c11_program
  11980. _ACEOF
  11981. for ac_arg in '' -std=gnu11
  11982. do
  11983. CC="$ac_save_CC $ac_arg"
  11984. if ac_fn_c_try_compile "$LINENO"
  11985. then :
  11986. ac_cv_prog_cc_c11=$ac_arg
  11987. fi
  11988. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11989. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11990. done
  11991. rm -f conftest.$ac_ext
  11992. CC=$ac_save_CC
  11993. fi
  11994. if test "x$ac_cv_prog_cc_c11" = xno
  11995. then :
  11996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11997. printf "%s\n" "unsupported" >&6; }
  11998. else $as_nop
  11999. if test "x$ac_cv_prog_cc_c11" = x
  12000. then :
  12001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12002. printf "%s\n" "none needed" >&6; }
  12003. else $as_nop
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  12005. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  12006. CC="$CC $ac_cv_prog_cc_c11"
  12007. fi
  12008. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  12009. ac_prog_cc_stdc=c11
  12010. fi
  12011. fi
  12012. if test x$ac_prog_cc_stdc = xno
  12013. then :
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  12015. printf %s "checking for $CC option to enable C99 features... " >&6; }
  12016. if test ${ac_cv_prog_cc_c99+y}
  12017. then :
  12018. printf %s "(cached) " >&6
  12019. else $as_nop
  12020. ac_cv_prog_cc_c99=no
  12021. ac_save_CC=$CC
  12022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12023. /* end confdefs.h. */
  12024. $ac_c_conftest_c99_program
  12025. _ACEOF
  12026. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  12027. do
  12028. CC="$ac_save_CC $ac_arg"
  12029. if ac_fn_c_try_compile "$LINENO"
  12030. then :
  12031. ac_cv_prog_cc_c99=$ac_arg
  12032. fi
  12033. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12034. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12035. done
  12036. rm -f conftest.$ac_ext
  12037. CC=$ac_save_CC
  12038. fi
  12039. if test "x$ac_cv_prog_cc_c99" = xno
  12040. then :
  12041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12042. printf "%s\n" "unsupported" >&6; }
  12043. else $as_nop
  12044. if test "x$ac_cv_prog_cc_c99" = x
  12045. then :
  12046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12047. printf "%s\n" "none needed" >&6; }
  12048. else $as_nop
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12050. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12051. CC="$CC $ac_cv_prog_cc_c99"
  12052. fi
  12053. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12054. ac_prog_cc_stdc=c99
  12055. fi
  12056. fi
  12057. if test x$ac_prog_cc_stdc = xno
  12058. then :
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12060. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12061. if test ${ac_cv_prog_cc_c89+y}
  12062. then :
  12063. printf %s "(cached) " >&6
  12064. else $as_nop
  12065. ac_cv_prog_cc_c89=no
  12066. ac_save_CC=$CC
  12067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12068. /* end confdefs.h. */
  12069. $ac_c_conftest_c89_program
  12070. _ACEOF
  12071. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12072. do
  12073. CC="$ac_save_CC $ac_arg"
  12074. if ac_fn_c_try_compile "$LINENO"
  12075. then :
  12076. ac_cv_prog_cc_c89=$ac_arg
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12079. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12080. done
  12081. rm -f conftest.$ac_ext
  12082. CC=$ac_save_CC
  12083. fi
  12084. if test "x$ac_cv_prog_cc_c89" = xno
  12085. then :
  12086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12087. printf "%s\n" "unsupported" >&6; }
  12088. else $as_nop
  12089. if test "x$ac_cv_prog_cc_c89" = x
  12090. then :
  12091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12092. printf "%s\n" "none needed" >&6; }
  12093. else $as_nop
  12094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12095. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12096. CC="$CC $ac_cv_prog_cc_c89"
  12097. fi
  12098. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12099. ac_prog_cc_stdc=c89
  12100. fi
  12101. fi
  12102. ac_ext=c
  12103. ac_cpp='$CPP $CPPFLAGS'
  12104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12107. ac_ext=cpp
  12108. ac_cpp='$CXXCPP $CPPFLAGS'
  12109. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12110. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12111. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12112. if test -z "$CXX"; then
  12113. if test -n "$CCC"; then
  12114. CXX=$CCC
  12115. else
  12116. if test -n "$ac_tool_prefix"; then
  12117. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12118. do
  12119. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12120. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12122. printf %s "checking for $ac_word... " >&6; }
  12123. if test ${ac_cv_prog_CXX+y}
  12124. then :
  12125. printf %s "(cached) " >&6
  12126. else $as_nop
  12127. if test -n "$CXX"; then
  12128. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12129. else
  12130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12131. for as_dir in $PATH
  12132. do
  12133. IFS=$as_save_IFS
  12134. case $as_dir in #(((
  12135. '') as_dir=./ ;;
  12136. */) ;;
  12137. *) as_dir=$as_dir/ ;;
  12138. esac
  12139. for ac_exec_ext in '' $ac_executable_extensions; do
  12140. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12141. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12142. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12143. break 2
  12144. fi
  12145. done
  12146. done
  12147. IFS=$as_save_IFS
  12148. fi
  12149. fi
  12150. CXX=$ac_cv_prog_CXX
  12151. if test -n "$CXX"; then
  12152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12153. printf "%s\n" "$CXX" >&6; }
  12154. else
  12155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12156. printf "%s\n" "no" >&6; }
  12157. fi
  12158. test -n "$CXX" && break
  12159. done
  12160. fi
  12161. if test -z "$CXX"; then
  12162. ac_ct_CXX=$CXX
  12163. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12164. do
  12165. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12166. set dummy $ac_prog; ac_word=$2
  12167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12168. printf %s "checking for $ac_word... " >&6; }
  12169. if test ${ac_cv_prog_ac_ct_CXX+y}
  12170. then :
  12171. printf %s "(cached) " >&6
  12172. else $as_nop
  12173. if test -n "$ac_ct_CXX"; then
  12174. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12175. else
  12176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12177. for as_dir in $PATH
  12178. do
  12179. IFS=$as_save_IFS
  12180. case $as_dir in #(((
  12181. '') as_dir=./ ;;
  12182. */) ;;
  12183. *) as_dir=$as_dir/ ;;
  12184. esac
  12185. for ac_exec_ext in '' $ac_executable_extensions; do
  12186. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12187. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12188. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12189. break 2
  12190. fi
  12191. done
  12192. done
  12193. IFS=$as_save_IFS
  12194. fi
  12195. fi
  12196. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12197. if test -n "$ac_ct_CXX"; then
  12198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12199. printf "%s\n" "$ac_ct_CXX" >&6; }
  12200. else
  12201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12202. printf "%s\n" "no" >&6; }
  12203. fi
  12204. test -n "$ac_ct_CXX" && break
  12205. done
  12206. if test "x$ac_ct_CXX" = x; then
  12207. CXX="g++"
  12208. else
  12209. case $cross_compiling:$ac_tool_warned in
  12210. yes:)
  12211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12212. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12213. ac_tool_warned=yes ;;
  12214. esac
  12215. CXX=$ac_ct_CXX
  12216. fi
  12217. fi
  12218. fi
  12219. fi
  12220. # Provide some information about the compiler.
  12221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12222. set X $ac_compile
  12223. ac_compiler=$2
  12224. for ac_option in --version -v -V -qversion; do
  12225. { { ac_try="$ac_compiler $ac_option >&5"
  12226. case "(($ac_try" in
  12227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12228. *) ac_try_echo=$ac_try;;
  12229. esac
  12230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12231. printf "%s\n" "$ac_try_echo"; } >&5
  12232. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12233. ac_status=$?
  12234. if test -s conftest.err; then
  12235. sed '10a\
  12236. ... rest of stderr output deleted ...
  12237. 10q' conftest.err >conftest.er1
  12238. cat conftest.er1 >&5
  12239. fi
  12240. rm -f conftest.er1 conftest.err
  12241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12242. test $ac_status = 0; }
  12243. done
  12244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12245. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12246. if test ${ac_cv_cxx_compiler_gnu+y}
  12247. then :
  12248. printf %s "(cached) " >&6
  12249. else $as_nop
  12250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h. */
  12252. int
  12253. main (void)
  12254. {
  12255. #ifndef __GNUC__
  12256. choke me
  12257. #endif
  12258. ;
  12259. return 0;
  12260. }
  12261. _ACEOF
  12262. if ac_fn_cxx_try_compile "$LINENO"
  12263. then :
  12264. ac_compiler_gnu=yes
  12265. else $as_nop
  12266. ac_compiler_gnu=no
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12269. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12270. fi
  12271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12272. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12273. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12274. if test $ac_compiler_gnu = yes; then
  12275. GXX=yes
  12276. else
  12277. GXX=
  12278. fi
  12279. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12280. ac_save_CXXFLAGS=$CXXFLAGS
  12281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12282. printf %s "checking whether $CXX accepts -g... " >&6; }
  12283. if test ${ac_cv_prog_cxx_g+y}
  12284. then :
  12285. printf %s "(cached) " >&6
  12286. else $as_nop
  12287. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12288. ac_cxx_werror_flag=yes
  12289. ac_cv_prog_cxx_g=no
  12290. CXXFLAGS="-g"
  12291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12292. /* end confdefs.h. */
  12293. int
  12294. main (void)
  12295. {
  12296. ;
  12297. return 0;
  12298. }
  12299. _ACEOF
  12300. if ac_fn_cxx_try_compile "$LINENO"
  12301. then :
  12302. ac_cv_prog_cxx_g=yes
  12303. else $as_nop
  12304. CXXFLAGS=""
  12305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12306. /* end confdefs.h. */
  12307. int
  12308. main (void)
  12309. {
  12310. ;
  12311. return 0;
  12312. }
  12313. _ACEOF
  12314. if ac_fn_cxx_try_compile "$LINENO"
  12315. then :
  12316. else $as_nop
  12317. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12318. CXXFLAGS="-g"
  12319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12320. /* end confdefs.h. */
  12321. int
  12322. main (void)
  12323. {
  12324. ;
  12325. return 0;
  12326. }
  12327. _ACEOF
  12328. if ac_fn_cxx_try_compile "$LINENO"
  12329. then :
  12330. ac_cv_prog_cxx_g=yes
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12337. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12338. fi
  12339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12340. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12341. if test $ac_test_CXXFLAGS; then
  12342. CXXFLAGS=$ac_save_CXXFLAGS
  12343. elif test $ac_cv_prog_cxx_g = yes; then
  12344. if test "$GXX" = yes; then
  12345. CXXFLAGS="-g -O2"
  12346. else
  12347. CXXFLAGS="-g"
  12348. fi
  12349. else
  12350. if test "$GXX" = yes; then
  12351. CXXFLAGS="-O2"
  12352. else
  12353. CXXFLAGS=
  12354. fi
  12355. fi
  12356. ac_prog_cxx_stdcxx=no
  12357. if test x$ac_prog_cxx_stdcxx = xno
  12358. then :
  12359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12360. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12361. if test ${ac_cv_prog_cxx_11+y}
  12362. then :
  12363. printf %s "(cached) " >&6
  12364. else $as_nop
  12365. ac_cv_prog_cxx_11=no
  12366. ac_save_CXX=$CXX
  12367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12368. /* end confdefs.h. */
  12369. $ac_cxx_conftest_cxx11_program
  12370. _ACEOF
  12371. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12372. do
  12373. CXX="$ac_save_CXX $ac_arg"
  12374. if ac_fn_cxx_try_compile "$LINENO"
  12375. then :
  12376. ac_cv_prog_cxx_cxx11=$ac_arg
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12379. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12380. done
  12381. rm -f conftest.$ac_ext
  12382. CXX=$ac_save_CXX
  12383. fi
  12384. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12385. then :
  12386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12387. printf "%s\n" "unsupported" >&6; }
  12388. else $as_nop
  12389. if test "x$ac_cv_prog_cxx_cxx11" = x
  12390. then :
  12391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12392. printf "%s\n" "none needed" >&6; }
  12393. else $as_nop
  12394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12395. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12396. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12397. fi
  12398. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12399. ac_prog_cxx_stdcxx=cxx11
  12400. fi
  12401. fi
  12402. if test x$ac_prog_cxx_stdcxx = xno
  12403. then :
  12404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12405. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12406. if test ${ac_cv_prog_cxx_98+y}
  12407. then :
  12408. printf %s "(cached) " >&6
  12409. else $as_nop
  12410. ac_cv_prog_cxx_98=no
  12411. ac_save_CXX=$CXX
  12412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12413. /* end confdefs.h. */
  12414. $ac_cxx_conftest_cxx98_program
  12415. _ACEOF
  12416. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12417. do
  12418. CXX="$ac_save_CXX $ac_arg"
  12419. if ac_fn_cxx_try_compile "$LINENO"
  12420. then :
  12421. ac_cv_prog_cxx_cxx98=$ac_arg
  12422. fi
  12423. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12424. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12425. done
  12426. rm -f conftest.$ac_ext
  12427. CXX=$ac_save_CXX
  12428. fi
  12429. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12430. then :
  12431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12432. printf "%s\n" "unsupported" >&6; }
  12433. else $as_nop
  12434. if test "x$ac_cv_prog_cxx_cxx98" = x
  12435. then :
  12436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12437. printf "%s\n" "none needed" >&6; }
  12438. else $as_nop
  12439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12440. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12441. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12442. fi
  12443. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12444. ac_prog_cxx_stdcxx=cxx98
  12445. fi
  12446. fi
  12447. ac_ext=c
  12448. ac_cpp='$CPP $CPPFLAGS'
  12449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12452. func_stripname_cnf ()
  12453. {
  12454. case $2 in
  12455. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12456. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12457. esac
  12458. } # func_stripname_cnf
  12459. if test -n "$CXX" && ( test no != "$CXX" &&
  12460. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12461. (test g++ != "$CXX"))); then
  12462. ac_ext=cpp
  12463. ac_cpp='$CXXCPP $CPPFLAGS'
  12464. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12465. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12466. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12468. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12469. if test -z "$CXXCPP"; then
  12470. if test ${ac_cv_prog_CXXCPP+y}
  12471. then :
  12472. printf %s "(cached) " >&6
  12473. else $as_nop
  12474. # Double quotes because $CXX needs to be expanded
  12475. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12476. do
  12477. ac_preproc_ok=false
  12478. for ac_cxx_preproc_warn_flag in '' yes
  12479. do
  12480. # Use a header file that comes with gcc, so configuring glibc
  12481. # with a fresh cross-compiler works.
  12482. # On the NeXT, cc -E runs the code through the compiler's parser,
  12483. # not just through cpp. "Syntax error" is here to catch this case.
  12484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12485. /* end confdefs.h. */
  12486. #include <limits.h>
  12487. Syntax error
  12488. _ACEOF
  12489. if ac_fn_cxx_try_cpp "$LINENO"
  12490. then :
  12491. else $as_nop
  12492. # Broken: fails on valid input.
  12493. continue
  12494. fi
  12495. rm -f conftest.err conftest.i conftest.$ac_ext
  12496. # OK, works on sane cases. Now check whether nonexistent headers
  12497. # can be detected and how.
  12498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12499. /* end confdefs.h. */
  12500. #include <ac_nonexistent.h>
  12501. _ACEOF
  12502. if ac_fn_cxx_try_cpp "$LINENO"
  12503. then :
  12504. # Broken: success on invalid input.
  12505. continue
  12506. else $as_nop
  12507. # Passes both tests.
  12508. ac_preproc_ok=:
  12509. break
  12510. fi
  12511. rm -f conftest.err conftest.i conftest.$ac_ext
  12512. done
  12513. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12514. rm -f conftest.i conftest.err conftest.$ac_ext
  12515. if $ac_preproc_ok
  12516. then :
  12517. break
  12518. fi
  12519. done
  12520. ac_cv_prog_CXXCPP=$CXXCPP
  12521. fi
  12522. CXXCPP=$ac_cv_prog_CXXCPP
  12523. else
  12524. ac_cv_prog_CXXCPP=$CXXCPP
  12525. fi
  12526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12527. printf "%s\n" "$CXXCPP" >&6; }
  12528. ac_preproc_ok=false
  12529. for ac_cxx_preproc_warn_flag in '' yes
  12530. do
  12531. # Use a header file that comes with gcc, so configuring glibc
  12532. # with a fresh cross-compiler works.
  12533. # On the NeXT, cc -E runs the code through the compiler's parser,
  12534. # not just through cpp. "Syntax error" is here to catch this case.
  12535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12536. /* end confdefs.h. */
  12537. #include <limits.h>
  12538. Syntax error
  12539. _ACEOF
  12540. if ac_fn_cxx_try_cpp "$LINENO"
  12541. then :
  12542. else $as_nop
  12543. # Broken: fails on valid input.
  12544. continue
  12545. fi
  12546. rm -f conftest.err conftest.i conftest.$ac_ext
  12547. # OK, works on sane cases. Now check whether nonexistent headers
  12548. # can be detected and how.
  12549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12550. /* end confdefs.h. */
  12551. #include <ac_nonexistent.h>
  12552. _ACEOF
  12553. if ac_fn_cxx_try_cpp "$LINENO"
  12554. then :
  12555. # Broken: success on invalid input.
  12556. continue
  12557. else $as_nop
  12558. # Passes both tests.
  12559. ac_preproc_ok=:
  12560. break
  12561. fi
  12562. rm -f conftest.err conftest.i conftest.$ac_ext
  12563. done
  12564. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12565. rm -f conftest.i conftest.err conftest.$ac_ext
  12566. if $ac_preproc_ok
  12567. then :
  12568. else $as_nop
  12569. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12570. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12571. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12572. See \`config.log' for more details" "$LINENO" 5; }
  12573. fi
  12574. ac_ext=c
  12575. ac_cpp='$CPP $CPPFLAGS'
  12576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12579. else
  12580. _lt_caught_CXX_error=yes
  12581. fi
  12582. ac_ext=cpp
  12583. ac_cpp='$CXXCPP $CPPFLAGS'
  12584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12587. archive_cmds_need_lc_CXX=no
  12588. allow_undefined_flag_CXX=
  12589. always_export_symbols_CXX=no
  12590. archive_expsym_cmds_CXX=
  12591. compiler_needs_object_CXX=no
  12592. export_dynamic_flag_spec_CXX=
  12593. hardcode_direct_CXX=no
  12594. hardcode_direct_absolute_CXX=no
  12595. hardcode_libdir_flag_spec_CXX=
  12596. hardcode_libdir_separator_CXX=
  12597. hardcode_minus_L_CXX=no
  12598. hardcode_shlibpath_var_CXX=unsupported
  12599. hardcode_automatic_CXX=no
  12600. inherit_rpath_CXX=no
  12601. module_cmds_CXX=
  12602. module_expsym_cmds_CXX=
  12603. link_all_deplibs_CXX=unknown
  12604. old_archive_cmds_CXX=$old_archive_cmds
  12605. reload_flag_CXX=$reload_flag
  12606. reload_cmds_CXX=$reload_cmds
  12607. no_undefined_flag_CXX=
  12608. whole_archive_flag_spec_CXX=
  12609. enable_shared_with_static_runtimes_CXX=no
  12610. # Source file extension for C++ test sources.
  12611. ac_ext=cpp
  12612. # Object file extension for compiled C++ test sources.
  12613. objext=o
  12614. objext_CXX=$objext
  12615. # No sense in running all these tests if we already determined that
  12616. # the CXX compiler isn't working. Some variables (like enable_shared)
  12617. # are currently assumed to apply to all compilers on this platform,
  12618. # and will be corrupted by setting them based on a non-working compiler.
  12619. if test yes != "$_lt_caught_CXX_error"; then
  12620. # Code to be used in simple compile tests
  12621. lt_simple_compile_test_code="int some_variable = 0;"
  12622. # Code to be used in simple link tests
  12623. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12624. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12625. # If no C compiler was specified, use CC.
  12626. LTCC=${LTCC-"$CC"}
  12627. # If no C compiler flags were specified, use CFLAGS.
  12628. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12629. # Allow CC to be a program name with arguments.
  12630. compiler=$CC
  12631. # save warnings/boilerplate of simple test code
  12632. ac_outfile=conftest.$ac_objext
  12633. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12634. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12635. _lt_compiler_boilerplate=`cat conftest.err`
  12636. $RM conftest*
  12637. ac_outfile=conftest.$ac_objext
  12638. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12639. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12640. _lt_linker_boilerplate=`cat conftest.err`
  12641. $RM -r conftest*
  12642. # Allow CC to be a program name with arguments.
  12643. lt_save_CC=$CC
  12644. lt_save_CFLAGS=$CFLAGS
  12645. lt_save_LD=$LD
  12646. lt_save_GCC=$GCC
  12647. GCC=$GXX
  12648. lt_save_with_gnu_ld=$with_gnu_ld
  12649. lt_save_path_LD=$lt_cv_path_LD
  12650. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12651. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12652. else
  12653. $as_unset lt_cv_prog_gnu_ld
  12654. fi
  12655. if test -n "${lt_cv_path_LDCXX+set}"; then
  12656. lt_cv_path_LD=$lt_cv_path_LDCXX
  12657. else
  12658. $as_unset lt_cv_path_LD
  12659. fi
  12660. test -z "${LDCXX+set}" || LD=$LDCXX
  12661. CC=${CXX-"c++"}
  12662. CFLAGS=$CXXFLAGS
  12663. compiler=$CC
  12664. compiler_CXX=$CC
  12665. func_cc_basename $compiler
  12666. cc_basename=$func_cc_basename_result
  12667. if test -n "$compiler"; then
  12668. # We don't want -fno-exception when compiling C++ code, so set the
  12669. # no_builtin_flag separately
  12670. if test yes = "$GXX"; then
  12671. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12672. else
  12673. lt_prog_compiler_no_builtin_flag_CXX=
  12674. fi
  12675. if test yes = "$GXX"; then
  12676. # Set up default GNU C++ configuration
  12677. # Check whether --with-gnu-ld was given.
  12678. if test ${with_gnu_ld+y}
  12679. then :
  12680. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12681. else $as_nop
  12682. with_gnu_ld=no
  12683. fi
  12684. ac_prog=ld
  12685. if test yes = "$GCC"; then
  12686. # Check if gcc -print-prog-name=ld gives a path.
  12687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12688. printf %s "checking for ld used by $CC... " >&6; }
  12689. case $host in
  12690. *-*-mingw* | *-*-windows*)
  12691. # gcc leaves a trailing carriage return, which upsets mingw
  12692. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12693. *)
  12694. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12695. esac
  12696. case $ac_prog in
  12697. # Accept absolute paths.
  12698. [\\/]* | ?:[\\/]*)
  12699. re_direlt='/[^/][^/]*/\.\./'
  12700. # Canonicalize the pathname of ld
  12701. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12702. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12703. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12704. done
  12705. test -z "$LD" && LD=$ac_prog
  12706. ;;
  12707. "")
  12708. # If it fails, then pretend we aren't using GCC.
  12709. ac_prog=ld
  12710. ;;
  12711. *)
  12712. # If it is relative, then search for the first ld in PATH.
  12713. with_gnu_ld=unknown
  12714. ;;
  12715. esac
  12716. elif test yes = "$with_gnu_ld"; then
  12717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12718. printf %s "checking for GNU ld... " >&6; }
  12719. else
  12720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12721. printf %s "checking for non-GNU ld... " >&6; }
  12722. fi
  12723. if test ${lt_cv_path_LD+y}
  12724. then :
  12725. printf %s "(cached) " >&6
  12726. else $as_nop
  12727. if test -z "$LD"; then
  12728. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12729. for ac_dir in $PATH; do
  12730. IFS=$lt_save_ifs
  12731. test -z "$ac_dir" && ac_dir=.
  12732. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12733. lt_cv_path_LD=$ac_dir/$ac_prog
  12734. # Check to see if the program is GNU ld. I'd rather use --version,
  12735. # but apparently some variants of GNU ld only accept -v.
  12736. # Break only if it was the GNU/non-GNU ld that we prefer.
  12737. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12738. *GNU* | *'with BFD'*)
  12739. test no != "$with_gnu_ld" && break
  12740. ;;
  12741. *)
  12742. test yes != "$with_gnu_ld" && break
  12743. ;;
  12744. esac
  12745. fi
  12746. done
  12747. IFS=$lt_save_ifs
  12748. else
  12749. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12750. fi
  12751. fi
  12752. LD=$lt_cv_path_LD
  12753. if test -n "$LD"; then
  12754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12755. printf "%s\n" "$LD" >&6; }
  12756. else
  12757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12758. printf "%s\n" "no" >&6; }
  12759. fi
  12760. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12762. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12763. if test ${lt_cv_prog_gnu_ld+y}
  12764. then :
  12765. printf %s "(cached) " >&6
  12766. else $as_nop
  12767. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12768. case `$LD -v 2>&1 </dev/null` in
  12769. *GNU* | *'with BFD'*)
  12770. lt_cv_prog_gnu_ld=yes
  12771. ;;
  12772. *)
  12773. lt_cv_prog_gnu_ld=no
  12774. ;;
  12775. esac
  12776. fi
  12777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12778. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12779. with_gnu_ld=$lt_cv_prog_gnu_ld
  12780. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12781. # archiving commands below assume that GNU ld is being used.
  12782. if test yes = "$with_gnu_ld"; then
  12783. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12784. 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'
  12785. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12786. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12787. # If archive_cmds runs LD, not CC, wlarc should be empty
  12788. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12789. # investigate it a little bit more. (MM)
  12790. wlarc='$wl'
  12791. # ancient GNU ld didn't support --whole-archive et. al.
  12792. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12793. $GREP 'no-whole-archive' > /dev/null; then
  12794. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12795. else
  12796. whole_archive_flag_spec_CXX=
  12797. fi
  12798. else
  12799. with_gnu_ld=no
  12800. wlarc=
  12801. # A generic and very simple default shared library creation
  12802. # command for GNU C++ for the case where it uses the native
  12803. # linker, instead of GNU ld. If possible, this setting should
  12804. # overridden to take advantage of the native linker features on
  12805. # the platform it is being used on.
  12806. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12807. fi
  12808. # Commands to make compiler produce verbose output that lists
  12809. # what "hidden" libraries, object files and flags are used when
  12810. # linking a shared library.
  12811. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12812. else
  12813. GXX=no
  12814. with_gnu_ld=no
  12815. wlarc=
  12816. fi
  12817. # PORTME: fill in a description of your system's C++ link characteristics
  12818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12819. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12820. ld_shlibs_CXX=yes
  12821. case $host_os in
  12822. aix3*)
  12823. # FIXME: insert proper C++ library support
  12824. ld_shlibs_CXX=no
  12825. ;;
  12826. aix[4-9]*)
  12827. if test ia64 = "$host_cpu"; then
  12828. # On IA64, the linker does run time linking by default, so we don't
  12829. # have to do anything special.
  12830. aix_use_runtimelinking=no
  12831. exp_sym_flag='-Bexport'
  12832. no_entry_flag=
  12833. else
  12834. aix_use_runtimelinking=no
  12835. # Test if we are trying to use run time linking or normal
  12836. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12837. # have runtime linking enabled, and use it for executables.
  12838. # For shared libraries, we enable/disable runtime linking
  12839. # depending on the kind of the shared library created -
  12840. # when "with_aix_soname,aix_use_runtimelinking" is:
  12841. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12842. # "aix,yes" lib.so shared, rtl:yes, for executables
  12843. # lib.a static archive
  12844. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12845. # lib.a(lib.so.V) shared, rtl:no, for executables
  12846. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12847. # lib.a(lib.so.V) shared, rtl:no
  12848. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12849. # lib.a static archive
  12850. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12851. for ld_flag in $LDFLAGS; do
  12852. case $ld_flag in
  12853. *-brtl*)
  12854. aix_use_runtimelinking=yes
  12855. break
  12856. ;;
  12857. esac
  12858. done
  12859. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12860. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12861. # so we don't have lib.a shared libs to link our executables.
  12862. # We have to force runtime linking in this case.
  12863. aix_use_runtimelinking=yes
  12864. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12865. fi
  12866. ;;
  12867. esac
  12868. exp_sym_flag='-bexport'
  12869. no_entry_flag='-bnoentry'
  12870. fi
  12871. # When large executables or shared objects are built, AIX ld can
  12872. # have problems creating the table of contents. If linking a library
  12873. # or program results in "error TOC overflow" add -mminimal-toc to
  12874. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12875. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12876. archive_cmds_CXX=''
  12877. hardcode_direct_CXX=yes
  12878. hardcode_direct_absolute_CXX=yes
  12879. hardcode_libdir_separator_CXX=':'
  12880. link_all_deplibs_CXX=yes
  12881. file_list_spec_CXX='$wl-f,'
  12882. case $with_aix_soname,$aix_use_runtimelinking in
  12883. aix,*) ;; # no import file
  12884. svr4,* | *,yes) # use import file
  12885. # The Import File defines what to hardcode.
  12886. hardcode_direct_CXX=no
  12887. hardcode_direct_absolute_CXX=no
  12888. ;;
  12889. esac
  12890. if test yes = "$GXX"; then
  12891. case $host_os in aix4.[012]|aix4.[012].*)
  12892. # We only want to do this on AIX 4.2 and lower, the check
  12893. # below for broken collect2 doesn't work under 4.3+
  12894. collect2name=`$CC -print-prog-name=collect2`
  12895. if test -f "$collect2name" &&
  12896. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12897. then
  12898. # We have reworked collect2
  12899. :
  12900. else
  12901. # We have old collect2
  12902. hardcode_direct_CXX=unsupported
  12903. # It fails to find uninstalled libraries when the uninstalled
  12904. # path is not listed in the libpath. Setting hardcode_minus_L
  12905. # to unsupported forces relinking
  12906. hardcode_minus_L_CXX=yes
  12907. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12908. hardcode_libdir_separator_CXX=
  12909. fi
  12910. esac
  12911. shared_flag='-shared'
  12912. if test yes = "$aix_use_runtimelinking"; then
  12913. shared_flag=$shared_flag' $wl-G'
  12914. fi
  12915. # Need to ensure runtime linking is disabled for the traditional
  12916. # shared library, or the linker may eventually find shared libraries
  12917. # /with/ Import File - we do not want to mix them.
  12918. shared_flag_aix='-shared'
  12919. shared_flag_svr4='-shared $wl-G'
  12920. else
  12921. # not using gcc
  12922. if test ia64 = "$host_cpu"; then
  12923. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12924. # chokes on -Wl,-G. The following line is correct:
  12925. shared_flag='-G'
  12926. else
  12927. if test yes = "$aix_use_runtimelinking"; then
  12928. shared_flag='$wl-G'
  12929. else
  12930. shared_flag='$wl-bM:SRE'
  12931. fi
  12932. shared_flag_aix='$wl-bM:SRE'
  12933. shared_flag_svr4='$wl-G'
  12934. fi
  12935. fi
  12936. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12937. # It seems that -bexpall does not export symbols beginning with
  12938. # underscore (_), so it is better to generate a list of symbols to
  12939. # export.
  12940. always_export_symbols_CXX=yes
  12941. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12942. # Warning - without using the other runtime loading flags (-brtl),
  12943. # -berok will link without error, but may produce a broken library.
  12944. # The "-G" linker flag allows undefined symbols.
  12945. no_undefined_flag_CXX='-bernotok'
  12946. # Determine the default libpath from the value encoded in an empty
  12947. # executable.
  12948. if test set = "${lt_cv_aix_libpath+set}"; then
  12949. aix_libpath=$lt_cv_aix_libpath
  12950. else
  12951. if test ${lt_cv_aix_libpath__CXX+y}
  12952. then :
  12953. printf %s "(cached) " >&6
  12954. else $as_nop
  12955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12956. /* end confdefs.h. */
  12957. int
  12958. main (void)
  12959. {
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_cxx_try_link "$LINENO"
  12965. then :
  12966. lt_aix_libpath_sed='
  12967. /Import File Strings/,/^$/ {
  12968. /^0/ {
  12969. s/^0 *\([^ ]*\) *$/\1/
  12970. p
  12971. }
  12972. }'
  12973. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12974. # Check for a 64-bit object if we didn't find anything.
  12975. if test -z "$lt_cv_aix_libpath__CXX"; then
  12976. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12977. fi
  12978. fi
  12979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12980. conftest$ac_exeext conftest.$ac_ext
  12981. if test -z "$lt_cv_aix_libpath__CXX"; then
  12982. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12983. fi
  12984. fi
  12985. aix_libpath=$lt_cv_aix_libpath__CXX
  12986. fi
  12987. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12988. 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
  12989. else
  12990. if test ia64 = "$host_cpu"; then
  12991. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12992. allow_undefined_flag_CXX="-z nodefs"
  12993. 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"
  12994. else
  12995. # Determine the default libpath from the value encoded in an
  12996. # empty executable.
  12997. if test set = "${lt_cv_aix_libpath+set}"; then
  12998. aix_libpath=$lt_cv_aix_libpath
  12999. else
  13000. if test ${lt_cv_aix_libpath__CXX+y}
  13001. then :
  13002. printf %s "(cached) " >&6
  13003. else $as_nop
  13004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13005. /* end confdefs.h. */
  13006. int
  13007. main (void)
  13008. {
  13009. ;
  13010. return 0;
  13011. }
  13012. _ACEOF
  13013. if ac_fn_cxx_try_link "$LINENO"
  13014. then :
  13015. lt_aix_libpath_sed='
  13016. /Import File Strings/,/^$/ {
  13017. /^0/ {
  13018. s/^0 *\([^ ]*\) *$/\1/
  13019. p
  13020. }
  13021. }'
  13022. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13023. # Check for a 64-bit object if we didn't find anything.
  13024. if test -z "$lt_cv_aix_libpath__CXX"; then
  13025. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13026. fi
  13027. fi
  13028. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13029. conftest$ac_exeext conftest.$ac_ext
  13030. if test -z "$lt_cv_aix_libpath__CXX"; then
  13031. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13032. fi
  13033. fi
  13034. aix_libpath=$lt_cv_aix_libpath__CXX
  13035. fi
  13036. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13037. # Warning - without using the other run time loading flags,
  13038. # -berok will link without error, but may produce a broken library.
  13039. no_undefined_flag_CXX=' $wl-bernotok'
  13040. allow_undefined_flag_CXX=' $wl-berok'
  13041. if test yes = "$with_gnu_ld"; then
  13042. # We only use this code for GNU lds that support --whole-archive.
  13043. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13044. else
  13045. # Exported symbols can be pulled into shared objects from archives
  13046. whole_archive_flag_spec_CXX='$convenience'
  13047. fi
  13048. archive_cmds_need_lc_CXX=yes
  13049. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13050. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13051. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13052. if test svr4 != "$with_aix_soname"; then
  13053. # This is similar to how AIX traditionally builds its shared
  13054. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13055. 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'
  13056. fi
  13057. if test aix != "$with_aix_soname"; then
  13058. 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'
  13059. else
  13060. # used by -dlpreopen to get the symbols
  13061. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13062. fi
  13063. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13064. fi
  13065. fi
  13066. ;;
  13067. beos*)
  13068. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13069. allow_undefined_flag_CXX=unsupported
  13070. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13071. # support --undefined. This deserves some investigation. FIXME
  13072. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13073. else
  13074. ld_shlibs_CXX=no
  13075. fi
  13076. ;;
  13077. chorus*)
  13078. case $cc_basename in
  13079. *)
  13080. # FIXME: insert proper C++ library support
  13081. ld_shlibs_CXX=no
  13082. ;;
  13083. esac
  13084. ;;
  13085. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13086. case $GXX,$cc_basename in
  13087. ,cl* | no,cl* | ,icl* | no,icl*)
  13088. # Native MSVC or ICC
  13089. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13090. # no search path for DLLs.
  13091. hardcode_libdir_flag_spec_CXX=' '
  13092. allow_undefined_flag_CXX=unsupported
  13093. always_export_symbols_CXX=yes
  13094. file_list_spec_CXX='@'
  13095. # Tell ltmain to make .lib files, not .a files.
  13096. libext=lib
  13097. # Tell ltmain to make .dll files, not .so files.
  13098. shrext_cmds=.dll
  13099. # FIXME: Setting linknames here is a bad hack.
  13100. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13101. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13102. cp "$export_symbols" "$output_objdir/$soname.def";
  13103. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13104. else
  13105. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13106. fi~
  13107. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13108. linknames='
  13109. # The linker will not automatically build a static lib if we build a DLL.
  13110. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13111. enable_shared_with_static_runtimes_CXX=yes
  13112. # Don't use ranlib
  13113. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13114. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13115. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13116. case $lt_outputfile in
  13117. *.exe|*.EXE) ;;
  13118. *)
  13119. lt_outputfile=$lt_outputfile.exe
  13120. lt_tool_outputfile=$lt_tool_outputfile.exe
  13121. ;;
  13122. esac~
  13123. func_to_tool_file "$lt_outputfile"~
  13124. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13125. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13126. $RM "$lt_outputfile.manifest";
  13127. fi'
  13128. ;;
  13129. *)
  13130. # g++
  13131. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13132. # as there is no search path for DLLs.
  13133. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13134. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13135. allow_undefined_flag_CXX=unsupported
  13136. always_export_symbols_CXX=no
  13137. enable_shared_with_static_runtimes_CXX=yes
  13138. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13139. 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'
  13140. # If the export-symbols file already is a .def file, use it as
  13141. # is; otherwise, prepend EXPORTS...
  13142. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13143. cp $export_symbols $output_objdir/$soname.def;
  13144. else
  13145. echo EXPORTS > $output_objdir/$soname.def;
  13146. cat $export_symbols >> $output_objdir/$soname.def;
  13147. fi~
  13148. $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'
  13149. else
  13150. ld_shlibs_CXX=no
  13151. fi
  13152. ;;
  13153. esac
  13154. ;;
  13155. darwin* | rhapsody*)
  13156. archive_cmds_need_lc_CXX=no
  13157. hardcode_direct_CXX=no
  13158. hardcode_automatic_CXX=yes
  13159. hardcode_shlibpath_var_CXX=unsupported
  13160. if test yes = "$lt_cv_ld_force_load"; then
  13161. 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\"`'
  13162. else
  13163. whole_archive_flag_spec_CXX=''
  13164. fi
  13165. link_all_deplibs_CXX=yes
  13166. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13167. case $cc_basename in
  13168. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13169. *) _lt_dar_can_shared=$GCC ;;
  13170. esac
  13171. if test yes = "$_lt_dar_can_shared"; then
  13172. output_verbose_link_cmd=func_echo_all
  13173. 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"
  13174. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13175. 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"
  13176. 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"
  13177. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13178. 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"
  13179. 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"
  13180. fi
  13181. else
  13182. ld_shlibs_CXX=no
  13183. fi
  13184. ;;
  13185. os2*)
  13186. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13187. hardcode_minus_L_CXX=yes
  13188. allow_undefined_flag_CXX=unsupported
  13189. shrext_cmds=.dll
  13190. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13191. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13192. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13193. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13194. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13195. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13196. emximp -o $lib $output_objdir/$libname.def'
  13197. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13198. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13199. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13200. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13201. prefix_cmds="$SED"~
  13202. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13203. prefix_cmds="$prefix_cmds -e 1d";
  13204. fi~
  13205. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13206. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13207. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13208. emximp -o $lib $output_objdir/$libname.def'
  13209. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13210. enable_shared_with_static_runtimes_CXX=yes
  13211. file_list_spec_CXX='@'
  13212. ;;
  13213. dgux*)
  13214. case $cc_basename in
  13215. ec++*)
  13216. # FIXME: insert proper C++ library support
  13217. ld_shlibs_CXX=no
  13218. ;;
  13219. ghcx*)
  13220. # Green Hills C++ Compiler
  13221. # FIXME: insert proper C++ library support
  13222. ld_shlibs_CXX=no
  13223. ;;
  13224. *)
  13225. # FIXME: insert proper C++ library support
  13226. ld_shlibs_CXX=no
  13227. ;;
  13228. esac
  13229. ;;
  13230. freebsd2.*)
  13231. # C++ shared libraries reported to be fairly broken before
  13232. # switch to ELF
  13233. ld_shlibs_CXX=no
  13234. ;;
  13235. freebsd-elf*)
  13236. archive_cmds_need_lc_CXX=no
  13237. ;;
  13238. freebsd* | dragonfly* | midnightbsd*)
  13239. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13240. # conventions
  13241. ld_shlibs_CXX=yes
  13242. ;;
  13243. haiku*)
  13244. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13245. link_all_deplibs_CXX=yes
  13246. ;;
  13247. hpux9*)
  13248. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13249. hardcode_libdir_separator_CXX=:
  13250. export_dynamic_flag_spec_CXX='$wl-E'
  13251. hardcode_direct_CXX=yes
  13252. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13253. # but as the default
  13254. # location of the library.
  13255. case $cc_basename in
  13256. CC*)
  13257. # FIXME: insert proper C++ library support
  13258. ld_shlibs_CXX=no
  13259. ;;
  13260. aCC*)
  13261. 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'
  13262. # Commands to make compiler produce verbose output that lists
  13263. # what "hidden" libraries, object files and flags are used when
  13264. # linking a shared library.
  13265. #
  13266. # There doesn't appear to be a way to prevent this compiler from
  13267. # explicitly linking system object files so we need to strip them
  13268. # from the output so that they don't get included in the library
  13269. # dependencies.
  13270. 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"'
  13271. ;;
  13272. *)
  13273. if test yes = "$GXX"; then
  13274. 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'
  13275. else
  13276. # FIXME: insert proper C++ library support
  13277. ld_shlibs_CXX=no
  13278. fi
  13279. ;;
  13280. esac
  13281. ;;
  13282. hpux10*|hpux11*)
  13283. if test no = "$with_gnu_ld"; then
  13284. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13285. hardcode_libdir_separator_CXX=:
  13286. case $host_cpu in
  13287. hppa*64*|ia64*)
  13288. ;;
  13289. *)
  13290. export_dynamic_flag_spec_CXX='$wl-E'
  13291. ;;
  13292. esac
  13293. fi
  13294. case $host_cpu in
  13295. hppa*64*|ia64*)
  13296. hardcode_direct_CXX=no
  13297. hardcode_shlibpath_var_CXX=no
  13298. ;;
  13299. *)
  13300. hardcode_direct_CXX=yes
  13301. hardcode_direct_absolute_CXX=yes
  13302. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13303. # but as the default
  13304. # location of the library.
  13305. ;;
  13306. esac
  13307. case $cc_basename in
  13308. CC*)
  13309. # FIXME: insert proper C++ library support
  13310. ld_shlibs_CXX=no
  13311. ;;
  13312. aCC*)
  13313. case $host_cpu in
  13314. hppa*64*)
  13315. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13316. ;;
  13317. ia64*)
  13318. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13319. ;;
  13320. *)
  13321. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13322. ;;
  13323. esac
  13324. # Commands to make compiler produce verbose output that lists
  13325. # what "hidden" libraries, object files and flags are used when
  13326. # linking a shared library.
  13327. #
  13328. # There doesn't appear to be a way to prevent this compiler from
  13329. # explicitly linking system object files so we need to strip them
  13330. # from the output so that they don't get included in the library
  13331. # dependencies.
  13332. 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"'
  13333. ;;
  13334. *)
  13335. if test yes = "$GXX"; then
  13336. if test no = "$with_gnu_ld"; then
  13337. case $host_cpu in
  13338. hppa*64*)
  13339. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13340. ;;
  13341. ia64*)
  13342. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13343. ;;
  13344. *)
  13345. 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'
  13346. ;;
  13347. esac
  13348. fi
  13349. else
  13350. # FIXME: insert proper C++ library support
  13351. ld_shlibs_CXX=no
  13352. fi
  13353. ;;
  13354. esac
  13355. ;;
  13356. interix[3-9]*)
  13357. hardcode_direct_CXX=no
  13358. hardcode_shlibpath_var_CXX=no
  13359. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13360. export_dynamic_flag_spec_CXX='$wl-E'
  13361. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13362. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13363. # default) and relocated if they conflict, which is a slow very memory
  13364. # consuming and fragmenting process. To avoid this, we pick a random,
  13365. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13366. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13367. 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'
  13368. 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'
  13369. ;;
  13370. irix5* | irix6*)
  13371. case $cc_basename in
  13372. CC*)
  13373. # SGI C++
  13374. 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'
  13375. # Archives containing C++ object files must be created using
  13376. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13377. # necessary to make sure instantiated templates are included
  13378. # in the archive.
  13379. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13380. ;;
  13381. *)
  13382. if test yes = "$GXX"; then
  13383. if test no = "$with_gnu_ld"; then
  13384. 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'
  13385. else
  13386. 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'
  13387. fi
  13388. fi
  13389. link_all_deplibs_CXX=yes
  13390. ;;
  13391. esac
  13392. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13393. hardcode_libdir_separator_CXX=:
  13394. inherit_rpath_CXX=yes
  13395. ;;
  13396. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13397. case $cc_basename in
  13398. KCC*)
  13399. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13400. # KCC will only create a shared library if the output file
  13401. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13402. # to its proper name (with version) after linking.
  13403. 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'
  13404. 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'
  13405. # Commands to make compiler produce verbose output that lists
  13406. # what "hidden" libraries, object files and flags are used when
  13407. # linking a shared library.
  13408. #
  13409. # There doesn't appear to be a way to prevent this compiler from
  13410. # explicitly linking system object files so we need to strip them
  13411. # from the output so that they don't get included in the library
  13412. # dependencies.
  13413. 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"'
  13414. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13415. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13416. # Archives containing C++ object files must be created using
  13417. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13418. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13419. ;;
  13420. icpc* | ecpc* )
  13421. # Intel C++
  13422. with_gnu_ld=yes
  13423. # version 8.0 and above of icpc choke on multiply defined symbols
  13424. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13425. # earlier do not add the objects themselves.
  13426. case `$CC -V 2>&1` in
  13427. *"Version 7."*)
  13428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13429. 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'
  13430. ;;
  13431. *) # Version 8.0 or newer
  13432. tmp_idyn=
  13433. case $host_cpu in
  13434. ia64*) tmp_idyn=' -i_dynamic';;
  13435. esac
  13436. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13437. 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'
  13438. ;;
  13439. esac
  13440. archive_cmds_need_lc_CXX=no
  13441. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13442. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13443. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13444. ;;
  13445. pgCC* | pgcpp*)
  13446. # Portland Group C++ compiler
  13447. case `$CC -V` in
  13448. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13449. prelink_cmds_CXX='tpldir=Template.dir~
  13450. rm -rf $tpldir~
  13451. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13452. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13453. old_archive_cmds_CXX='tpldir=Template.dir~
  13454. rm -rf $tpldir~
  13455. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13456. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13457. $RANLIB $oldlib'
  13458. archive_cmds_CXX='tpldir=Template.dir~
  13459. rm -rf $tpldir~
  13460. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13461. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13462. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13463. rm -rf $tpldir~
  13464. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13465. $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'
  13466. ;;
  13467. *) # Version 6 and above use weak symbols
  13468. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13469. 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'
  13470. ;;
  13471. esac
  13472. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13473. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13474. 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'
  13475. ;;
  13476. cxx*)
  13477. # Compaq C++
  13478. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13479. 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'
  13480. runpath_var=LD_RUN_PATH
  13481. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13482. hardcode_libdir_separator_CXX=:
  13483. # Commands to make compiler produce verbose output that lists
  13484. # what "hidden" libraries, object files and flags are used when
  13485. # linking a shared library.
  13486. #
  13487. # There doesn't appear to be a way to prevent this compiler from
  13488. # explicitly linking system object files so we need to strip them
  13489. # from the output so that they don't get included in the library
  13490. # dependencies.
  13491. 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'
  13492. ;;
  13493. xl* | mpixl* | bgxl*)
  13494. # IBM XL 8.0 on PPC, with GNU ld
  13495. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13496. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13497. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13498. if test yes = "$supports_anon_versioning"; then
  13499. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13500. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13501. echo "local: *; };" >> $output_objdir/$libname.ver~
  13502. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13503. fi
  13504. ;;
  13505. *)
  13506. case `$CC -V 2>&1 | sed 5q` in
  13507. *Sun\ C*)
  13508. # Sun C++ 5.9
  13509. no_undefined_flag_CXX=' -zdefs'
  13510. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13511. 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'
  13512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13513. 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'
  13514. compiler_needs_object_CXX=yes
  13515. # Not sure whether something based on
  13516. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13517. # would be better.
  13518. output_verbose_link_cmd='func_echo_all'
  13519. # Archives containing C++ object files must be created using
  13520. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13521. # necessary to make sure instantiated templates are included
  13522. # in the archive.
  13523. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13524. ;;
  13525. esac
  13526. ;;
  13527. esac
  13528. ;;
  13529. lynxos*)
  13530. # FIXME: insert proper C++ library support
  13531. ld_shlibs_CXX=no
  13532. ;;
  13533. m88k*)
  13534. # FIXME: insert proper C++ library support
  13535. ld_shlibs_CXX=no
  13536. ;;
  13537. mvs*)
  13538. case $cc_basename in
  13539. cxx*)
  13540. # FIXME: insert proper C++ library support
  13541. ld_shlibs_CXX=no
  13542. ;;
  13543. *)
  13544. # FIXME: insert proper C++ library support
  13545. ld_shlibs_CXX=no
  13546. ;;
  13547. esac
  13548. ;;
  13549. netbsd*)
  13550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13551. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13552. wlarc=
  13553. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13554. hardcode_direct_CXX=yes
  13555. hardcode_shlibpath_var_CXX=no
  13556. fi
  13557. # Workaround some broken pre-1.5 toolchains
  13558. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13559. ;;
  13560. *nto* | *qnx*)
  13561. ld_shlibs_CXX=yes
  13562. ;;
  13563. openbsd* | bitrig*)
  13564. if test -f /usr/libexec/ld.so; then
  13565. hardcode_direct_CXX=yes
  13566. hardcode_shlibpath_var_CXX=no
  13567. hardcode_direct_absolute_CXX=yes
  13568. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13569. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13570. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13571. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13572. export_dynamic_flag_spec_CXX='$wl-E'
  13573. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13574. fi
  13575. output_verbose_link_cmd=func_echo_all
  13576. else
  13577. ld_shlibs_CXX=no
  13578. fi
  13579. ;;
  13580. osf3* | osf4* | osf5*)
  13581. case $cc_basename in
  13582. KCC*)
  13583. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13584. # KCC will only create a shared library if the output file
  13585. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13586. # to its proper name (with version) after linking.
  13587. 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'
  13588. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13589. hardcode_libdir_separator_CXX=:
  13590. # Archives containing C++ object files must be created using
  13591. # the KAI C++ compiler.
  13592. case $host in
  13593. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13594. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13595. esac
  13596. ;;
  13597. RCC*)
  13598. # Rational C++ 2.4.1
  13599. # FIXME: insert proper C++ library support
  13600. ld_shlibs_CXX=no
  13601. ;;
  13602. cxx*)
  13603. case $host in
  13604. osf3*)
  13605. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13606. 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'
  13607. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13608. ;;
  13609. *)
  13610. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13611. 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'
  13612. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13613. echo "-hidden">> $lib.exp~
  13614. $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~
  13615. $RM $lib.exp'
  13616. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13617. ;;
  13618. esac
  13619. hardcode_libdir_separator_CXX=:
  13620. # Commands to make compiler produce verbose output that lists
  13621. # what "hidden" libraries, object files and flags are used when
  13622. # linking a shared library.
  13623. #
  13624. # There doesn't appear to be a way to prevent this compiler from
  13625. # explicitly linking system object files so we need to strip them
  13626. # from the output so that they don't get included in the library
  13627. # dependencies.
  13628. 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"'
  13629. ;;
  13630. *)
  13631. if test yes,no = "$GXX,$with_gnu_ld"; then
  13632. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13633. case $host in
  13634. osf3*)
  13635. 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'
  13636. ;;
  13637. *)
  13638. 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'
  13639. ;;
  13640. esac
  13641. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13642. hardcode_libdir_separator_CXX=:
  13643. # Commands to make compiler produce verbose output that lists
  13644. # what "hidden" libraries, object files and flags are used when
  13645. # linking a shared library.
  13646. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13647. else
  13648. # FIXME: insert proper C++ library support
  13649. ld_shlibs_CXX=no
  13650. fi
  13651. ;;
  13652. esac
  13653. ;;
  13654. psos*)
  13655. # FIXME: insert proper C++ library support
  13656. ld_shlibs_CXX=no
  13657. ;;
  13658. sunos4*)
  13659. case $cc_basename in
  13660. CC*)
  13661. # Sun C++ 4.x
  13662. # FIXME: insert proper C++ library support
  13663. ld_shlibs_CXX=no
  13664. ;;
  13665. lcc*)
  13666. # Lucid
  13667. # FIXME: insert proper C++ library support
  13668. ld_shlibs_CXX=no
  13669. ;;
  13670. *)
  13671. # FIXME: insert proper C++ library support
  13672. ld_shlibs_CXX=no
  13673. ;;
  13674. esac
  13675. ;;
  13676. solaris*)
  13677. case $cc_basename in
  13678. CC* | sunCC*)
  13679. # Sun C++ 4.2, 5.x and Centerline C++
  13680. archive_cmds_need_lc_CXX=yes
  13681. no_undefined_flag_CXX=' -zdefs'
  13682. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13683. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13684. $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'
  13685. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13686. hardcode_shlibpath_var_CXX=no
  13687. case $host_os in
  13688. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13689. *)
  13690. # The compiler driver will combine and reorder linker options,
  13691. # but understands '-z linker_flag'.
  13692. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13693. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13694. ;;
  13695. esac
  13696. link_all_deplibs_CXX=yes
  13697. output_verbose_link_cmd='func_echo_all'
  13698. # Archives containing C++ object files must be created using
  13699. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13700. # necessary to make sure instantiated templates are included
  13701. # in the archive.
  13702. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13703. ;;
  13704. gcx*)
  13705. # Green Hills C++ Compiler
  13706. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13707. # The C++ compiler must be used to create the archive.
  13708. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13709. ;;
  13710. *)
  13711. # GNU C++ compiler with Solaris linker
  13712. if test yes,no = "$GXX,$with_gnu_ld"; then
  13713. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13714. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13715. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13716. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13717. $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'
  13718. # Commands to make compiler produce verbose output that lists
  13719. # what "hidden" libraries, object files and flags are used when
  13720. # linking a shared library.
  13721. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13722. else
  13723. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13724. # platform.
  13725. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13726. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13727. $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'
  13728. # Commands to make compiler produce verbose output that lists
  13729. # what "hidden" libraries, object files and flags are used when
  13730. # linking a shared library.
  13731. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13732. fi
  13733. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13734. case $host_os in
  13735. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13736. *)
  13737. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13738. ;;
  13739. esac
  13740. fi
  13741. ;;
  13742. esac
  13743. ;;
  13744. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13745. no_undefined_flag_CXX='$wl-z,text'
  13746. archive_cmds_need_lc_CXX=no
  13747. hardcode_shlibpath_var_CXX=no
  13748. runpath_var='LD_RUN_PATH'
  13749. case $cc_basename in
  13750. CC*)
  13751. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. ;;
  13754. *)
  13755. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13756. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. ;;
  13758. esac
  13759. ;;
  13760. sysv5* | sco3.2v5* | sco5v6*)
  13761. # Note: We CANNOT use -z defs as we might desire, because we do not
  13762. # link with -lc, and that would cause any symbols used from libc to
  13763. # always be unresolved, which means just about no library would
  13764. # ever link correctly. If we're not using GNU ld we use -z text
  13765. # though, which does catch some bad symbols but isn't as heavy-handed
  13766. # as -z defs.
  13767. no_undefined_flag_CXX='$wl-z,text'
  13768. allow_undefined_flag_CXX='$wl-z,nodefs'
  13769. archive_cmds_need_lc_CXX=no
  13770. hardcode_shlibpath_var_CXX=no
  13771. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13772. hardcode_libdir_separator_CXX=':'
  13773. link_all_deplibs_CXX=yes
  13774. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13775. runpath_var='LD_RUN_PATH'
  13776. case $cc_basename in
  13777. CC*)
  13778. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13779. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13780. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13781. '"$old_archive_cmds_CXX"
  13782. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13783. '"$reload_cmds_CXX"
  13784. ;;
  13785. *)
  13786. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13787. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13788. ;;
  13789. esac
  13790. ;;
  13791. tandem*)
  13792. case $cc_basename in
  13793. NCC*)
  13794. # NonStop-UX NCC 3.20
  13795. # FIXME: insert proper C++ library support
  13796. ld_shlibs_CXX=no
  13797. ;;
  13798. *)
  13799. # FIXME: insert proper C++ library support
  13800. ld_shlibs_CXX=no
  13801. ;;
  13802. esac
  13803. ;;
  13804. vxworks*)
  13805. # FIXME: insert proper C++ library support
  13806. ld_shlibs_CXX=no
  13807. ;;
  13808. *)
  13809. # FIXME: insert proper C++ library support
  13810. ld_shlibs_CXX=no
  13811. ;;
  13812. esac
  13813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13814. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13815. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13816. GCC_CXX=$GXX
  13817. LD_CXX=$LD
  13818. ## CAVEAT EMPTOR:
  13819. ## There is no encapsulation within the following macros, do not change
  13820. ## the running order or otherwise move them around unless you know exactly
  13821. ## what you are doing...
  13822. # Dependencies to place before and after the object being linked:
  13823. predep_objects_CXX=
  13824. postdep_objects_CXX=
  13825. predeps_CXX=
  13826. postdeps_CXX=
  13827. compiler_lib_search_path_CXX=
  13828. cat > conftest.$ac_ext <<_LT_EOF
  13829. class Foo
  13830. {
  13831. public:
  13832. Foo (void) { a = 0; }
  13833. private:
  13834. int a;
  13835. };
  13836. _LT_EOF
  13837. _lt_libdeps_save_CFLAGS=$CFLAGS
  13838. case "$CC $CFLAGS " in #(
  13839. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13840. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13841. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13842. esac
  13843. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13844. (eval $ac_compile) 2>&5
  13845. ac_status=$?
  13846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13847. test $ac_status = 0; }; then
  13848. # Parse the compiler output and extract the necessary
  13849. # objects, libraries and library flags.
  13850. # Sentinel used to keep track of whether or not we are before
  13851. # the conftest object file.
  13852. pre_test_object_deps_done=no
  13853. for p in `eval "$output_verbose_link_cmd"`; do
  13854. case $prev$p in
  13855. -L* | -R* | -l*)
  13856. # Some compilers place space between "-{L,R}" and the path.
  13857. # Remove the space.
  13858. if test x-L = "x$p" ||
  13859. test x-R = "x$p" ||
  13860. test x-l = "x$p"; then
  13861. prev=$p
  13862. continue
  13863. fi
  13864. # Expand the sysroot to ease extracting the directories later.
  13865. if test -z "$prev"; then
  13866. case $p in
  13867. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13868. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13869. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13870. esac
  13871. fi
  13872. case $p in
  13873. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13874. esac
  13875. if test no = "$pre_test_object_deps_done"; then
  13876. case $prev in
  13877. -L | -R)
  13878. # Internal compiler library paths should come after those
  13879. # provided the user. The postdeps already come after the
  13880. # user supplied libs so there is no need to process them.
  13881. if test -z "$compiler_lib_search_path_CXX"; then
  13882. compiler_lib_search_path_CXX=$prev$p
  13883. else
  13884. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13885. fi
  13886. ;;
  13887. # The "-l" case would never come before the object being
  13888. # linked, so don't bother handling this case.
  13889. esac
  13890. else
  13891. if test -z "$postdeps_CXX"; then
  13892. postdeps_CXX=$prev$p
  13893. else
  13894. postdeps_CXX="${postdeps_CXX} $prev$p"
  13895. fi
  13896. fi
  13897. prev=
  13898. ;;
  13899. *.lto.$objext) ;; # Ignore GCC LTO objects
  13900. *.$objext)
  13901. # This assumes that the test object file only shows up
  13902. # once in the compiler output.
  13903. if test "$p" = "conftest.$objext"; then
  13904. pre_test_object_deps_done=yes
  13905. continue
  13906. fi
  13907. if test no = "$pre_test_object_deps_done"; then
  13908. if test -z "$predep_objects_CXX"; then
  13909. predep_objects_CXX=$p
  13910. else
  13911. predep_objects_CXX="$predep_objects_CXX $p"
  13912. fi
  13913. else
  13914. if test -z "$postdep_objects_CXX"; then
  13915. postdep_objects_CXX=$p
  13916. else
  13917. postdep_objects_CXX="$postdep_objects_CXX $p"
  13918. fi
  13919. fi
  13920. ;;
  13921. *) ;; # Ignore the rest.
  13922. esac
  13923. done
  13924. # Clean up.
  13925. rm -f a.out a.exe
  13926. else
  13927. echo "libtool.m4: error: problem compiling CXX test program"
  13928. fi
  13929. $RM -f confest.$objext
  13930. CFLAGS=$_lt_libdeps_save_CFLAGS
  13931. # PORTME: override above test on systems where it is broken
  13932. case $host_os in
  13933. interix[3-9]*)
  13934. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13935. # hack all around it, let's just trust "g++" to DTRT.
  13936. predep_objects_CXX=
  13937. postdep_objects_CXX=
  13938. postdeps_CXX=
  13939. ;;
  13940. esac
  13941. case " $postdeps_CXX " in
  13942. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13943. esac
  13944. compiler_lib_search_dirs_CXX=
  13945. if test -n "${compiler_lib_search_path_CXX}"; then
  13946. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13947. fi
  13948. lt_prog_compiler_wl_CXX=
  13949. lt_prog_compiler_pic_CXX=
  13950. lt_prog_compiler_static_CXX=
  13951. # C++ specific cases for pic, static, wl, etc.
  13952. if test yes = "$GXX"; then
  13953. lt_prog_compiler_wl_CXX='-Wl,'
  13954. lt_prog_compiler_static_CXX='-static'
  13955. case $host_os in
  13956. aix*)
  13957. # All AIX code is PIC.
  13958. if test ia64 = "$host_cpu"; then
  13959. # AIX 5 now supports IA64 processor
  13960. lt_prog_compiler_static_CXX='-Bstatic'
  13961. fi
  13962. lt_prog_compiler_pic_CXX='-fPIC'
  13963. ;;
  13964. amigaos*)
  13965. case $host_cpu in
  13966. powerpc)
  13967. # see comment about AmigaOS4 .so support
  13968. lt_prog_compiler_pic_CXX='-fPIC'
  13969. ;;
  13970. m68k)
  13971. # FIXME: we need at least 68020 code to build shared libraries, but
  13972. # adding the '-m68020' flag to GCC prevents building anything better,
  13973. # like '-m68040'.
  13974. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13975. ;;
  13976. esac
  13977. ;;
  13978. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13979. # PIC is the default for these OSes.
  13980. ;;
  13981. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13982. # This hack is so that the source file can tell whether it is being
  13983. # built for inclusion in a dll (and should export symbols for example).
  13984. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13985. # (--disable-auto-import) libraries
  13986. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13987. case $host_os in
  13988. os2*)
  13989. lt_prog_compiler_static_CXX='$wl-static'
  13990. ;;
  13991. esac
  13992. ;;
  13993. darwin* | rhapsody*)
  13994. # PIC is the default on this platform
  13995. # Common symbols not allowed in MH_DYLIB files
  13996. lt_prog_compiler_pic_CXX='-fno-common'
  13997. ;;
  13998. *djgpp*)
  13999. # DJGPP does not support shared libraries at all
  14000. lt_prog_compiler_pic_CXX=
  14001. ;;
  14002. haiku*)
  14003. # PIC is the default for Haiku.
  14004. # The "-static" flag exists, but is broken.
  14005. lt_prog_compiler_static_CXX=
  14006. ;;
  14007. interix[3-9]*)
  14008. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14009. # Instead, we relocate shared libraries at runtime.
  14010. ;;
  14011. sysv4*MP*)
  14012. if test -d /usr/nec; then
  14013. lt_prog_compiler_pic_CXX=-Kconform_pic
  14014. fi
  14015. ;;
  14016. hpux*)
  14017. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14018. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14019. # sets the default TLS model and affects inlining.
  14020. case $host_cpu in
  14021. hppa*64*)
  14022. ;;
  14023. *)
  14024. lt_prog_compiler_pic_CXX='-fPIC'
  14025. ;;
  14026. esac
  14027. ;;
  14028. *qnx* | *nto*)
  14029. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14030. # it will coredump.
  14031. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14032. ;;
  14033. *)
  14034. lt_prog_compiler_pic_CXX='-fPIC'
  14035. ;;
  14036. esac
  14037. else
  14038. case $host_os in
  14039. aix[4-9]*)
  14040. # All AIX code is PIC.
  14041. if test ia64 = "$host_cpu"; then
  14042. # AIX 5 now supports IA64 processor
  14043. lt_prog_compiler_static_CXX='-Bstatic'
  14044. else
  14045. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14046. fi
  14047. ;;
  14048. chorus*)
  14049. case $cc_basename in
  14050. cxch68*)
  14051. # Green Hills C++ Compiler
  14052. # _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"
  14053. ;;
  14054. esac
  14055. ;;
  14056. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14057. # This hack is so that the source file can tell whether it is being
  14058. # built for inclusion in a dll (and should export symbols for example).
  14059. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14060. ;;
  14061. dgux*)
  14062. case $cc_basename in
  14063. ec++*)
  14064. lt_prog_compiler_pic_CXX='-KPIC'
  14065. ;;
  14066. ghcx*)
  14067. # Green Hills C++ Compiler
  14068. lt_prog_compiler_pic_CXX='-pic'
  14069. ;;
  14070. *)
  14071. ;;
  14072. esac
  14073. ;;
  14074. freebsd* | dragonfly* | midnightbsd*)
  14075. # FreeBSD uses GNU C++
  14076. ;;
  14077. hpux9* | hpux10* | hpux11*)
  14078. case $cc_basename in
  14079. CC*)
  14080. lt_prog_compiler_wl_CXX='-Wl,'
  14081. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14082. if test ia64 != "$host_cpu"; then
  14083. lt_prog_compiler_pic_CXX='+Z'
  14084. fi
  14085. ;;
  14086. aCC*)
  14087. lt_prog_compiler_wl_CXX='-Wl,'
  14088. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14089. case $host_cpu in
  14090. hppa*64*|ia64*)
  14091. # +Z the default
  14092. ;;
  14093. *)
  14094. lt_prog_compiler_pic_CXX='+Z'
  14095. ;;
  14096. esac
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. interix*)
  14103. # This is c89, which is MS Visual C++ (no shared libs)
  14104. # Anyone wants to do a port?
  14105. ;;
  14106. irix5* | irix6* | nonstopux*)
  14107. case $cc_basename in
  14108. CC*)
  14109. lt_prog_compiler_wl_CXX='-Wl,'
  14110. lt_prog_compiler_static_CXX='-non_shared'
  14111. # CC pic flag -KPIC is the default.
  14112. ;;
  14113. *)
  14114. ;;
  14115. esac
  14116. ;;
  14117. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14118. case $cc_basename in
  14119. KCC*)
  14120. # KAI C++ Compiler
  14121. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14122. lt_prog_compiler_pic_CXX='-fPIC'
  14123. ;;
  14124. ecpc* )
  14125. # old Intel C++ for x86_64, which still supported -KPIC.
  14126. lt_prog_compiler_wl_CXX='-Wl,'
  14127. lt_prog_compiler_pic_CXX='-KPIC'
  14128. lt_prog_compiler_static_CXX='-static'
  14129. ;;
  14130. icpc* )
  14131. # Intel C++, used to be incompatible with GCC.
  14132. # ICC 10 doesn't accept -KPIC any more.
  14133. lt_prog_compiler_wl_CXX='-Wl,'
  14134. lt_prog_compiler_pic_CXX='-fPIC'
  14135. lt_prog_compiler_static_CXX='-static'
  14136. ;;
  14137. pgCC* | pgcpp*)
  14138. # Portland Group C++ compiler
  14139. lt_prog_compiler_wl_CXX='-Wl,'
  14140. lt_prog_compiler_pic_CXX='-fpic'
  14141. lt_prog_compiler_static_CXX='-Bstatic'
  14142. ;;
  14143. cxx*)
  14144. # Compaq C++
  14145. # Make sure the PIC flag is empty. It appears that all Alpha
  14146. # Linux and Compaq Tru64 Unix objects are PIC.
  14147. lt_prog_compiler_pic_CXX=
  14148. lt_prog_compiler_static_CXX='-non_shared'
  14149. ;;
  14150. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14151. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14152. lt_prog_compiler_wl_CXX='-Wl,'
  14153. lt_prog_compiler_pic_CXX='-qpic'
  14154. lt_prog_compiler_static_CXX='-qstaticlink'
  14155. ;;
  14156. *)
  14157. case `$CC -V 2>&1 | sed 5q` in
  14158. *Sun\ C*)
  14159. # Sun C++ 5.9
  14160. lt_prog_compiler_pic_CXX='-KPIC'
  14161. lt_prog_compiler_static_CXX='-Bstatic'
  14162. lt_prog_compiler_wl_CXX='-Qoption ld '
  14163. ;;
  14164. esac
  14165. ;;
  14166. esac
  14167. ;;
  14168. lynxos*)
  14169. ;;
  14170. m88k*)
  14171. ;;
  14172. mvs*)
  14173. case $cc_basename in
  14174. cxx*)
  14175. lt_prog_compiler_pic_CXX='-W c,exportall'
  14176. ;;
  14177. *)
  14178. ;;
  14179. esac
  14180. ;;
  14181. netbsd*)
  14182. ;;
  14183. *qnx* | *nto*)
  14184. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14185. # it will coredump.
  14186. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14187. ;;
  14188. osf3* | osf4* | osf5*)
  14189. case $cc_basename in
  14190. KCC*)
  14191. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14192. ;;
  14193. RCC*)
  14194. # Rational C++ 2.4.1
  14195. lt_prog_compiler_pic_CXX='-pic'
  14196. ;;
  14197. cxx*)
  14198. # Digital/Compaq C++
  14199. lt_prog_compiler_wl_CXX='-Wl,'
  14200. # Make sure the PIC flag is empty. It appears that all Alpha
  14201. # Linux and Compaq Tru64 Unix objects are PIC.
  14202. lt_prog_compiler_pic_CXX=
  14203. lt_prog_compiler_static_CXX='-non_shared'
  14204. ;;
  14205. *)
  14206. ;;
  14207. esac
  14208. ;;
  14209. psos*)
  14210. ;;
  14211. solaris*)
  14212. case $cc_basename in
  14213. CC* | sunCC*)
  14214. # Sun C++ 4.2, 5.x and Centerline C++
  14215. lt_prog_compiler_pic_CXX='-KPIC'
  14216. lt_prog_compiler_static_CXX='-Bstatic'
  14217. lt_prog_compiler_wl_CXX='-Qoption ld '
  14218. ;;
  14219. gcx*)
  14220. # Green Hills C++ Compiler
  14221. lt_prog_compiler_pic_CXX='-PIC'
  14222. ;;
  14223. *)
  14224. ;;
  14225. esac
  14226. ;;
  14227. sunos4*)
  14228. case $cc_basename in
  14229. CC*)
  14230. # Sun C++ 4.x
  14231. lt_prog_compiler_pic_CXX='-pic'
  14232. lt_prog_compiler_static_CXX='-Bstatic'
  14233. ;;
  14234. lcc*)
  14235. # Lucid
  14236. lt_prog_compiler_pic_CXX='-pic'
  14237. ;;
  14238. *)
  14239. ;;
  14240. esac
  14241. ;;
  14242. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14243. case $cc_basename in
  14244. CC*)
  14245. lt_prog_compiler_wl_CXX='-Wl,'
  14246. lt_prog_compiler_pic_CXX='-KPIC'
  14247. lt_prog_compiler_static_CXX='-Bstatic'
  14248. ;;
  14249. esac
  14250. ;;
  14251. tandem*)
  14252. case $cc_basename in
  14253. NCC*)
  14254. # NonStop-UX NCC 3.20
  14255. lt_prog_compiler_pic_CXX='-KPIC'
  14256. ;;
  14257. *)
  14258. ;;
  14259. esac
  14260. ;;
  14261. vxworks*)
  14262. ;;
  14263. *)
  14264. lt_prog_compiler_can_build_shared_CXX=no
  14265. ;;
  14266. esac
  14267. fi
  14268. case $host_os in
  14269. # For platforms that do not support PIC, -DPIC is meaningless:
  14270. *djgpp*)
  14271. lt_prog_compiler_pic_CXX=
  14272. ;;
  14273. *)
  14274. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14275. ;;
  14276. esac
  14277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14278. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14279. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14280. then :
  14281. printf %s "(cached) " >&6
  14282. else $as_nop
  14283. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14284. fi
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14286. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14287. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14288. #
  14289. # Check to make sure the PIC flag actually works.
  14290. #
  14291. if test -n "$lt_prog_compiler_pic_CXX"; then
  14292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14293. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14294. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14295. then :
  14296. printf %s "(cached) " >&6
  14297. else $as_nop
  14298. lt_cv_prog_compiler_pic_works_CXX=no
  14299. ac_outfile=conftest.$ac_objext
  14300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14301. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14302. # Insert the option either (1) after the last *FLAGS variable, or
  14303. # (2) before a word containing "conftest.", or (3) at the end.
  14304. # Note that $ac_compile itself does not contain backslashes and begins
  14305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14306. # The option is referenced via a variable to avoid confusing sed.
  14307. lt_compile=`echo "$ac_compile" | $SED \
  14308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14310. -e 's:$: $lt_compiler_flag:'`
  14311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14312. (eval "$lt_compile" 2>conftest.err)
  14313. ac_status=$?
  14314. cat conftest.err >&5
  14315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. if (exit $ac_status) && test -s "$ac_outfile"; then
  14317. # The compiler can only warn and ignore the option if not recognized
  14318. # So say no if there are warnings other than the usual output.
  14319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14321. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14322. lt_cv_prog_compiler_pic_works_CXX=yes
  14323. fi
  14324. fi
  14325. $RM conftest*
  14326. fi
  14327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14328. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14329. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14330. case $lt_prog_compiler_pic_CXX in
  14331. "" | " "*) ;;
  14332. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14333. esac
  14334. else
  14335. lt_prog_compiler_pic_CXX=
  14336. lt_prog_compiler_can_build_shared_CXX=no
  14337. fi
  14338. fi
  14339. #
  14340. # Check to make sure the static flag actually works.
  14341. #
  14342. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14344. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14345. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14346. then :
  14347. printf %s "(cached) " >&6
  14348. else $as_nop
  14349. lt_cv_prog_compiler_static_works_CXX=no
  14350. save_LDFLAGS=$LDFLAGS
  14351. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14354. # The linker can only warn and ignore the option if not recognized
  14355. # So say no if there are warnings
  14356. if test -s conftest.err; then
  14357. # Append any errors to the config.log.
  14358. cat conftest.err 1>&5
  14359. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14361. if diff conftest.exp conftest.er2 >/dev/null; then
  14362. lt_cv_prog_compiler_static_works_CXX=yes
  14363. fi
  14364. else
  14365. lt_cv_prog_compiler_static_works_CXX=yes
  14366. fi
  14367. fi
  14368. $RM -r conftest*
  14369. LDFLAGS=$save_LDFLAGS
  14370. fi
  14371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14372. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14373. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14374. :
  14375. else
  14376. lt_prog_compiler_static_CXX=
  14377. fi
  14378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14379. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14380. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14381. then :
  14382. printf %s "(cached) " >&6
  14383. else $as_nop
  14384. lt_cv_prog_compiler_c_o_CXX=no
  14385. $RM -r conftest 2>/dev/null
  14386. mkdir conftest
  14387. cd conftest
  14388. mkdir out
  14389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14390. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14391. # Insert the option either (1) after the last *FLAGS variable, or
  14392. # (2) before a word containing "conftest.", or (3) at the end.
  14393. # Note that $ac_compile itself does not contain backslashes and begins
  14394. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14395. lt_compile=`echo "$ac_compile" | $SED \
  14396. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14397. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14398. -e 's:$: $lt_compiler_flag:'`
  14399. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14400. (eval "$lt_compile" 2>out/conftest.err)
  14401. ac_status=$?
  14402. cat out/conftest.err >&5
  14403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14404. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14405. then
  14406. # The compiler can only warn and ignore the option if not recognized
  14407. # So say no if there are warnings
  14408. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14409. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14410. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14411. lt_cv_prog_compiler_c_o_CXX=yes
  14412. fi
  14413. fi
  14414. chmod u+w . 2>&5
  14415. $RM conftest*
  14416. # SGI C++ compiler will create directory out/ii_files/ for
  14417. # template instantiation
  14418. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14419. $RM out/* && rmdir out
  14420. cd ..
  14421. $RM -r conftest
  14422. $RM conftest*
  14423. fi
  14424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14425. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14427. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14428. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14429. then :
  14430. printf %s "(cached) " >&6
  14431. else $as_nop
  14432. lt_cv_prog_compiler_c_o_CXX=no
  14433. $RM -r conftest 2>/dev/null
  14434. mkdir conftest
  14435. cd conftest
  14436. mkdir out
  14437. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14438. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14439. # Insert the option either (1) after the last *FLAGS variable, or
  14440. # (2) before a word containing "conftest.", or (3) at the end.
  14441. # Note that $ac_compile itself does not contain backslashes and begins
  14442. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14443. lt_compile=`echo "$ac_compile" | $SED \
  14444. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14445. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14446. -e 's:$: $lt_compiler_flag:'`
  14447. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14448. (eval "$lt_compile" 2>out/conftest.err)
  14449. ac_status=$?
  14450. cat out/conftest.err >&5
  14451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14453. then
  14454. # The compiler can only warn and ignore the option if not recognized
  14455. # So say no if there are warnings
  14456. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14457. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14458. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14459. lt_cv_prog_compiler_c_o_CXX=yes
  14460. fi
  14461. fi
  14462. chmod u+w . 2>&5
  14463. $RM conftest*
  14464. # SGI C++ compiler will create directory out/ii_files/ for
  14465. # template instantiation
  14466. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14467. $RM out/* && rmdir out
  14468. cd ..
  14469. $RM -r conftest
  14470. $RM conftest*
  14471. fi
  14472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14473. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14474. hard_links=nottested
  14475. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14476. # do not overwrite the value of need_locks provided by the user
  14477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14478. printf %s "checking if we can lock with hard links... " >&6; }
  14479. hard_links=yes
  14480. $RM conftest*
  14481. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14482. touch conftest.a
  14483. ln conftest.a conftest.b 2>&5 || hard_links=no
  14484. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14486. printf "%s\n" "$hard_links" >&6; }
  14487. if test no = "$hard_links"; then
  14488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14489. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14490. need_locks=warn
  14491. fi
  14492. else
  14493. need_locks=no
  14494. fi
  14495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14496. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14497. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14498. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14499. case $host_os in
  14500. aix[4-9]*)
  14501. # If we're using GNU nm, then we don't want the "-C" option.
  14502. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14503. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14504. # weak defined symbols like other global defined symbols, whereas
  14505. # GNU nm marks them as "W".
  14506. # While the 'weak' keyword is ignored in the Export File, we need
  14507. # it in the Import File for the 'aix-soname' feature, so we have
  14508. # to replace the "-B" option with "-P" for AIX nm.
  14509. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14510. 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'
  14511. else
  14512. 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'
  14513. fi
  14514. ;;
  14515. pw32*)
  14516. export_symbols_cmds_CXX=$ltdll_cmds
  14517. ;;
  14518. cygwin* | mingw* | windows* | cegcc*)
  14519. case $cc_basename in
  14520. cl* | icl*)
  14521. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14522. ;;
  14523. *)
  14524. 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'
  14525. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14526. ;;
  14527. esac
  14528. ;;
  14529. *)
  14530. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14531. ;;
  14532. esac
  14533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14534. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14535. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14536. with_gnu_ld_CXX=$with_gnu_ld
  14537. #
  14538. # Do we need to explicitly link libc?
  14539. #
  14540. case "x$archive_cmds_need_lc_CXX" in
  14541. x|xyes)
  14542. # Assume -lc should be added
  14543. archive_cmds_need_lc_CXX=yes
  14544. if test yes,yes = "$GCC,$enable_shared"; then
  14545. case $archive_cmds_CXX in
  14546. *'~'*)
  14547. # FIXME: we may have to deal with multi-command sequences.
  14548. ;;
  14549. '$CC '*)
  14550. # Test whether the compiler implicitly links with -lc since on some
  14551. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14552. # to ld, don't add -lc before -lgcc.
  14553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14554. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14555. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14556. then :
  14557. printf %s "(cached) " >&6
  14558. else $as_nop
  14559. $RM conftest*
  14560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14562. (eval $ac_compile) 2>&5
  14563. ac_status=$?
  14564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14565. test $ac_status = 0; } 2>conftest.err; then
  14566. soname=conftest
  14567. lib=conftest
  14568. libobjs=conftest.$ac_objext
  14569. deplibs=
  14570. wl=$lt_prog_compiler_wl_CXX
  14571. pic_flag=$lt_prog_compiler_pic_CXX
  14572. compiler_flags=-v
  14573. linker_flags=-v
  14574. verstring=
  14575. output_objdir=.
  14576. libname=conftest
  14577. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14578. allow_undefined_flag_CXX=
  14579. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14580. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14581. ac_status=$?
  14582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14583. test $ac_status = 0; }
  14584. then
  14585. lt_cv_archive_cmds_need_lc_CXX=no
  14586. else
  14587. lt_cv_archive_cmds_need_lc_CXX=yes
  14588. fi
  14589. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14590. else
  14591. cat conftest.err 1>&5
  14592. fi
  14593. $RM conftest*
  14594. fi
  14595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14596. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14597. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14598. ;;
  14599. esac
  14600. fi
  14601. ;;
  14602. esac
  14603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14604. printf %s "checking dynamic linker characteristics... " >&6; }
  14605. library_names_spec=
  14606. libname_spec='lib$name'
  14607. soname_spec=
  14608. shrext_cmds=.so
  14609. postinstall_cmds=
  14610. postuninstall_cmds=
  14611. finish_cmds=
  14612. finish_eval=
  14613. shlibpath_var=
  14614. shlibpath_overrides_runpath=unknown
  14615. version_type=none
  14616. dynamic_linker="$host_os ld.so"
  14617. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14618. need_lib_prefix=unknown
  14619. hardcode_into_libs=no
  14620. # when you set need_version to no, make sure it does not cause -set_version
  14621. # flags to be left without arguments
  14622. need_version=unknown
  14623. case $host_os in
  14624. aix3*)
  14625. version_type=linux # correct to gnu/linux during the next big refactor
  14626. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14627. shlibpath_var=LIBPATH
  14628. # AIX 3 has no versioning support, so we append a major version to the name.
  14629. soname_spec='$libname$release$shared_ext$major'
  14630. ;;
  14631. aix[4-9]*)
  14632. version_type=linux # correct to gnu/linux during the next big refactor
  14633. need_lib_prefix=no
  14634. need_version=no
  14635. hardcode_into_libs=yes
  14636. if test ia64 = "$host_cpu"; then
  14637. # AIX 5 supports IA64
  14638. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14639. shlibpath_var=LD_LIBRARY_PATH
  14640. else
  14641. # With GCC up to 2.95.x, collect2 would create an import file
  14642. # for dependence libraries. The import file would start with
  14643. # the line '#! .'. This would cause the generated library to
  14644. # depend on '.', always an invalid library. This was fixed in
  14645. # development snapshots of GCC prior to 3.0.
  14646. case $host_os in
  14647. aix4 | aix4.[01] | aix4.[01].*)
  14648. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14649. echo ' yes '
  14650. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14651. :
  14652. else
  14653. can_build_shared=no
  14654. fi
  14655. ;;
  14656. esac
  14657. # Using Import Files as archive members, it is possible to support
  14658. # filename-based versioning of shared library archives on AIX. While
  14659. # this would work for both with and without runtime linking, it will
  14660. # prevent static linking of such archives. So we do filename-based
  14661. # shared library versioning with .so extension only, which is used
  14662. # when both runtime linking and shared linking is enabled.
  14663. # Unfortunately, runtime linking may impact performance, so we do
  14664. # not want this to be the default eventually. Also, we use the
  14665. # versioned .so libs for executables only if there is the -brtl
  14666. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14667. # To allow for filename-based versioning support, we need to create
  14668. # libNAME.so.V as an archive file, containing:
  14669. # *) an Import File, referring to the versioned filename of the
  14670. # archive as well as the shared archive member, telling the
  14671. # bitwidth (32 or 64) of that shared object, and providing the
  14672. # list of exported symbols of that shared object, eventually
  14673. # decorated with the 'weak' keyword
  14674. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14675. # it being seen by the linker.
  14676. # At run time we better use the real file rather than another symlink,
  14677. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14678. case $with_aix_soname,$aix_use_runtimelinking in
  14679. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14680. # soname into executable. Probably we can add versioning support to
  14681. # collect2, so additional links can be useful in future.
  14682. aix,yes) # traditional libtool
  14683. dynamic_linker='AIX unversionable lib.so'
  14684. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14685. # instead of lib<name>.a to let people know that these are not
  14686. # typical AIX shared libraries.
  14687. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14688. ;;
  14689. aix,no) # traditional AIX only
  14690. dynamic_linker='AIX lib.a(lib.so.V)'
  14691. # We preserve .a as extension for shared libraries through AIX4.2
  14692. # and later when we are not doing run time linking.
  14693. library_names_spec='$libname$release.a $libname.a'
  14694. soname_spec='$libname$release$shared_ext$major'
  14695. ;;
  14696. svr4,*) # full svr4 only
  14697. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14698. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14699. # We do not specify a path in Import Files, so LIBPATH fires.
  14700. shlibpath_overrides_runpath=yes
  14701. ;;
  14702. *,yes) # both, prefer svr4
  14703. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14704. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14705. # unpreferred sharedlib libNAME.a needs extra handling
  14706. 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"'
  14707. 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"'
  14708. # We do not specify a path in Import Files, so LIBPATH fires.
  14709. shlibpath_overrides_runpath=yes
  14710. ;;
  14711. *,no) # both, prefer aix
  14712. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14713. library_names_spec='$libname$release.a $libname.a'
  14714. soname_spec='$libname$release$shared_ext$major'
  14715. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14716. 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)'
  14717. 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"'
  14718. ;;
  14719. esac
  14720. shlibpath_var=LIBPATH
  14721. fi
  14722. ;;
  14723. amigaos*)
  14724. case $host_cpu in
  14725. powerpc)
  14726. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14727. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14728. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14729. ;;
  14730. m68k)
  14731. library_names_spec='$libname.ixlibrary $libname.a'
  14732. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14733. 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'
  14734. ;;
  14735. esac
  14736. ;;
  14737. beos*)
  14738. library_names_spec='$libname$shared_ext'
  14739. dynamic_linker="$host_os ld.so"
  14740. shlibpath_var=LIBRARY_PATH
  14741. ;;
  14742. bsdi[45]*)
  14743. version_type=linux # correct to gnu/linux during the next big refactor
  14744. need_version=no
  14745. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14746. soname_spec='$libname$release$shared_ext$major'
  14747. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14748. shlibpath_var=LD_LIBRARY_PATH
  14749. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14750. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14751. # the default ld.so.conf also contains /usr/contrib/lib and
  14752. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14753. # libtool to hard-code these into programs
  14754. ;;
  14755. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14756. version_type=windows
  14757. shrext_cmds=.dll
  14758. need_version=no
  14759. need_lib_prefix=no
  14760. case $GCC,$cc_basename in
  14761. yes,*)
  14762. # gcc
  14763. library_names_spec='$libname.dll.a'
  14764. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14765. postinstall_cmds='base_file=`basename \$file`~
  14766. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14767. dldir=$destdir/`dirname \$dlpath`~
  14768. test -d \$dldir || mkdir -p \$dldir~
  14769. $install_prog $dir/$dlname \$dldir/$dlname~
  14770. chmod a+x \$dldir/$dlname~
  14771. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14772. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14773. fi'
  14774. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14775. dlpath=$dir/\$dldll~
  14776. $RM \$dlpath'
  14777. shlibpath_overrides_runpath=yes
  14778. case $host_os in
  14779. cygwin*)
  14780. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14781. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14782. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization.
  14783. ;;
  14784. mingw* | windows* | cegcc*)
  14785. # MinGW DLLs use traditional 'lib' prefix
  14786. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14787. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization.
  14788. ;;
  14789. pw32*)
  14790. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14791. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14792. ;;
  14793. esac
  14794. dynamic_linker='Win32 ld.exe'
  14795. ;;
  14796. *,cl* | *,icl*)
  14797. # Native MSVC or ICC
  14798. libname_spec='$name'
  14799. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14800. library_names_spec='$libname.dll.lib'
  14801. case $build_os in
  14802. mingw* | windows*)
  14803. sys_lib_search_path_spec=
  14804. lt_save_ifs=$IFS
  14805. IFS=';'
  14806. for lt_path in $LIB
  14807. do
  14808. IFS=$lt_save_ifs
  14809. # Let DOS variable expansion print the short 8.3 style file name.
  14810. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14811. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14812. done
  14813. IFS=$lt_save_ifs
  14814. # Convert to MSYS style.
  14815. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14816. ;;
  14817. cygwin*)
  14818. # Convert to unix form, then to dos form, then back to unix form
  14819. # but this time dos style (no spaces!) so that the unix form looks
  14820. # like /cygdrive/c/PROGRA~1:/cygdr...
  14821. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14822. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14823. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14824. ;;
  14825. *)
  14826. sys_lib_search_path_spec=$LIB
  14827. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14828. # It is most probably a Windows format PATH.
  14829. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14830. else
  14831. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14832. fi
  14833. # FIXME: find the short name or the path components, as spaces are
  14834. # common. (e.g. "Program Files" -> "PROGRA~1")
  14835. ;;
  14836. esac
  14837. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14838. postinstall_cmds='base_file=`basename \$file`~
  14839. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14840. dldir=$destdir/`dirname \$dlpath`~
  14841. test -d \$dldir || mkdir -p \$dldir~
  14842. $install_prog $dir/$dlname \$dldir/$dlname'
  14843. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14844. dlpath=$dir/\$dldll~
  14845. $RM \$dlpath'
  14846. shlibpath_overrides_runpath=yes
  14847. dynamic_linker='Win32 link.exe'
  14848. ;;
  14849. *)
  14850. # Assume MSVC and ICC wrapper
  14851. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14852. dynamic_linker='Win32 ld.exe'
  14853. ;;
  14854. esac
  14855. # FIXME: first we should search . and the directory the executable is in
  14856. shlibpath_var=PATH
  14857. ;;
  14858. darwin* | rhapsody*)
  14859. dynamic_linker="$host_os dyld"
  14860. version_type=darwin
  14861. need_lib_prefix=no
  14862. need_version=no
  14863. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14864. soname_spec='$libname$release$major$shared_ext'
  14865. shlibpath_overrides_runpath=yes
  14866. shlibpath_var=DYLD_LIBRARY_PATH
  14867. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14868. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14869. ;;
  14870. dgux*)
  14871. version_type=linux # correct to gnu/linux during the next big refactor
  14872. need_lib_prefix=no
  14873. need_version=no
  14874. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14875. soname_spec='$libname$release$shared_ext$major'
  14876. shlibpath_var=LD_LIBRARY_PATH
  14877. ;;
  14878. freebsd* | dragonfly* | midnightbsd*)
  14879. # DragonFly does not have aout. When/if they implement a new
  14880. # versioning mechanism, adjust this.
  14881. if test -x /usr/bin/objformat; then
  14882. objformat=`/usr/bin/objformat`
  14883. else
  14884. case $host_os in
  14885. freebsd[23].*) objformat=aout ;;
  14886. *) objformat=elf ;;
  14887. esac
  14888. fi
  14889. version_type=freebsd-$objformat
  14890. case $version_type in
  14891. freebsd-elf*)
  14892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14893. soname_spec='$libname$release$shared_ext$major'
  14894. need_version=no
  14895. need_lib_prefix=no
  14896. ;;
  14897. freebsd-*)
  14898. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14899. need_version=yes
  14900. ;;
  14901. esac
  14902. shlibpath_var=LD_LIBRARY_PATH
  14903. case $host_os in
  14904. freebsd2.*)
  14905. shlibpath_overrides_runpath=yes
  14906. ;;
  14907. freebsd3.[01]* | freebsdelf3.[01]*)
  14908. shlibpath_overrides_runpath=yes
  14909. hardcode_into_libs=yes
  14910. ;;
  14911. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14912. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14913. shlibpath_overrides_runpath=no
  14914. hardcode_into_libs=yes
  14915. ;;
  14916. *) # from 4.6 on, and DragonFly
  14917. shlibpath_overrides_runpath=yes
  14918. hardcode_into_libs=yes
  14919. ;;
  14920. esac
  14921. ;;
  14922. haiku*)
  14923. version_type=linux # correct to gnu/linux during the next big refactor
  14924. need_lib_prefix=no
  14925. need_version=no
  14926. dynamic_linker="$host_os runtime_loader"
  14927. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14928. soname_spec='$libname$release$shared_ext$major'
  14929. shlibpath_var=LIBRARY_PATH
  14930. shlibpath_overrides_runpath=no
  14931. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14932. hardcode_into_libs=yes
  14933. ;;
  14934. hpux9* | hpux10* | hpux11*)
  14935. # Give a soname corresponding to the major version so that dld.sl refuses to
  14936. # link against other versions.
  14937. version_type=sunos
  14938. need_lib_prefix=no
  14939. need_version=no
  14940. case $host_cpu in
  14941. ia64*)
  14942. shrext_cmds='.so'
  14943. hardcode_into_libs=yes
  14944. dynamic_linker="$host_os dld.so"
  14945. shlibpath_var=LD_LIBRARY_PATH
  14946. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14948. soname_spec='$libname$release$shared_ext$major'
  14949. if test 32 = "$HPUX_IA64_MODE"; then
  14950. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14951. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14952. else
  14953. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14954. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14955. fi
  14956. ;;
  14957. hppa*64*)
  14958. shrext_cmds='.sl'
  14959. hardcode_into_libs=yes
  14960. dynamic_linker="$host_os dld.sl"
  14961. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14962. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14964. soname_spec='$libname$release$shared_ext$major'
  14965. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14966. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14967. ;;
  14968. *)
  14969. shrext_cmds='.sl'
  14970. dynamic_linker="$host_os dld.sl"
  14971. shlibpath_var=SHLIB_PATH
  14972. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14974. soname_spec='$libname$release$shared_ext$major'
  14975. ;;
  14976. esac
  14977. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14978. postinstall_cmds='chmod 555 $lib'
  14979. # or fails outright, so override atomically:
  14980. install_override_mode=555
  14981. ;;
  14982. interix[3-9]*)
  14983. version_type=linux # correct to gnu/linux during the next big refactor
  14984. need_lib_prefix=no
  14985. need_version=no
  14986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14987. soname_spec='$libname$release$shared_ext$major'
  14988. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14989. shlibpath_var=LD_LIBRARY_PATH
  14990. shlibpath_overrides_runpath=no
  14991. hardcode_into_libs=yes
  14992. ;;
  14993. irix5* | irix6* | nonstopux*)
  14994. case $host_os in
  14995. nonstopux*) version_type=nonstopux ;;
  14996. *)
  14997. if test yes = "$lt_cv_prog_gnu_ld"; then
  14998. version_type=linux # correct to gnu/linux during the next big refactor
  14999. else
  15000. version_type=irix
  15001. fi ;;
  15002. esac
  15003. need_lib_prefix=no
  15004. need_version=no
  15005. soname_spec='$libname$release$shared_ext$major'
  15006. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15007. case $host_os in
  15008. irix5* | nonstopux*)
  15009. libsuff= shlibsuff=
  15010. ;;
  15011. *)
  15012. case $LD in # libtool.m4 will add one of these switches to LD
  15013. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15014. libsuff= shlibsuff= libmagic=32-bit;;
  15015. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15016. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15017. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15018. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15019. *) libsuff= shlibsuff= libmagic=never-match;;
  15020. esac
  15021. ;;
  15022. esac
  15023. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15024. shlibpath_overrides_runpath=no
  15025. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15026. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15027. hardcode_into_libs=yes
  15028. ;;
  15029. # No shared lib support for Linux oldld, aout, or coff.
  15030. linux*oldld* | linux*aout* | linux*coff*)
  15031. dynamic_linker=no
  15032. ;;
  15033. linux*android*)
  15034. version_type=none # Android doesn't support versioned libraries.
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. library_names_spec='$libname$release$shared_ext'
  15038. soname_spec='$libname$release$shared_ext'
  15039. finish_cmds=
  15040. shlibpath_var=LD_LIBRARY_PATH
  15041. shlibpath_overrides_runpath=yes
  15042. # This implies no fast_install, which is unacceptable.
  15043. # Some rework will be needed to allow for fast_install
  15044. # before this can be enabled.
  15045. hardcode_into_libs=yes
  15046. dynamic_linker='Android linker'
  15047. # Don't embed -rpath directories since the linker doesn't support them.
  15048. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15049. ;;
  15050. # This must be glibc/ELF.
  15051. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15052. version_type=linux # correct to gnu/linux during the next big refactor
  15053. need_lib_prefix=no
  15054. need_version=no
  15055. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15056. soname_spec='$libname$release$shared_ext$major'
  15057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=no
  15060. # Some binutils ld are patched to set DT_RUNPATH
  15061. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15062. then :
  15063. printf %s "(cached) " >&6
  15064. else $as_nop
  15065. lt_cv_shlibpath_overrides_runpath=no
  15066. save_LDFLAGS=$LDFLAGS
  15067. save_libdir=$libdir
  15068. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15069. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15071. /* end confdefs.h. */
  15072. int
  15073. main (void)
  15074. {
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_cxx_try_link "$LINENO"
  15080. then :
  15081. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15082. then :
  15083. lt_cv_shlibpath_overrides_runpath=yes
  15084. fi
  15085. fi
  15086. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15087. conftest$ac_exeext conftest.$ac_ext
  15088. LDFLAGS=$save_LDFLAGS
  15089. libdir=$save_libdir
  15090. fi
  15091. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15092. # This implies no fast_install, which is unacceptable.
  15093. # Some rework will be needed to allow for fast_install
  15094. # before this can be enabled.
  15095. hardcode_into_libs=yes
  15096. # Add ABI-specific directories to the system library path.
  15097. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15098. # Ideally, we could use ldconfig to report *all* directores which are
  15099. # searched for libraries, however this is still not possible. Aside from not
  15100. # being certain /sbin/ldconfig is available, command
  15101. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15102. # even though it is searched at run-time. Try to do the best guess by
  15103. # appending ld.so.conf contents (and includes) to the search path.
  15104. if test -f /etc/ld.so.conf; then
  15105. 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' ' '`
  15106. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15107. fi
  15108. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15109. # powerpc, because MkLinux only supported shared libraries with the
  15110. # GNU dynamic linker. Since this was broken with cross compilers,
  15111. # most powerpc-linux boxes support dynamic linking these days and
  15112. # people can always --disable-shared, the test was removed, and we
  15113. # assume the GNU/Linux dynamic linker is in use.
  15114. dynamic_linker='GNU/Linux ld.so'
  15115. ;;
  15116. netbsd*)
  15117. version_type=sunos
  15118. need_lib_prefix=no
  15119. need_version=no
  15120. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15123. dynamic_linker='NetBSD (a.out) ld.so'
  15124. else
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. dynamic_linker='NetBSD ld.elf_so'
  15128. fi
  15129. shlibpath_var=LD_LIBRARY_PATH
  15130. shlibpath_overrides_runpath=yes
  15131. hardcode_into_libs=yes
  15132. ;;
  15133. newsos6)
  15134. version_type=linux # correct to gnu/linux during the next big refactor
  15135. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15136. shlibpath_var=LD_LIBRARY_PATH
  15137. shlibpath_overrides_runpath=yes
  15138. ;;
  15139. *nto* | *qnx*)
  15140. version_type=qnx
  15141. need_lib_prefix=no
  15142. need_version=no
  15143. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15144. soname_spec='$libname$release$shared_ext$major'
  15145. shlibpath_var=LD_LIBRARY_PATH
  15146. shlibpath_overrides_runpath=no
  15147. hardcode_into_libs=yes
  15148. dynamic_linker='ldqnx.so'
  15149. ;;
  15150. openbsd* | bitrig*)
  15151. version_type=sunos
  15152. sys_lib_dlsearch_path_spec=/usr/lib
  15153. need_lib_prefix=no
  15154. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15155. need_version=no
  15156. else
  15157. need_version=yes
  15158. fi
  15159. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15161. shlibpath_var=LD_LIBRARY_PATH
  15162. shlibpath_overrides_runpath=yes
  15163. ;;
  15164. os2*)
  15165. libname_spec='$name'
  15166. shrext_cmds=.dll
  15167. need_lib_prefix=no
  15168. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15169. # SDL customization: removed versioning support.
  15170. # version_type=windows
  15171. # need_version=no
  15172. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15173. # v=$($ECHO $release$versuffix | tr -d .-);
  15174. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15175. # $ECHO $n$v`$shared_ext'
  15176. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15177. library_names_spec='${libname}_dll.$libext'
  15178. dynamic_linker='OS/2 ld.exe'
  15179. shlibpath_var=BEGINLIBPATH
  15180. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15182. postinstall_cmds='base_file=`basename \$file`~
  15183. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15184. dldir=$destdir/`dirname \$dlpath`~
  15185. test -d \$dldir || mkdir -p \$dldir~
  15186. $install_prog $dir/$dlname \$dldir/$dlname~
  15187. chmod a+x \$dldir/$dlname~
  15188. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15189. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15190. fi'
  15191. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15192. dlpath=$dir/\$dldll~
  15193. $RM \$dlpath'
  15194. ;;
  15195. osf3* | osf4* | osf5*)
  15196. version_type=osf
  15197. need_lib_prefix=no
  15198. need_version=no
  15199. soname_spec='$libname$release$shared_ext$major'
  15200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15201. shlibpath_var=LD_LIBRARY_PATH
  15202. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15203. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15204. ;;
  15205. rdos*)
  15206. dynamic_linker=no
  15207. ;;
  15208. solaris*)
  15209. version_type=linux # correct to gnu/linux during the next big refactor
  15210. need_lib_prefix=no
  15211. need_version=no
  15212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15213. soname_spec='$libname$release$shared_ext$major'
  15214. shlibpath_var=LD_LIBRARY_PATH
  15215. shlibpath_overrides_runpath=yes
  15216. hardcode_into_libs=yes
  15217. # ldd complains unless libraries are executable
  15218. postinstall_cmds='chmod +x $lib'
  15219. ;;
  15220. sunos4*)
  15221. version_type=sunos
  15222. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15223. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15224. shlibpath_var=LD_LIBRARY_PATH
  15225. shlibpath_overrides_runpath=yes
  15226. if test yes = "$with_gnu_ld"; then
  15227. need_lib_prefix=no
  15228. fi
  15229. need_version=yes
  15230. ;;
  15231. sysv4 | sysv4.3*)
  15232. version_type=linux # correct to gnu/linux during the next big refactor
  15233. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15234. soname_spec='$libname$release$shared_ext$major'
  15235. shlibpath_var=LD_LIBRARY_PATH
  15236. case $host_vendor in
  15237. sni)
  15238. shlibpath_overrides_runpath=no
  15239. need_lib_prefix=no
  15240. runpath_var=LD_RUN_PATH
  15241. ;;
  15242. siemens)
  15243. need_lib_prefix=no
  15244. ;;
  15245. motorola)
  15246. need_lib_prefix=no
  15247. need_version=no
  15248. shlibpath_overrides_runpath=no
  15249. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15250. ;;
  15251. esac
  15252. ;;
  15253. sysv4*MP*)
  15254. if test -d /usr/nec; then
  15255. version_type=linux # correct to gnu/linux during the next big refactor
  15256. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15257. soname_spec='$libname$shared_ext.$major'
  15258. shlibpath_var=LD_LIBRARY_PATH
  15259. fi
  15260. ;;
  15261. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15262. version_type=sco
  15263. need_lib_prefix=no
  15264. need_version=no
  15265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15266. soname_spec='$libname$release$shared_ext$major'
  15267. shlibpath_var=LD_LIBRARY_PATH
  15268. shlibpath_overrides_runpath=yes
  15269. hardcode_into_libs=yes
  15270. if test yes = "$with_gnu_ld"; then
  15271. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15272. else
  15273. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15274. case $host_os in
  15275. sco3.2v5*)
  15276. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15277. ;;
  15278. esac
  15279. fi
  15280. sys_lib_dlsearch_path_spec='/usr/lib'
  15281. ;;
  15282. tpf*)
  15283. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15284. version_type=linux # correct to gnu/linux during the next big refactor
  15285. need_lib_prefix=no
  15286. need_version=no
  15287. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15288. shlibpath_var=LD_LIBRARY_PATH
  15289. shlibpath_overrides_runpath=no
  15290. hardcode_into_libs=yes
  15291. ;;
  15292. uts4*)
  15293. version_type=linux # correct to gnu/linux during the next big refactor
  15294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15295. soname_spec='$libname$release$shared_ext$major'
  15296. shlibpath_var=LD_LIBRARY_PATH
  15297. ;;
  15298. *)
  15299. dynamic_linker=no
  15300. ;;
  15301. esac
  15302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15303. printf "%s\n" "$dynamic_linker" >&6; }
  15304. test no = "$dynamic_linker" && can_build_shared=no
  15305. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15306. if test yes = "$GCC"; then
  15307. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15308. fi
  15309. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15310. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15311. fi
  15312. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15313. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15314. fi
  15315. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15316. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15317. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15318. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15319. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15320. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15322. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15323. hardcode_action_CXX=
  15324. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15325. test -n "$runpath_var_CXX" ||
  15326. test yes = "$hardcode_automatic_CXX"; then
  15327. # We can hardcode non-existent directories.
  15328. if test no != "$hardcode_direct_CXX" &&
  15329. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15330. # have to relink, otherwise we might link with an installed library
  15331. # when we should be linking with a yet-to-be-installed one
  15332. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15333. test no != "$hardcode_minus_L_CXX"; then
  15334. # Linking always hardcodes the temporary library directory.
  15335. hardcode_action_CXX=relink
  15336. else
  15337. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15338. hardcode_action_CXX=immediate
  15339. fi
  15340. else
  15341. # We cannot hardcode anything, or else we can only hardcode existing
  15342. # directories.
  15343. hardcode_action_CXX=unsupported
  15344. fi
  15345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15346. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15347. if test relink = "$hardcode_action_CXX" ||
  15348. test yes = "$inherit_rpath_CXX"; then
  15349. # Fast installation is not supported
  15350. enable_fast_install=no
  15351. elif test yes = "$shlibpath_overrides_runpath" ||
  15352. test no = "$enable_shared"; then
  15353. # Fast installation is not necessary
  15354. enable_fast_install=needless
  15355. fi
  15356. fi # test -n "$compiler"
  15357. CC=$lt_save_CC
  15358. CFLAGS=$lt_save_CFLAGS
  15359. LDCXX=$LD
  15360. LD=$lt_save_LD
  15361. GCC=$lt_save_GCC
  15362. with_gnu_ld=$lt_save_with_gnu_ld
  15363. lt_cv_path_LDCXX=$lt_cv_path_LD
  15364. lt_cv_path_LD=$lt_save_path_LD
  15365. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15366. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15367. fi # test yes != "$_lt_caught_CXX_error"
  15368. ac_ext=c
  15369. ac_cpp='$CPP $CPPFLAGS'
  15370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15374. printf %s "checking for egrep... " >&6; }
  15375. if test ${ac_cv_path_EGREP+y}
  15376. then :
  15377. printf %s "(cached) " >&6
  15378. else $as_nop
  15379. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15380. then ac_cv_path_EGREP="$GREP -E"
  15381. else
  15382. if test -z "$EGREP"; then
  15383. ac_path_EGREP_found=false
  15384. # Loop through the user's path and test for each of PROGNAME-LIST
  15385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15387. do
  15388. IFS=$as_save_IFS
  15389. case $as_dir in #(((
  15390. '') as_dir=./ ;;
  15391. */) ;;
  15392. *) as_dir=$as_dir/ ;;
  15393. esac
  15394. for ac_prog in egrep
  15395. do
  15396. for ac_exec_ext in '' $ac_executable_extensions; do
  15397. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15398. as_fn_executable_p "$ac_path_EGREP" || continue
  15399. # Check for GNU ac_path_EGREP and select it if it is found.
  15400. # Check for GNU $ac_path_EGREP
  15401. case `"$ac_path_EGREP" --version 2>&1` in
  15402. *GNU*)
  15403. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15404. *)
  15405. ac_count=0
  15406. printf %s 0123456789 >"conftest.in"
  15407. while :
  15408. do
  15409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15410. mv "conftest.tmp" "conftest.in"
  15411. cp "conftest.in" "conftest.nl"
  15412. printf "%s\n" 'EGREP' >> "conftest.nl"
  15413. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15416. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15417. # Best one so far, save it but keep looking for a better one
  15418. ac_cv_path_EGREP="$ac_path_EGREP"
  15419. ac_path_EGREP_max=$ac_count
  15420. fi
  15421. # 10*(2^10) chars as input seems more than enough
  15422. test $ac_count -gt 10 && break
  15423. done
  15424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15425. esac
  15426. $ac_path_EGREP_found && break 3
  15427. done
  15428. done
  15429. done
  15430. IFS=$as_save_IFS
  15431. if test -z "$ac_cv_path_EGREP"; then
  15432. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15433. fi
  15434. else
  15435. ac_cv_path_EGREP=$EGREP
  15436. fi
  15437. fi
  15438. fi
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15440. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15441. EGREP="$ac_cv_path_EGREP"
  15442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15443. printf %s "checking for fgrep... " >&6; }
  15444. if test ${ac_cv_path_FGREP+y}
  15445. then :
  15446. printf %s "(cached) " >&6
  15447. else $as_nop
  15448. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15449. then ac_cv_path_FGREP="$GREP -F"
  15450. else
  15451. if test -z "$FGREP"; then
  15452. ac_path_FGREP_found=false
  15453. # Loop through the user's path and test for each of PROGNAME-LIST
  15454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15455. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15456. do
  15457. IFS=$as_save_IFS
  15458. case $as_dir in #(((
  15459. '') as_dir=./ ;;
  15460. */) ;;
  15461. *) as_dir=$as_dir/ ;;
  15462. esac
  15463. for ac_prog in fgrep
  15464. do
  15465. for ac_exec_ext in '' $ac_executable_extensions; do
  15466. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15467. as_fn_executable_p "$ac_path_FGREP" || continue
  15468. # Check for GNU ac_path_FGREP and select it if it is found.
  15469. # Check for GNU $ac_path_FGREP
  15470. case `"$ac_path_FGREP" --version 2>&1` in
  15471. *GNU*)
  15472. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15473. *)
  15474. ac_count=0
  15475. printf %s 0123456789 >"conftest.in"
  15476. while :
  15477. do
  15478. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15479. mv "conftest.tmp" "conftest.in"
  15480. cp "conftest.in" "conftest.nl"
  15481. printf "%s\n" 'FGREP' >> "conftest.nl"
  15482. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15483. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15484. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15485. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15486. # Best one so far, save it but keep looking for a better one
  15487. ac_cv_path_FGREP="$ac_path_FGREP"
  15488. ac_path_FGREP_max=$ac_count
  15489. fi
  15490. # 10*(2^10) chars as input seems more than enough
  15491. test $ac_count -gt 10 && break
  15492. done
  15493. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15494. esac
  15495. $ac_path_FGREP_found && break 3
  15496. done
  15497. done
  15498. done
  15499. IFS=$as_save_IFS
  15500. if test -z "$ac_cv_path_FGREP"; then
  15501. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15502. fi
  15503. else
  15504. ac_cv_path_FGREP=$FGREP
  15505. fi
  15506. fi
  15507. fi
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15509. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15510. FGREP="$ac_cv_path_FGREP"
  15511. # Find a good install program. We prefer a C program (faster),
  15512. # so one script is as good as another. But avoid the broken or
  15513. # incompatible versions:
  15514. # SysV /etc/install, /usr/sbin/install
  15515. # SunOS /usr/etc/install
  15516. # IRIX /sbin/install
  15517. # AIX /bin/install
  15518. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15519. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15520. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15521. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15522. # OS/2's system install, which has a completely different semantic
  15523. # ./install, which can be erroneously created by make from ./install.sh.
  15524. # Reject install programs that cannot install multiple files.
  15525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15526. printf %s "checking for a BSD-compatible install... " >&6; }
  15527. if test -z "$INSTALL"; then
  15528. if test ${ac_cv_path_install+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else $as_nop
  15532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15533. for as_dir in $PATH
  15534. do
  15535. IFS=$as_save_IFS
  15536. case $as_dir in #(((
  15537. '') as_dir=./ ;;
  15538. */) ;;
  15539. *) as_dir=$as_dir/ ;;
  15540. esac
  15541. # Account for fact that we put trailing slashes in our PATH walk.
  15542. case $as_dir in #((
  15543. ./ | /[cC]/* | \
  15544. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15545. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15546. /usr/ucb/* ) ;;
  15547. *)
  15548. # OSF1 and SCO ODT 3.0 have their own names for install.
  15549. # Don't use installbsd from OSF since it installs stuff as root
  15550. # by default.
  15551. for ac_prog in ginstall scoinst install; do
  15552. for ac_exec_ext in '' $ac_executable_extensions; do
  15553. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15554. if test $ac_prog = install &&
  15555. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15556. # AIX install. It has an incompatible calling convention.
  15557. :
  15558. elif test $ac_prog = install &&
  15559. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15560. # program-specific install script used by HP pwplus--don't use.
  15561. :
  15562. else
  15563. rm -rf conftest.one conftest.two conftest.dir
  15564. echo one > conftest.one
  15565. echo two > conftest.two
  15566. mkdir conftest.dir
  15567. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15568. test -s conftest.one && test -s conftest.two &&
  15569. test -s conftest.dir/conftest.one &&
  15570. test -s conftest.dir/conftest.two
  15571. then
  15572. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15573. break 3
  15574. fi
  15575. fi
  15576. fi
  15577. done
  15578. done
  15579. ;;
  15580. esac
  15581. done
  15582. IFS=$as_save_IFS
  15583. rm -rf conftest.one conftest.two conftest.dir
  15584. fi
  15585. if test ${ac_cv_path_install+y}; then
  15586. INSTALL=$ac_cv_path_install
  15587. else
  15588. # As a last resort, use the slow shell script. Don't cache a
  15589. # value for INSTALL within a source directory, because that will
  15590. # break other packages using the cache if that directory is
  15591. # removed, or if the value is a relative name.
  15592. INSTALL=$ac_install_sh
  15593. fi
  15594. fi
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15596. printf "%s\n" "$INSTALL" >&6; }
  15597. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15598. # It thinks the first close brace ends the variable substitution.
  15599. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15600. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15601. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15603. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15604. set x ${MAKE-make}
  15605. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15606. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15607. then :
  15608. printf %s "(cached) " >&6
  15609. else $as_nop
  15610. cat >conftest.make <<\_ACEOF
  15611. SHELL = /bin/sh
  15612. all:
  15613. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15614. _ACEOF
  15615. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15616. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15617. *@@@%%%=?*=@@@%%%*)
  15618. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15619. *)
  15620. eval ac_cv_prog_make_${ac_make}_set=no;;
  15621. esac
  15622. rm -f conftest.make
  15623. fi
  15624. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15626. printf "%s\n" "yes" >&6; }
  15627. SET_MAKE=
  15628. else
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15630. printf "%s\n" "no" >&6; }
  15631. SET_MAKE="MAKE=${MAKE-make}"
  15632. fi
  15633. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15634. if test -n "$ac_tool_prefix"; then
  15635. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15636. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15638. printf %s "checking for $ac_word... " >&6; }
  15639. if test ${ac_cv_path_PKG_CONFIG+y}
  15640. then :
  15641. printf %s "(cached) " >&6
  15642. else $as_nop
  15643. case $PKG_CONFIG in
  15644. [\\/]* | ?:[\\/]*)
  15645. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15646. ;;
  15647. *)
  15648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15649. for as_dir in $PATH
  15650. do
  15651. IFS=$as_save_IFS
  15652. case $as_dir in #(((
  15653. '') as_dir=./ ;;
  15654. */) ;;
  15655. *) as_dir=$as_dir/ ;;
  15656. esac
  15657. for ac_exec_ext in '' $ac_executable_extensions; do
  15658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15659. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15661. break 2
  15662. fi
  15663. done
  15664. done
  15665. IFS=$as_save_IFS
  15666. ;;
  15667. esac
  15668. fi
  15669. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15670. if test -n "$PKG_CONFIG"; then
  15671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15672. printf "%s\n" "$PKG_CONFIG" >&6; }
  15673. else
  15674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15675. printf "%s\n" "no" >&6; }
  15676. fi
  15677. fi
  15678. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15679. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15680. # Extract the first word of "pkg-config", so it can be a program name with args.
  15681. set dummy pkg-config; ac_word=$2
  15682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15683. printf %s "checking for $ac_word... " >&6; }
  15684. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15685. then :
  15686. printf %s "(cached) " >&6
  15687. else $as_nop
  15688. case $ac_pt_PKG_CONFIG in
  15689. [\\/]* | ?:[\\/]*)
  15690. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15691. ;;
  15692. *)
  15693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15694. for as_dir in $PATH
  15695. do
  15696. IFS=$as_save_IFS
  15697. case $as_dir in #(((
  15698. '') as_dir=./ ;;
  15699. */) ;;
  15700. *) as_dir=$as_dir/ ;;
  15701. esac
  15702. for ac_exec_ext in '' $ac_executable_extensions; do
  15703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15704. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15706. break 2
  15707. fi
  15708. done
  15709. done
  15710. IFS=$as_save_IFS
  15711. ;;
  15712. esac
  15713. fi
  15714. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15715. if test -n "$ac_pt_PKG_CONFIG"; then
  15716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15717. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15718. else
  15719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15720. printf "%s\n" "no" >&6; }
  15721. fi
  15722. if test "x$ac_pt_PKG_CONFIG" = x; then
  15723. PKG_CONFIG=""
  15724. else
  15725. case $cross_compiling:$ac_tool_warned in
  15726. yes:)
  15727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15728. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15729. ac_tool_warned=yes ;;
  15730. esac
  15731. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15732. fi
  15733. else
  15734. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15735. fi
  15736. fi
  15737. if test -n "$PKG_CONFIG"; then
  15738. _pkg_min_version=0.9.0
  15739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15740. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15741. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15743. printf "%s\n" "yes" >&6; }
  15744. else
  15745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15746. printf "%s\n" "no" >&6; }
  15747. PKG_CONFIG=""
  15748. fi
  15749. fi
  15750. if test -z "$AWK" ; then
  15751. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15752. fi
  15753. for ac_prog in gsort sort
  15754. do
  15755. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15756. set dummy $ac_prog; ac_word=$2
  15757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15758. printf %s "checking for $ac_word... " >&6; }
  15759. if test ${ac_cv_prog_SORT+y}
  15760. then :
  15761. printf %s "(cached) " >&6
  15762. else $as_nop
  15763. if test -n "$SORT"; then
  15764. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15765. else
  15766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15767. for as_dir in $PATH
  15768. do
  15769. IFS=$as_save_IFS
  15770. case $as_dir in #(((
  15771. '') as_dir=./ ;;
  15772. */) ;;
  15773. *) as_dir=$as_dir/ ;;
  15774. esac
  15775. for ac_exec_ext in '' $ac_executable_extensions; do
  15776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15777. ac_cv_prog_SORT="$ac_prog"
  15778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15779. break 2
  15780. fi
  15781. done
  15782. done
  15783. IFS=$as_save_IFS
  15784. fi
  15785. fi
  15786. SORT=$ac_cv_prog_SORT
  15787. if test -n "$SORT"; then
  15788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15789. printf "%s\n" "$SORT" >&6; }
  15790. else
  15791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15792. printf "%s\n" "no" >&6; }
  15793. fi
  15794. test -n "$SORT" && break
  15795. done
  15796. test -n "$SORT" || SORT="false"
  15797. if ! "$SORT" -V </dev/null >/dev/null
  15798. then :
  15799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15800. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15801. fi
  15802. # Check whether --enable-largefile was given.
  15803. if test ${enable_largefile+y}
  15804. then :
  15805. enableval=$enable_largefile;
  15806. fi
  15807. if test "$enable_largefile" != no; then
  15808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15809. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15810. if test ${ac_cv_sys_largefile_CC+y}
  15811. then :
  15812. printf %s "(cached) " >&6
  15813. else $as_nop
  15814. ac_cv_sys_largefile_CC=no
  15815. if test "$GCC" != yes; then
  15816. ac_save_CC=$CC
  15817. while :; do
  15818. # IRIX 6.2 and later do not support large files by default,
  15819. # so use the C compiler's -n32 option if that helps.
  15820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15821. /* end confdefs.h. */
  15822. #include <sys/types.h>
  15823. /* Check that off_t can represent 2**63 - 1 correctly.
  15824. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15825. since some C++ compilers masquerading as C compilers
  15826. incorrectly reject 9223372036854775807. */
  15827. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15828. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15829. && LARGE_OFF_T % 2147483647 == 1)
  15830. ? 1 : -1];
  15831. int
  15832. main (void)
  15833. {
  15834. ;
  15835. return 0;
  15836. }
  15837. _ACEOF
  15838. if ac_fn_c_try_compile "$LINENO"
  15839. then :
  15840. break
  15841. fi
  15842. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15843. CC="$CC -n32"
  15844. if ac_fn_c_try_compile "$LINENO"
  15845. then :
  15846. ac_cv_sys_largefile_CC=' -n32'; break
  15847. fi
  15848. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15849. break
  15850. done
  15851. CC=$ac_save_CC
  15852. rm -f conftest.$ac_ext
  15853. fi
  15854. fi
  15855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15856. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15857. if test "$ac_cv_sys_largefile_CC" != no; then
  15858. CC=$CC$ac_cv_sys_largefile_CC
  15859. fi
  15860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15861. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15862. if test ${ac_cv_sys_file_offset_bits+y}
  15863. then :
  15864. printf %s "(cached) " >&6
  15865. else $as_nop
  15866. while :; do
  15867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15868. /* end confdefs.h. */
  15869. #include <sys/types.h>
  15870. /* Check that off_t can represent 2**63 - 1 correctly.
  15871. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15872. since some C++ compilers masquerading as C compilers
  15873. incorrectly reject 9223372036854775807. */
  15874. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15875. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15876. && LARGE_OFF_T % 2147483647 == 1)
  15877. ? 1 : -1];
  15878. int
  15879. main (void)
  15880. {
  15881. ;
  15882. return 0;
  15883. }
  15884. _ACEOF
  15885. if ac_fn_c_try_compile "$LINENO"
  15886. then :
  15887. ac_cv_sys_file_offset_bits=no; break
  15888. fi
  15889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15891. /* end confdefs.h. */
  15892. #define _FILE_OFFSET_BITS 64
  15893. #include <sys/types.h>
  15894. /* Check that off_t can represent 2**63 - 1 correctly.
  15895. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15896. since some C++ compilers masquerading as C compilers
  15897. incorrectly reject 9223372036854775807. */
  15898. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15899. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15900. && LARGE_OFF_T % 2147483647 == 1)
  15901. ? 1 : -1];
  15902. int
  15903. main (void)
  15904. {
  15905. ;
  15906. return 0;
  15907. }
  15908. _ACEOF
  15909. if ac_fn_c_try_compile "$LINENO"
  15910. then :
  15911. ac_cv_sys_file_offset_bits=64; break
  15912. fi
  15913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15914. ac_cv_sys_file_offset_bits=unknown
  15915. break
  15916. done
  15917. fi
  15918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15919. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15920. case $ac_cv_sys_file_offset_bits in #(
  15921. no | unknown) ;;
  15922. *)
  15923. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15924. ;;
  15925. esac
  15926. rm -rf conftest*
  15927. if test $ac_cv_sys_file_offset_bits = unknown; then
  15928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15929. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15930. if test ${ac_cv_sys_large_files+y}
  15931. then :
  15932. printf %s "(cached) " >&6
  15933. else $as_nop
  15934. while :; do
  15935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15936. /* end confdefs.h. */
  15937. #include <sys/types.h>
  15938. /* Check that off_t can represent 2**63 - 1 correctly.
  15939. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15940. since some C++ compilers masquerading as C compilers
  15941. incorrectly reject 9223372036854775807. */
  15942. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15943. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15944. && LARGE_OFF_T % 2147483647 == 1)
  15945. ? 1 : -1];
  15946. int
  15947. main (void)
  15948. {
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_compile "$LINENO"
  15954. then :
  15955. ac_cv_sys_large_files=no; break
  15956. fi
  15957. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15959. /* end confdefs.h. */
  15960. #define _LARGE_FILES 1
  15961. #include <sys/types.h>
  15962. /* Check that off_t can represent 2**63 - 1 correctly.
  15963. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15964. since some C++ compilers masquerading as C compilers
  15965. incorrectly reject 9223372036854775807. */
  15966. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15967. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15968. && LARGE_OFF_T % 2147483647 == 1)
  15969. ? 1 : -1];
  15970. int
  15971. main (void)
  15972. {
  15973. ;
  15974. return 0;
  15975. }
  15976. _ACEOF
  15977. if ac_fn_c_try_compile "$LINENO"
  15978. then :
  15979. ac_cv_sys_large_files=1; break
  15980. fi
  15981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15982. ac_cv_sys_large_files=unknown
  15983. break
  15984. done
  15985. fi
  15986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15987. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15988. case $ac_cv_sys_large_files in #(
  15989. no | unknown) ;;
  15990. *)
  15991. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15992. ;;
  15993. esac
  15994. rm -rf conftest*
  15995. fi
  15996. fi
  15997. case "$host" in
  15998. *-*-mingw*)
  15999. # Except on msys, where make can't handle full pathnames (bug 1972)
  16000. ;;
  16001. *)
  16002. srcdir=`cd $srcdir && pwd`
  16003. ;;
  16004. esac
  16005. INCLUDE="-I$srcdir/include"
  16006. case "$host" in
  16007. *-*-nto-qnx*)
  16008. ;;
  16009. *)
  16010. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  16011. ;;
  16012. esac
  16013. case "$host" in
  16014. *-*-haiku*)
  16015. LINKER='$(CXX)'
  16016. LIBTOOLLINKERTAG='CXX'
  16017. ;;
  16018. *)
  16019. LINKER='$(CC)'
  16020. LIBTOOLLINKERTAG='CC'
  16021. ;;
  16022. esac
  16023. if test x$srcdir != x.; then
  16024. INCLUDE="-Iinclude $INCLUDE"
  16025. elif test -d .git; then
  16026. as_fn_error $? "
  16027. *** When building from a git clone you should configure and build in a
  16028. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  16029. " "$LINENO" 5
  16030. fi
  16031. BASE_CFLAGS=""
  16032. BASE_LDFLAGS=""
  16033. case "$host" in
  16034. *-*-cygwin*)
  16035. # We build SDL on cygwin without the UNIX emulation layer
  16036. save_CFLAGS="$CFLAGS"
  16037. have_no_cygwin=no
  16038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16039. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16040. CFLAGS="$save_CFLAGS -mno-cygwin"
  16041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16042. /* end confdefs.h. */
  16043. int
  16044. main (void)
  16045. {
  16046. ;
  16047. return 0;
  16048. }
  16049. _ACEOF
  16050. if ac_fn_c_try_compile "$LINENO"
  16051. then :
  16052. have_no_cygwin=yes
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16056. printf "%s\n" "$have_no_cygwin" >&6; }
  16057. CFLAGS="$save_CFLAGS"
  16058. if test x$have_no_cygwin = xyes; then
  16059. BASE_CFLAGS="-mno-cygwin"
  16060. BASE_LDFLAGS="-mno-cygwin"
  16061. fi
  16062. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16063. ;;
  16064. esac
  16065. # Uncomment the following line if you want to force SDL and applications
  16066. # built with it to be compiled for a particular architecture.
  16067. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16068. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16069. # The default optimization for SDL is -O3 (Bug #31)
  16070. if test "x$orig_CFLAGS" = x; then
  16071. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16072. fi
  16073. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16074. BUILD_LDFLAGS="$LDFLAGS"
  16075. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16076. ## These are common directories to find software packages
  16077. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16078. # if test -d $path/include; then
  16079. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16080. # fi
  16081. # if test -d $path/lib; then
  16082. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16083. # fi
  16084. #done
  16085. SDL_CFLAGS="$BASE_CFLAGS"
  16086. SDL_LIBS="-lSDL2"
  16087. if test "x$BASE_LDFLAGS" != x; then
  16088. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16089. fi
  16090. if test "x$EXTRA_CFLAGS" != x; then
  16091. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16092. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16093. fi
  16094. if test "x$EXTRA_LDFLAGS" != x; then
  16095. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16096. fi
  16097. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16098. find_lib()
  16099. {
  16100. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16101. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16102. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16103. if test "$cross_compiling" = yes; then
  16104. host_lib_path=""
  16105. else
  16106. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16107. fi
  16108. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16109. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  16110. if test x$lib != x; then
  16111. echo $lib
  16112. return
  16113. fi
  16114. done
  16115. }
  16116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16117. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16118. if test ${ac_cv_c_const+y}
  16119. then :
  16120. printf %s "(cached) " >&6
  16121. else $as_nop
  16122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16123. /* end confdefs.h. */
  16124. int
  16125. main (void)
  16126. {
  16127. #ifndef __cplusplus
  16128. /* Ultrix mips cc rejects this sort of thing. */
  16129. typedef int charset[2];
  16130. const charset cs = { 0, 0 };
  16131. /* SunOS 4.1.1 cc rejects this. */
  16132. char const *const *pcpcc;
  16133. char **ppc;
  16134. /* NEC SVR4.0.2 mips cc rejects this. */
  16135. struct point {int x, y;};
  16136. static struct point const zero = {0,0};
  16137. /* IBM XL C 1.02.0.0 rejects this.
  16138. It does not let you subtract one const X* pointer from another in
  16139. an arm of an if-expression whose if-part is not a constant
  16140. expression */
  16141. const char *g = "string";
  16142. pcpcc = &g + (g ? g-g : 0);
  16143. /* HPUX 7.0 cc rejects these. */
  16144. ++pcpcc;
  16145. ppc = (char**) pcpcc;
  16146. pcpcc = (char const *const *) ppc;
  16147. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16148. char tx;
  16149. char *t = &tx;
  16150. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16151. *t++ = 0;
  16152. if (s) return 0;
  16153. }
  16154. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16155. int x[] = {25, 17};
  16156. const int *foo = &x[0];
  16157. ++foo;
  16158. }
  16159. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16160. typedef const int *iptr;
  16161. iptr p = 0;
  16162. ++p;
  16163. }
  16164. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16165. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16166. struct s { int j; const int *ap[3]; } bx;
  16167. struct s *b = &bx; b->j = 5;
  16168. }
  16169. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16170. const int foo = 10;
  16171. if (!foo) return 0;
  16172. }
  16173. return !cs[0] && !zero.x;
  16174. #endif
  16175. ;
  16176. return 0;
  16177. }
  16178. _ACEOF
  16179. if ac_fn_c_try_compile "$LINENO"
  16180. then :
  16181. ac_cv_c_const=yes
  16182. else $as_nop
  16183. ac_cv_c_const=no
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16186. fi
  16187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16188. printf "%s\n" "$ac_cv_c_const" >&6; }
  16189. if test $ac_cv_c_const = no; then
  16190. printf "%s\n" "#define const /**/" >>confdefs.h
  16191. fi
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16193. printf %s "checking for inline... " >&6; }
  16194. if test ${ac_cv_c_inline+y}
  16195. then :
  16196. printf %s "(cached) " >&6
  16197. else $as_nop
  16198. ac_cv_c_inline=no
  16199. for ac_kw in inline __inline__ __inline; do
  16200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16201. /* end confdefs.h. */
  16202. #ifndef __cplusplus
  16203. typedef int foo_t;
  16204. static $ac_kw foo_t static_foo (void) {return 0; }
  16205. $ac_kw foo_t foo (void) {return 0; }
  16206. #endif
  16207. _ACEOF
  16208. if ac_fn_c_try_compile "$LINENO"
  16209. then :
  16210. ac_cv_c_inline=$ac_kw
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16213. test "$ac_cv_c_inline" != no && break
  16214. done
  16215. fi
  16216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16217. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16218. case $ac_cv_c_inline in
  16219. inline | yes) ;;
  16220. *)
  16221. case $ac_cv_c_inline in
  16222. no) ac_val=;;
  16223. *) ac_val=$ac_cv_c_inline;;
  16224. esac
  16225. cat >>confdefs.h <<_ACEOF
  16226. #ifndef __cplusplus
  16227. #define inline $ac_val
  16228. #endif
  16229. _ACEOF
  16230. ;;
  16231. esac
  16232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16233. printf %s "checking for working volatile... " >&6; }
  16234. if test ${ac_cv_c_volatile+y}
  16235. then :
  16236. printf %s "(cached) " >&6
  16237. else $as_nop
  16238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16239. /* end confdefs.h. */
  16240. int
  16241. main (void)
  16242. {
  16243. volatile int x;
  16244. int * volatile y = (int *) 0;
  16245. return !x && !y;
  16246. ;
  16247. return 0;
  16248. }
  16249. _ACEOF
  16250. if ac_fn_c_try_compile "$LINENO"
  16251. then :
  16252. ac_cv_c_volatile=yes
  16253. else $as_nop
  16254. ac_cv_c_volatile=no
  16255. fi
  16256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16257. fi
  16258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16259. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16260. if test $ac_cv_c_volatile = no; then
  16261. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16262. fi
  16263. # Check whether --enable-assertions was given.
  16264. if test ${enable_assertions+y}
  16265. then :
  16266. enableval=$enable_assertions;
  16267. else $as_nop
  16268. enable_assertions=auto
  16269. fi
  16270. case "$enable_assertions" in
  16271. auto) # Use optimization settings to determine assertion level
  16272. ;;
  16273. disabled)
  16274. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16275. ;;
  16276. release)
  16277. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16278. ;;
  16279. enabled)
  16280. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16281. ;;
  16282. paranoid)
  16283. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16284. ;;
  16285. *)
  16286. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16287. ;;
  16288. esac
  16289. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16290. # Check whether --enable-dependency-tracking was given.
  16291. if test ${enable_dependency_tracking+y}
  16292. then :
  16293. enableval=$enable_dependency_tracking;
  16294. else $as_nop
  16295. enable_dependency_tracking=yes
  16296. fi
  16297. if test x$enable_dependency_tracking = xyes; then
  16298. have_gcc_mmd_mt=no
  16299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16300. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16302. /* end confdefs.h. */
  16303. #if !defined(__GNUC__) || __GNUC__ < 3
  16304. #error Dependency tracking requires GCC 3.0 or newer
  16305. #endif
  16306. int
  16307. main (void)
  16308. {
  16309. ;
  16310. return 0;
  16311. }
  16312. _ACEOF
  16313. if ac_fn_c_try_compile "$LINENO"
  16314. then :
  16315. have_gcc_mmd_mt=yes
  16316. fi
  16317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16319. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16320. if test x$have_gcc_mmd_mt = xyes; then
  16321. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16322. fi
  16323. fi
  16324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16325. printf %s "checking for linker option --no-undefined... " >&6; }
  16326. have_no_undefined=no
  16327. case "$host" in
  16328. *-*-openbsd*)
  16329. ;;
  16330. *)
  16331. save_LDFLAGS="$LDFLAGS"
  16332. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16334. /* end confdefs.h. */
  16335. int
  16336. main (void)
  16337. {
  16338. ;
  16339. return 0;
  16340. }
  16341. _ACEOF
  16342. if ac_fn_c_try_link "$LINENO"
  16343. then :
  16344. have_no_undefined=yes
  16345. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16346. fi
  16347. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16348. conftest$ac_exeext conftest.$ac_ext
  16349. LDFLAGS="$save_LDFLAGS"
  16350. ;;
  16351. esac
  16352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16353. printf "%s\n" "$have_no_undefined" >&6; }
  16354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16355. printf %s "checking for linker option --dynamicbase... " >&6; }
  16356. have_dynamicbase=no
  16357. case "$host" in
  16358. *)
  16359. save_LDFLAGS="$LDFLAGS"
  16360. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16362. /* end confdefs.h. */
  16363. int
  16364. main (void)
  16365. {
  16366. ;
  16367. return 0;
  16368. }
  16369. _ACEOF
  16370. if ac_fn_c_try_link "$LINENO"
  16371. then :
  16372. have_dynamicbase=yes
  16373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16374. fi
  16375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16376. conftest$ac_exeext conftest.$ac_ext
  16377. LDFLAGS="$save_LDFLAGS"
  16378. ;;
  16379. esac
  16380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16381. printf "%s\n" "$have_dynamicbase" >&6; }
  16382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16383. printf %s "checking for linker option --nxcompat... " >&6; }
  16384. have_nxcompat=no
  16385. case "$host" in
  16386. *)
  16387. save_LDFLAGS="$LDFLAGS"
  16388. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16390. /* end confdefs.h. */
  16391. int
  16392. main (void)
  16393. {
  16394. ;
  16395. return 0;
  16396. }
  16397. _ACEOF
  16398. if ac_fn_c_try_link "$LINENO"
  16399. then :
  16400. have_nxcompat=yes
  16401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16402. fi
  16403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16404. conftest$ac_exeext conftest.$ac_ext
  16405. LDFLAGS="$save_LDFLAGS"
  16406. ;;
  16407. esac
  16408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16409. printf "%s\n" "$have_nxcompat" >&6; }
  16410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16411. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16412. have_high_entropy_va=no
  16413. case "$host" in
  16414. *)
  16415. save_LDFLAGS="$LDFLAGS"
  16416. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16418. /* end confdefs.h. */
  16419. int
  16420. main (void)
  16421. {
  16422. ;
  16423. return 0;
  16424. }
  16425. _ACEOF
  16426. if ac_fn_c_try_link "$LINENO"
  16427. then :
  16428. have_high_entropy_va=yes
  16429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16432. conftest$ac_exeext conftest.$ac_ext
  16433. LDFLAGS="$save_LDFLAGS"
  16434. ;;
  16435. esac
  16436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16437. printf "%s\n" "$have_high_entropy_va" >&6; }
  16438. # Check whether --enable-libc was given.
  16439. if test ${enable_libc+y}
  16440. then :
  16441. enableval=$enable_libc;
  16442. else $as_nop
  16443. enable_libc=yes
  16444. fi
  16445. enable_system_iconv_default=yes
  16446. case "$host" in
  16447. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16448. enable_system_iconv_default=no
  16449. ;;
  16450. esac
  16451. # Check whether --enable-system-iconv was given.
  16452. if test ${enable_system_iconv+y}
  16453. then :
  16454. enableval=$enable_system_iconv;
  16455. else $as_nop
  16456. enable_system_iconv=$enable_system_iconv_default
  16457. fi
  16458. # Check whether --enable-libiconv was given.
  16459. if test ${enable_libiconv+y}
  16460. then :
  16461. enableval=$enable_libiconv;
  16462. else $as_nop
  16463. enable_libiconv=no
  16464. fi
  16465. if test x$enable_libc = xyes; then
  16466. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16467. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16468. if test "x$ac_cv_header_sys_types_h" = xyes
  16469. then :
  16470. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16471. fi
  16472. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16473. if test "x$ac_cv_header_stdio_h" = xyes
  16474. then :
  16475. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16476. fi
  16477. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16478. if test "x$ac_cv_header_stdlib_h" = xyes
  16479. then :
  16480. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16481. fi
  16482. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16483. if test "x$ac_cv_header_stddef_h" = xyes
  16484. then :
  16485. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16486. fi
  16487. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16488. if test "x$ac_cv_header_stdarg_h" = xyes
  16489. then :
  16490. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16491. fi
  16492. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16493. if test "x$ac_cv_header_malloc_h" = xyes
  16494. then :
  16495. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16496. fi
  16497. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16498. if test "x$ac_cv_header_memory_h" = xyes
  16499. then :
  16500. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16501. fi
  16502. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16503. if test "x$ac_cv_header_string_h" = xyes
  16504. then :
  16505. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16506. fi
  16507. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16508. if test "x$ac_cv_header_strings_h" = xyes
  16509. then :
  16510. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16511. fi
  16512. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16513. if test "x$ac_cv_header_wchar_h" = xyes
  16514. then :
  16515. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16516. fi
  16517. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16518. if test "x$ac_cv_header_inttypes_h" = xyes
  16519. then :
  16520. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16521. fi
  16522. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16523. if test "x$ac_cv_header_stdint_h" = xyes
  16524. then :
  16525. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16526. fi
  16527. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16528. if test "x$ac_cv_header_limits_h" = xyes
  16529. then :
  16530. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16531. fi
  16532. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16533. if test "x$ac_cv_header_ctype_h" = xyes
  16534. then :
  16535. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16536. fi
  16537. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16538. if test "x$ac_cv_header_math_h" = xyes
  16539. then :
  16540. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16541. fi
  16542. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16543. if test "x$ac_cv_header_float_h" = xyes
  16544. then :
  16545. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16546. fi
  16547. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16548. if test "x$ac_cv_header_iconv_h" = xyes
  16549. then :
  16550. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16551. fi
  16552. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16553. if test "x$ac_cv_header_signal_h" = xyes
  16554. then :
  16555. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16556. fi
  16557. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16558. if test "x$ac_cv_type_size_t" = xyes
  16559. then :
  16560. else $as_nop
  16561. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16562. fi
  16563. ac_ext=c
  16564. ac_cpp='$CPP $CPPFLAGS'
  16565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16569. printf %s "checking how to run the C preprocessor... " >&6; }
  16570. # On Suns, sometimes $CPP names a directory.
  16571. if test -n "$CPP" && test -d "$CPP"; then
  16572. CPP=
  16573. fi
  16574. if test -z "$CPP"; then
  16575. if test ${ac_cv_prog_CPP+y}
  16576. then :
  16577. printf %s "(cached) " >&6
  16578. else $as_nop
  16579. # Double quotes because $CC needs to be expanded
  16580. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16581. do
  16582. ac_preproc_ok=false
  16583. for ac_c_preproc_warn_flag in '' yes
  16584. do
  16585. # Use a header file that comes with gcc, so configuring glibc
  16586. # with a fresh cross-compiler works.
  16587. # On the NeXT, cc -E runs the code through the compiler's parser,
  16588. # not just through cpp. "Syntax error" is here to catch this case.
  16589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16590. /* end confdefs.h. */
  16591. #include <limits.h>
  16592. Syntax error
  16593. _ACEOF
  16594. if ac_fn_c_try_cpp "$LINENO"
  16595. then :
  16596. else $as_nop
  16597. # Broken: fails on valid input.
  16598. continue
  16599. fi
  16600. rm -f conftest.err conftest.i conftest.$ac_ext
  16601. # OK, works on sane cases. Now check whether nonexistent headers
  16602. # can be detected and how.
  16603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16604. /* end confdefs.h. */
  16605. #include <ac_nonexistent.h>
  16606. _ACEOF
  16607. if ac_fn_c_try_cpp "$LINENO"
  16608. then :
  16609. # Broken: success on invalid input.
  16610. continue
  16611. else $as_nop
  16612. # Passes both tests.
  16613. ac_preproc_ok=:
  16614. break
  16615. fi
  16616. rm -f conftest.err conftest.i conftest.$ac_ext
  16617. done
  16618. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16619. rm -f conftest.i conftest.err conftest.$ac_ext
  16620. if $ac_preproc_ok
  16621. then :
  16622. break
  16623. fi
  16624. done
  16625. ac_cv_prog_CPP=$CPP
  16626. fi
  16627. CPP=$ac_cv_prog_CPP
  16628. else
  16629. ac_cv_prog_CPP=$CPP
  16630. fi
  16631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16632. printf "%s\n" "$CPP" >&6; }
  16633. ac_preproc_ok=false
  16634. for ac_c_preproc_warn_flag in '' yes
  16635. do
  16636. # Use a header file that comes with gcc, so configuring glibc
  16637. # with a fresh cross-compiler works.
  16638. # On the NeXT, cc -E runs the code through the compiler's parser,
  16639. # not just through cpp. "Syntax error" is here to catch this case.
  16640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16641. /* end confdefs.h. */
  16642. #include <limits.h>
  16643. Syntax error
  16644. _ACEOF
  16645. if ac_fn_c_try_cpp "$LINENO"
  16646. then :
  16647. else $as_nop
  16648. # Broken: fails on valid input.
  16649. continue
  16650. fi
  16651. rm -f conftest.err conftest.i conftest.$ac_ext
  16652. # OK, works on sane cases. Now check whether nonexistent headers
  16653. # can be detected and how.
  16654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16655. /* end confdefs.h. */
  16656. #include <ac_nonexistent.h>
  16657. _ACEOF
  16658. if ac_fn_c_try_cpp "$LINENO"
  16659. then :
  16660. # Broken: success on invalid input.
  16661. continue
  16662. else $as_nop
  16663. # Passes both tests.
  16664. ac_preproc_ok=:
  16665. break
  16666. fi
  16667. rm -f conftest.err conftest.i conftest.$ac_ext
  16668. done
  16669. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16670. rm -f conftest.i conftest.err conftest.$ac_ext
  16671. if $ac_preproc_ok
  16672. then :
  16673. else $as_nop
  16674. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16675. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16676. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16677. See \`config.log' for more details" "$LINENO" 5; }
  16678. fi
  16679. ac_ext=c
  16680. ac_cpp='$CPP $CPPFLAGS'
  16681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16685. printf %s "checking for M_PI in math.h... " >&6; }
  16686. if test ${ac_cv_define_M_PI+y}
  16687. then :
  16688. printf %s "(cached) " >&6
  16689. else $as_nop
  16690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. #include <math.h>
  16693. #ifdef M_PI
  16694. YES_IS_DEFINED
  16695. #endif
  16696. _ACEOF
  16697. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16698. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16699. then :
  16700. ac_cv_define_M_PI=yes
  16701. else $as_nop
  16702. ac_cv_define_M_PI=no
  16703. fi
  16704. rm -rf conftest*
  16705. fi
  16706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16707. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16708. if test "$ac_cv_define_M_PI" = "yes" ; then
  16709. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16710. fi
  16711. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16712. # for constant arguments. Useless!
  16713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16714. printf %s "checking for working alloca.h... " >&6; }
  16715. if test ${ac_cv_working_alloca_h+y}
  16716. then :
  16717. printf %s "(cached) " >&6
  16718. else $as_nop
  16719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16720. /* end confdefs.h. */
  16721. #include <alloca.h>
  16722. int
  16723. main (void)
  16724. {
  16725. char *p = (char *) alloca (2 * sizeof (int));
  16726. if (p) return 0;
  16727. ;
  16728. return 0;
  16729. }
  16730. _ACEOF
  16731. if ac_fn_c_try_link "$LINENO"
  16732. then :
  16733. ac_cv_working_alloca_h=yes
  16734. else $as_nop
  16735. ac_cv_working_alloca_h=no
  16736. fi
  16737. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16738. conftest$ac_exeext conftest.$ac_ext
  16739. fi
  16740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16741. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16742. if test $ac_cv_working_alloca_h = yes; then
  16743. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16744. fi
  16745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16746. printf %s "checking for alloca... " >&6; }
  16747. if test ${ac_cv_func_alloca_works+y}
  16748. then :
  16749. printf %s "(cached) " >&6
  16750. else $as_nop
  16751. if test $ac_cv_working_alloca_h = yes; then
  16752. ac_cv_func_alloca_works=yes
  16753. else
  16754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16755. /* end confdefs.h. */
  16756. #include <stdlib.h>
  16757. #include <stddef.h>
  16758. #ifndef alloca
  16759. # ifdef __GNUC__
  16760. # define alloca __builtin_alloca
  16761. # elif defined _MSC_VER
  16762. # include <malloc.h>
  16763. # define alloca _alloca
  16764. # else
  16765. # ifdef __cplusplus
  16766. extern "C"
  16767. # endif
  16768. void *alloca (size_t);
  16769. # endif
  16770. #endif
  16771. int
  16772. main (void)
  16773. {
  16774. char *p = (char *) alloca (1);
  16775. if (p) return 0;
  16776. ;
  16777. return 0;
  16778. }
  16779. _ACEOF
  16780. if ac_fn_c_try_link "$LINENO"
  16781. then :
  16782. ac_cv_func_alloca_works=yes
  16783. else $as_nop
  16784. ac_cv_func_alloca_works=no
  16785. fi
  16786. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16787. conftest$ac_exeext conftest.$ac_ext
  16788. fi
  16789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16790. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16791. fi
  16792. if test $ac_cv_func_alloca_works = yes; then
  16793. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16794. else
  16795. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16796. # that cause trouble. Some versions do not even contain alloca or
  16797. # contain a buggy version. If you still want to use their alloca,
  16798. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16799. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16800. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16802. printf %s "checking stack direction for C alloca... " >&6; }
  16803. if test ${ac_cv_c_stack_direction+y}
  16804. then :
  16805. printf %s "(cached) " >&6
  16806. else $as_nop
  16807. if test "$cross_compiling" = yes
  16808. then :
  16809. ac_cv_c_stack_direction=0
  16810. else $as_nop
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. $ac_includes_default
  16814. int
  16815. find_stack_direction (int *addr, int depth)
  16816. {
  16817. int dir, dummy = 0;
  16818. if (! addr)
  16819. addr = &dummy;
  16820. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16821. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16822. return dir + dummy;
  16823. }
  16824. int
  16825. main (int argc, char **argv)
  16826. {
  16827. return find_stack_direction (0, argc + !argv + 20) < 0;
  16828. }
  16829. _ACEOF
  16830. if ac_fn_c_try_run "$LINENO"
  16831. then :
  16832. ac_cv_c_stack_direction=1
  16833. else $as_nop
  16834. ac_cv_c_stack_direction=-1
  16835. fi
  16836. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16837. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16838. fi
  16839. fi
  16840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16841. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16842. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16845. if test "x$ac_cv_func_mprotect" = xyes
  16846. then :
  16847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16848. /* end confdefs.h. */
  16849. #include <sys/types.h>
  16850. #include <sys/mman.h>
  16851. int
  16852. main (void)
  16853. {
  16854. ;
  16855. return 0;
  16856. }
  16857. _ACEOF
  16858. if ac_fn_c_try_compile "$LINENO"
  16859. then :
  16860. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16865. if test "x$ac_cv_func_malloc" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16870. if test "x$ac_cv_func_calloc" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16875. if test "x$ac_cv_func_realloc" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16880. if test "x$ac_cv_func_free" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16885. if test "x$ac_cv_func_getenv" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16890. if test "x$ac_cv_func_setenv" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16895. if test "x$ac_cv_func_putenv" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16900. if test "x$ac_cv_func_unsetenv" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16905. if test "x$ac_cv_func_bsearch" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16910. if test "x$ac_cv_func_qsort" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16915. if test "x$ac_cv_func_abs" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16920. if test "x$ac_cv_func_bcopy" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16925. if test "x$ac_cv_func_memset" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16930. if test "x$ac_cv_func_memcmp" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16935. if test "x$ac_cv_func_memcpy" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16940. if test "x$ac_cv_func_memmove" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16945. if test "x$ac_cv_func_wcslen" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16950. if test "x$ac_cv_func_wcslcpy" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16955. if test "x$ac_cv_func_wcslcat" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16960. if test "x$ac_cv_func__wcsdup" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16965. if test "x$ac_cv_func_wcsdup" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16970. if test "x$ac_cv_func_wcsstr" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16975. if test "x$ac_cv_func_wcscmp" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16980. if test "x$ac_cv_func_wcsncmp" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16985. if test "x$ac_cv_func_wcscasecmp" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16990. if test "x$ac_cv_func__wcsicmp" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16995. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  17000. if test "x$ac_cv_func__wcsnicmp" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  17005. if test "x$ac_cv_func_strlen" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17010. if test "x$ac_cv_func_strlcpy" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  17015. if test "x$ac_cv_func_strlcat" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  17020. if test "x$ac_cv_func__strrev" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17025. if test "x$ac_cv_func__strupr" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17030. if test "x$ac_cv_func__strlwr" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17035. if test "x$ac_cv_func_index" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17040. if test "x$ac_cv_func_rindex" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17045. if test "x$ac_cv_func_strchr" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17050. if test "x$ac_cv_func_strrchr" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17055. if test "x$ac_cv_func_strstr" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17060. if test "x$ac_cv_func_strtok_r" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17065. if test "x$ac_cv_func_itoa" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17070. if test "x$ac_cv_func__ltoa" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17075. if test "x$ac_cv_func__uitoa" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17080. if test "x$ac_cv_func__ultoa" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17085. if test "x$ac_cv_func_strtod" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17090. if test "x$ac_cv_func_strtol" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17095. if test "x$ac_cv_func_strtoul" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17100. if test "x$ac_cv_func__i64toa" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17105. if test "x$ac_cv_func__ui64toa" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17110. if test "x$ac_cv_func_strtoll" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17115. if test "x$ac_cv_func_strtoull" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17120. if test "x$ac_cv_func_atoi" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17125. if test "x$ac_cv_func_atof" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17130. if test "x$ac_cv_func_strcmp" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17135. if test "x$ac_cv_func_strncmp" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17140. if test "x$ac_cv_func__stricmp" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17145. if test "x$ac_cv_func_strcasecmp" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17150. if test "x$ac_cv_func__strnicmp" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17155. if test "x$ac_cv_func_strncasecmp" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17160. if test "x$ac_cv_func_strcasestr" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17165. if test "x$ac_cv_func_vsscanf" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17170. if test "x$ac_cv_func_vsnprintf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17175. if test "x$ac_cv_func_fopen64" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17180. if test "x$ac_cv_func_fseeko" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17185. if test "x$ac_cv_func_fseeko64" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17190. if test "x$ac_cv_func_sigaction" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
  17195. if test "x$ac_cv_func_sigtimedwait" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17200. if test "x$ac_cv_func_setjmp" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17205. if test "x$ac_cv_func_nanosleep" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17210. if test "x$ac_cv_func_sysconf" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17215. if test "x$ac_cv_func_sysctlbyname" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17220. if test "x$ac_cv_func_getauxval" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17225. if test "x$ac_cv_func_elf_aux_info" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17230. if test "x$ac_cv_func_poll" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17235. if test "x$ac_cv_func_memfd_create" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17240. if test "x$ac_cv_func_posix_fallocate" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17245. if test "x$ac_cv_func__Exit" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17248. fi
  17249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17250. printf %s "checking for pow in -lm... " >&6; }
  17251. if test ${ac_cv_lib_m_pow+y}
  17252. then :
  17253. printf %s "(cached) " >&6
  17254. else $as_nop
  17255. ac_check_lib_save_LIBS=$LIBS
  17256. LIBS="-lm $LIBS"
  17257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17258. /* end confdefs.h. */
  17259. /* Override any GCC internal prototype to avoid an error.
  17260. Use char because int might match the return type of a GCC
  17261. builtin and then its argument prototype would still apply. */
  17262. char pow ();
  17263. int
  17264. main (void)
  17265. {
  17266. return pow ();
  17267. ;
  17268. return 0;
  17269. }
  17270. _ACEOF
  17271. if ac_fn_c_try_link "$LINENO"
  17272. then :
  17273. ac_cv_lib_m_pow=yes
  17274. else $as_nop
  17275. ac_cv_lib_m_pow=no
  17276. fi
  17277. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17278. conftest$ac_exeext conftest.$ac_ext
  17279. LIBS=$ac_check_lib_save_LIBS
  17280. fi
  17281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17282. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17283. if test "x$ac_cv_lib_m_pow" = xyes
  17284. then :
  17285. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17288. if test "x$ac_cv_func_acos" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17293. if test "x$ac_cv_func_acosf" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17298. if test "x$ac_cv_func_asin" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17303. if test "x$ac_cv_func_asinf" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17308. if test "x$ac_cv_func_atan" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17313. if test "x$ac_cv_func_atanf" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17318. if test "x$ac_cv_func_atan2" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17323. if test "x$ac_cv_func_atan2f" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17328. if test "x$ac_cv_func_ceil" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17333. if test "x$ac_cv_func_ceilf" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17338. if test "x$ac_cv_func_copysign" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17343. if test "x$ac_cv_func_copysignf" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17348. if test "x$ac_cv_func_cos" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17353. if test "x$ac_cv_func_cosf" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17358. if test "x$ac_cv_func_exp" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17363. if test "x$ac_cv_func_expf" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17368. if test "x$ac_cv_func_fabs" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17373. if test "x$ac_cv_func_fabsf" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17378. if test "x$ac_cv_func_floor" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17383. if test "x$ac_cv_func_floorf" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17386. fi
  17387. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17388. if test "x$ac_cv_func_trunc" = xyes
  17389. then :
  17390. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17391. fi
  17392. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17393. if test "x$ac_cv_func_truncf" = xyes
  17394. then :
  17395. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17398. if test "x$ac_cv_func_fmod" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17403. if test "x$ac_cv_func_fmodf" = xyes
  17404. then :
  17405. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17406. fi
  17407. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17408. if test "x$ac_cv_func_log" = xyes
  17409. then :
  17410. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17411. fi
  17412. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17413. if test "x$ac_cv_func_logf" = xyes
  17414. then :
  17415. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17416. fi
  17417. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17418. if test "x$ac_cv_func_log10" = xyes
  17419. then :
  17420. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17421. fi
  17422. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17423. if test "x$ac_cv_func_log10f" = xyes
  17424. then :
  17425. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17428. if test "x$ac_cv_func_lround" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17431. fi
  17432. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17433. if test "x$ac_cv_func_lroundf" = xyes
  17434. then :
  17435. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17436. fi
  17437. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17438. if test "x$ac_cv_func_pow" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17441. fi
  17442. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17443. if test "x$ac_cv_func_powf" = xyes
  17444. then :
  17445. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17446. fi
  17447. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17448. if test "x$ac_cv_func_round" = xyes
  17449. then :
  17450. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17451. fi
  17452. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17453. if test "x$ac_cv_func_roundf" = xyes
  17454. then :
  17455. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17456. fi
  17457. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17458. if test "x$ac_cv_func_scalbn" = xyes
  17459. then :
  17460. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17461. fi
  17462. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17463. if test "x$ac_cv_func_scalbnf" = xyes
  17464. then :
  17465. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17466. fi
  17467. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17468. if test "x$ac_cv_func_sin" = xyes
  17469. then :
  17470. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17471. fi
  17472. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17473. if test "x$ac_cv_func_sinf" = xyes
  17474. then :
  17475. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17476. fi
  17477. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17478. if test "x$ac_cv_func_sqrt" = xyes
  17479. then :
  17480. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17481. fi
  17482. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17483. if test "x$ac_cv_func_sqrtf" = xyes
  17484. then :
  17485. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17486. fi
  17487. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17488. if test "x$ac_cv_func_tan" = xyes
  17489. then :
  17490. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17491. fi
  17492. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17493. if test "x$ac_cv_func_tanf" = xyes
  17494. then :
  17495. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17496. fi
  17497. if test x$enable_system_iconv = xyes; then
  17498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17499. printf %s "checking for iconv in libc... " >&6; }
  17500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17501. /* end confdefs.h. */
  17502. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17503. #include <stddef.h>
  17504. #include <iconv.h>
  17505. int
  17506. main (void)
  17507. {
  17508. iconv_open(NULL,NULL);
  17509. ;
  17510. return 0;
  17511. }
  17512. _ACEOF
  17513. if ac_fn_c_try_link "$LINENO"
  17514. then :
  17515. have_libc_iconv=yes
  17516. else $as_nop
  17517. have_libc_iconv=no
  17518. fi
  17519. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17520. conftest$ac_exeext conftest.$ac_ext
  17521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17522. printf "%s\n" "$have_libc_iconv" >&6; }
  17523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17524. printf %s "checking for iconv in libiconv... " >&6; }
  17525. save_LIBS="$LIBS"
  17526. LIBS="$LIBS -liconv"
  17527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17528. /* end confdefs.h. */
  17529. #include <stddef.h>
  17530. #include <iconv.h>
  17531. int
  17532. main (void)
  17533. {
  17534. iconv_open(NULL,NULL);
  17535. ;
  17536. return 0;
  17537. }
  17538. _ACEOF
  17539. if ac_fn_c_try_link "$LINENO"
  17540. then :
  17541. have_libiconv=yes
  17542. else $as_nop
  17543. have_libiconv=no
  17544. fi
  17545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17546. conftest$ac_exeext conftest.$ac_ext
  17547. LIBS="$save_LIBS"
  17548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17549. printf "%s\n" "$have_libiconv" >&6; }
  17550. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17551. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17552. if test x$have_libiconv = xyes; then
  17553. if test x$have_libc_iconv != xyes; then
  17554. use_libiconv=yes
  17555. elif test x$enable_libiconv = xyes; then
  17556. use_libiconv=yes
  17557. fi
  17558. fi
  17559. if test x$use_libiconv = xyes; then
  17560. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17562. echo "-- Using iconv from libiconv"
  17563. else
  17564. echo "-- Using iconv from libc"
  17565. fi
  17566. fi
  17567. fi
  17568. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17569. "
  17570. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17571. then :
  17572. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17573. fi
  17574. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17575. if test "x$ac_cv_header_libunwind_h" = xyes
  17576. then :
  17577. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17578. fi
  17579. fi
  17580. # Check whether --enable-gcc-atomics was given.
  17581. if test ${enable_gcc_atomics+y}
  17582. then :
  17583. enableval=$enable_gcc_atomics;
  17584. else $as_nop
  17585. enable_gcc_atomics=yes
  17586. fi
  17587. if test x$enable_gcc_atomics = xyes; then
  17588. have_gcc_atomics=no
  17589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17590. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17592. /* end confdefs.h. */
  17593. int
  17594. main (void)
  17595. {
  17596. int a;
  17597. void *x, *y, *z;
  17598. __sync_lock_test_and_set(&a, 4);
  17599. __sync_lock_test_and_set(&x, y);
  17600. __sync_fetch_and_add(&a, 1);
  17601. __sync_bool_compare_and_swap(&a, 5, 10);
  17602. __sync_bool_compare_and_swap(&x, y, z);
  17603. ;
  17604. return 0;
  17605. }
  17606. _ACEOF
  17607. if ac_fn_c_try_link "$LINENO"
  17608. then :
  17609. have_gcc_atomics=yes
  17610. fi
  17611. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17612. conftest$ac_exeext conftest.$ac_ext
  17613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17614. printf "%s\n" "$have_gcc_atomics" >&6; }
  17615. if test x$have_gcc_atomics = xyes; then
  17616. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17617. else
  17618. # See if we have the minimum operation needed for GCC atomics
  17619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17620. /* end confdefs.h. */
  17621. int
  17622. main (void)
  17623. {
  17624. int a;
  17625. __sync_lock_test_and_set(&a, 1);
  17626. __sync_lock_release(&a);
  17627. ;
  17628. return 0;
  17629. }
  17630. _ACEOF
  17631. if ac_fn_c_try_link "$LINENO"
  17632. then :
  17633. have_gcc_sync_lock_test_and_set=yes
  17634. fi
  17635. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17636. conftest$ac_exeext conftest.$ac_ext
  17637. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17638. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17639. fi
  17640. fi
  17641. fi
  17642. # Standard C sources
  17643. SOURCES="$SOURCES $srcdir/src/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17648. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17650. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17651. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17653. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17654. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17656. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17658. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17659. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17660. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17661. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17662. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17663. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17664. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17665. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17666. case "$host" in
  17667. *-*-emscripten*)
  17668. default_atomic=no
  17669. ;;
  17670. *)
  17671. default_atomic=yes
  17672. ;;
  17673. esac
  17674. # Check whether --enable-atomic was given.
  17675. if test ${enable_atomic+y}
  17676. then :
  17677. enableval=$enable_atomic;
  17678. else $as_nop
  17679. enable_atomic=$default_atomic
  17680. fi
  17681. if test x$enable_atomic != xyes; then
  17682. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17683. else
  17684. SUMMARY_modules="${SUMMARY_modules} atomic"
  17685. fi
  17686. # Check whether --enable-audio was given.
  17687. if test ${enable_audio+y}
  17688. then :
  17689. enableval=$enable_audio;
  17690. else $as_nop
  17691. enable_audio=yes
  17692. fi
  17693. if test x$enable_audio != xyes; then
  17694. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17695. else
  17696. SUMMARY_modules="${SUMMARY_modules} audio"
  17697. fi
  17698. # Check whether --enable-video was given.
  17699. if test ${enable_video+y}
  17700. then :
  17701. enableval=$enable_video;
  17702. else $as_nop
  17703. enable_video=yes
  17704. fi
  17705. if test x$enable_video != xyes; then
  17706. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17707. else
  17708. SUMMARY_modules="${SUMMARY_modules} video"
  17709. fi
  17710. # Check whether --enable-render was given.
  17711. if test ${enable_render+y}
  17712. then :
  17713. enableval=$enable_render;
  17714. else $as_nop
  17715. enable_render=yes
  17716. fi
  17717. if test x$enable_render != xyes; then
  17718. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17719. else
  17720. SUMMARY_modules="${SUMMARY_modules} render"
  17721. fi
  17722. # Check whether --enable-events was given.
  17723. if test ${enable_events+y}
  17724. then :
  17725. enableval=$enable_events;
  17726. else $as_nop
  17727. enable_events=yes
  17728. fi
  17729. if test x$enable_events != xyes; then
  17730. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17731. else
  17732. SUMMARY_modules="${SUMMARY_modules} events"
  17733. fi
  17734. # Check whether --enable-joystick was given.
  17735. if test ${enable_joystick+y}
  17736. then :
  17737. enableval=$enable_joystick;
  17738. else $as_nop
  17739. enable_joystick=yes
  17740. fi
  17741. if test x$enable_joystick != xyes; then
  17742. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17743. else
  17744. SUMMARY_modules="${SUMMARY_modules} joystick"
  17745. fi
  17746. # Check whether --enable-haptic was given.
  17747. if test ${enable_haptic+y}
  17748. then :
  17749. enableval=$enable_haptic;
  17750. else $as_nop
  17751. enable_haptic=yes
  17752. fi
  17753. if test x$enable_haptic != xyes; then
  17754. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17755. else
  17756. SUMMARY_modules="${SUMMARY_modules} haptic"
  17757. fi
  17758. # Check whether --enable-hidapi was given.
  17759. if test ${enable_hidapi+y}
  17760. then :
  17761. enableval=$enable_hidapi;
  17762. else $as_nop
  17763. enable_hidapi=yes
  17764. fi
  17765. if test x$enable_hidapi != xyes; then
  17766. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17767. else
  17768. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17769. fi
  17770. # Check whether --enable-sensor was given.
  17771. if test ${enable_sensor+y}
  17772. then :
  17773. enableval=$enable_sensor;
  17774. else $as_nop
  17775. enable_sensor=yes
  17776. fi
  17777. if test x$enable_sensor != xyes; then
  17778. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17779. else
  17780. SUMMARY_modules="${SUMMARY_modules} sensor"
  17781. fi
  17782. # Check whether --enable-power was given.
  17783. if test ${enable_power+y}
  17784. then :
  17785. enableval=$enable_power;
  17786. else $as_nop
  17787. enable_power=yes
  17788. fi
  17789. if test x$enable_power != xyes; then
  17790. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17791. else
  17792. SUMMARY_modules="${SUMMARY_modules} power"
  17793. fi
  17794. # Check whether --enable-filesystem was given.
  17795. if test ${enable_filesystem+y}
  17796. then :
  17797. enableval=$enable_filesystem;
  17798. else $as_nop
  17799. enable_filesystem=yes
  17800. fi
  17801. if test x$enable_filesystem != xyes; then
  17802. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17803. else
  17804. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17805. fi
  17806. # Many subsystems depend on threads, so leave them enabled by default
  17807. #AC_ARG_ENABLE(threads,
  17808. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17809. # , enable_threads=yes)
  17810. enable_threads=yes
  17811. if test x$enable_threads != xyes; then
  17812. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17813. else
  17814. SUMMARY_modules="${SUMMARY_modules} threads"
  17815. fi
  17816. # Check whether --enable-timers was given.
  17817. if test ${enable_timers+y}
  17818. then :
  17819. enableval=$enable_timers;
  17820. else $as_nop
  17821. enable_timers=yes
  17822. fi
  17823. if test x$enable_timers != xyes; then
  17824. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17825. else
  17826. SUMMARY_modules="${SUMMARY_modules} timers"
  17827. fi
  17828. # Check whether --enable-file was given.
  17829. if test ${enable_file+y}
  17830. then :
  17831. enableval=$enable_file;
  17832. else $as_nop
  17833. enable_file=yes
  17834. fi
  17835. if test x$enable_file != xyes; then
  17836. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17837. else
  17838. SUMMARY_modules="${SUMMARY_modules} file"
  17839. fi
  17840. # Check whether --enable-misc was given.
  17841. if test ${enable_misc+y}
  17842. then :
  17843. enableval=$enable_misc;
  17844. else $as_nop
  17845. enable_misc=yes
  17846. fi
  17847. if test x$enable_misc != xyes; then
  17848. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17849. else
  17850. SUMMARY_modules="${SUMMARY_modules} misc"
  17851. fi
  17852. # Check whether --enable-locale was given.
  17853. if test ${enable_locale+y}
  17854. then :
  17855. enableval=$enable_locale;
  17856. else $as_nop
  17857. enable_locale=yes
  17858. fi
  17859. if test x$enable_locale != xyes; then
  17860. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17861. else
  17862. SUMMARY_modules="${SUMMARY_modules} locale"
  17863. fi
  17864. # Check whether --enable-loadso was given.
  17865. if test ${enable_loadso+y}
  17866. then :
  17867. enableval=$enable_loadso;
  17868. else $as_nop
  17869. enable_loadso=yes
  17870. fi
  17871. if test x$enable_loadso != xyes; then
  17872. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17873. else
  17874. SUMMARY_modules="${SUMMARY_modules} loadso"
  17875. fi
  17876. # Check whether --enable-cpuinfo was given.
  17877. if test ${enable_cpuinfo+y}
  17878. then :
  17879. enableval=$enable_cpuinfo;
  17880. else $as_nop
  17881. enable_cpuinfo=yes
  17882. fi
  17883. if test x$enable_cpuinfo != xyes; then
  17884. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17885. else
  17886. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17887. fi
  17888. # Check whether --enable-assembly was given.
  17889. if test ${enable_assembly+y}
  17890. then :
  17891. enableval=$enable_assembly;
  17892. else $as_nop
  17893. enable_assembly=yes
  17894. fi
  17895. if test x$enable_assembly = xyes; then
  17896. SUMMARY_modules="${SUMMARY_modules} assembly"
  17897. # Make sure that we don't generate floating point code that would
  17898. # cause illegal instruction exceptions on older processors
  17899. case "$host" in
  17900. *-*-darwin*)
  17901. # Don't need to worry about Apple hardware, it's all SSE capable
  17902. default_ssemath=yes
  17903. ;;
  17904. *64-*-*)
  17905. # x86 64-bit architectures all have SSE instructions
  17906. default_ssemath=yes
  17907. ;;
  17908. *)
  17909. default_ssemath=no
  17910. ;;
  17911. esac
  17912. # Check whether --enable-ssemath was given.
  17913. if test ${enable_ssemath+y}
  17914. then :
  17915. enableval=$enable_ssemath;
  17916. else $as_nop
  17917. enable_ssemath=$default_ssemath
  17918. fi
  17919. if test x$enable_ssemath = xno; then
  17920. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17921. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17922. fi
  17923. fi
  17924. # Check whether --enable-mmx was given.
  17925. if test ${enable_mmx+y}
  17926. then :
  17927. enableval=$enable_mmx;
  17928. else $as_nop
  17929. enable_mmx=yes
  17930. fi
  17931. if test x$enable_mmx = xyes; then
  17932. save_CFLAGS="$CFLAGS"
  17933. have_gcc_mmx=no
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17935. printf %s "checking for GCC -mmmx option... " >&6; }
  17936. mmx_CFLAGS="-mmmx"
  17937. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17939. /* end confdefs.h. */
  17940. #ifdef __MINGW32__
  17941. #include <_mingw.h>
  17942. #ifdef __MINGW64_VERSION_MAJOR
  17943. #include <intrin.h>
  17944. #else
  17945. #include <mmintrin.h>
  17946. #endif
  17947. #else
  17948. #include <mmintrin.h>
  17949. #endif
  17950. #ifndef __MMX__
  17951. #error Assembler CPP flag not enabled
  17952. #endif
  17953. int
  17954. main (void)
  17955. {
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. if ac_fn_c_try_compile "$LINENO"
  17961. then :
  17962. have_gcc_mmx=yes
  17963. fi
  17964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17966. printf "%s\n" "$have_gcc_mmx" >&6; }
  17967. CFLAGS="$save_CFLAGS"
  17968. if test x$have_gcc_mmx = xyes; then
  17969. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17970. SUMMARY_math="${SUMMARY_math} mmx"
  17971. fi
  17972. fi
  17973. # Check whether --enable-3dnow was given.
  17974. if test ${enable_3dnow+y}
  17975. then :
  17976. enableval=$enable_3dnow;
  17977. else $as_nop
  17978. enable_3dnow=no
  17979. fi
  17980. if test x$enable_3dnow = xyes; then
  17981. save_CFLAGS="$CFLAGS"
  17982. have_gcc_3dnow=no
  17983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17984. printf %s "checking for GCC -m3dnow option... " >&6; }
  17985. amd3dnow_CFLAGS="-m3dnow"
  17986. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17988. /* end confdefs.h. */
  17989. #include <mm3dnow.h>
  17990. #ifndef __3dNOW__
  17991. #error Assembler CPP flag not enabled
  17992. #endif
  17993. int
  17994. main (void)
  17995. {
  17996. void *p = 0;
  17997. _m_prefetch(p);
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_link "$LINENO"
  18003. then :
  18004. have_gcc_3dnow=yes
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18009. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18010. CFLAGS="$save_CFLAGS"
  18011. if test x$have_gcc_3dnow = xyes; then
  18012. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18013. SUMMARY_math="${SUMMARY_math} 3dnow"
  18014. fi
  18015. fi
  18016. # Check whether --enable-sse was given.
  18017. if test ${enable_sse+y}
  18018. then :
  18019. enableval=$enable_sse;
  18020. else $as_nop
  18021. enable_sse=yes
  18022. fi
  18023. if test x$enable_sse = xyes; then
  18024. save_CFLAGS="$CFLAGS"
  18025. have_gcc_sse=no
  18026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18027. printf %s "checking for GCC -msse option... " >&6; }
  18028. sse_CFLAGS="-msse"
  18029. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #ifdef __MINGW32__
  18033. #include <_mingw.h>
  18034. #ifdef __MINGW64_VERSION_MAJOR
  18035. #include <intrin.h>
  18036. #else
  18037. #include <xmmintrin.h>
  18038. #endif
  18039. #else
  18040. #include <xmmintrin.h>
  18041. #endif
  18042. #ifndef __SSE__
  18043. #error Assembler CPP flag not enabled
  18044. #endif
  18045. int
  18046. main (void)
  18047. {
  18048. ;
  18049. return 0;
  18050. }
  18051. _ACEOF
  18052. if ac_fn_c_try_compile "$LINENO"
  18053. then :
  18054. have_gcc_sse=yes
  18055. fi
  18056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18058. printf "%s\n" "$have_gcc_sse" >&6; }
  18059. CFLAGS="$save_CFLAGS"
  18060. if test x$have_gcc_sse = xyes; then
  18061. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18062. SUMMARY_math="${SUMMARY_math} sse"
  18063. fi
  18064. fi
  18065. # Check whether --enable-sse2 was given.
  18066. if test ${enable_sse2+y}
  18067. then :
  18068. enableval=$enable_sse2;
  18069. else $as_nop
  18070. enable_sse2=$default_ssemath
  18071. fi
  18072. if test x$enable_sse2 = xyes; then
  18073. save_CFLAGS="$CFLAGS"
  18074. have_gcc_sse2=no
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18076. printf %s "checking for GCC -msse2 option... " >&6; }
  18077. sse2_CFLAGS="-msse2"
  18078. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18080. /* end confdefs.h. */
  18081. #ifdef __MINGW32__
  18082. #include <_mingw.h>
  18083. #ifdef __MINGW64_VERSION_MAJOR
  18084. #include <intrin.h>
  18085. #else
  18086. #include <emmintrin.h>
  18087. #endif
  18088. #else
  18089. #include <emmintrin.h>
  18090. #endif
  18091. #ifndef __SSE2__
  18092. #error Assembler CPP flag not enabled
  18093. #endif
  18094. int
  18095. main (void)
  18096. {
  18097. ;
  18098. return 0;
  18099. }
  18100. _ACEOF
  18101. if ac_fn_c_try_compile "$LINENO"
  18102. then :
  18103. have_gcc_sse2=yes
  18104. fi
  18105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18107. printf "%s\n" "$have_gcc_sse2" >&6; }
  18108. CFLAGS="$save_CFLAGS"
  18109. if test x$have_gcc_sse2 = xyes; then
  18110. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18111. SUMMARY_math="${SUMMARY_math} sse2"
  18112. fi
  18113. fi
  18114. # Check whether --enable-sse3 was given.
  18115. if test ${enable_sse3+y}
  18116. then :
  18117. enableval=$enable_sse3;
  18118. else $as_nop
  18119. enable_sse3=$default_ssemath
  18120. fi
  18121. if test x$enable_sse3 = xyes; then
  18122. save_CFLAGS="$CFLAGS"
  18123. have_gcc_sse3=no
  18124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18125. printf %s "checking for GCC -msse3 option... " >&6; }
  18126. sse3_CFLAGS="-msse3"
  18127. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18129. /* end confdefs.h. */
  18130. #ifdef __MINGW32__
  18131. #include <_mingw.h>
  18132. #ifdef __MINGW64_VERSION_MAJOR
  18133. #include <intrin.h>
  18134. #else
  18135. #include <pmmintrin.h>
  18136. #endif
  18137. #else
  18138. #include <pmmintrin.h>
  18139. #endif
  18140. #ifndef __SSE2__
  18141. #error Assembler CPP flag not enabled
  18142. #endif
  18143. int
  18144. main (void)
  18145. {
  18146. ;
  18147. return 0;
  18148. }
  18149. _ACEOF
  18150. if ac_fn_c_try_compile "$LINENO"
  18151. then :
  18152. have_gcc_sse3=yes
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18156. printf "%s\n" "$have_gcc_sse3" >&6; }
  18157. CFLAGS="$save_CFLAGS"
  18158. if test x$have_gcc_sse3 = xyes; then
  18159. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18160. SUMMARY_math="${SUMMARY_math} sse3"
  18161. fi
  18162. fi
  18163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18164. printf %s "checking for immintrin.h... " >&6; }
  18165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18166. /* end confdefs.h. */
  18167. #include <immintrin.h>
  18168. int
  18169. main (void)
  18170. {
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_compile "$LINENO"
  18176. then :
  18177. have_immintrin_h_hdr=yes
  18178. else $as_nop
  18179. have_immintrin_h_hdr=no
  18180. fi
  18181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18183. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18184. if test x$have_immintrin_h_hdr = xyes; then
  18185. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18186. fi
  18187. # Check whether --enable-altivec was given.
  18188. if test ${enable_altivec+y}
  18189. then :
  18190. enableval=$enable_altivec;
  18191. else $as_nop
  18192. enable_altivec=yes
  18193. fi
  18194. if test x$enable_altivec = xyes; then
  18195. save_CFLAGS="$CFLAGS"
  18196. have_gcc_altivec=no
  18197. have_altivec_h_hdr=no
  18198. altivec_CFLAGS="-maltivec"
  18199. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18201. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18203. /* end confdefs.h. */
  18204. #include <altivec.h>
  18205. vector unsigned int vzero() {
  18206. return vec_splat_u32(0);
  18207. }
  18208. int
  18209. main (void)
  18210. {
  18211. ;
  18212. return 0;
  18213. }
  18214. _ACEOF
  18215. if ac_fn_c_try_compile "$LINENO"
  18216. then :
  18217. have_gcc_altivec=yes
  18218. have_altivec_h_hdr=yes
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18222. printf "%s\n" "$have_gcc_altivec" >&6; }
  18223. if test x$have_gcc_altivec = xno; then
  18224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18225. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18227. /* end confdefs.h. */
  18228. vector unsigned int vzero() {
  18229. return vec_splat_u32(0);
  18230. }
  18231. int
  18232. main (void)
  18233. {
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. if ac_fn_c_try_compile "$LINENO"
  18239. then :
  18240. have_gcc_altivec=yes
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18244. printf "%s\n" "$have_gcc_altivec" >&6; }
  18245. fi
  18246. if test x$have_gcc_altivec = xno; then
  18247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18248. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18249. altivec_CFLAGS="-faltivec"
  18250. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18252. /* end confdefs.h. */
  18253. #include <altivec.h>
  18254. vector unsigned int vzero() {
  18255. return vec_splat_u32(0);
  18256. }
  18257. int
  18258. main (void)
  18259. {
  18260. ;
  18261. return 0;
  18262. }
  18263. _ACEOF
  18264. if ac_fn_c_try_compile "$LINENO"
  18265. then :
  18266. have_gcc_altivec=yes
  18267. have_altivec_h_hdr=yes
  18268. fi
  18269. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18271. printf "%s\n" "$have_gcc_altivec" >&6; }
  18272. fi
  18273. if test x$have_gcc_altivec = xno; then
  18274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18275. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. /* end confdefs.h. */
  18278. vector unsigned int vzero() {
  18279. return vec_splat_u32(0);
  18280. }
  18281. int
  18282. main (void)
  18283. {
  18284. ;
  18285. return 0;
  18286. }
  18287. _ACEOF
  18288. if ac_fn_c_try_compile "$LINENO"
  18289. then :
  18290. have_gcc_altivec=yes
  18291. fi
  18292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18294. printf "%s\n" "$have_gcc_altivec" >&6; }
  18295. fi
  18296. CFLAGS="$save_CFLAGS"
  18297. if test x$have_gcc_altivec = xyes; then
  18298. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18299. if test x$have_altivec_h_hdr = xyes; then
  18300. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18301. fi
  18302. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18303. SUMMARY_math="${SUMMARY_math} altivec"
  18304. fi
  18305. fi
  18306. fi
  18307. # Check whether --enable-lsx was given.
  18308. if test ${enable_lsx+y}
  18309. then :
  18310. enableval=$enable_lsx;
  18311. else $as_nop
  18312. enable_lsx=yes
  18313. fi
  18314. if test x$enable_lsx = xyes; then
  18315. save_CFLAGS="$CFLAGS"
  18316. have_gcc_lsx=no
  18317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18318. printf %s "checking for GCC -mlsx option... " >&6; }
  18319. lsx_CFLAGS="-mlsx"
  18320. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18322. /* end confdefs.h. */
  18323. #ifndef __loongarch_sx
  18324. #error Assembler CPP flag not enabled
  18325. #endif
  18326. int
  18327. main (void)
  18328. {
  18329. ;
  18330. return 0;
  18331. }
  18332. _ACEOF
  18333. if ac_fn_c_try_compile "$LINENO"
  18334. then :
  18335. have_gcc_lsx=yes
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18339. printf "%s\n" "$have_gcc_lsx" >&6; }
  18340. CFLAGS="$save_CFLAGS"
  18341. if test x$have_gcc_lsx = xyes; then
  18342. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18343. SUMMARY_math="${SUMMARY_math} lsx"
  18344. fi
  18345. fi
  18346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18347. printf %s "checking for lsxintrin.h... " >&6; }
  18348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18349. /* end confdefs.h. */
  18350. #include <lsxintrin.h>
  18351. int
  18352. main (void)
  18353. {
  18354. ;
  18355. return 0;
  18356. }
  18357. _ACEOF
  18358. if ac_fn_c_try_compile "$LINENO"
  18359. then :
  18360. have_lsxintrin_h_hdr=yes
  18361. else $as_nop
  18362. have_lsxintrin_h_hdr=no
  18363. fi
  18364. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18366. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18367. if test x$have_lsxintrin_h_hdr = xyes; then
  18368. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18369. fi
  18370. CheckOSS()
  18371. {
  18372. # Check whether --enable-oss was given.
  18373. if test ${enable_oss+y}
  18374. then :
  18375. enableval=$enable_oss;
  18376. else $as_nop
  18377. enable_oss=maybe
  18378. fi
  18379. if test x$enable_oss = xmaybe; then
  18380. enable_oss=yes
  18381. fi
  18382. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18384. printf %s "checking for OSS audio support... " >&6; }
  18385. have_oss=no
  18386. if test x$have_oss != xyes; then
  18387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18388. /* end confdefs.h. */
  18389. #include <sys/soundcard.h>
  18390. int
  18391. main (void)
  18392. {
  18393. int arg = SNDCTL_DSP_SETFRAGMENT;
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. if ac_fn_c_try_compile "$LINENO"
  18399. then :
  18400. have_oss=yes
  18401. fi
  18402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18403. fi
  18404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18405. printf "%s\n" "$have_oss" >&6; }
  18406. if test x$have_oss = xyes; then
  18407. SUMMARY_audio="${SUMMARY_audio} oss"
  18408. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18409. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18410. have_audio=yes
  18411. # We may need to link with ossaudio emulation library
  18412. case "$host" in
  18413. *-*-netbsd*)
  18414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18415. esac
  18416. fi
  18417. fi
  18418. }
  18419. CheckALSA()
  18420. {
  18421. # Check whether --enable-alsa was given.
  18422. if test ${enable_alsa+y}
  18423. then :
  18424. enableval=$enable_alsa;
  18425. else $as_nop
  18426. enable_alsa=yes
  18427. fi
  18428. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18429. alsa_save_CFLAGS="$CFLAGS"
  18430. alsa_save_LDFLAGS="$LDFLAGS"
  18431. alsa_save_LIBS="$LIBS"
  18432. alsa_found=yes
  18433. # Check whether --with-alsa-prefix was given.
  18434. if test ${with_alsa_prefix+y}
  18435. then :
  18436. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18437. else $as_nop
  18438. alsa_prefix=""
  18439. fi
  18440. # Check whether --with-alsa-inc-prefix was given.
  18441. if test ${with_alsa_inc_prefix+y}
  18442. then :
  18443. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18444. else $as_nop
  18445. alsa_inc_prefix=""
  18446. fi
  18447. # Check whether --enable-alsatest was given.
  18448. if test ${enable_alsatest+y}
  18449. then :
  18450. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18451. else $as_nop
  18452. enable_alsatest=yes
  18453. fi
  18454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18455. printf %s "checking for ALSA CFLAGS... " >&6; }
  18456. if test "$alsa_inc_prefix" != "" ; then
  18457. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18458. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18459. fi
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18461. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18463. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18464. if test "$alsa_prefix" != "" ; then
  18465. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18466. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18467. fi
  18468. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18469. LIBS=`echo $LIBS | sed 's/-lm//'`
  18470. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18471. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18472. LIBS=`echo $LIBS | sed 's/ //'`
  18473. LIBS="$ALSA_LIBS $LIBS"
  18474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18475. printf "%s\n" "$ALSA_LIBS" >&6; }
  18476. min_alsa_version=1.0.11
  18477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18478. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18479. no_alsa=""
  18480. alsa_min_major_version=`echo $min_alsa_version | \
  18481. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18482. alsa_min_minor_version=`echo $min_alsa_version | \
  18483. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18484. alsa_min_micro_version=`echo $min_alsa_version | \
  18485. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18486. ac_ext=c
  18487. ac_cpp='$CPP $CPPFLAGS'
  18488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18492. /* end confdefs.h. */
  18493. #include <alsa/asoundlib.h>
  18494. int
  18495. main (void)
  18496. {
  18497. /* ensure backward compatibility */
  18498. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18499. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18500. #endif
  18501. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18502. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18503. #endif
  18504. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18505. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18506. #endif
  18507. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18508. exit(0);
  18509. # else
  18510. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18511. # error not present
  18512. # endif
  18513. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18514. exit(0);
  18515. # else
  18516. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18517. # error not present
  18518. # endif
  18519. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18520. # error not present
  18521. # endif
  18522. # endif
  18523. # endif
  18524. exit(0);
  18525. ;
  18526. return 0;
  18527. }
  18528. _ACEOF
  18529. if ac_fn_c_try_compile "$LINENO"
  18530. then :
  18531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18532. printf "%s\n" "found." >&6; }
  18533. else $as_nop
  18534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18535. printf "%s\n" "not present." >&6; }
  18536. alsa_found=no
  18537. fi
  18538. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18539. ac_ext=c
  18540. ac_cpp='$CPP $CPPFLAGS'
  18541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18544. if test "x$enable_alsatest" = "xyes"; then
  18545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18546. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18547. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18548. then :
  18549. printf %s "(cached) " >&6
  18550. else $as_nop
  18551. ac_check_lib_save_LIBS=$LIBS
  18552. LIBS="-lasound $LIBS"
  18553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18554. /* end confdefs.h. */
  18555. /* Override any GCC internal prototype to avoid an error.
  18556. Use char because int might match the return type of a GCC
  18557. builtin and then its argument prototype would still apply. */
  18558. char snd_ctl_open ();
  18559. int
  18560. main (void)
  18561. {
  18562. return snd_ctl_open ();
  18563. ;
  18564. return 0;
  18565. }
  18566. _ACEOF
  18567. if ac_fn_c_try_link "$LINENO"
  18568. then :
  18569. ac_cv_lib_asound_snd_ctl_open=yes
  18570. else $as_nop
  18571. ac_cv_lib_asound_snd_ctl_open=no
  18572. fi
  18573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18574. conftest$ac_exeext conftest.$ac_ext
  18575. LIBS=$ac_check_lib_save_LIBS
  18576. fi
  18577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18578. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18579. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18580. then :
  18581. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18582. LIBS="-lasound $LIBS"
  18583. else $as_nop
  18584. alsa_found=no
  18585. fi
  18586. fi
  18587. if test "x$alsa_found" = "xyes" ; then
  18588. have_alsa=yes
  18589. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18590. LIBS=`echo $LIBS | sed 's/ //'`
  18591. LIBS="-lasound $LIBS"
  18592. fi
  18593. if test "x$alsa_found" = "xno" ; then
  18594. have_alsa=no
  18595. CFLAGS="$alsa_save_CFLAGS"
  18596. LDFLAGS="$alsa_save_LDFLAGS"
  18597. LIBS="$alsa_save_LIBS"
  18598. ALSA_CFLAGS=""
  18599. ALSA_LIBS=""
  18600. fi
  18601. # Restore all flags from before the ALSA detection runs
  18602. CFLAGS="$alsa_save_CFLAGS"
  18603. LDFLAGS="$alsa_save_LDFLAGS"
  18604. LIBS="$alsa_save_LIBS"
  18605. if test x$have_alsa = xyes; then
  18606. # Check whether --enable-alsa-shared was given.
  18607. if test ${enable_alsa_shared+y}
  18608. then :
  18609. enableval=$enable_alsa_shared;
  18610. else $as_nop
  18611. enable_alsa_shared=yes
  18612. fi
  18613. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18614. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18615. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18616. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18617. if test x$have_loadso != xyes && \
  18618. test x$enable_alsa_shared = xyes; then
  18619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18620. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18621. fi
  18622. if test x$have_loadso = xyes && \
  18623. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18624. echo "-- dynamic libasound -> $alsa_lib"
  18625. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18626. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18627. else
  18628. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18629. SUMMARY_audio="${SUMMARY_audio} alsa"
  18630. fi
  18631. have_audio=yes
  18632. fi
  18633. fi
  18634. }
  18635. CheckJACK()
  18636. {
  18637. # Check whether --enable-jack was given.
  18638. if test ${enable_jack+y}
  18639. then :
  18640. enableval=$enable_jack;
  18641. else $as_nop
  18642. enable_jack=yes
  18643. fi
  18644. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18645. pkg_failed=no
  18646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18647. printf %s "checking for jack >= 0.125... " >&6; }
  18648. if test -n "$JACK_CFLAGS"; then
  18649. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18650. elif test -n "$PKG_CONFIG"; then
  18651. if test -n "$PKG_CONFIG" && \
  18652. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18653. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18654. ac_status=$?
  18655. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18656. test $ac_status = 0; }; then
  18657. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18658. test "x$?" != "x0" && pkg_failed=yes
  18659. else
  18660. pkg_failed=yes
  18661. fi
  18662. else
  18663. pkg_failed=untried
  18664. fi
  18665. if test -n "$JACK_LIBS"; then
  18666. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18667. elif test -n "$PKG_CONFIG"; then
  18668. if test -n "$PKG_CONFIG" && \
  18669. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18670. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18671. ac_status=$?
  18672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18673. test $ac_status = 0; }; then
  18674. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18675. test "x$?" != "x0" && pkg_failed=yes
  18676. else
  18677. pkg_failed=yes
  18678. fi
  18679. else
  18680. pkg_failed=untried
  18681. fi
  18682. if test $pkg_failed = yes; then
  18683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18684. printf "%s\n" "no" >&6; }
  18685. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18686. _pkg_short_errors_supported=yes
  18687. else
  18688. _pkg_short_errors_supported=no
  18689. fi
  18690. if test $_pkg_short_errors_supported = yes; then
  18691. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18692. else
  18693. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18694. fi
  18695. # Put the nasty error message in config.log where it belongs
  18696. echo "$JACK_PKG_ERRORS" >&5
  18697. audio_jack=no
  18698. elif test $pkg_failed = untried; then
  18699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18700. printf "%s\n" "no" >&6; }
  18701. audio_jack=no
  18702. else
  18703. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18704. JACK_LIBS=$pkg_cv_JACK_LIBS
  18705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18706. printf "%s\n" "yes" >&6; }
  18707. audio_jack=yes
  18708. fi
  18709. if test x$audio_jack = xyes; then
  18710. # Check whether --enable-jack-shared was given.
  18711. if test ${enable_jack_shared+y}
  18712. then :
  18713. enableval=$enable_jack_shared;
  18714. else $as_nop
  18715. enable_jack_shared=yes
  18716. fi
  18717. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18718. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18719. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18720. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18721. if test x$have_loadso != xyes && \
  18722. test x$enable_jack_shared = xyes; then
  18723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18724. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18725. fi
  18726. if test x$have_loadso = xyes && \
  18727. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18728. echo "-- dynamic libjack -> $jack_lib"
  18729. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18730. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18731. case "$host" in
  18732. # On Solaris, jack must be linked deferred explicitly
  18733. # to prevent undefined symbol failures.
  18734. *-*-solaris*)
  18735. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18737. esac
  18738. else
  18739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18740. SUMMARY_audio="${SUMMARY_audio} jack"
  18741. fi
  18742. have_audio=yes
  18743. fi
  18744. fi
  18745. }
  18746. CheckESD()
  18747. {
  18748. # Check whether --enable-esd was given.
  18749. if test ${enable_esd+y}
  18750. then :
  18751. enableval=$enable_esd;
  18752. else $as_nop
  18753. enable_esd=yes
  18754. fi
  18755. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18756. pkg_failed=no
  18757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18758. printf %s "checking for esound >= 0.2.8... " >&6; }
  18759. if test -n "$ESD_CFLAGS"; then
  18760. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18761. elif test -n "$PKG_CONFIG"; then
  18762. if test -n "$PKG_CONFIG" && \
  18763. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18764. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18765. ac_status=$?
  18766. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18767. test $ac_status = 0; }; then
  18768. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18769. test "x$?" != "x0" && pkg_failed=yes
  18770. else
  18771. pkg_failed=yes
  18772. fi
  18773. else
  18774. pkg_failed=untried
  18775. fi
  18776. if test -n "$ESD_LIBS"; then
  18777. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18778. elif test -n "$PKG_CONFIG"; then
  18779. if test -n "$PKG_CONFIG" && \
  18780. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18781. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18782. ac_status=$?
  18783. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18784. test $ac_status = 0; }; then
  18785. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18786. test "x$?" != "x0" && pkg_failed=yes
  18787. else
  18788. pkg_failed=yes
  18789. fi
  18790. else
  18791. pkg_failed=untried
  18792. fi
  18793. if test $pkg_failed = yes; then
  18794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18795. printf "%s\n" "no" >&6; }
  18796. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18797. _pkg_short_errors_supported=yes
  18798. else
  18799. _pkg_short_errors_supported=no
  18800. fi
  18801. if test $_pkg_short_errors_supported = yes; then
  18802. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18803. else
  18804. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18805. fi
  18806. # Put the nasty error message in config.log where it belongs
  18807. echo "$ESD_PKG_ERRORS" >&5
  18808. have_esd=no
  18809. elif test $pkg_failed = untried; then
  18810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18811. printf "%s\n" "no" >&6; }
  18812. have_esd=no
  18813. else
  18814. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18815. ESD_LIBS=$pkg_cv_ESD_LIBS
  18816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18817. printf "%s\n" "yes" >&6; }
  18818. have_esd=yes
  18819. fi
  18820. if test x$have_esd = xno; then
  18821. # Check whether --with-esd-prefix was given.
  18822. if test ${with_esd_prefix+y}
  18823. then :
  18824. withval=$with_esd_prefix; esd_prefix="$withval"
  18825. else $as_nop
  18826. esd_prefix=""
  18827. fi
  18828. # Check whether --with-esd-exec-prefix was given.
  18829. if test ${with_esd_exec_prefix+y}
  18830. then :
  18831. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18832. else $as_nop
  18833. esd_exec_prefix=""
  18834. fi
  18835. # Check whether --enable-esdtest was given.
  18836. if test ${enable_esdtest+y}
  18837. then :
  18838. enableval=$enable_esdtest;
  18839. else $as_nop
  18840. enable_esdtest=yes
  18841. fi
  18842. if test x$esd_exec_prefix != x ; then
  18843. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18844. if test x${ESD_CONFIG+set} != xset ; then
  18845. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18846. fi
  18847. fi
  18848. if test x$esd_prefix != x ; then
  18849. esd_args="$esd_args --prefix=$esd_prefix"
  18850. if test x${ESD_CONFIG+set} != xset ; then
  18851. ESD_CONFIG=$esd_prefix/bin/esd-config
  18852. fi
  18853. fi
  18854. # Extract the first word of "esd-config", so it can be a program name with args.
  18855. set dummy esd-config; ac_word=$2
  18856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18857. printf %s "checking for $ac_word... " >&6; }
  18858. if test ${ac_cv_path_ESD_CONFIG+y}
  18859. then :
  18860. printf %s "(cached) " >&6
  18861. else $as_nop
  18862. case $ESD_CONFIG in
  18863. [\\/]* | ?:[\\/]*)
  18864. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18865. ;;
  18866. *)
  18867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18868. for as_dir in $PATH
  18869. do
  18870. IFS=$as_save_IFS
  18871. case $as_dir in #(((
  18872. '') as_dir=./ ;;
  18873. */) ;;
  18874. *) as_dir=$as_dir/ ;;
  18875. esac
  18876. for ac_exec_ext in '' $ac_executable_extensions; do
  18877. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18878. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18880. break 2
  18881. fi
  18882. done
  18883. done
  18884. IFS=$as_save_IFS
  18885. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18886. ;;
  18887. esac
  18888. fi
  18889. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18890. if test -n "$ESD_CONFIG"; then
  18891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18892. printf "%s\n" "$ESD_CONFIG" >&6; }
  18893. else
  18894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18895. printf "%s\n" "no" >&6; }
  18896. fi
  18897. min_esd_version=0.2.8
  18898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18899. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18900. no_esd=""
  18901. if test "$ESD_CONFIG" = "no" ; then
  18902. no_esd=yes
  18903. else
  18904. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18905. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18906. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18907. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18908. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18909. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18910. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18911. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18912. if test "x$enable_esdtest" = "xyes" ; then
  18913. ac_ext=c
  18914. ac_cpp='$CPP $CPPFLAGS'
  18915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18918. ac_save_CFLAGS="$CFLAGS"
  18919. ac_save_LIBS="$LIBS"
  18920. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18921. LIBS="$LIBS $ESD_LIBS"
  18922. rm -f conf.esdtest
  18923. if test "$cross_compiling" = yes
  18924. then :
  18925. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18926. else $as_nop
  18927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18928. /* end confdefs.h. */
  18929. #include <stdio.h>
  18930. #include <stdlib.h>
  18931. #include <esd.h>
  18932. int main (void)
  18933. {
  18934. int major, minor, micro;
  18935. FILE *fp = fopen("conf.esdtest", "w");
  18936. if (fp) fclose(fp);
  18937. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18938. printf("%s, bad version string\n", "$min_esd_version");
  18939. exit(1);
  18940. }
  18941. if (($esd_major_version > major) ||
  18942. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18943. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18944. {
  18945. return 0;
  18946. }
  18947. else
  18948. {
  18949. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18950. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18951. printf("*** best to upgrade to the required version.\n");
  18952. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18953. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18954. printf("*** config.cache before re-running configure\n");
  18955. return 1;
  18956. }
  18957. }
  18958. _ACEOF
  18959. if ac_fn_c_try_run "$LINENO"
  18960. then :
  18961. else $as_nop
  18962. no_esd=yes
  18963. fi
  18964. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18965. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18966. fi
  18967. CFLAGS="$ac_save_CFLAGS"
  18968. LIBS="$ac_save_LIBS"
  18969. ac_ext=c
  18970. ac_cpp='$CPP $CPPFLAGS'
  18971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18974. fi
  18975. fi
  18976. if test "x$no_esd" = x ; then
  18977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18978. printf "%s\n" "yes" >&6; }
  18979. have_esd=yes
  18980. else
  18981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18982. printf "%s\n" "no" >&6; }
  18983. if test "$ESD_CONFIG" = "no" ; then
  18984. :
  18985. else
  18986. if test -f conf.esdtest ; then
  18987. :
  18988. else
  18989. echo "*** Could not run ESD test program, checking why..."
  18990. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18991. LIBS="$LIBS $ESD_LIBS"
  18992. ac_ext=c
  18993. ac_cpp='$CPP $CPPFLAGS'
  18994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18998. /* end confdefs.h. */
  18999. #include <stdio.h>
  19000. #include <esd.h>
  19001. int
  19002. main (void)
  19003. {
  19004. return 0;
  19005. ;
  19006. return 0;
  19007. }
  19008. _ACEOF
  19009. if ac_fn_c_try_link "$LINENO"
  19010. then :
  19011. echo "*** The test program compiled, but did not run. This usually means"
  19012. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19013. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19014. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19015. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19016. echo "*** is required on your system"
  19017. echo "***"
  19018. echo "*** If you have an old version installed, it is best to remove it, although"
  19019. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19020. else $as_nop
  19021. echo "*** The test program failed to compile or link. See the file config.log for the"
  19022. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19023. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19024. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19025. fi
  19026. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19027. conftest$ac_exeext conftest.$ac_ext
  19028. CFLAGS="$ac_save_CFLAGS"
  19029. LIBS="$ac_save_LIBS"
  19030. ac_ext=c
  19031. ac_cpp='$CPP $CPPFLAGS'
  19032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19035. fi
  19036. fi
  19037. ESD_CFLAGS=""
  19038. ESD_LIBS=""
  19039. have_esd=no
  19040. fi
  19041. rm -f conf.esdtest
  19042. fi
  19043. if test x$have_esd = xyes; then
  19044. # Check whether --enable-esd-shared was given.
  19045. if test ${enable_esd_shared+y}
  19046. then :
  19047. enableval=$enable_esd_shared;
  19048. else $as_nop
  19049. enable_esd_shared=yes
  19050. fi
  19051. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19052. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19053. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19054. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19055. if test x$have_loadso != xyes && \
  19056. test x$enable_esd_shared = xyes; then
  19057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19058. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19059. fi
  19060. if test x$have_loadso = xyes && \
  19061. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19062. echo "-- dynamic libesd -> $esd_lib"
  19063. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19064. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19065. else
  19066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19067. SUMMARY_audio="${SUMMARY_audio} esd"
  19068. fi
  19069. have_audio=yes
  19070. fi
  19071. fi
  19072. }
  19073. CheckPipewire()
  19074. {
  19075. # Check whether --enable-pipewire was given.
  19076. if test ${enable_pipewire+y}
  19077. then :
  19078. enableval=$enable_pipewire;
  19079. else $as_nop
  19080. enable_pipewire=yes
  19081. fi
  19082. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19083. pkg_failed=no
  19084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19085. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19086. if test -n "$PIPEWIRE_CFLAGS"; then
  19087. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19088. elif test -n "$PKG_CONFIG"; then
  19089. if test -n "$PKG_CONFIG" && \
  19090. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19091. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19092. ac_status=$?
  19093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19094. test $ac_status = 0; }; then
  19095. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19096. test "x$?" != "x0" && pkg_failed=yes
  19097. else
  19098. pkg_failed=yes
  19099. fi
  19100. else
  19101. pkg_failed=untried
  19102. fi
  19103. if test -n "$PIPEWIRE_LIBS"; then
  19104. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19105. elif test -n "$PKG_CONFIG"; then
  19106. if test -n "$PKG_CONFIG" && \
  19107. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19108. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19109. ac_status=$?
  19110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19111. test $ac_status = 0; }; then
  19112. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19113. test "x$?" != "x0" && pkg_failed=yes
  19114. else
  19115. pkg_failed=yes
  19116. fi
  19117. else
  19118. pkg_failed=untried
  19119. fi
  19120. if test $pkg_failed = yes; then
  19121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19122. printf "%s\n" "no" >&6; }
  19123. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19124. _pkg_short_errors_supported=yes
  19125. else
  19126. _pkg_short_errors_supported=no
  19127. fi
  19128. if test $_pkg_short_errors_supported = yes; then
  19129. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19130. else
  19131. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19132. fi
  19133. # Put the nasty error message in config.log where it belongs
  19134. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19135. audio_pipewire=no
  19136. elif test $pkg_failed = untried; then
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19138. printf "%s\n" "no" >&6; }
  19139. audio_pipewire=no
  19140. else
  19141. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19142. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19144. printf "%s\n" "yes" >&6; }
  19145. audio_pipewire=yes
  19146. fi
  19147. if test x$audio_pipewire = xyes; then
  19148. # Check whether --enable-pipewire-shared was given.
  19149. if test ${enable_pipewire_shared+y}
  19150. then :
  19151. enableval=$enable_pipewire_shared;
  19152. else $as_nop
  19153. enable_pipewire_shared=yes
  19154. fi
  19155. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19156. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19157. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19158. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19159. if test x$have_loadso != xyes && \
  19160. test x$enable_pipewire_shared = xyes; then
  19161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19162. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19163. fi
  19164. if test x$have_loadso = xyes && \
  19165. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19166. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19167. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19168. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19169. else
  19170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19171. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19172. fi
  19173. have_audio=yes
  19174. fi
  19175. fi
  19176. }
  19177. CheckPulseAudio()
  19178. {
  19179. # Check whether --enable-pulseaudio was given.
  19180. if test ${enable_pulseaudio+y}
  19181. then :
  19182. enableval=$enable_pulseaudio;
  19183. else $as_nop
  19184. enable_pulseaudio=yes
  19185. fi
  19186. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19187. pkg_failed=no
  19188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19189. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19190. if test -n "$PULSEAUDIO_CFLAGS"; then
  19191. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19192. elif test -n "$PKG_CONFIG"; then
  19193. if test -n "$PKG_CONFIG" && \
  19194. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19195. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19196. ac_status=$?
  19197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19198. test $ac_status = 0; }; then
  19199. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19200. test "x$?" != "x0" && pkg_failed=yes
  19201. else
  19202. pkg_failed=yes
  19203. fi
  19204. else
  19205. pkg_failed=untried
  19206. fi
  19207. if test -n "$PULSEAUDIO_LIBS"; then
  19208. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19209. elif test -n "$PKG_CONFIG"; then
  19210. if test -n "$PKG_CONFIG" && \
  19211. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19212. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19213. ac_status=$?
  19214. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19215. test $ac_status = 0; }; then
  19216. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19217. test "x$?" != "x0" && pkg_failed=yes
  19218. else
  19219. pkg_failed=yes
  19220. fi
  19221. else
  19222. pkg_failed=untried
  19223. fi
  19224. if test $pkg_failed = yes; then
  19225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19226. printf "%s\n" "no" >&6; }
  19227. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19228. _pkg_short_errors_supported=yes
  19229. else
  19230. _pkg_short_errors_supported=no
  19231. fi
  19232. if test $_pkg_short_errors_supported = yes; then
  19233. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19234. else
  19235. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19236. fi
  19237. # Put the nasty error message in config.log where it belongs
  19238. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19239. audio_pulseaudio=no
  19240. elif test $pkg_failed = untried; then
  19241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19242. printf "%s\n" "no" >&6; }
  19243. audio_pulseaudio=no
  19244. else
  19245. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19246. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19248. printf "%s\n" "yes" >&6; }
  19249. audio_pulseaudio=yes
  19250. fi
  19251. if test x$audio_pulseaudio = xyes; then
  19252. # Check whether --enable-pulseaudio-shared was given.
  19253. if test ${enable_pulseaudio_shared+y}
  19254. then :
  19255. enableval=$enable_pulseaudio_shared;
  19256. else $as_nop
  19257. enable_pulseaudio_shared=yes
  19258. fi
  19259. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19260. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19261. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19262. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19263. if test x$have_loadso != xyes && \
  19264. test x$enable_pulseaudio_shared = xyes; then
  19265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19266. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19267. fi
  19268. if test x$have_loadso = xyes && \
  19269. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19270. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19271. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19272. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19273. case "$host" in
  19274. # On Solaris, pulseaudio must be linked deferred explicitly
  19275. # to prevent undefined symbol failures.
  19276. *-*-solaris*)
  19277. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19279. esac
  19280. else
  19281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19282. SUMMARY_audio="${SUMMARY_audio} pulse"
  19283. fi
  19284. have_audio=yes
  19285. fi
  19286. fi
  19287. }
  19288. CheckARTSC()
  19289. {
  19290. # Check whether --enable-arts was given.
  19291. if test ${enable_arts+y}
  19292. then :
  19293. enableval=$enable_arts;
  19294. else $as_nop
  19295. enable_arts=yes
  19296. fi
  19297. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19298. # Extract the first word of "artsc-config", so it can be a program name with args.
  19299. set dummy artsc-config; ac_word=$2
  19300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19301. printf %s "checking for $ac_word... " >&6; }
  19302. if test ${ac_cv_path_ARTSCONFIG+y}
  19303. then :
  19304. printf %s "(cached) " >&6
  19305. else $as_nop
  19306. case $ARTSCONFIG in
  19307. [\\/]* | ?:[\\/]*)
  19308. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19309. ;;
  19310. *)
  19311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19312. for as_dir in $PATH
  19313. do
  19314. IFS=$as_save_IFS
  19315. case $as_dir in #(((
  19316. '') as_dir=./ ;;
  19317. */) ;;
  19318. *) as_dir=$as_dir/ ;;
  19319. esac
  19320. for ac_exec_ext in '' $ac_executable_extensions; do
  19321. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19322. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19324. break 2
  19325. fi
  19326. done
  19327. done
  19328. IFS=$as_save_IFS
  19329. ;;
  19330. esac
  19331. fi
  19332. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19333. if test -n "$ARTSCONFIG"; then
  19334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19335. printf "%s\n" "$ARTSCONFIG" >&6; }
  19336. else
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19338. printf "%s\n" "no" >&6; }
  19339. fi
  19340. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19341. : # arts isn't installed
  19342. else
  19343. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19344. ARTS_LIBS=`$ARTSCONFIG --libs`
  19345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19346. printf %s "checking for aRts development environment... " >&6; }
  19347. audio_arts=no
  19348. save_CFLAGS="$CFLAGS"
  19349. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19351. /* end confdefs.h. */
  19352. #include <artsc.h>
  19353. int
  19354. main (void)
  19355. {
  19356. arts_stream_t stream;
  19357. ;
  19358. return 0;
  19359. }
  19360. _ACEOF
  19361. if ac_fn_c_try_compile "$LINENO"
  19362. then :
  19363. audio_arts=yes
  19364. fi
  19365. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19366. CFLAGS="$save_CFLAGS"
  19367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19368. printf "%s\n" "$audio_arts" >&6; }
  19369. if test x$audio_arts = xyes; then
  19370. # Check whether --enable-arts-shared was given.
  19371. if test ${enable_arts_shared+y}
  19372. then :
  19373. enableval=$enable_arts_shared;
  19374. else $as_nop
  19375. enable_arts_shared=yes
  19376. fi
  19377. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19378. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19379. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19380. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19381. if test x$have_loadso != xyes && \
  19382. test x$enable_arts_shared = xyes; then
  19383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19384. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19385. fi
  19386. if test x$have_loadso = xyes && \
  19387. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19388. echo "-- dynamic libartsc -> $arts_lib"
  19389. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19390. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19391. else
  19392. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19393. SUMMARY_audio="${SUMMARY_audio} arts"
  19394. fi
  19395. have_audio=yes
  19396. fi
  19397. fi
  19398. fi
  19399. }
  19400. CheckNAS()
  19401. {
  19402. # Check whether --enable-nas was given.
  19403. if test ${enable_nas+y}
  19404. then :
  19405. enableval=$enable_nas;
  19406. else $as_nop
  19407. enable_nas=yes
  19408. fi
  19409. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19410. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19411. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19412. then :
  19413. have_nas_hdr=yes
  19414. fi
  19415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19416. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19417. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19418. then :
  19419. printf %s "(cached) " >&6
  19420. else $as_nop
  19421. ac_check_lib_save_LIBS=$LIBS
  19422. LIBS="-laudio $LIBS"
  19423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19424. /* end confdefs.h. */
  19425. /* Override any GCC internal prototype to avoid an error.
  19426. Use char because int might match the return type of a GCC
  19427. builtin and then its argument prototype would still apply. */
  19428. char AuOpenServer ();
  19429. int
  19430. main (void)
  19431. {
  19432. return AuOpenServer ();
  19433. ;
  19434. return 0;
  19435. }
  19436. _ACEOF
  19437. if ac_fn_c_try_link "$LINENO"
  19438. then :
  19439. ac_cv_lib_audio_AuOpenServer=yes
  19440. else $as_nop
  19441. ac_cv_lib_audio_AuOpenServer=no
  19442. fi
  19443. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19444. conftest$ac_exeext conftest.$ac_ext
  19445. LIBS=$ac_check_lib_save_LIBS
  19446. fi
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19448. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19449. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19450. then :
  19451. have_nas_lib=yes
  19452. fi
  19453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19454. printf %s "checking for NAS audio support... " >&6; }
  19455. have_nas=no
  19456. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19457. have_nas=yes
  19458. NAS_LIBS="-laudio"
  19459. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19460. have_nas=yes
  19461. NAS_CFLAGS="-I/usr/X11R6/include/"
  19462. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19463. fi
  19464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19465. printf "%s\n" "$have_nas" >&6; }
  19466. if test x$have_nas = xyes; then
  19467. # Check whether --enable-nas-shared was given.
  19468. if test ${enable_nas_shared+y}
  19469. then :
  19470. enableval=$enable_nas_shared;
  19471. else $as_nop
  19472. enable_nas_shared=yes
  19473. fi
  19474. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19475. if test x$have_loadso != xyes && \
  19476. test x$enable_nas_shared = xyes; then
  19477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19478. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19479. fi
  19480. if test x$have_loadso = xyes && \
  19481. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19482. echo "-- dynamic libaudio -> $nas_lib"
  19483. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19484. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19485. else
  19486. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19487. SUMMARY_audio="${SUMMARY_audio} nas"
  19488. fi
  19489. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19490. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19491. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19492. have_audio=yes
  19493. fi
  19494. fi
  19495. }
  19496. CheckSNDIO()
  19497. {
  19498. # Check whether --enable-sndio was given.
  19499. if test ${enable_sndio+y}
  19500. then :
  19501. enableval=$enable_sndio;
  19502. else $as_nop
  19503. enable_sndio=yes
  19504. fi
  19505. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19506. pkg_failed=no
  19507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19508. printf %s "checking for sndio... " >&6; }
  19509. if test -n "$SNDIO_CFLAGS"; then
  19510. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19511. elif test -n "$PKG_CONFIG"; then
  19512. if test -n "$PKG_CONFIG" && \
  19513. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19514. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19515. ac_status=$?
  19516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19517. test $ac_status = 0; }; then
  19518. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19519. test "x$?" != "x0" && pkg_failed=yes
  19520. else
  19521. pkg_failed=yes
  19522. fi
  19523. else
  19524. pkg_failed=untried
  19525. fi
  19526. if test -n "$SNDIO_LIBS"; then
  19527. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19528. elif test -n "$PKG_CONFIG"; then
  19529. if test -n "$PKG_CONFIG" && \
  19530. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19531. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19532. ac_status=$?
  19533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19534. test $ac_status = 0; }; then
  19535. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19536. test "x$?" != "x0" && pkg_failed=yes
  19537. else
  19538. pkg_failed=yes
  19539. fi
  19540. else
  19541. pkg_failed=untried
  19542. fi
  19543. if test $pkg_failed = yes; then
  19544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19545. printf "%s\n" "no" >&6; }
  19546. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19547. _pkg_short_errors_supported=yes
  19548. else
  19549. _pkg_short_errors_supported=no
  19550. fi
  19551. if test $_pkg_short_errors_supported = yes; then
  19552. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19553. else
  19554. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19555. fi
  19556. # Put the nasty error message in config.log where it belongs
  19557. echo "$SNDIO_PKG_ERRORS" >&5
  19558. audio_sndio=no
  19559. elif test $pkg_failed = untried; then
  19560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19561. printf "%s\n" "no" >&6; }
  19562. audio_sndio=no
  19563. else
  19564. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19565. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19567. printf "%s\n" "yes" >&6; }
  19568. audio_sndio=yes
  19569. fi
  19570. if test x$audio_sndio = xyes; then
  19571. # Check whether --enable-sndio-shared was given.
  19572. if test ${enable_sndio_shared+y}
  19573. then :
  19574. enableval=$enable_sndio_shared;
  19575. else $as_nop
  19576. enable_sndio_shared=yes
  19577. fi
  19578. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19579. if test x$have_loadso != xyes && \
  19580. test x$enable_sndio_shared = xyes; then
  19581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19582. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19583. fi
  19584. if test x$have_loadso = xyes && \
  19585. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19586. echo "-- dynamic libsndio -> $sndio_lib"
  19587. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19588. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19589. else
  19590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19591. SUMMARY_audio="${SUMMARY_audio} sndio"
  19592. fi
  19593. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19594. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19595. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19596. have_audio=yes
  19597. fi
  19598. fi
  19599. }
  19600. CheckFusionSound()
  19601. {
  19602. # Check whether --enable-fusionsound was given.
  19603. if test ${enable_fusionsound+y}
  19604. then :
  19605. enableval=$enable_fusionsound;
  19606. else $as_nop
  19607. enable_fusionsound=no
  19608. fi
  19609. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19610. pkg_failed=no
  19611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19612. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19613. if test -n "$FUSIONSOUND_CFLAGS"; then
  19614. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19615. elif test -n "$PKG_CONFIG"; then
  19616. if test -n "$PKG_CONFIG" && \
  19617. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19618. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19619. ac_status=$?
  19620. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19621. test $ac_status = 0; }; then
  19622. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19623. test "x$?" != "x0" && pkg_failed=yes
  19624. else
  19625. pkg_failed=yes
  19626. fi
  19627. else
  19628. pkg_failed=untried
  19629. fi
  19630. if test -n "$FUSIONSOUND_LIBS"; then
  19631. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19632. elif test -n "$PKG_CONFIG"; then
  19633. if test -n "$PKG_CONFIG" && \
  19634. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19635. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19636. ac_status=$?
  19637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19638. test $ac_status = 0; }; then
  19639. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19640. test "x$?" != "x0" && pkg_failed=yes
  19641. else
  19642. pkg_failed=yes
  19643. fi
  19644. else
  19645. pkg_failed=untried
  19646. fi
  19647. if test $pkg_failed = yes; then
  19648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19649. printf "%s\n" "no" >&6; }
  19650. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19651. _pkg_short_errors_supported=yes
  19652. else
  19653. _pkg_short_errors_supported=no
  19654. fi
  19655. if test $_pkg_short_errors_supported = yes; then
  19656. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19657. else
  19658. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19659. fi
  19660. # Put the nasty error message in config.log where it belongs
  19661. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19662. fusionsound=no
  19663. elif test $pkg_failed = untried; then
  19664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19665. printf "%s\n" "no" >&6; }
  19666. fusionsound=no
  19667. else
  19668. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19669. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19671. printf "%s\n" "yes" >&6; }
  19672. fusionsound=yes
  19673. fi
  19674. if test x$fusionsound = xyes; then
  19675. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19676. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19677. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19678. # Check whether --enable-fusionsound-shared was given.
  19679. if test ${enable_fusionsound_shared+y}
  19680. then :
  19681. enableval=$enable_fusionsound_shared;
  19682. else $as_nop
  19683. enable_fusionsound_shared=yes
  19684. fi
  19685. fusionsound_shared=no
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19687. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19688. if test x$have_loadso != xyes && \
  19689. test x$enable_fusionsound_shared = xyes; then
  19690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19691. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19692. fi
  19693. if test x$have_loadso = xyes && \
  19694. test x$enable_fusionsound_shared = xyes; then
  19695. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19696. fusionsound_shared=yes
  19697. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19698. else
  19699. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19700. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19701. fi
  19702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19703. printf "%s\n" "$fusionsound_shared" >&6; }
  19704. have_audio=yes
  19705. fi
  19706. fi
  19707. }
  19708. CheckDiskAudio()
  19709. {
  19710. # Check whether --enable-diskaudio was given.
  19711. if test ${enable_diskaudio+y}
  19712. then :
  19713. enableval=$enable_diskaudio;
  19714. else $as_nop
  19715. enable_diskaudio=yes
  19716. fi
  19717. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19718. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19719. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19720. SUMMARY_audio="${SUMMARY_audio} disk"
  19721. have_audio=yes
  19722. fi
  19723. }
  19724. CheckDummyAudio()
  19725. {
  19726. # Check whether --enable-dummyaudio was given.
  19727. if test ${enable_dummyaudio+y}
  19728. then :
  19729. enableval=$enable_dummyaudio;
  19730. else $as_nop
  19731. enable_dummyaudio=yes
  19732. fi
  19733. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19734. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19735. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19736. SUMMARY_audio="${SUMMARY_audio} dummy"
  19737. have_audio=yes
  19738. fi
  19739. }
  19740. CheckLibSampleRate()
  19741. {
  19742. # Check whether --enable-libsamplerate was given.
  19743. if test ${enable_libsamplerate+y}
  19744. then :
  19745. enableval=$enable_libsamplerate;
  19746. else $as_nop
  19747. enable_libsamplerate=yes
  19748. fi
  19749. if test x$enable_libsamplerate = xyes; then
  19750. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19751. if test "x$ac_cv_header_samplerate_h" = xyes
  19752. then :
  19753. have_samplerate_h_hdr=yes
  19754. else $as_nop
  19755. have_samplerate_h_hdr=no
  19756. fi
  19757. if test x$have_samplerate_h_hdr = xyes; then
  19758. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19759. # Check whether --enable-libsamplerate-shared was given.
  19760. if test ${enable_libsamplerate_shared+y}
  19761. then :
  19762. enableval=$enable_libsamplerate_shared;
  19763. else $as_nop
  19764. enable_libsamplerate_shared=yes
  19765. fi
  19766. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19767. if test x$have_loadso != xyes && \
  19768. test x$enable_libsamplerate_shared = xyes; then
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19770. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19771. fi
  19772. if test x$have_loadso = xyes && \
  19773. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19774. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19775. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19776. else
  19777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19778. fi
  19779. fi
  19780. fi
  19781. }
  19782. CheckARM()
  19783. {
  19784. # Check whether --enable-arm-simd was given.
  19785. if test ${enable_arm_simd+y}
  19786. then :
  19787. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19788. else $as_nop
  19789. enable_arm_simd=no
  19790. fi
  19791. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19792. save_CFLAGS="$CFLAGS"
  19793. have_arm_simd=no
  19794. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19796. printf %s "checking for ARM SIMD... " >&6; }
  19797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19798. /* end confdefs.h. */
  19799. .text
  19800. .arch armv6
  19801. .object_arch armv4
  19802. .arm
  19803. .altmacro
  19804. #ifndef __ARM_EABI__
  19805. #error EABI is required (to be sure that calling conventions are compatible)
  19806. #endif
  19807. pld [r0]
  19808. uqadd8 r0, r0, r0
  19809. _ACEOF
  19810. if ac_fn_c_try_compile "$LINENO"
  19811. then :
  19812. have_arm_simd=yes
  19813. fi
  19814. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19816. printf "%s\n" "$have_arm_simd" >&6; }
  19817. CFLAGS="$save_CFLAGS"
  19818. if test x$have_arm_simd = xyes; then
  19819. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19820. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19821. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19822. fi
  19823. fi
  19824. }
  19825. CheckNEON()
  19826. {
  19827. # Check whether --enable-arm-neon was given.
  19828. if test ${enable_arm_neon+y}
  19829. then :
  19830. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19831. else $as_nop
  19832. enable_arm_neon=no
  19833. fi
  19834. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19835. save_CFLAGS="$CFLAGS"
  19836. have_arm_neon=no
  19837. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19839. printf %s "checking for ARM NEON... " >&6; }
  19840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19841. /* end confdefs.h. */
  19842. .text
  19843. .fpu neon
  19844. .arch armv7a
  19845. .object_arch armv4
  19846. .eabi_attribute 10, 0
  19847. .arm
  19848. .altmacro
  19849. #ifndef __ARM_EABI__
  19850. #error EABI is required (to be sure that calling conventions are compatible)
  19851. #endif
  19852. pld [r0]
  19853. vmovn.u16 d0, q0
  19854. _ACEOF
  19855. if ac_fn_c_try_compile "$LINENO"
  19856. then :
  19857. have_arm_neon=yes
  19858. fi
  19859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19861. printf "%s\n" "$have_arm_neon" >&6; }
  19862. CFLAGS="$save_CFLAGS"
  19863. if test x$have_arm_neon = xyes; then
  19864. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19865. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19866. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19867. fi
  19868. fi
  19869. }
  19870. CheckObjectiveCARC()
  19871. {
  19872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19873. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19874. have_clang_objc_arc=no
  19875. save_CFLAGS="$CFLAGS"
  19876. CFLAGS="$save_CFLAGS -fobjc-arc"
  19877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19878. /* end confdefs.h. */
  19879. int x = 0;
  19880. int
  19881. main (void)
  19882. {
  19883. ;
  19884. return 0;
  19885. }
  19886. _ACEOF
  19887. if ac_fn_c_try_compile "$LINENO"
  19888. then :
  19889. have_clang_objc_arc=yes
  19890. fi
  19891. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19893. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19894. CFLAGS="$save_CFLAGS"
  19895. if test x$have_clang_objc_arc = xyes; then
  19896. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19897. fi
  19898. }
  19899. CheckGDwarf4()
  19900. {
  19901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19902. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19903. have_gcc_gdwarf4=no
  19904. save_CFLAGS="$CFLAGS"
  19905. CFLAGS="$save_CFLAGS -gdwarf-4"
  19906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19907. /* end confdefs.h. */
  19908. int x = 0;
  19909. int
  19910. main (void)
  19911. {
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. if ac_fn_c_try_compile "$LINENO"
  19917. then :
  19918. have_gcc_gdwarf4=yes
  19919. fi
  19920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19922. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19923. CFLAGS="$save_CFLAGS"
  19924. if test x$have_gcc_gdwarf4 = xyes; then
  19925. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19926. fi
  19927. }
  19928. CheckVisibilityHidden()
  19929. {
  19930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19931. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19932. have_gcc_fvisibility=no
  19933. visibility_CFLAGS="-fvisibility=hidden"
  19934. save_CFLAGS="$CFLAGS"
  19935. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19937. /* end confdefs.h. */
  19938. #if !defined(__GNUC__) || __GNUC__ < 4
  19939. #error SDL only uses visibility attributes in GCC 4 or newer
  19940. #endif
  19941. int
  19942. main (void)
  19943. {
  19944. ;
  19945. return 0;
  19946. }
  19947. _ACEOF
  19948. if ac_fn_c_try_compile "$LINENO"
  19949. then :
  19950. have_gcc_fvisibility=yes
  19951. fi
  19952. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19954. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19955. CFLAGS="$save_CFLAGS"
  19956. if test x$have_gcc_fvisibility = xyes; then
  19957. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19958. fi
  19959. }
  19960. CheckNoStrictAliasing()
  19961. {
  19962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19963. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19964. have_gcc_no_strict_aliasing=no
  19965. save_CFLAGS="$CFLAGS"
  19966. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19968. /* end confdefs.h. */
  19969. int x = 0;
  19970. int
  19971. main (void)
  19972. {
  19973. ;
  19974. return 0;
  19975. }
  19976. _ACEOF
  19977. if ac_fn_c_try_compile "$LINENO"
  19978. then :
  19979. have_gcc_no_strict_aliasing=yes
  19980. fi
  19981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19983. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19984. CFLAGS="$save_CFLAGS"
  19985. if test x$have_gcc_no_strict_aliasing = xyes; then
  19986. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19987. fi
  19988. }
  19989. CheckWerror()
  19990. {
  19991. # Check whether --enable-werror was given.
  19992. if test ${enable_werror+y}
  19993. then :
  19994. enableval=$enable_werror; enable_werror=$enableval
  19995. else $as_nop
  19996. enable_werror=no
  19997. fi
  19998. if test x$enable_werror = xyes; then
  19999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  20000. printf %s "checking for GCC -Werror option... " >&6; }
  20001. have_gcc_werror=no
  20002. save_CFLAGS="$CFLAGS"
  20003. CFLAGS="$save_CFLAGS -Werror"
  20004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20005. /* end confdefs.h. */
  20006. int x = 0;
  20007. int
  20008. main (void)
  20009. {
  20010. ;
  20011. return 0;
  20012. }
  20013. _ACEOF
  20014. if ac_fn_c_try_compile "$LINENO"
  20015. then :
  20016. have_gcc_werror=yes
  20017. fi
  20018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20020. printf "%s\n" "$have_gcc_werror" >&6; }
  20021. CFLAGS="$save_CFLAGS"
  20022. if test x$have_gcc_werror = xyes; then
  20023. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20024. fi
  20025. fi
  20026. }
  20027. CheckNoErrorDeprecatedDeclarationsWerror()
  20028. {
  20029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20030. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20031. have_gcc_no_werror_deprecated_declarations=no
  20032. save_CFLAGS="$CFLAGS"
  20033. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20035. /* end confdefs.h. */
  20036. int x = 0;
  20037. int
  20038. main (void)
  20039. {
  20040. ;
  20041. return 0;
  20042. }
  20043. _ACEOF
  20044. if ac_fn_c_try_compile "$LINENO"
  20045. then :
  20046. have_gcc_no_werror_deprecated_declarations=yes
  20047. fi
  20048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20050. printf "%s\n" "$have_gcc_werror" >&6; }
  20051. CFLAGS="$save_CFLAGS"
  20052. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20053. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20054. fi
  20055. }
  20056. CheckDeclarationAfterStatement()
  20057. {
  20058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20059. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20060. have_gcc_declaration_after_statement=no
  20061. save_CFLAGS="$CFLAGS"
  20062. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20064. /* end confdefs.h. */
  20065. int x = 0;
  20066. int
  20067. main (void)
  20068. {
  20069. ;
  20070. return 0;
  20071. }
  20072. _ACEOF
  20073. if ac_fn_c_try_compile "$LINENO"
  20074. then :
  20075. have_gcc_declaration_after_statement=yes
  20076. fi
  20077. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20079. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20080. CFLAGS="$save_CFLAGS"
  20081. if test x$have_gcc_declaration_after_statement = xyes; then
  20082. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20083. fi
  20084. }
  20085. CheckWarnAll()
  20086. {
  20087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20088. printf %s "checking for GCC -Wall option... " >&6; }
  20089. have_gcc_Wall=no
  20090. save_CFLAGS="$CFLAGS"
  20091. CFLAGS="$save_CFLAGS -Wall"
  20092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20093. /* end confdefs.h. */
  20094. int x = 0;
  20095. int
  20096. main (void)
  20097. {
  20098. ;
  20099. return 0;
  20100. }
  20101. _ACEOF
  20102. if ac_fn_c_try_compile "$LINENO"
  20103. then :
  20104. have_gcc_Wall=yes
  20105. fi
  20106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20108. printf "%s\n" "$have_gcc_Wall" >&6; }
  20109. CFLAGS="$save_CFLAGS"
  20110. if test x$have_gcc_Wall = xyes; then
  20111. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20113. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20114. need_gcc_Wno_multichar=no
  20115. case "$host" in
  20116. *-*-haiku*)
  20117. need_gcc_Wno_multichar=yes
  20118. ;;
  20119. esac
  20120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20121. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20122. if test x$need_gcc_Wno_multichar = xyes; then
  20123. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20124. fi
  20125. fi
  20126. }
  20127. CheckUnusedLocalTypedefs()
  20128. {
  20129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20130. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20131. have_gcc_unused_local_typedefs=no
  20132. save_CFLAGS="$CFLAGS"
  20133. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20135. /* end confdefs.h. */
  20136. int x = 0;
  20137. int
  20138. main (void)
  20139. {
  20140. ;
  20141. return 0;
  20142. }
  20143. _ACEOF
  20144. if ac_fn_c_try_compile "$LINENO"
  20145. then :
  20146. have_gcc_unused_local_typedefs=yes
  20147. fi
  20148. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20150. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20151. CFLAGS="$save_CFLAGS"
  20152. if test x$have_gcc_unused_local_typedefs = xyes; then
  20153. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20154. fi
  20155. }
  20156. CheckWayland()
  20157. {
  20158. # Check whether --enable-video-wayland was given.
  20159. if test ${enable_video_wayland+y}
  20160. then :
  20161. enableval=$enable_video_wayland;
  20162. else $as_nop
  20163. enable_video_wayland=yes
  20164. fi
  20165. # Check whether --enable-video-wayland-qt-touch was given.
  20166. if test ${enable_video_wayland_qt_touch+y}
  20167. then :
  20168. enableval=$enable_video_wayland_qt_touch;
  20169. else $as_nop
  20170. enable_video_wayland_qt_touch=yes
  20171. fi
  20172. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20174. printf %s "checking for Wayland support... " >&6; }
  20175. video_wayland=no
  20176. if test x$video_opengl_egl = xyes && \
  20177. test x$video_opengles_v2 = xyes; then
  20178. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20179. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20180. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20181. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20182. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20183. then :
  20184. WAYLAND_SCANNER_CODE_MODE=private-code
  20185. else $as_nop
  20186. WAYLAND_SCANNER_CODE_MODE=code
  20187. fi
  20188. video_wayland=yes
  20189. fi
  20190. fi
  20191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20192. printf "%s\n" "$video_wayland" >&6; }
  20193. if test x$video_wayland = xyes; then
  20194. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20195. if test x$enable_video_wayland_qt_touch = xyes; then
  20196. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20197. fi
  20198. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20199. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20200. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20201. # Check whether --enable-wayland-shared was given.
  20202. if test ${enable_wayland_shared+y}
  20203. then :
  20204. enableval=$enable_wayland_shared;
  20205. else $as_nop
  20206. enable_wayland_shared=maybe
  20207. fi
  20208. case "$host" in
  20209. *)
  20210. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20211. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20212. if test x$wayland_egl_lib = x; then
  20213. # This works in Ubuntu 13.10, maybe others
  20214. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20215. fi
  20216. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20217. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20218. ;;
  20219. esac
  20220. if test x$enable_wayland_shared = xmaybe; then
  20221. enable_wayland_shared=yes
  20222. fi
  20223. if test x$have_loadso != xyes && \
  20224. test x$enable_wayland_shared = xyes; then
  20225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20226. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20227. enable_wayland_shared=no
  20228. fi
  20229. if test x$have_loadso = xyes && \
  20230. test x$enable_wayland_shared = xyes && \
  20231. test x$wayland_client_lib != x && \
  20232. test x$wayland_egl_lib != x && \
  20233. test x$wayland_cursor_lib != x && \
  20234. test x$xkbcommon_lib != x; then
  20235. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20236. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20237. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20238. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20239. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20240. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20241. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20242. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20243. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20244. else
  20245. enable_wayland_shared=no
  20246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20247. SUMMARY_video="${SUMMARY_video} wayland"
  20248. fi
  20249. have_video=yes
  20250. # Check whether --enable-libdecor was given.
  20251. if test ${enable_libdecor+y}
  20252. then :
  20253. enableval=$enable_libdecor;
  20254. else $as_nop
  20255. enable_libdecor=yes
  20256. fi
  20257. if test x$enable_libdecor = xyes; then
  20258. pkg_failed=no
  20259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20260. printf %s "checking for libdecor-0... " >&6; }
  20261. if test -n "$DECOR_CFLAGS"; then
  20262. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20263. elif test -n "$PKG_CONFIG"; then
  20264. if test -n "$PKG_CONFIG" && \
  20265. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20266. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20267. ac_status=$?
  20268. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20269. test $ac_status = 0; }; then
  20270. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20271. test "x$?" != "x0" && pkg_failed=yes
  20272. else
  20273. pkg_failed=yes
  20274. fi
  20275. else
  20276. pkg_failed=untried
  20277. fi
  20278. if test -n "$DECOR_LIBS"; then
  20279. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20280. elif test -n "$PKG_CONFIG"; then
  20281. if test -n "$PKG_CONFIG" && \
  20282. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20283. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20284. ac_status=$?
  20285. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20286. test $ac_status = 0; }; then
  20287. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20288. test "x$?" != "x0" && pkg_failed=yes
  20289. else
  20290. pkg_failed=yes
  20291. fi
  20292. else
  20293. pkg_failed=untried
  20294. fi
  20295. if test $pkg_failed = yes; then
  20296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20297. printf "%s\n" "no" >&6; }
  20298. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20299. _pkg_short_errors_supported=yes
  20300. else
  20301. _pkg_short_errors_supported=no
  20302. fi
  20303. if test $_pkg_short_errors_supported = yes; then
  20304. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20305. else
  20306. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20307. fi
  20308. # Put the nasty error message in config.log where it belongs
  20309. echo "$DECOR_PKG_ERRORS" >&5
  20310. video_libdecor=no
  20311. elif test $pkg_failed = untried; then
  20312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20313. printf "%s\n" "no" >&6; }
  20314. video_libdecor=no
  20315. else
  20316. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20317. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20319. printf "%s\n" "yes" >&6; }
  20320. video_libdecor=yes
  20321. fi
  20322. if test x$video_libdecor = xyes; then
  20323. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20324. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20325. # Check whether --enable-libdecor-shared was given.
  20326. if test ${enable_libdecor_shared+y}
  20327. then :
  20328. enableval=$enable_libdecor_shared;
  20329. else $as_nop
  20330. enable_libdecor_shared=yes
  20331. fi
  20332. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20333. if test x$enable_wayland_shared != xyes; then
  20334. enable_libdecor_shared=no
  20335. fi
  20336. if test x$have_loadso != xyes && \
  20337. test x$enable_libdecor_shared = xyes; then
  20338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20339. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20340. fi
  20341. if test x$have_loadso = xyes && \
  20342. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20343. echo "-- dynamic libdecor -> $decor_lib"
  20344. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20345. else
  20346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20347. fi
  20348. saved_cflags=$CFLAGS
  20349. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20351. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20352. if test ${ac_cv_c_undeclared_builtin_options+y}
  20353. then :
  20354. printf %s "(cached) " >&6
  20355. else $as_nop
  20356. ac_save_CFLAGS=$CFLAGS
  20357. ac_cv_c_undeclared_builtin_options='cannot detect'
  20358. for ac_arg in '' -fno-builtin; do
  20359. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20360. # This test program should *not* compile successfully.
  20361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20362. /* end confdefs.h. */
  20363. int
  20364. main (void)
  20365. {
  20366. (void) strchr;
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. if ac_fn_c_try_compile "$LINENO"
  20372. then :
  20373. else $as_nop
  20374. # This test program should compile successfully.
  20375. # No library function is consistently available on
  20376. # freestanding implementations, so test against a dummy
  20377. # declaration. Include always-available headers on the
  20378. # off chance that they somehow elicit warnings.
  20379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20380. /* end confdefs.h. */
  20381. #include <float.h>
  20382. #include <limits.h>
  20383. #include <stdarg.h>
  20384. #include <stddef.h>
  20385. extern void ac_decl (int, char *);
  20386. int
  20387. main (void)
  20388. {
  20389. (void) ac_decl (0, (char *) 0);
  20390. (void) ac_decl;
  20391. ;
  20392. return 0;
  20393. }
  20394. _ACEOF
  20395. if ac_fn_c_try_compile "$LINENO"
  20396. then :
  20397. if test x"$ac_arg" = x
  20398. then :
  20399. ac_cv_c_undeclared_builtin_options='none needed'
  20400. else $as_nop
  20401. ac_cv_c_undeclared_builtin_options=$ac_arg
  20402. fi
  20403. break
  20404. fi
  20405. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20406. fi
  20407. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20408. done
  20409. CFLAGS=$ac_save_CFLAGS
  20410. fi
  20411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20412. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20413. case $ac_cv_c_undeclared_builtin_options in #(
  20414. 'cannot detect') :
  20415. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20416. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20417. as_fn_error $? "cannot make $CC report undeclared builtins
  20418. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20419. 'none needed') :
  20420. ac_c_undeclared_builtin_options='' ;; #(
  20421. *) :
  20422. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20423. esac
  20424. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20425. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20426. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20427. then :
  20428. ac_have_decl=1
  20429. else $as_nop
  20430. ac_have_decl=0
  20431. fi
  20432. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20433. if test $ac_have_decl = 1
  20434. then :
  20435. libdecor_get_min_max=yes
  20436. fi
  20437. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20438. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20439. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20440. then :
  20441. ac_have_decl=1
  20442. else $as_nop
  20443. ac_have_decl=0
  20444. fi
  20445. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20446. if test $ac_have_decl = 1
  20447. then :
  20448. libdecor_get_min_max=yes
  20449. fi
  20450. if test x$libdecor_get_min_max = xyes; then
  20451. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20452. fi
  20453. CFLAGS="$saved_cflags"
  20454. fi
  20455. fi
  20456. fi
  20457. fi
  20458. }
  20459. CheckNativeClient()
  20460. {
  20461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20462. /* end confdefs.h. */
  20463. #if !defined(__native_client__)
  20464. #error "NO NACL"
  20465. #endif
  20466. int
  20467. main (void)
  20468. {
  20469. ;
  20470. return 0;
  20471. }
  20472. _ACEOF
  20473. if ac_fn_c_try_compile "$LINENO"
  20474. then :
  20475. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20476. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20477. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20478. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20479. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20480. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20481. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20482. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20483. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20484. SUMMARY_audio="${SUMMARY_audio} nacl"
  20485. have_audio=yes
  20486. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20487. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20488. have_video=yes
  20489. fi
  20490. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20491. }
  20492. CheckRPI()
  20493. {
  20494. # Check whether --enable-video-rpi was given.
  20495. if test ${enable_video_rpi+y}
  20496. then :
  20497. enableval=$enable_video_rpi;
  20498. else $as_nop
  20499. enable_video_rpi=yes
  20500. fi
  20501. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20502. pkg_failed=no
  20503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20504. printf %s "checking for bcm_host... " >&6; }
  20505. if test -n "$RPI_CFLAGS"; then
  20506. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20507. elif test -n "$PKG_CONFIG"; then
  20508. if test -n "$PKG_CONFIG" && \
  20509. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20510. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20511. ac_status=$?
  20512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20513. test $ac_status = 0; }; then
  20514. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20515. test "x$?" != "x0" && pkg_failed=yes
  20516. else
  20517. pkg_failed=yes
  20518. fi
  20519. else
  20520. pkg_failed=untried
  20521. fi
  20522. if test -n "$RPI_LIBS"; then
  20523. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20524. elif test -n "$PKG_CONFIG"; then
  20525. if test -n "$PKG_CONFIG" && \
  20526. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20527. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20528. ac_status=$?
  20529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20530. test $ac_status = 0; }; then
  20531. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20532. test "x$?" != "x0" && pkg_failed=yes
  20533. else
  20534. pkg_failed=yes
  20535. fi
  20536. else
  20537. pkg_failed=untried
  20538. fi
  20539. if test $pkg_failed = yes; then
  20540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20541. printf "%s\n" "no" >&6; }
  20542. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20543. _pkg_short_errors_supported=yes
  20544. else
  20545. _pkg_short_errors_supported=no
  20546. fi
  20547. if test $_pkg_short_errors_supported = yes; then
  20548. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20549. else
  20550. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20551. fi
  20552. # Put the nasty error message in config.log where it belongs
  20553. echo "$RPI_PKG_ERRORS" >&5
  20554. video_rpi=no
  20555. elif test $pkg_failed = untried; then
  20556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20557. printf "%s\n" "no" >&6; }
  20558. video_rpi=no
  20559. else
  20560. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20561. RPI_LIBS=$pkg_cv_RPI_LIBS
  20562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20563. printf "%s\n" "yes" >&6; }
  20564. video_rpi=yes
  20565. fi
  20566. pkg_failed=no
  20567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20568. printf %s "checking for brcmegl... " >&6; }
  20569. if test -n "$RPI_EGL_CFLAGS"; then
  20570. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20571. elif test -n "$PKG_CONFIG"; then
  20572. if test -n "$PKG_CONFIG" && \
  20573. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20574. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20575. ac_status=$?
  20576. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20577. test $ac_status = 0; }; then
  20578. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20579. test "x$?" != "x0" && pkg_failed=yes
  20580. else
  20581. pkg_failed=yes
  20582. fi
  20583. else
  20584. pkg_failed=untried
  20585. fi
  20586. if test -n "$RPI_EGL_LIBS"; then
  20587. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20588. elif test -n "$PKG_CONFIG"; then
  20589. if test -n "$PKG_CONFIG" && \
  20590. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20591. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20592. ac_status=$?
  20593. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20594. test $ac_status = 0; }; then
  20595. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20596. test "x$?" != "x0" && pkg_failed=yes
  20597. else
  20598. pkg_failed=yes
  20599. fi
  20600. else
  20601. pkg_failed=untried
  20602. fi
  20603. if test $pkg_failed = yes; then
  20604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20605. printf "%s\n" "no" >&6; }
  20606. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20607. _pkg_short_errors_supported=yes
  20608. else
  20609. _pkg_short_errors_supported=no
  20610. fi
  20611. if test $_pkg_short_errors_supported = yes; then
  20612. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20613. else
  20614. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20615. fi
  20616. # Put the nasty error message in config.log where it belongs
  20617. echo "$RPI_EGL_PKG_ERRORS" >&5
  20618. video_rpi_egl=no
  20619. elif test $pkg_failed = untried; then
  20620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20621. printf "%s\n" "no" >&6; }
  20622. video_rpi_egl=no
  20623. else
  20624. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20625. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20627. printf "%s\n" "yes" >&6; }
  20628. video_rpi_egl=yes
  20629. fi
  20630. if test x$video_rpi = xno; then
  20631. if test x$ARCH = xnetbsd; then
  20632. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20633. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20634. else
  20635. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20636. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20637. fi
  20638. fi
  20639. if test x$video_rpi_egl = xno; then
  20640. if test x$ARCH = xnetbsd; then
  20641. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20642. else
  20643. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20644. fi
  20645. fi
  20646. # Save the original compiler flags and libraries
  20647. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20648. # Add the Raspberry Pi compiler flags and libraries
  20649. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20651. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20652. have_video_rpi=no
  20653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20654. /* end confdefs.h. */
  20655. #include <bcm_host.h>
  20656. int
  20657. main (void)
  20658. {
  20659. bcm_host_init();
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_link "$LINENO"
  20665. then :
  20666. have_video_rpi=yes
  20667. fi
  20668. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20669. conftest$ac_exeext conftest.$ac_ext
  20670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20671. printf "%s\n" "$have_video_rpi" >&6; }
  20672. # Restore the compiler flags and libraries
  20673. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20674. if test x$have_video_rpi = xyes; then
  20675. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20676. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20677. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20679. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20680. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20681. SUMMARY_video="${SUMMARY_video} rpi"
  20682. have_video=yes
  20683. fi
  20684. fi
  20685. }
  20686. CheckX11()
  20687. {
  20688. # Check whether --enable-video-x11 was given.
  20689. if test ${enable_video_x11+y}
  20690. then :
  20691. enableval=$enable_video_x11;
  20692. else $as_nop
  20693. enable_video_x11=yes
  20694. case "$host" in
  20695. *-*-darwin*|*-ios-*)
  20696. enable_video_x11=no
  20697. ;;
  20698. esac
  20699. fi
  20700. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20701. case "$host" in
  20702. *-*-darwin*)
  20703. # This isn't necessary for X11, but fixes GLX detection
  20704. if test "x$x_includes" = xNONE && \
  20705. test "x$x_libraries" = xNONE && \
  20706. test -d /opt/X11/include && \
  20707. test -d /opt/X11/lib; then
  20708. x_includes="/opt/X11/include"
  20709. x_libraries="/opt/X11/lib"
  20710. fi
  20711. ;;
  20712. esac
  20713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20714. printf %s "checking for X... " >&6; }
  20715. # Check whether --with-x was given.
  20716. if test ${with_x+y}
  20717. then :
  20718. withval=$with_x;
  20719. fi
  20720. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20721. if test "x$with_x" = xno; then
  20722. # The user explicitly disabled X.
  20723. have_x=disabled
  20724. else
  20725. case $x_includes,$x_libraries in #(
  20726. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20727. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20728. then :
  20729. printf %s "(cached) " >&6
  20730. else $as_nop
  20731. # One or both of the vars are not set, and there is no cached value.
  20732. ac_x_includes=no
  20733. ac_x_libraries=no
  20734. # Do we need to do anything special at all?
  20735. ac_save_LIBS=$LIBS
  20736. LIBS="-lX11 $LIBS"
  20737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20738. /* end confdefs.h. */
  20739. #include <X11/Xlib.h>
  20740. int
  20741. main (void)
  20742. {
  20743. XrmInitialize ()
  20744. ;
  20745. return 0;
  20746. }
  20747. _ACEOF
  20748. if ac_fn_c_try_link "$LINENO"
  20749. then :
  20750. # We can compile and link X programs with no special options.
  20751. ac_x_includes=
  20752. ac_x_libraries=
  20753. fi
  20754. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20755. conftest$ac_exeext conftest.$ac_ext
  20756. LIBS="$ac_save_LIBS"
  20757. # If that didn't work, only try xmkmf and file system searches
  20758. # for native compilation.
  20759. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20760. then :
  20761. rm -f -r conftest.dir
  20762. if mkdir conftest.dir; then
  20763. cd conftest.dir
  20764. cat >Imakefile <<'_ACEOF'
  20765. incroot:
  20766. @echo incroot='${INCROOT}'
  20767. usrlibdir:
  20768. @echo usrlibdir='${USRLIBDIR}'
  20769. libdir:
  20770. @echo libdir='${LIBDIR}'
  20771. _ACEOF
  20772. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20773. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20774. for ac_var in incroot usrlibdir libdir; do
  20775. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20776. done
  20777. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20778. for ac_extension in a so sl dylib la dll; do
  20779. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20780. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20781. ac_im_usrlibdir=$ac_im_libdir; break
  20782. fi
  20783. done
  20784. # Screen out bogus values from the imake configuration. They are
  20785. # bogus both because they are the default anyway, and because
  20786. # using them would break gcc on systems where it needs fixed includes.
  20787. case $ac_im_incroot in
  20788. /usr/include) ac_x_includes= ;;
  20789. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20790. esac
  20791. case $ac_im_usrlibdir in
  20792. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20793. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20794. esac
  20795. fi
  20796. cd ..
  20797. rm -f -r conftest.dir
  20798. fi
  20799. # Standard set of common directories for X headers.
  20800. # Check X11 before X11Rn because it is often a symlink to the current release.
  20801. ac_x_header_dirs='
  20802. /usr/X11/include
  20803. /usr/X11R7/include
  20804. /usr/X11R6/include
  20805. /usr/X11R5/include
  20806. /usr/X11R4/include
  20807. /usr/include/X11
  20808. /usr/include/X11R7
  20809. /usr/include/X11R6
  20810. /usr/include/X11R5
  20811. /usr/include/X11R4
  20812. /usr/local/X11/include
  20813. /usr/local/X11R7/include
  20814. /usr/local/X11R6/include
  20815. /usr/local/X11R5/include
  20816. /usr/local/X11R4/include
  20817. /usr/local/include/X11
  20818. /usr/local/include/X11R7
  20819. /usr/local/include/X11R6
  20820. /usr/local/include/X11R5
  20821. /usr/local/include/X11R4
  20822. /opt/X11/include
  20823. /usr/X386/include
  20824. /usr/x386/include
  20825. /usr/XFree86/include/X11
  20826. /usr/include
  20827. /usr/local/include
  20828. /usr/unsupported/include
  20829. /usr/athena/include
  20830. /usr/local/x11r5/include
  20831. /usr/lpp/Xamples/include
  20832. /usr/openwin/include
  20833. /usr/openwin/share/include'
  20834. if test "$ac_x_includes" = no; then
  20835. # Guess where to find include files, by looking for Xlib.h.
  20836. # First, try using that file with no special directory specified.
  20837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20838. /* end confdefs.h. */
  20839. #include <X11/Xlib.h>
  20840. _ACEOF
  20841. if ac_fn_c_try_cpp "$LINENO"
  20842. then :
  20843. # We can compile using X headers with no special include directory.
  20844. ac_x_includes=
  20845. else $as_nop
  20846. for ac_dir in $ac_x_header_dirs; do
  20847. if test -r "$ac_dir/X11/Xlib.h"; then
  20848. ac_x_includes=$ac_dir
  20849. break
  20850. fi
  20851. done
  20852. fi
  20853. rm -f conftest.err conftest.i conftest.$ac_ext
  20854. fi # $ac_x_includes = no
  20855. if test "$ac_x_libraries" = no; then
  20856. # Check for the libraries.
  20857. # See if we find them without any special options.
  20858. # Don't add to $LIBS permanently.
  20859. ac_save_LIBS=$LIBS
  20860. LIBS="-lX11 $LIBS"
  20861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20862. /* end confdefs.h. */
  20863. #include <X11/Xlib.h>
  20864. int
  20865. main (void)
  20866. {
  20867. XrmInitialize ()
  20868. ;
  20869. return 0;
  20870. }
  20871. _ACEOF
  20872. if ac_fn_c_try_link "$LINENO"
  20873. then :
  20874. LIBS=$ac_save_LIBS
  20875. # We can link X programs with no special library path.
  20876. ac_x_libraries=
  20877. else $as_nop
  20878. LIBS=$ac_save_LIBS
  20879. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20880. do
  20881. # Don't even attempt the hair of trying to link an X program!
  20882. for ac_extension in a so sl dylib la dll; do
  20883. if test -r "$ac_dir/libX11.$ac_extension"; then
  20884. ac_x_libraries=$ac_dir
  20885. break 2
  20886. fi
  20887. done
  20888. done
  20889. fi
  20890. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20891. conftest$ac_exeext conftest.$ac_ext
  20892. fi # $ac_x_libraries = no
  20893. fi
  20894. # Record the results.
  20895. case $ac_x_includes,$ac_x_libraries in #(
  20896. no,* | *,no | *\'*) :
  20897. # Didn't find X, or a directory has "'" in its name.
  20898. ac_cv_have_x="have_x=no" ;; #(
  20899. *) :
  20900. # Record where we found X for the cache.
  20901. ac_cv_have_x="have_x=yes\
  20902. ac_x_includes='$ac_x_includes'\
  20903. ac_x_libraries='$ac_x_libraries'" ;;
  20904. esac
  20905. fi
  20906. ;; #(
  20907. *) have_x=yes;;
  20908. esac
  20909. eval "$ac_cv_have_x"
  20910. fi # $with_x != no
  20911. if test "$have_x" != yes; then
  20912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20913. printf "%s\n" "$have_x" >&6; }
  20914. no_x=yes
  20915. else
  20916. # If each of the values was on the command line, it overrides each guess.
  20917. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20918. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20919. # Update the cache value to reflect the command line values.
  20920. ac_cv_have_x="have_x=yes\
  20921. ac_x_includes='$x_includes'\
  20922. ac_x_libraries='$x_libraries'"
  20923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20924. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20925. fi
  20926. if test "$no_x" = yes; then
  20927. # Not all programs may use this symbol, but it does not hurt to define it.
  20928. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20929. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20930. else
  20931. if test -n "$x_includes"; then
  20932. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20933. fi
  20934. # It would also be nice to do this for all -L options, not just this one.
  20935. if test -n "$x_libraries"; then
  20936. X_LIBS="$X_LIBS -L$x_libraries"
  20937. # For Solaris; some versions of Sun CC require a space after -R and
  20938. # others require no space. Words are not sufficient . . . .
  20939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20940. printf %s "checking whether -R must be followed by a space... " >&6; }
  20941. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20942. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20943. ac_c_werror_flag=yes
  20944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20945. /* end confdefs.h. */
  20946. int
  20947. main (void)
  20948. {
  20949. ;
  20950. return 0;
  20951. }
  20952. _ACEOF
  20953. if ac_fn_c_try_link "$LINENO"
  20954. then :
  20955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20956. printf "%s\n" "no" >&6; }
  20957. X_LIBS="$X_LIBS -R$x_libraries"
  20958. else $as_nop
  20959. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20961. /* end confdefs.h. */
  20962. int
  20963. main (void)
  20964. {
  20965. ;
  20966. return 0;
  20967. }
  20968. _ACEOF
  20969. if ac_fn_c_try_link "$LINENO"
  20970. then :
  20971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20972. printf "%s\n" "yes" >&6; }
  20973. X_LIBS="$X_LIBS -R $x_libraries"
  20974. else $as_nop
  20975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20976. printf "%s\n" "neither works" >&6; }
  20977. fi
  20978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20979. conftest$ac_exeext conftest.$ac_ext
  20980. fi
  20981. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20982. conftest$ac_exeext conftest.$ac_ext
  20983. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20984. LIBS=$ac_xsave_LIBS
  20985. fi
  20986. # Check for system-dependent libraries X programs must link with.
  20987. # Do this before checking for the system-independent R6 libraries
  20988. # (-lICE), since we may need -lsocket or whatever for X linking.
  20989. if test "$ISC" = yes; then
  20990. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20991. else
  20992. # Martyn Johnson says this is needed for Ultrix, if the X
  20993. # libraries were built with DECnet support. And Karl Berry says
  20994. # the Alpha needs dnet_stub (dnet does not exist).
  20995. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20997. /* end confdefs.h. */
  20998. /* Override any GCC internal prototype to avoid an error.
  20999. Use char because int might match the return type of a GCC
  21000. builtin and then its argument prototype would still apply. */
  21001. char XOpenDisplay ();
  21002. int
  21003. main (void)
  21004. {
  21005. return XOpenDisplay ();
  21006. ;
  21007. return 0;
  21008. }
  21009. _ACEOF
  21010. if ac_fn_c_try_link "$LINENO"
  21011. then :
  21012. else $as_nop
  21013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21014. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21015. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21016. then :
  21017. printf %s "(cached) " >&6
  21018. else $as_nop
  21019. ac_check_lib_save_LIBS=$LIBS
  21020. LIBS="-ldnet $LIBS"
  21021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21022. /* end confdefs.h. */
  21023. /* Override any GCC internal prototype to avoid an error.
  21024. Use char because int might match the return type of a GCC
  21025. builtin and then its argument prototype would still apply. */
  21026. char dnet_ntoa ();
  21027. int
  21028. main (void)
  21029. {
  21030. return dnet_ntoa ();
  21031. ;
  21032. return 0;
  21033. }
  21034. _ACEOF
  21035. if ac_fn_c_try_link "$LINENO"
  21036. then :
  21037. ac_cv_lib_dnet_dnet_ntoa=yes
  21038. else $as_nop
  21039. ac_cv_lib_dnet_dnet_ntoa=no
  21040. fi
  21041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21042. conftest$ac_exeext conftest.$ac_ext
  21043. LIBS=$ac_check_lib_save_LIBS
  21044. fi
  21045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21046. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21047. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21048. then :
  21049. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21050. fi
  21051. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21053. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21054. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21055. then :
  21056. printf %s "(cached) " >&6
  21057. else $as_nop
  21058. ac_check_lib_save_LIBS=$LIBS
  21059. LIBS="-ldnet_stub $LIBS"
  21060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21061. /* end confdefs.h. */
  21062. /* Override any GCC internal prototype to avoid an error.
  21063. Use char because int might match the return type of a GCC
  21064. builtin and then its argument prototype would still apply. */
  21065. char dnet_ntoa ();
  21066. int
  21067. main (void)
  21068. {
  21069. return dnet_ntoa ();
  21070. ;
  21071. return 0;
  21072. }
  21073. _ACEOF
  21074. if ac_fn_c_try_link "$LINENO"
  21075. then :
  21076. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21077. else $as_nop
  21078. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21079. fi
  21080. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21081. conftest$ac_exeext conftest.$ac_ext
  21082. LIBS=$ac_check_lib_save_LIBS
  21083. fi
  21084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21085. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21086. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21087. then :
  21088. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21089. fi
  21090. fi
  21091. fi
  21092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21093. conftest$ac_exeext conftest.$ac_ext
  21094. LIBS="$ac_xsave_LIBS"
  21095. # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
  21096. # to get the SysV transport functions.
  21097. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21098. # needs -lnsl.
  21099. # The nsl library prevents programs from opening the X display
  21100. # on Irix 5.2, according to T.E. Dickey.
  21101. # The functions gethostbyname, getservbyname, and inet_addr are
  21102. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21103. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21104. if test "x$ac_cv_func_gethostbyname" = xyes
  21105. then :
  21106. fi
  21107. if test $ac_cv_func_gethostbyname = no; then
  21108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21109. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21110. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21111. then :
  21112. printf %s "(cached) " >&6
  21113. else $as_nop
  21114. ac_check_lib_save_LIBS=$LIBS
  21115. LIBS="-lnsl $LIBS"
  21116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21117. /* end confdefs.h. */
  21118. /* Override any GCC internal prototype to avoid an error.
  21119. Use char because int might match the return type of a GCC
  21120. builtin and then its argument prototype would still apply. */
  21121. char gethostbyname ();
  21122. int
  21123. main (void)
  21124. {
  21125. return gethostbyname ();
  21126. ;
  21127. return 0;
  21128. }
  21129. _ACEOF
  21130. if ac_fn_c_try_link "$LINENO"
  21131. then :
  21132. ac_cv_lib_nsl_gethostbyname=yes
  21133. else $as_nop
  21134. ac_cv_lib_nsl_gethostbyname=no
  21135. fi
  21136. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21137. conftest$ac_exeext conftest.$ac_ext
  21138. LIBS=$ac_check_lib_save_LIBS
  21139. fi
  21140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21141. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21142. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21143. then :
  21144. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21145. fi
  21146. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21148. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21149. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21150. then :
  21151. printf %s "(cached) " >&6
  21152. else $as_nop
  21153. ac_check_lib_save_LIBS=$LIBS
  21154. LIBS="-lbsd $LIBS"
  21155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21156. /* end confdefs.h. */
  21157. /* Override any GCC internal prototype to avoid an error.
  21158. Use char because int might match the return type of a GCC
  21159. builtin and then its argument prototype would still apply. */
  21160. char gethostbyname ();
  21161. int
  21162. main (void)
  21163. {
  21164. return gethostbyname ();
  21165. ;
  21166. return 0;
  21167. }
  21168. _ACEOF
  21169. if ac_fn_c_try_link "$LINENO"
  21170. then :
  21171. ac_cv_lib_bsd_gethostbyname=yes
  21172. else $as_nop
  21173. ac_cv_lib_bsd_gethostbyname=no
  21174. fi
  21175. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21176. conftest$ac_exeext conftest.$ac_ext
  21177. LIBS=$ac_check_lib_save_LIBS
  21178. fi
  21179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21180. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21181. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21182. then :
  21183. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21184. fi
  21185. fi
  21186. fi
  21187. # [email protected] says without -lsocket,
  21188. # socket/setsockopt and other routines are undefined under SCO ODT
  21189. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21190. # on later versions), says Simon Leinen: it contains gethostby*
  21191. # variants that don't use the name server (or something). -lsocket
  21192. # must be given before -lnsl if both are needed. We assume that
  21193. # if connect needs -lnsl, so does gethostbyname.
  21194. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21195. if test "x$ac_cv_func_connect" = xyes
  21196. then :
  21197. fi
  21198. if test $ac_cv_func_connect = no; then
  21199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21200. printf %s "checking for connect in -lsocket... " >&6; }
  21201. if test ${ac_cv_lib_socket_connect+y}
  21202. then :
  21203. printf %s "(cached) " >&6
  21204. else $as_nop
  21205. ac_check_lib_save_LIBS=$LIBS
  21206. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21208. /* end confdefs.h. */
  21209. /* Override any GCC internal prototype to avoid an error.
  21210. Use char because int might match the return type of a GCC
  21211. builtin and then its argument prototype would still apply. */
  21212. char connect ();
  21213. int
  21214. main (void)
  21215. {
  21216. return connect ();
  21217. ;
  21218. return 0;
  21219. }
  21220. _ACEOF
  21221. if ac_fn_c_try_link "$LINENO"
  21222. then :
  21223. ac_cv_lib_socket_connect=yes
  21224. else $as_nop
  21225. ac_cv_lib_socket_connect=no
  21226. fi
  21227. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21228. conftest$ac_exeext conftest.$ac_ext
  21229. LIBS=$ac_check_lib_save_LIBS
  21230. fi
  21231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21232. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21233. if test "x$ac_cv_lib_socket_connect" = xyes
  21234. then :
  21235. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21236. fi
  21237. fi
  21238. # Guillermo Gomez says -lposix is necessary on A/UX.
  21239. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21240. if test "x$ac_cv_func_remove" = xyes
  21241. then :
  21242. fi
  21243. if test $ac_cv_func_remove = no; then
  21244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21245. printf %s "checking for remove in -lposix... " >&6; }
  21246. if test ${ac_cv_lib_posix_remove+y}
  21247. then :
  21248. printf %s "(cached) " >&6
  21249. else $as_nop
  21250. ac_check_lib_save_LIBS=$LIBS
  21251. LIBS="-lposix $LIBS"
  21252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21253. /* end confdefs.h. */
  21254. /* Override any GCC internal prototype to avoid an error.
  21255. Use char because int might match the return type of a GCC
  21256. builtin and then its argument prototype would still apply. */
  21257. char remove ();
  21258. int
  21259. main (void)
  21260. {
  21261. return remove ();
  21262. ;
  21263. return 0;
  21264. }
  21265. _ACEOF
  21266. if ac_fn_c_try_link "$LINENO"
  21267. then :
  21268. ac_cv_lib_posix_remove=yes
  21269. else $as_nop
  21270. ac_cv_lib_posix_remove=no
  21271. fi
  21272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21273. conftest$ac_exeext conftest.$ac_ext
  21274. LIBS=$ac_check_lib_save_LIBS
  21275. fi
  21276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21277. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21278. if test "x$ac_cv_lib_posix_remove" = xyes
  21279. then :
  21280. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21281. fi
  21282. fi
  21283. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21284. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21285. if test "x$ac_cv_func_shmat" = xyes
  21286. then :
  21287. fi
  21288. if test $ac_cv_func_shmat = no; then
  21289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21290. printf %s "checking for shmat in -lipc... " >&6; }
  21291. if test ${ac_cv_lib_ipc_shmat+y}
  21292. then :
  21293. printf %s "(cached) " >&6
  21294. else $as_nop
  21295. ac_check_lib_save_LIBS=$LIBS
  21296. LIBS="-lipc $LIBS"
  21297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21298. /* end confdefs.h. */
  21299. /* Override any GCC internal prototype to avoid an error.
  21300. Use char because int might match the return type of a GCC
  21301. builtin and then its argument prototype would still apply. */
  21302. char shmat ();
  21303. int
  21304. main (void)
  21305. {
  21306. return shmat ();
  21307. ;
  21308. return 0;
  21309. }
  21310. _ACEOF
  21311. if ac_fn_c_try_link "$LINENO"
  21312. then :
  21313. ac_cv_lib_ipc_shmat=yes
  21314. else $as_nop
  21315. ac_cv_lib_ipc_shmat=no
  21316. fi
  21317. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21318. conftest$ac_exeext conftest.$ac_ext
  21319. LIBS=$ac_check_lib_save_LIBS
  21320. fi
  21321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21322. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21323. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21324. then :
  21325. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21326. fi
  21327. fi
  21328. fi
  21329. # Check for libraries that X11R6 Xt/Xaw programs need.
  21330. ac_save_LDFLAGS=$LDFLAGS
  21331. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21332. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21333. # check for ICE first), but we must link in the order -lSM -lICE or
  21334. # we get undefined symbols. So assume we have SM if we have ICE.
  21335. # These have to be linked with before -lX11, unlike the other
  21336. # libraries we check for below, so use a different variable.
  21337. # John Interrante, Karl Berry
  21338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21339. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21340. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21341. then :
  21342. printf %s "(cached) " >&6
  21343. else $as_nop
  21344. ac_check_lib_save_LIBS=$LIBS
  21345. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21347. /* end confdefs.h. */
  21348. /* Override any GCC internal prototype to avoid an error.
  21349. Use char because int might match the return type of a GCC
  21350. builtin and then its argument prototype would still apply. */
  21351. char IceConnectionNumber ();
  21352. int
  21353. main (void)
  21354. {
  21355. return IceConnectionNumber ();
  21356. ;
  21357. return 0;
  21358. }
  21359. _ACEOF
  21360. if ac_fn_c_try_link "$LINENO"
  21361. then :
  21362. ac_cv_lib_ICE_IceConnectionNumber=yes
  21363. else $as_nop
  21364. ac_cv_lib_ICE_IceConnectionNumber=no
  21365. fi
  21366. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21367. conftest$ac_exeext conftest.$ac_ext
  21368. LIBS=$ac_check_lib_save_LIBS
  21369. fi
  21370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21371. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21372. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21373. then :
  21374. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21375. fi
  21376. LDFLAGS=$ac_save_LDFLAGS
  21377. fi
  21378. if test x$have_x = xyes; then
  21379. # Check whether --enable-x11-shared was given.
  21380. if test ${enable_x11_shared+y}
  21381. then :
  21382. enableval=$enable_x11_shared;
  21383. else $as_nop
  21384. enable_x11_shared=maybe
  21385. fi
  21386. case "$host" in
  21387. *-*-darwin*)
  21388. # Apple now puts this in /opt/X11
  21389. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21390. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21391. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21392. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21393. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21394. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21395. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21396. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21397. ;;
  21398. *-*-openbsd*)
  21399. x11_lib='libX11.so'
  21400. x11ext_lib='libXext.so'
  21401. xcursor_lib='libXcursor.so'
  21402. xinput_lib='libXi.so'
  21403. xfixes_lib='libXfixes.so'
  21404. xrandr_lib='libXrandr.so'
  21405. xrender_lib='libXrender.so'
  21406. xss_lib='libXss.so'
  21407. ;;
  21408. *)
  21409. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21410. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21411. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21412. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21413. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21414. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21415. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21416. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21417. ;;
  21418. esac
  21419. if test x$ac_cv_func_shmat != xyes; then
  21420. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21421. fi
  21422. CFLAGS="$CFLAGS $X_CFLAGS"
  21423. LDFLAGS="$LDFLAGS $X_LIBS"
  21424. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21425. #include <X11/Xproto.h>
  21426. "
  21427. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21428. then :
  21429. have_xext_h_hdr=yes
  21430. else $as_nop
  21431. have_xext_h_hdr=no
  21432. fi
  21433. if test x$have_xext_h_hdr != xyes; then
  21434. as_fn_error $? "
  21435. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21436. " "$LINENO" 5
  21437. fi
  21438. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21439. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21440. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21441. # Needed so SDL applications can include SDL_syswm.h
  21442. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21443. if test x$enable_x11_shared = xmaybe; then
  21444. enable_x11_shared=yes
  21445. fi
  21446. if test x$have_loadso != xyes && \
  21447. test x$enable_x11_shared = xyes; then
  21448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21449. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21450. enable_x11_shared=no
  21451. fi
  21452. if test x$have_loadso = xyes && \
  21453. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21454. echo "-- dynamic libX11 -> $x11_lib"
  21455. echo "-- dynamic libX11ext -> $x11ext_lib"
  21456. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21457. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21458. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21459. else
  21460. enable_x11_shared=no
  21461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21462. SUMMARY_video="${SUMMARY_video} x11"
  21463. fi
  21464. have_video=yes
  21465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21466. printf %s "checking for XGenericEvent... " >&6; }
  21467. have_XGenericEvent=no
  21468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21469. /* end confdefs.h. */
  21470. #include <X11/Xlib.h>
  21471. int
  21472. main (void)
  21473. {
  21474. Display *display;
  21475. XEvent event;
  21476. XGenericEventCookie *cookie = &event.xcookie;
  21477. XNextEvent(display, &event);
  21478. XGetEventData(display, cookie);
  21479. XFreeEventData(display, cookie);
  21480. ;
  21481. return 0;
  21482. }
  21483. _ACEOF
  21484. if ac_fn_c_try_compile "$LINENO"
  21485. then :
  21486. have_XGenericEvent=yes
  21487. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21488. fi
  21489. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21491. printf "%s\n" "$have_XGenericEvent" >&6; }
  21492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21493. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21494. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21495. then :
  21496. printf %s "(cached) " >&6
  21497. else $as_nop
  21498. ac_check_lib_save_LIBS=$LIBS
  21499. LIBS="-lX11 $LIBS"
  21500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21501. /* end confdefs.h. */
  21502. /* Override any GCC internal prototype to avoid an error.
  21503. Use char because int might match the return type of a GCC
  21504. builtin and then its argument prototype would still apply. */
  21505. char XkbKeycodeToKeysym ();
  21506. int
  21507. main (void)
  21508. {
  21509. return XkbKeycodeToKeysym ();
  21510. ;
  21511. return 0;
  21512. }
  21513. _ACEOF
  21514. if ac_fn_c_try_link "$LINENO"
  21515. then :
  21516. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21517. else $as_nop
  21518. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21519. fi
  21520. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21521. conftest$ac_exeext conftest.$ac_ext
  21522. LIBS=$ac_check_lib_save_LIBS
  21523. fi
  21524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21525. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21526. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21527. then :
  21528. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21529. fi
  21530. # Check whether --enable-video-x11-xcursor was given.
  21531. if test ${enable_video_x11_xcursor+y}
  21532. then :
  21533. enableval=$enable_video_x11_xcursor;
  21534. else $as_nop
  21535. enable_video_x11_xcursor=yes
  21536. fi
  21537. if test x$enable_video_x11_xcursor = xyes; then
  21538. definitely_enable_video_x11_xcursor=no
  21539. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21540. "
  21541. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21542. then :
  21543. have_xcursor_h_hdr=yes
  21544. else $as_nop
  21545. have_xcursor_h_hdr=no
  21546. fi
  21547. if test x$have_xcursor_h_hdr = xyes; then
  21548. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21549. echo "-- dynamic libXcursor -> $xcursor_lib"
  21550. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21551. definitely_enable_video_x11_xcursor=yes
  21552. else
  21553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21554. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21555. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21556. then :
  21557. printf %s "(cached) " >&6
  21558. else $as_nop
  21559. ac_check_lib_save_LIBS=$LIBS
  21560. LIBS="-lXcursor $LIBS"
  21561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21562. /* end confdefs.h. */
  21563. /* Override any GCC internal prototype to avoid an error.
  21564. Use char because int might match the return type of a GCC
  21565. builtin and then its argument prototype would still apply. */
  21566. char XcursorImageCreate ();
  21567. int
  21568. main (void)
  21569. {
  21570. return XcursorImageCreate ();
  21571. ;
  21572. return 0;
  21573. }
  21574. _ACEOF
  21575. if ac_fn_c_try_link "$LINENO"
  21576. then :
  21577. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21578. else $as_nop
  21579. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21580. fi
  21581. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21582. conftest$ac_exeext conftest.$ac_ext
  21583. LIBS=$ac_check_lib_save_LIBS
  21584. fi
  21585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21586. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21587. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21588. then :
  21589. have_xcursor_lib=yes
  21590. fi
  21591. if test x$have_xcursor_lib = xyes ; then
  21592. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21593. definitely_enable_video_x11_xcursor=yes
  21594. fi
  21595. fi
  21596. fi
  21597. fi
  21598. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21599. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21600. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21601. fi
  21602. # Check whether --enable-video-x11-xdbe was given.
  21603. if test ${enable_video_x11_xdbe+y}
  21604. then :
  21605. enableval=$enable_video_x11_xdbe;
  21606. else $as_nop
  21607. enable_video_x11_xdbe=yes
  21608. fi
  21609. if test x$enable_video_x11_xdbe = xyes; then
  21610. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21611. "
  21612. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21613. then :
  21614. have_dbe_h_hdr=yes
  21615. else $as_nop
  21616. have_dbe_h_hdr=no
  21617. fi
  21618. if test x$have_dbe_h_hdr = xyes; then
  21619. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21620. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21621. fi
  21622. fi
  21623. # Check whether --enable-video-x11-xinput was given.
  21624. if test ${enable_video_x11_xinput+y}
  21625. then :
  21626. enableval=$enable_video_x11_xinput;
  21627. else $as_nop
  21628. enable_video_x11_xinput=yes
  21629. fi
  21630. if test x$enable_video_x11_xinput = xyes; then
  21631. definitely_enable_video_x11_xinput=no
  21632. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21633. "
  21634. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21635. then :
  21636. have_xinput_h_hdr=yes
  21637. else $as_nop
  21638. have_xinput_h_hdr=no
  21639. fi
  21640. if test x$have_xinput_h_hdr = xyes; then
  21641. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21642. echo "-- dynamic libXi -> $xinput_lib"
  21643. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21644. definitely_enable_video_x11_xinput=yes
  21645. else
  21646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21647. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21648. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21649. then :
  21650. printf %s "(cached) " >&6
  21651. else $as_nop
  21652. ac_check_lib_save_LIBS=$LIBS
  21653. LIBS="-lXi $LIBS"
  21654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21655. /* end confdefs.h. */
  21656. /* Override any GCC internal prototype to avoid an error.
  21657. Use char because int might match the return type of a GCC
  21658. builtin and then its argument prototype would still apply. */
  21659. char XOpenDevice ();
  21660. int
  21661. main (void)
  21662. {
  21663. return XOpenDevice ();
  21664. ;
  21665. return 0;
  21666. }
  21667. _ACEOF
  21668. if ac_fn_c_try_link "$LINENO"
  21669. then :
  21670. ac_cv_lib_Xi_XOpenDevice=yes
  21671. else $as_nop
  21672. ac_cv_lib_Xi_XOpenDevice=no
  21673. fi
  21674. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21675. conftest$ac_exeext conftest.$ac_ext
  21676. LIBS=$ac_check_lib_save_LIBS
  21677. fi
  21678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21679. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21680. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21681. then :
  21682. have_xinput_lib=yes
  21683. fi
  21684. if test x$have_xinput_lib = xyes ; then
  21685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21686. definitely_enable_video_x11_xinput=yes
  21687. fi
  21688. fi
  21689. fi
  21690. fi
  21691. if test x$definitely_enable_video_x11_xinput = xyes; then
  21692. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21693. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21695. printf %s "checking for xinput2 multitouch... " >&6; }
  21696. have_xinput2_multitouch=no
  21697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21698. /* end confdefs.h. */
  21699. #include <X11/Xlib.h>
  21700. #include <X11/Xproto.h>
  21701. #include <X11/extensions/XInput2.h>
  21702. int
  21703. main (void)
  21704. {
  21705. int event_type = XI_TouchBegin;
  21706. XITouchClassInfo *t;
  21707. ;
  21708. return 0;
  21709. }
  21710. _ACEOF
  21711. if ac_fn_c_try_compile "$LINENO"
  21712. then :
  21713. have_xinput2_multitouch=yes
  21714. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21715. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21716. fi
  21717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21719. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21720. fi
  21721. # Check whether --enable-video-x11-xfixes was given.
  21722. if test ${enable_video_x11_xfixes+y}
  21723. then :
  21724. enableval=$enable_video_x11_xfixes;
  21725. else $as_nop
  21726. enable_video_x11_xfixes=yes
  21727. fi
  21728. if test x$enable_video_x11_xfixes = xyes; then
  21729. definitely_enable_video_x11_xfixes=no
  21730. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21732. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21734. /* end confdefs.h. */
  21735. #include <X11/Xlib.h>
  21736. #include <X11/Xproto.h>
  21737. #include <X11/extensions/XInput2.h>
  21738. #include <X11/extensions/Xfixes.h>
  21739. int
  21740. main (void)
  21741. {
  21742. BarrierEventID b;
  21743. ;
  21744. return 0;
  21745. }
  21746. _ACEOF
  21747. if ac_fn_c_try_compile "$LINENO"
  21748. then :
  21749. have_xfixes_h_hdr=yes
  21750. else $as_nop
  21751. have_xfixes_h_hdr=no
  21752. fi
  21753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21755. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21756. if test x$have_xfixes_h_hdr = xyes; then
  21757. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21758. echo "-- dynamic libXfixes -> $xfixes_lib"
  21759. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21760. definitely_enable_video_x11_xfixes=yes
  21761. else
  21762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21763. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21764. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21765. then :
  21766. printf %s "(cached) " >&6
  21767. else $as_nop
  21768. ac_check_lib_save_LIBS=$LIBS
  21769. LIBS="-lXfixes $LIBS"
  21770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21771. /* end confdefs.h. */
  21772. /* Override any GCC internal prototype to avoid an error.
  21773. Use char because int might match the return type of a GCC
  21774. builtin and then its argument prototype would still apply. */
  21775. char XFixesCreatePointerBarrier ();
  21776. int
  21777. main (void)
  21778. {
  21779. return XFixesCreatePointerBarrier ();
  21780. ;
  21781. return 0;
  21782. }
  21783. _ACEOF
  21784. if ac_fn_c_try_link "$LINENO"
  21785. then :
  21786. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21787. else $as_nop
  21788. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21789. fi
  21790. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21791. conftest$ac_exeext conftest.$ac_ext
  21792. LIBS=$ac_check_lib_save_LIBS
  21793. fi
  21794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21795. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21796. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21797. then :
  21798. have_xfixes_lib=yes
  21799. fi
  21800. if test x$have_xfixes_lib = xyes ; then
  21801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21802. definitely_enable_video_x11_xfixes=yes
  21803. fi
  21804. fi
  21805. fi
  21806. fi
  21807. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21808. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21809. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21810. fi
  21811. # Check whether --enable-video-x11-xrandr was given.
  21812. if test ${enable_video_x11_xrandr+y}
  21813. then :
  21814. enableval=$enable_video_x11_xrandr;
  21815. else $as_nop
  21816. enable_video_x11_xrandr=yes
  21817. fi
  21818. if test x$enable_video_x11_xrandr = xyes; then
  21819. definitely_enable_video_x11_xrandr=no
  21820. have_xrandr_h_hdr=no
  21821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21822. /* end confdefs.h. */
  21823. #include <X11/Xlib.h>
  21824. #include <X11/extensions/Xrandr.h>
  21825. int
  21826. main (void)
  21827. {
  21828. XRRScreenResources *res = NULL;
  21829. ;
  21830. return 0;
  21831. }
  21832. _ACEOF
  21833. if ac_fn_c_try_compile "$LINENO"
  21834. then :
  21835. have_xrandr_h_hdr=yes
  21836. fi
  21837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21838. if test x$have_xrandr_h_hdr = xyes; then
  21839. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21840. echo "-- dynamic libXrandr -> $xrandr_lib"
  21841. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21842. definitely_enable_video_x11_xrandr=yes
  21843. else
  21844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21845. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21846. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21847. then :
  21848. printf %s "(cached) " >&6
  21849. else $as_nop
  21850. ac_check_lib_save_LIBS=$LIBS
  21851. LIBS="-lXrandr $LIBS"
  21852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21853. /* end confdefs.h. */
  21854. /* Override any GCC internal prototype to avoid an error.
  21855. Use char because int might match the return type of a GCC
  21856. builtin and then its argument prototype would still apply. */
  21857. char XRRQueryExtension ();
  21858. int
  21859. main (void)
  21860. {
  21861. return XRRQueryExtension ();
  21862. ;
  21863. return 0;
  21864. }
  21865. _ACEOF
  21866. if ac_fn_c_try_link "$LINENO"
  21867. then :
  21868. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21869. else $as_nop
  21870. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21871. fi
  21872. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21873. conftest$ac_exeext conftest.$ac_ext
  21874. LIBS=$ac_check_lib_save_LIBS
  21875. fi
  21876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21877. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21878. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21879. then :
  21880. have_xrandr_lib=yes
  21881. fi
  21882. if test x$have_xrandr_lib = xyes ; then
  21883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21884. definitely_enable_video_x11_xrandr=yes
  21885. fi
  21886. fi
  21887. fi
  21888. fi
  21889. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21890. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21891. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21892. fi
  21893. # Check whether --enable-video-x11-scrnsaver was given.
  21894. if test ${enable_video_x11_scrnsaver+y}
  21895. then :
  21896. enableval=$enable_video_x11_scrnsaver;
  21897. else $as_nop
  21898. enable_video_x11_scrnsaver=yes
  21899. fi
  21900. if test x$enable_video_x11_scrnsaver = xyes; then
  21901. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21902. "
  21903. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21904. then :
  21905. have_scrnsaver_h_hdr=yes
  21906. else $as_nop
  21907. have_scrnsaver_h_hdr=no
  21908. fi
  21909. if test x$have_scrnsaver_h_hdr = xyes; then
  21910. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21911. echo "-- dynamic libXss -> $xss_lib"
  21912. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21913. definitely_enable_video_x11_scrnsaver=yes
  21914. else
  21915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21916. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21917. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21918. then :
  21919. printf %s "(cached) " >&6
  21920. else $as_nop
  21921. ac_check_lib_save_LIBS=$LIBS
  21922. LIBS="-lXss $LIBS"
  21923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21924. /* end confdefs.h. */
  21925. /* Override any GCC internal prototype to avoid an error.
  21926. Use char because int might match the return type of a GCC
  21927. builtin and then its argument prototype would still apply. */
  21928. char XScreenSaverSuspend ();
  21929. int
  21930. main (void)
  21931. {
  21932. return XScreenSaverSuspend ();
  21933. ;
  21934. return 0;
  21935. }
  21936. _ACEOF
  21937. if ac_fn_c_try_link "$LINENO"
  21938. then :
  21939. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21940. else $as_nop
  21941. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21942. fi
  21943. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21944. conftest$ac_exeext conftest.$ac_ext
  21945. LIBS=$ac_check_lib_save_LIBS
  21946. fi
  21947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21948. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21949. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21950. then :
  21951. have_xss_lib=yes
  21952. fi
  21953. if test x$have_xss_lib = xyes ; then
  21954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21955. definitely_enable_video_x11_scrnsaver=yes
  21956. fi
  21957. fi
  21958. fi
  21959. fi
  21960. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21961. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21962. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21963. fi
  21964. # Check whether --enable-video-x11-xshape was given.
  21965. if test ${enable_video_x11_xshape+y}
  21966. then :
  21967. enableval=$enable_video_x11_xshape;
  21968. else $as_nop
  21969. enable_video_x11_xshape=yes
  21970. fi
  21971. if test x$enable_video_x11_xshape = xyes; then
  21972. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21973. "
  21974. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21975. then :
  21976. have_shape_h_hdr=yes
  21977. else $as_nop
  21978. have_shape_h_hdr=no
  21979. fi
  21980. if test x$have_shape_h_hdr = xyes; then
  21981. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21982. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21983. fi
  21984. fi
  21985. fi
  21986. fi
  21987. if test x$have_x != xyes; then
  21988. # Prevent Mesa from including X11 headers
  21989. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21990. fi
  21991. }
  21992. CheckVivanteVideo()
  21993. {
  21994. # Check whether --enable-video-vivante was given.
  21995. if test ${enable_video_vivante+y}
  21996. then :
  21997. enableval=$enable_video_vivante;
  21998. else $as_nop
  21999. enable_video_vivante=yes
  22000. fi
  22001. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  22002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  22003. printf %s "checking for Vivante VDK API... " >&6; }
  22004. have_vivante_vdk=no
  22005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22006. /* end confdefs.h. */
  22007. #define LINUX
  22008. #define EGL_API_FB
  22009. #include <gc_vdk.h>
  22010. int
  22011. main (void)
  22012. {
  22013. ;
  22014. return 0;
  22015. }
  22016. _ACEOF
  22017. if ac_fn_c_try_compile "$LINENO"
  22018. then :
  22019. have_vivante_vdk=yes
  22020. fi
  22021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22023. printf "%s\n" "$have_vivante_vdk" >&6; }
  22024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22025. printf %s "checking for Vivante FB API... " >&6; }
  22026. have_vivante_egl=no
  22027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22028. /* end confdefs.h. */
  22029. #define LINUX
  22030. #define EGL_API_FB
  22031. #include <EGL/eglvivante.h>
  22032. int
  22033. main (void)
  22034. {
  22035. ;
  22036. return 0;
  22037. }
  22038. _ACEOF
  22039. if ac_fn_c_try_compile "$LINENO"
  22040. then :
  22041. have_vivante_egl=yes
  22042. fi
  22043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22045. printf "%s\n" "$have_vivante_egl" >&6; }
  22046. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22047. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22048. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22049. if test x$have_vivante_vdk = xyes; then
  22050. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22052. fi
  22053. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22054. SUMMARY_video="${SUMMARY_video} vivante"
  22055. have_video=yes
  22056. fi
  22057. fi
  22058. }
  22059. CheckHaikuVideo()
  22060. {
  22061. if test x$enable_video = xyes; then
  22062. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22063. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22064. have_video=yes
  22065. SUMMARY_video="${SUMMARY_video} haiku"
  22066. fi
  22067. }
  22068. CheckCOCOA()
  22069. {
  22070. # Check whether --enable-video-cocoa was given.
  22071. if test ${enable_video_cocoa+y}
  22072. then :
  22073. enableval=$enable_video_cocoa;
  22074. else $as_nop
  22075. enable_video_cocoa=yes
  22076. fi
  22077. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22078. save_CFLAGS="$CFLAGS"
  22079. CFLAGS="$CFLAGS -x objective-c"
  22080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22081. printf %s "checking for Cocoa framework... " >&6; }
  22082. have_cocoa=no
  22083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22084. /* end confdefs.h. */
  22085. #import <Cocoa/Cocoa.h>
  22086. int
  22087. main (void)
  22088. {
  22089. ;
  22090. return 0;
  22091. }
  22092. _ACEOF
  22093. if ac_fn_c_try_compile "$LINENO"
  22094. then :
  22095. have_cocoa=yes
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22099. printf "%s\n" "$have_cocoa" >&6; }
  22100. CFLAGS="$save_CFLAGS"
  22101. if test x$have_cocoa = xyes; then
  22102. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22103. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22104. SUMMARY_video="${SUMMARY_video} cocoa"
  22105. have_video=yes
  22106. fi
  22107. fi
  22108. }
  22109. CheckMETAL()
  22110. {
  22111. # Check whether --enable-video-metal was given.
  22112. if test ${enable_video_metal+y}
  22113. then :
  22114. enableval=$enable_video_metal;
  22115. else $as_nop
  22116. enable_video_metal=yes
  22117. fi
  22118. # Check whether --enable-render-metal was given.
  22119. if test ${enable_render_metal+y}
  22120. then :
  22121. enableval=$enable_render_metal;
  22122. else $as_nop
  22123. enable_render_metal=yes
  22124. fi
  22125. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22126. save_CFLAGS="$CFLAGS"
  22127. CFLAGS="$CFLAGS -x objective-c"
  22128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22129. printf %s "checking for Metal framework... " >&6; }
  22130. have_metal=no
  22131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22132. /* end confdefs.h. */
  22133. #import <Cocoa/Cocoa.h>
  22134. #import <Metal/Metal.h>
  22135. #import <QuartzCore/CAMetalLayer.h>
  22136. #if TARGET_CPU_X86
  22137. #error Metal doesn't work on this configuration
  22138. #endif
  22139. int
  22140. main (void)
  22141. {
  22142. ;
  22143. return 0;
  22144. }
  22145. _ACEOF
  22146. if ac_fn_c_try_compile "$LINENO"
  22147. then :
  22148. have_metal=yes
  22149. fi
  22150. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22151. CFLAGS="$save_CFLAGS"
  22152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22153. printf "%s\n" "$have_metal" >&6; }
  22154. if test x$have_metal = xyes; then
  22155. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22156. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22157. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22158. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22159. fi
  22160. SUMMARY_video="${SUMMARY_video} metal"
  22161. else
  22162. enable_video_metal=no
  22163. enable_render_metal=no
  22164. fi
  22165. fi
  22166. }
  22167. CheckDirectFB()
  22168. {
  22169. # Check whether --enable-video-directfb was given.
  22170. if test ${enable_video_directfb+y}
  22171. then :
  22172. enableval=$enable_video_directfb;
  22173. else $as_nop
  22174. enable_video_directfb=no
  22175. fi
  22176. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22177. pkg_failed=no
  22178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22179. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22180. if test -n "$DIRECTFB_CFLAGS"; then
  22181. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22182. elif test -n "$PKG_CONFIG"; then
  22183. if test -n "$PKG_CONFIG" && \
  22184. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22185. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22186. ac_status=$?
  22187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22188. test $ac_status = 0; }; then
  22189. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22190. test "x$?" != "x0" && pkg_failed=yes
  22191. else
  22192. pkg_failed=yes
  22193. fi
  22194. else
  22195. pkg_failed=untried
  22196. fi
  22197. if test -n "$DIRECTFB_LIBS"; then
  22198. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22199. elif test -n "$PKG_CONFIG"; then
  22200. if test -n "$PKG_CONFIG" && \
  22201. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22202. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22203. ac_status=$?
  22204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22205. test $ac_status = 0; }; then
  22206. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22207. test "x$?" != "x0" && pkg_failed=yes
  22208. else
  22209. pkg_failed=yes
  22210. fi
  22211. else
  22212. pkg_failed=untried
  22213. fi
  22214. if test $pkg_failed = yes; then
  22215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22216. printf "%s\n" "no" >&6; }
  22217. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22218. _pkg_short_errors_supported=yes
  22219. else
  22220. _pkg_short_errors_supported=no
  22221. fi
  22222. if test $_pkg_short_errors_supported = yes; then
  22223. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22224. else
  22225. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22226. fi
  22227. # Put the nasty error message in config.log where it belongs
  22228. echo "$DIRECTFB_PKG_ERRORS" >&5
  22229. video_directfb=no
  22230. elif test $pkg_failed = untried; then
  22231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22232. printf "%s\n" "no" >&6; }
  22233. video_directfb=no
  22234. else
  22235. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22236. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22238. printf "%s\n" "yes" >&6; }
  22239. video_directfb=yes
  22240. fi
  22241. if test x$video_directfb = xyes; then
  22242. # SuSE 11.1 installs directfb-config without directfb-devel
  22243. save_CPPFLAGS="$CPPFLAGS"
  22244. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22245. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22246. if test "x$ac_cv_header_directfb_h" = xyes
  22247. then :
  22248. have_directfb_hdr=yes
  22249. else $as_nop
  22250. have_directfb_hdr=no
  22251. fi
  22252. CPPFLAGS="$save_CPPFLAGS"
  22253. video_directfb=$have_directfb_hdr
  22254. fi
  22255. if test x$video_directfb = xyes; then
  22256. # Check whether --enable-directfb-shared was given.
  22257. if test ${enable_directfb_shared+y}
  22258. then :
  22259. enableval=$enable_directfb_shared;
  22260. else $as_nop
  22261. enable_directfb_shared=yes
  22262. fi
  22263. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22264. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22265. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22266. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22267. directfb_shared=no
  22268. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22269. if test x$have_loadso != xyes && \
  22270. test x$enable_directfb_shared = xyes; then
  22271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22272. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22273. fi
  22274. if test x$have_loadso = xyes && \
  22275. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22276. directfb_shared=yes
  22277. echo "-- dynamic libdirectfb -> $directfb_lib"
  22278. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22279. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22280. else
  22281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22282. SUMMARY_video="${SUMMARY_video} directfb"
  22283. fi
  22284. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22285. have_video=yes
  22286. fi
  22287. fi
  22288. }
  22289. CheckKMSDRM()
  22290. {
  22291. # Check whether --enable-video-kmsdrm was given.
  22292. if test ${enable_video_kmsdrm+y}
  22293. then :
  22294. enableval=$enable_video_kmsdrm;
  22295. else $as_nop
  22296. enable_video_kmsdrm=yes
  22297. fi
  22298. if test x$enable_video = xyes && \
  22299. test x$enable_video_kmsdrm = xyes && \
  22300. test x$video_opengl_egl = xyes; then
  22301. video_kmsdrm=no
  22302. pkg_failed=no
  22303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22304. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22305. if test -n "$LIBDRM_CFLAGS"; then
  22306. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22307. elif test -n "$PKG_CONFIG"; then
  22308. if test -n "$PKG_CONFIG" && \
  22309. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22310. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22311. ac_status=$?
  22312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22313. test $ac_status = 0; }; then
  22314. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22315. test "x$?" != "x0" && pkg_failed=yes
  22316. else
  22317. pkg_failed=yes
  22318. fi
  22319. else
  22320. pkg_failed=untried
  22321. fi
  22322. if test -n "$LIBDRM_LIBS"; then
  22323. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22324. elif test -n "$PKG_CONFIG"; then
  22325. if test -n "$PKG_CONFIG" && \
  22326. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22327. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22328. ac_status=$?
  22329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22330. test $ac_status = 0; }; then
  22331. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22332. test "x$?" != "x0" && pkg_failed=yes
  22333. else
  22334. pkg_failed=yes
  22335. fi
  22336. else
  22337. pkg_failed=untried
  22338. fi
  22339. if test $pkg_failed = yes; then
  22340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22341. printf "%s\n" "no" >&6; }
  22342. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22343. _pkg_short_errors_supported=yes
  22344. else
  22345. _pkg_short_errors_supported=no
  22346. fi
  22347. if test $_pkg_short_errors_supported = yes; then
  22348. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22349. else
  22350. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22351. fi
  22352. # Put the nasty error message in config.log where it belongs
  22353. echo "$LIBDRM_PKG_ERRORS" >&5
  22354. libdrm_avail=no
  22355. elif test $pkg_failed = untried; then
  22356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22357. printf "%s\n" "no" >&6; }
  22358. libdrm_avail=no
  22359. else
  22360. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22361. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22363. printf "%s\n" "yes" >&6; }
  22364. libdrm_avail=yes
  22365. fi
  22366. pkg_failed=no
  22367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22368. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22369. if test -n "$LIBGBM_CFLAGS"; then
  22370. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22371. elif test -n "$PKG_CONFIG"; then
  22372. if test -n "$PKG_CONFIG" && \
  22373. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22374. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22375. ac_status=$?
  22376. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22377. test $ac_status = 0; }; then
  22378. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22379. test "x$?" != "x0" && pkg_failed=yes
  22380. else
  22381. pkg_failed=yes
  22382. fi
  22383. else
  22384. pkg_failed=untried
  22385. fi
  22386. if test -n "$LIBGBM_LIBS"; then
  22387. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22388. elif test -n "$PKG_CONFIG"; then
  22389. if test -n "$PKG_CONFIG" && \
  22390. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22391. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22392. ac_status=$?
  22393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22394. test $ac_status = 0; }; then
  22395. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22396. test "x$?" != "x0" && pkg_failed=yes
  22397. else
  22398. pkg_failed=yes
  22399. fi
  22400. else
  22401. pkg_failed=untried
  22402. fi
  22403. if test $pkg_failed = yes; then
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22405. printf "%s\n" "no" >&6; }
  22406. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22407. _pkg_short_errors_supported=yes
  22408. else
  22409. _pkg_short_errors_supported=no
  22410. fi
  22411. if test $_pkg_short_errors_supported = yes; then
  22412. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22413. else
  22414. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22415. fi
  22416. # Put the nasty error message in config.log where it belongs
  22417. echo "$LIBGBM_PKG_ERRORS" >&5
  22418. libgbm_avail=no
  22419. elif test $pkg_failed = untried; then
  22420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22421. printf "%s\n" "no" >&6; }
  22422. libgbm_avail=no
  22423. else
  22424. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22425. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22427. printf "%s\n" "yes" >&6; }
  22428. libgbm_avail=yes
  22429. fi
  22430. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22431. video_kmsdrm=yes
  22432. fi
  22433. if test x$video_kmsdrm = xyes; then
  22434. # Check whether --enable-kmsdrm-shared was given.
  22435. if test ${enable_kmsdrm_shared+y}
  22436. then :
  22437. enableval=$enable_kmsdrm_shared;
  22438. else $as_nop
  22439. enable_kmsdrm_shared=yes
  22440. fi
  22441. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22442. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22443. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22445. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22446. kmsdrm_shared=no
  22447. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22448. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22449. if test x$have_loadso != xyes && \
  22450. test x$enable_kmsdrm_shared = xyes; then
  22451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22452. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22453. fi
  22454. if test x$have_loadso = xyes && \
  22455. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22456. kmsdrm_shared=yes
  22457. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22458. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22459. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22460. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22461. else
  22462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22463. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22464. fi
  22465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22466. printf "%s\n" "$kmsdrm_shared" >&6; }
  22467. if test x$kmsdrm_shared = xyes; then
  22468. echo "-- dynamic libdrm -> $drm_lib"
  22469. echo "-- dynamic libgbm -> $gbm_lib"
  22470. fi
  22471. have_video=yes
  22472. fi
  22473. fi
  22474. }
  22475. CheckDummyVideo()
  22476. {
  22477. # Check whether --enable-video-dummy was given.
  22478. if test ${enable_video_dummy+y}
  22479. then :
  22480. enableval=$enable_video_dummy;
  22481. else $as_nop
  22482. enable_video_dummy=yes
  22483. fi
  22484. if test x$enable_video_dummy = xyes; then
  22485. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22486. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22487. have_video=yes
  22488. SUMMARY_video="${SUMMARY_video} dummy"
  22489. fi
  22490. }
  22491. CheckOffscreenVideo()
  22492. {
  22493. # Check whether --enable-video-offscreen was given.
  22494. if test ${enable_video_offscreen+y}
  22495. then :
  22496. enableval=$enable_video_offscreen;
  22497. else $as_nop
  22498. enable_video_offscreen=yes
  22499. fi
  22500. if test x$enable_video_offscreen = xyes; then
  22501. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22502. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22503. have_video=yes
  22504. SUMMARY_video="${SUMMARY_video} offscreen"
  22505. fi
  22506. }
  22507. CheckQNXVideo()
  22508. {
  22509. if test x$enable_video = xyes; then
  22510. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22511. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22512. have_video=yes
  22513. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22514. SUMMARY_video="${SUMMARY_video} qnx"
  22515. fi
  22516. }
  22517. CheckQNXAudio()
  22518. {
  22519. if test x$enable_audio = xyes; then
  22520. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22521. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22522. have_audio=yes
  22523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22524. SUMMARY_audio="${SUMMARY_audio} qsa"
  22525. fi
  22526. }
  22527. # Check whether --enable-video-opengl was given.
  22528. if test ${enable_video_opengl+y}
  22529. then :
  22530. enableval=$enable_video_opengl;
  22531. else $as_nop
  22532. enable_video_opengl=yes
  22533. fi
  22534. CheckGLX()
  22535. {
  22536. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22538. printf %s "checking for GLX support... " >&6; }
  22539. video_opengl_glx=no
  22540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22541. /* end confdefs.h. */
  22542. #include <GL/glx.h>
  22543. int
  22544. main (void)
  22545. {
  22546. ;
  22547. return 0;
  22548. }
  22549. _ACEOF
  22550. if ac_fn_c_try_compile "$LINENO"
  22551. then :
  22552. video_opengl_glx=yes
  22553. fi
  22554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22556. printf "%s\n" "$video_opengl_glx" >&6; }
  22557. if test x$video_opengl_glx = xyes; then
  22558. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22559. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22560. fi
  22561. fi
  22562. }
  22563. # Check whether --enable-video-opengles was given.
  22564. if test ${enable_video_opengles+y}
  22565. then :
  22566. enableval=$enable_video_opengles;
  22567. else $as_nop
  22568. enable_video_opengles=yes
  22569. fi
  22570. # Check whether --enable-video-opengles1 was given.
  22571. if test ${enable_video_opengles1+y}
  22572. then :
  22573. enableval=$enable_video_opengles1;
  22574. else $as_nop
  22575. enable_video_opengles1=yes
  22576. fi
  22577. # Check whether --enable-video-opengles2 was given.
  22578. if test ${enable_video_opengles2+y}
  22579. then :
  22580. enableval=$enable_video_opengles2;
  22581. else $as_nop
  22582. enable_video_opengles2=yes
  22583. fi
  22584. CheckEGL()
  22585. {
  22586. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22588. printf %s "checking for EGL support... " >&6; }
  22589. video_opengl_egl=no
  22590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22591. /* end confdefs.h. */
  22592. #define LINUX
  22593. #define EGL_API_FB
  22594. #define MESA_EGL_NO_X11_HEADERS
  22595. #define EGL_NO_X11
  22596. #include <EGL/egl.h>
  22597. #include <EGL/eglext.h>
  22598. int
  22599. main (void)
  22600. {
  22601. ;
  22602. return 0;
  22603. }
  22604. _ACEOF
  22605. if ac_fn_c_try_compile "$LINENO"
  22606. then :
  22607. video_opengl_egl=yes
  22608. fi
  22609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22611. printf "%s\n" "$video_opengl_egl" >&6; }
  22612. if test x$video_opengl_egl = xyes; then
  22613. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22614. fi
  22615. fi
  22616. }
  22617. CheckOpenGL()
  22618. {
  22619. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22621. printf %s "checking for OpenGL headers... " >&6; }
  22622. video_opengl=no
  22623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22624. /* end confdefs.h. */
  22625. #include <GL/gl.h>
  22626. #include <GL/glext.h>
  22627. int
  22628. main (void)
  22629. {
  22630. ;
  22631. return 0;
  22632. }
  22633. _ACEOF
  22634. if ac_fn_c_try_compile "$LINENO"
  22635. then :
  22636. video_opengl=yes
  22637. fi
  22638. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22640. printf "%s\n" "$video_opengl" >&6; }
  22641. if test x$video_opengl = xyes; then
  22642. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22643. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22644. SUMMARY_video="${SUMMARY_video} opengl"
  22645. fi
  22646. fi
  22647. }
  22648. CheckOpenGLES()
  22649. {
  22650. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22651. if test x$enable_video_opengles1 = xyes; then
  22652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22653. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22654. video_opengles_v1=no
  22655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22656. /* end confdefs.h. */
  22657. #include <GLES/gl.h>
  22658. #include <GLES/glext.h>
  22659. int
  22660. main (void)
  22661. {
  22662. ;
  22663. return 0;
  22664. }
  22665. _ACEOF
  22666. if ac_fn_c_try_compile "$LINENO"
  22667. then :
  22668. video_opengles_v1=yes
  22669. fi
  22670. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22672. printf "%s\n" "$video_opengles_v1" >&6; }
  22673. if test x$video_opengles_v1 = xyes; then
  22674. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22675. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22676. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22677. fi
  22678. fi
  22679. if test x$enable_video_opengles2 = xyes; then
  22680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22681. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22682. video_opengles_v2=no
  22683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22684. /* end confdefs.h. */
  22685. #include <GLES2/gl2.h>
  22686. #include <GLES2/gl2ext.h>
  22687. int
  22688. main (void)
  22689. {
  22690. ;
  22691. return 0;
  22692. }
  22693. _ACEOF
  22694. if ac_fn_c_try_compile "$LINENO"
  22695. then :
  22696. video_opengles_v2=yes
  22697. fi
  22698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22700. printf "%s\n" "$video_opengles_v2" >&6; }
  22701. if test x$video_opengles_v2 = xyes; then
  22702. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22703. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22704. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22705. fi
  22706. fi
  22707. fi
  22708. }
  22709. CheckWINDOWSGL()
  22710. {
  22711. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22712. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22713. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22714. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22715. SUMMARY_video="${SUMMARY_video} opengl"
  22716. fi
  22717. }
  22718. CheckWINDOWSGLES()
  22719. {
  22720. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22722. printf %s "checking for EGL support... " >&6; }
  22723. video_opengl_egl=no
  22724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22725. /* end confdefs.h. */
  22726. #include <EGL/egl.h>
  22727. int
  22728. main (void)
  22729. {
  22730. ;
  22731. return 0;
  22732. }
  22733. _ACEOF
  22734. if ac_fn_c_try_compile "$LINENO"
  22735. then :
  22736. video_opengl_egl=yes
  22737. fi
  22738. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22740. printf "%s\n" "$video_opengl_egl" >&6; }
  22741. if test x$video_opengl_egl = xyes; then
  22742. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22743. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22744. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22745. fi
  22746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22747. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22748. video_opengles_v2=no
  22749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22750. /* end confdefs.h. */
  22751. #include <GLES2/gl2.h>
  22752. #include <GLES2/gl2ext.h>
  22753. int
  22754. main (void)
  22755. {
  22756. ;
  22757. return 0;
  22758. }
  22759. _ACEOF
  22760. if ac_fn_c_try_compile "$LINENO"
  22761. then :
  22762. video_opengles_v2=yes
  22763. fi
  22764. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22766. printf "%s\n" "$video_opengles_v2" >&6; }
  22767. if test x$video_opengles_v2 = xyes; then
  22768. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22769. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22770. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22771. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22772. fi
  22773. fi
  22774. }
  22775. CheckHaikuGL()
  22776. {
  22777. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22778. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22779. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22780. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22781. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22782. SUMMARY_video="${SUMMARY_video} opengl"
  22783. fi
  22784. }
  22785. CheckMacGL()
  22786. {
  22787. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22788. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22789. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22790. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22791. SUMMARY_video="${SUMMARY_video} opengl"
  22792. fi
  22793. }
  22794. CheckMacGLES()
  22795. {
  22796. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22797. video_opengl_egl=yes
  22798. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22799. video_opengles_v2=yes
  22800. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22801. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22802. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22803. fi
  22804. }
  22805. CheckEmscriptenGLES()
  22806. {
  22807. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22809. printf %s "checking for EGL support... " >&6; }
  22810. video_opengl_egl=no
  22811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22812. /* end confdefs.h. */
  22813. #include <EGL/egl.h>
  22814. int
  22815. main (void)
  22816. {
  22817. ;
  22818. return 0;
  22819. }
  22820. _ACEOF
  22821. if ac_fn_c_try_compile "$LINENO"
  22822. then :
  22823. video_opengl_egl=yes
  22824. fi
  22825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22827. printf "%s\n" "$video_opengl_egl" >&6; }
  22828. if test x$video_opengl_egl = xyes; then
  22829. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22830. fi
  22831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22832. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22833. video_opengles_v2=no
  22834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22835. /* end confdefs.h. */
  22836. #include <GLES2/gl2.h>
  22837. #include <GLES2/gl2ext.h>
  22838. int
  22839. main (void)
  22840. {
  22841. ;
  22842. return 0;
  22843. }
  22844. _ACEOF
  22845. if ac_fn_c_try_compile "$LINENO"
  22846. then :
  22847. video_opengles_v2=yes
  22848. fi
  22849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22851. printf "%s\n" "$video_opengles_v2" >&6; }
  22852. if test x$video_opengles_v2 = xyes; then
  22853. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22854. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22855. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22856. fi
  22857. fi
  22858. }
  22859. # Check whether --enable-video-vulkan was given.
  22860. if test ${enable_video_vulkan+y}
  22861. then :
  22862. enableval=$enable_video_vulkan;
  22863. else $as_nop
  22864. enable_video_vulkan=yes
  22865. fi
  22866. CheckVulkan()
  22867. {
  22868. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22869. case "$host" in
  22870. *-*-android*)
  22871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22872. /* end confdefs.h. */
  22873. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22874. #error Vulkan doesn't work on this configuration
  22875. #endif
  22876. int
  22877. main (void)
  22878. {
  22879. ;
  22880. return 0;
  22881. }
  22882. _ACEOF
  22883. if ac_fn_c_try_compile "$LINENO"
  22884. then :
  22885. else $as_nop
  22886. enable_video_vulkan=no
  22887. fi
  22888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22889. ;;
  22890. *-*-solaris*)
  22891. enable_video_vulkan=no
  22892. ;;
  22893. *-*-darwin*)
  22894. save_CFLAGS="$CFLAGS"
  22895. CFLAGS="$CFLAGS -x objective-c"
  22896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22897. /* end confdefs.h. */
  22898. #include <Cocoa/Cocoa.h>
  22899. #include <Metal/Metal.h>
  22900. #include <QuartzCore/CAMetalLayer.h>
  22901. #if TARGET_CPU_X86
  22902. #error Vulkan doesn't work on this configuration
  22903. #endif
  22904. int
  22905. main (void)
  22906. {
  22907. ;
  22908. return 0;
  22909. }
  22910. _ACEOF
  22911. if ac_fn_c_try_compile "$LINENO"
  22912. then :
  22913. else $as_nop
  22914. enable_video_vulkan=no
  22915. fi
  22916. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22917. CFLAGS="$save_CFLAGS"
  22918. ;;
  22919. *)
  22920. ;;
  22921. esac
  22922. if test x$enable_video_vulkan = xno; then
  22923. # For reasons I am totally unable to see, I get an undefined macro error if
  22924. # I put this in the AC_TRY_COMPILE.
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22926. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22927. fi
  22928. fi
  22929. if test x$have_loadso != xyes; then
  22930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22931. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22932. enable_video_vulkan=no
  22933. fi
  22934. if test x$enable_video_vulkan = xyes; then
  22935. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22936. SUMMARY_video="${SUMMARY_video} vulkan"
  22937. fi
  22938. }
  22939. CheckInputEvents()
  22940. {
  22941. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22942. if test "x$ac_cv_header_linux_input_h" = xyes
  22943. then :
  22944. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22945. fi
  22946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22947. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22948. use_input_events=no
  22949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22950. /* end confdefs.h. */
  22951. #include <linux/input.h>
  22952. int
  22953. main (void)
  22954. {
  22955. #ifndef EVIOCGNAME
  22956. #error EVIOCGNAME() ioctl not available
  22957. #endif
  22958. ;
  22959. return 0;
  22960. }
  22961. _ACEOF
  22962. if ac_fn_c_try_compile "$LINENO"
  22963. then :
  22964. use_input_events=yes
  22965. fi
  22966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22968. printf "%s\n" "$use_input_events" >&6; }
  22969. if test x$use_input_events = xyes; then
  22970. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22971. SUMMARY_input="${SUMMARY_input} linuxev"
  22972. fi
  22973. }
  22974. CheckInputKD()
  22975. {
  22976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22977. printf %s "checking for Linux kd.h... " >&6; }
  22978. use_input_kd=no
  22979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22980. /* end confdefs.h. */
  22981. #include <linux/kd.h>
  22982. #include <linux/keyboard.h>
  22983. #include <sys/ioctl.h>
  22984. int
  22985. main (void)
  22986. {
  22987. struct kbentry kbe;
  22988. kbe.kb_table = KG_CTRL;
  22989. ioctl(0, KDGKBENT, &kbe);
  22990. ;
  22991. return 0;
  22992. }
  22993. _ACEOF
  22994. if ac_fn_c_try_compile "$LINENO"
  22995. then :
  22996. use_input_kd=yes
  22997. fi
  22998. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  23000. printf "%s\n" "$use_input_kd" >&6; }
  23001. if test x$use_input_kd = xyes; then
  23002. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  23003. SUMMARY_input="${SUMMARY_input} linuxkd"
  23004. fi
  23005. }
  23006. CheckInputKBIO()
  23007. {
  23008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23009. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23010. use_input_kbio=no
  23011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23012. /* end confdefs.h. */
  23013. #include <sys/kbio.h>
  23014. #include <sys/ioctl.h>
  23015. int
  23016. main (void)
  23017. {
  23018. accentmap_t accTable;
  23019. ioctl(0, KDENABIO, 1);
  23020. ;
  23021. return 0;
  23022. }
  23023. _ACEOF
  23024. if ac_fn_c_try_compile "$LINENO"
  23025. then :
  23026. use_input_kbio=yes
  23027. fi
  23028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23030. printf "%s\n" "$use_input_kbio" >&6; }
  23031. if test x$use_input_kbio = xyes; then
  23032. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23033. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23034. fi
  23035. }
  23036. CheckInputWSCONS()
  23037. {
  23038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23039. printf %s "checking for OpenBSD wscons... " >&6; }
  23040. use_input_wscons=no
  23041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23042. /* end confdefs.h. */
  23043. #include <sys/time.h>
  23044. #include <dev/wscons/wsconsio.h>
  23045. #include <dev/wscons/wsksymdef.h>
  23046. #include <dev/wscons/wsksymvar.h>
  23047. #include <sys/ioctl.h>
  23048. int
  23049. main (void)
  23050. {
  23051. struct wskbd_map_data data;
  23052. ioctl(0, WSKBDIO_GETMAP, &data);
  23053. ;
  23054. return 0;
  23055. }
  23056. _ACEOF
  23057. if ac_fn_c_try_compile "$LINENO"
  23058. then :
  23059. use_input_wscons=yes
  23060. fi
  23061. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23063. printf "%s\n" "$use_input_wscons" >&6; }
  23064. if test x$use_input_wscons = xyes; then
  23065. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23066. SUMMARY_input="${SUMMARY_input} wscons"
  23067. fi
  23068. }
  23069. CheckLibUDev()
  23070. {
  23071. # Check whether --enable-libudev was given.
  23072. if test ${enable_libudev+y}
  23073. then :
  23074. enableval=$enable_libudev;
  23075. else $as_nop
  23076. enable_libudev=yes
  23077. fi
  23078. if test x$enable_libudev = xyes; then
  23079. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23080. if test "x$ac_cv_header_libudev_h" = xyes
  23081. then :
  23082. have_libudev_h_hdr=yes
  23083. else $as_nop
  23084. have_libudev_h_hdr=no
  23085. fi
  23086. if test x$have_libudev_h_hdr = xyes; then
  23087. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23088. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23089. if test x$udev_lib != x; then
  23090. echo "-- dynamic udev -> $udev_lib"
  23091. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23092. fi
  23093. fi
  23094. fi
  23095. }
  23096. CheckDBus()
  23097. {
  23098. # Check whether --enable-dbus was given.
  23099. if test ${enable_dbus+y}
  23100. then :
  23101. enableval=$enable_dbus;
  23102. else $as_nop
  23103. enable_dbus=yes
  23104. fi
  23105. if test x$enable_dbus = xyes; then
  23106. pkg_failed=no
  23107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23108. printf %s "checking for dbus-1... " >&6; }
  23109. if test -n "$DBUS_CFLAGS"; then
  23110. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23111. elif test -n "$PKG_CONFIG"; then
  23112. if test -n "$PKG_CONFIG" && \
  23113. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23114. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23115. ac_status=$?
  23116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23117. test $ac_status = 0; }; then
  23118. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23119. test "x$?" != "x0" && pkg_failed=yes
  23120. else
  23121. pkg_failed=yes
  23122. fi
  23123. else
  23124. pkg_failed=untried
  23125. fi
  23126. if test -n "$DBUS_LIBS"; then
  23127. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23128. elif test -n "$PKG_CONFIG"; then
  23129. if test -n "$PKG_CONFIG" && \
  23130. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23131. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23132. ac_status=$?
  23133. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23134. test $ac_status = 0; }; then
  23135. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23136. test "x$?" != "x0" && pkg_failed=yes
  23137. else
  23138. pkg_failed=yes
  23139. fi
  23140. else
  23141. pkg_failed=untried
  23142. fi
  23143. if test $pkg_failed = yes; then
  23144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23145. printf "%s\n" "no" >&6; }
  23146. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23147. _pkg_short_errors_supported=yes
  23148. else
  23149. _pkg_short_errors_supported=no
  23150. fi
  23151. if test $_pkg_short_errors_supported = yes; then
  23152. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23153. else
  23154. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23155. fi
  23156. # Put the nasty error message in config.log where it belongs
  23157. echo "$DBUS_PKG_ERRORS" >&5
  23158. have_dbus=no
  23159. elif test $pkg_failed = untried; then
  23160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23161. printf "%s\n" "no" >&6; }
  23162. have_dbus=no
  23163. else
  23164. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23165. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23167. printf "%s\n" "yes" >&6; }
  23168. have_dbus=yes
  23169. fi
  23170. save_CPPFLAGS="$CPPFLAGS"
  23171. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23172. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23173. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23174. then :
  23175. have_dbus_dbus_h_hdr=yes
  23176. else $as_nop
  23177. have_dbus_dbus_h_hdr=no
  23178. fi
  23179. CPPFLAGS="$save_CPPFLAGS"
  23180. if test x$have_dbus_dbus_h_hdr = xyes; then
  23181. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23182. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23183. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23184. fi
  23185. fi
  23186. }
  23187. CheckIME()
  23188. {
  23189. # Check whether --enable-ime was given.
  23190. if test ${enable_ime+y}
  23191. then :
  23192. enableval=$enable_ime;
  23193. else $as_nop
  23194. enable_ime=yes
  23195. fi
  23196. if test x$enable_ime = xyes; then
  23197. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23198. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23199. fi
  23200. }
  23201. CheckInotify()
  23202. {
  23203. save_LIBS="$LIBS"
  23204. case "$host" in
  23205. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23206. ;;
  23207. esac
  23208. for ac_header in sys/inotify.h
  23209. do :
  23210. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23211. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23212. then :
  23213. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23214. have_inotify_inotify_h_hdr=yes
  23215. fi
  23216. done
  23217. for ac_func in inotify_init
  23218. do :
  23219. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23220. if test "x$ac_cv_func_inotify_init" = xyes
  23221. then :
  23222. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23223. have_inotify=yes
  23224. fi
  23225. done
  23226. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23227. if test "x$ac_cv_func_inotify_init1" = xyes
  23228. then :
  23229. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23230. fi
  23231. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23232. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23233. case "$host" in
  23234. *-*-freebsd*|*-*-dragonfly*)
  23235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23236. ;;
  23237. esac
  23238. fi
  23239. LIBS="$save_LIBS"
  23240. }
  23241. CheckIBus()
  23242. {
  23243. # Check whether --enable-ibus was given.
  23244. if test ${enable_ibus+y}
  23245. then :
  23246. enableval=$enable_ibus;
  23247. else $as_nop
  23248. enable_ibus=yes
  23249. fi
  23250. if test x$enable_ibus = xyes; then
  23251. pkg_failed=no
  23252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23253. printf %s "checking for ibus-1.0... " >&6; }
  23254. if test -n "$IBUS_CFLAGS"; then
  23255. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23256. elif test -n "$PKG_CONFIG"; then
  23257. if test -n "$PKG_CONFIG" && \
  23258. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23259. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23260. ac_status=$?
  23261. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23262. test $ac_status = 0; }; then
  23263. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23264. test "x$?" != "x0" && pkg_failed=yes
  23265. else
  23266. pkg_failed=yes
  23267. fi
  23268. else
  23269. pkg_failed=untried
  23270. fi
  23271. if test -n "$IBUS_LIBS"; then
  23272. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23273. elif test -n "$PKG_CONFIG"; then
  23274. if test -n "$PKG_CONFIG" && \
  23275. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23276. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23277. ac_status=$?
  23278. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23279. test $ac_status = 0; }; then
  23280. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23281. test "x$?" != "x0" && pkg_failed=yes
  23282. else
  23283. pkg_failed=yes
  23284. fi
  23285. else
  23286. pkg_failed=untried
  23287. fi
  23288. if test $pkg_failed = yes; then
  23289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23290. printf "%s\n" "no" >&6; }
  23291. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23292. _pkg_short_errors_supported=yes
  23293. else
  23294. _pkg_short_errors_supported=no
  23295. fi
  23296. if test $_pkg_short_errors_supported = yes; then
  23297. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23298. else
  23299. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23300. fi
  23301. # Put the nasty error message in config.log where it belongs
  23302. echo "$IBUS_PKG_ERRORS" >&5
  23303. have_ibus=no
  23304. elif test $pkg_failed = untried; then
  23305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23306. printf "%s\n" "no" >&6; }
  23307. have_ibus=no
  23308. else
  23309. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23310. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23312. printf "%s\n" "yes" >&6; }
  23313. have_ibus=yes
  23314. fi
  23315. save_CPPFLAGS="$CPPFLAGS"
  23316. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23317. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23318. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23319. then :
  23320. have_ibus_ibus_h_hdr=yes
  23321. else $as_nop
  23322. have_ibus_ibus_h_hdr=no
  23323. fi
  23324. CPPFLAGS="$save_CPPFLAGS"
  23325. if test x$have_ibus_ibus_h_hdr = xyes; then
  23326. if test x$enable_ime != xyes; then
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23328. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23329. have_ibus_ibus_h_hdr=no
  23330. elif test x$enable_dbus != xyes; then
  23331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23332. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23333. have_ibus_ibus_h_hdr=no
  23334. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23336. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23337. have_ibus_ibus_h_hdr=no
  23338. else
  23339. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23340. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23341. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23342. fi
  23343. fi
  23344. fi
  23345. }
  23346. CheckFcitx()
  23347. {
  23348. # Check whether --enable-fcitx was given.
  23349. if test ${enable_fcitx+y}
  23350. then :
  23351. enableval=$enable_fcitx;
  23352. else $as_nop
  23353. enable_fcitx=yes
  23354. fi
  23355. if test x$enable_fcitx = xyes; then
  23356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23357. printf %s "checking for fcitx support... " >&6; }
  23358. have_fcitx=no
  23359. if test x$enable_ime != xyes; then
  23360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23361. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23362. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23364. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23365. else
  23366. have_fcitx=yes
  23367. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23368. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23369. fi
  23370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23371. printf "%s\n" "$have_fcitx" >&6; }
  23372. fi
  23373. }
  23374. CheckJoystickMFI()
  23375. {
  23376. # Check whether --enable-joystick-mfi was given.
  23377. if test ${enable_joystick_mfi+y}
  23378. then :
  23379. enableval=$enable_joystick_mfi;
  23380. else $as_nop
  23381. enable_joystick_mfi=yes
  23382. fi
  23383. if test x$enable_joystick_mfi = xyes; then
  23384. save_CFLAGS="$CFLAGS"
  23385. save_LDFLAGS="$LDFLAGS"
  23386. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23387. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23389. printf %s "checking for GameController framework... " >&6; }
  23390. enable_joystick_mfi=no
  23391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23392. /* end confdefs.h. */
  23393. #include <AvailabilityMacros.h>
  23394. #include <TargetConditionals.h>
  23395. #import <GameController/GameController.h>
  23396. int
  23397. main (void)
  23398. {
  23399. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23400. #error GameController framework doesn't work on this configuration
  23401. #endif
  23402. #if TARGET_CPU_X86
  23403. #error GameController framework doesn't work on this configuration
  23404. #endif
  23405. ;
  23406. return 0;
  23407. }
  23408. _ACEOF
  23409. if ac_fn_c_try_link "$LINENO"
  23410. then :
  23411. enable_joystick_mfi=yes
  23412. fi
  23413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23414. conftest$ac_exeext conftest.$ac_ext
  23415. CFLAGS="$save_CFLAGS"
  23416. LDFLAGS="$save_LDFLAGS"
  23417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23418. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23419. if test x$enable_joystick_mfi = xyes; then
  23420. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23421. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23422. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23423. fi
  23424. fi
  23425. }
  23426. CheckPTHREAD()
  23427. {
  23428. case "$host" in
  23429. *-*-emscripten*)
  23430. enable_pthreads_default=no
  23431. ;;
  23432. *)
  23433. enable_pthreads_default=yes
  23434. ;;
  23435. esac
  23436. # Check whether --enable-pthreads was given.
  23437. if test ${enable_pthreads+y}
  23438. then :
  23439. enableval=$enable_pthreads;
  23440. else $as_nop
  23441. enable_pthreads=maybe
  23442. fi
  23443. # Check whether --enable-pthread-sem was given.
  23444. if test ${enable_pthread_sem+y}
  23445. then :
  23446. enableval=$enable_pthread_sem;
  23447. else $as_nop
  23448. enable_pthread_sem=maybe
  23449. fi
  23450. if test x$enable_pthreads = xmaybe; then
  23451. enable_pthreads=$enable_pthreads_default
  23452. fi
  23453. if test x$enable_pthread_sem = xmaybe; then
  23454. enable_pthread_sem=$enable_pthreads
  23455. fi
  23456. case "$host" in
  23457. *-*-android*)
  23458. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23459. pthread_lib=""
  23460. ;;
  23461. *-*-linux*|*-*-uclinux*)
  23462. pthread_cflags="-D_REENTRANT"
  23463. pthread_lib="-lpthread"
  23464. ;;
  23465. *-*-bsdi*)
  23466. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23467. pthread_lib=""
  23468. ;;
  23469. *-*-darwin*)
  23470. pthread_cflags="-D_THREAD_SAFE"
  23471. # causes Carbon.p complaints?
  23472. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23473. ;;
  23474. *-*-freebsd*|*-*-dragonfly*)
  23475. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23476. pthread_lib="-pthread"
  23477. ;;
  23478. *-*-netbsd*)
  23479. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23480. pthread_lib="-lpthread"
  23481. ;;
  23482. *-*-openbsd*)
  23483. pthread_cflags="-D_REENTRANT"
  23484. pthread_lib="-lpthread"
  23485. ;;
  23486. *-*-solaris2.9)
  23487. # From Solaris 9+, posix4's preferred name is rt.
  23488. pthread_cflags="-D_REENTRANT"
  23489. pthread_lib="-lpthread -lrt"
  23490. ;;
  23491. *-*-solaris2.10)
  23492. # Solaris 10+ merged pthread into libc.
  23493. pthread_cflags="-D_REENTRANT"
  23494. pthread_lib="-lrt"
  23495. ;;
  23496. *-*-solaris*)
  23497. # Solaris 11+ merged rt into libc.
  23498. pthread_cflags="-D_REENTRANT"
  23499. pthread_lib=""
  23500. ;;
  23501. *-*-sysv5*)
  23502. pthread_cflags="-D_REENTRANT -Kthread"
  23503. pthread_lib=""
  23504. ;;
  23505. *-*-aix*)
  23506. pthread_cflags="-D_REENTRANT -mthreads"
  23507. pthread_lib="-lpthread"
  23508. ;;
  23509. *-*-hpux11*)
  23510. pthread_cflags="-D_REENTRANT"
  23511. pthread_lib="-L/usr/lib -lpthread"
  23512. ;;
  23513. *-*-haiku*)
  23514. pthread_cflags="-D_REENTRANT"
  23515. pthread_lib=""
  23516. ;;
  23517. *-*-nto*)
  23518. pthread_cflags="-D_REENTRANT"
  23519. pthread_lib=""
  23520. ;;
  23521. *-*-emscripten*)
  23522. pthread_cflags="-D_REENTRANT -pthread"
  23523. pthread_lib="-pthread"
  23524. ;;
  23525. *)
  23526. pthread_cflags="-D_REENTRANT"
  23527. pthread_lib="-lpthread"
  23528. ;;
  23529. esac
  23530. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23531. # Save the original compiler flags and libraries
  23532. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23533. # Add the pthread compiler flags and libraries
  23534. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23535. # Check to see if we have pthread support on this system
  23536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23537. printf %s "checking for pthreads... " >&6; }
  23538. use_pthreads=no
  23539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23540. /* end confdefs.h. */
  23541. #include <pthread.h>
  23542. int
  23543. main (void)
  23544. {
  23545. pthread_attr_t type;
  23546. pthread_attr_init(&type);
  23547. ;
  23548. return 0;
  23549. }
  23550. _ACEOF
  23551. if ac_fn_c_try_link "$LINENO"
  23552. then :
  23553. use_pthreads=yes
  23554. fi
  23555. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23556. conftest$ac_exeext conftest.$ac_ext
  23557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23558. printf "%s\n" "$use_pthreads" >&6; }
  23559. # Restore the compiler flags and libraries
  23560. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23561. # Do futher testing if we have pthread support...
  23562. if test x$use_pthreads = xyes; then
  23563. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23564. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23565. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23566. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23567. # Save the original compiler flags and libraries
  23568. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23569. # Add the pthread compiler flags and libraries
  23570. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23571. # Check to see if recursive mutexes are available
  23572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23573. printf %s "checking for recursive mutexes... " >&6; }
  23574. has_recursive_mutexes=no
  23575. if test x$has_recursive_mutexes = xno; then
  23576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23577. /* end confdefs.h. */
  23578. #define _GNU_SOURCE 1
  23579. #include <pthread.h>
  23580. int
  23581. main (void)
  23582. {
  23583. pthread_mutexattr_t attr;
  23584. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23585. ;
  23586. return 0;
  23587. }
  23588. _ACEOF
  23589. if ac_fn_c_try_link "$LINENO"
  23590. then :
  23591. has_recursive_mutexes=yes
  23592. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23593. fi
  23594. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23595. conftest$ac_exeext conftest.$ac_ext
  23596. fi
  23597. if test x$has_recursive_mutexes = xno; then
  23598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23599. /* end confdefs.h. */
  23600. #define _GNU_SOURCE 1
  23601. #include <pthread.h>
  23602. int
  23603. main (void)
  23604. {
  23605. pthread_mutexattr_t attr;
  23606. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23607. ;
  23608. return 0;
  23609. }
  23610. _ACEOF
  23611. if ac_fn_c_try_link "$LINENO"
  23612. then :
  23613. has_recursive_mutexes=yes
  23614. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23615. fi
  23616. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23617. conftest$ac_exeext conftest.$ac_ext
  23618. fi
  23619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23620. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23621. # Check to see if pthread semaphore support is missing
  23622. if test x$enable_pthread_sem = xyes; then
  23623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23624. printf %s "checking for pthread semaphores... " >&6; }
  23625. have_pthread_sem=no
  23626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23627. /* end confdefs.h. */
  23628. #include <pthread.h>
  23629. #include <semaphore.h>
  23630. int
  23631. main (void)
  23632. {
  23633. ;
  23634. return 0;
  23635. }
  23636. _ACEOF
  23637. if ac_fn_c_try_compile "$LINENO"
  23638. then :
  23639. have_pthread_sem=yes
  23640. fi
  23641. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23643. printf "%s\n" "$have_pthread_sem" >&6; }
  23644. fi
  23645. if test x$have_pthread_sem = xyes; then
  23646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23647. printf %s "checking for sem_timedwait... " >&6; }
  23648. have_sem_timedwait=no
  23649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23650. /* end confdefs.h. */
  23651. #include <pthread.h>
  23652. #include <semaphore.h>
  23653. int
  23654. main (void)
  23655. {
  23656. sem_timedwait(NULL, NULL);
  23657. ;
  23658. return 0;
  23659. }
  23660. _ACEOF
  23661. if ac_fn_c_try_link "$LINENO"
  23662. then :
  23663. have_sem_timedwait=yes
  23664. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23665. fi
  23666. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23667. conftest$ac_exeext conftest.$ac_ext
  23668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23669. printf "%s\n" "$have_sem_timedwait" >&6; }
  23670. fi
  23671. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23672. "
  23673. if test "x$ac_cv_header_pthread_np_h" = xyes
  23674. then :
  23675. have_pthread_np_h=yes
  23676. else $as_nop
  23677. have_pthread_np_h=no
  23678. fi
  23679. if test x$have_pthread_np_h = xyes; then
  23680. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23681. fi
  23682. # Check to see if pthread naming is available
  23683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23684. printf %s "checking for pthread_setname_np... " >&6; }
  23685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23686. /* end confdefs.h. */
  23687. /* Override any GCC internal prototype to avoid an error.
  23688. Use char because int might match the return type of a GCC
  23689. builtin and then its argument prototype would still apply. */
  23690. char pthread_setname_np ();
  23691. int
  23692. main (void)
  23693. {
  23694. return pthread_setname_np ();
  23695. ;
  23696. return 0;
  23697. }
  23698. _ACEOF
  23699. if ac_fn_c_try_link "$LINENO"
  23700. then :
  23701. has_pthread_setname_np=yes
  23702. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23703. else $as_nop
  23704. has_pthread_setname_np=no
  23705. fi
  23706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23707. conftest$ac_exeext conftest.$ac_ext
  23708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23709. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23711. printf %s "checking for pthread_set_name_np... " >&6; }
  23712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23713. /* end confdefs.h. */
  23714. /* Override any GCC internal prototype to avoid an error.
  23715. Use char because int might match the return type of a GCC
  23716. builtin and then its argument prototype would still apply. */
  23717. char pthread_set_name_np ();
  23718. int
  23719. main (void)
  23720. {
  23721. return pthread_set_name_np ();
  23722. ;
  23723. return 0;
  23724. }
  23725. _ACEOF
  23726. if ac_fn_c_try_link "$LINENO"
  23727. then :
  23728. has_pthread_set_name_np=yes
  23729. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23730. else $as_nop
  23731. has_pthread_set_name_np=no
  23732. fi
  23733. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23734. conftest$ac_exeext conftest.$ac_ext
  23735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23736. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23737. # Restore the compiler flags and libraries
  23738. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23739. # Basic thread creation functions
  23740. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23741. # Semaphores
  23742. # We can fake these with mutexes and condition variables if necessary
  23743. if test x$have_pthread_sem = xyes; then
  23744. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23745. else
  23746. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23747. fi
  23748. # Mutexes
  23749. # We can fake these with semaphores if necessary
  23750. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23751. # Condition variables
  23752. # We can fake these with semaphores and mutexes if necessary
  23753. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23754. # Thread local storage
  23755. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23756. have_threads=yes
  23757. fi
  23758. fi
  23759. }
  23760. CheckWINDOWS()
  23761. {
  23762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23763. printf %s "checking Windows compiler... " >&6; }
  23764. have_win32_gcc=no
  23765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23766. /* end confdefs.h. */
  23767. #include <windows.h>
  23768. int
  23769. main (void)
  23770. {
  23771. ;
  23772. return 0;
  23773. }
  23774. _ACEOF
  23775. if ac_fn_c_try_compile "$LINENO"
  23776. then :
  23777. have_win32_gcc=yes
  23778. fi
  23779. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23781. printf "%s\n" "$have_win32_gcc" >&6; }
  23782. if test x$have_win32_gcc != xyes; then
  23783. as_fn_error $? "
  23784. *** Your compiler ($CC) does not produce Windows executables!
  23785. " "$LINENO" 5
  23786. fi
  23787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23788. printf %s "checking Windows CE... " >&6; }
  23789. have_wince=no
  23790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23791. /* end confdefs.h. */
  23792. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23793. #error This is not Windows CE
  23794. #endif
  23795. int
  23796. main (void)
  23797. {
  23798. ;
  23799. return 0;
  23800. }
  23801. _ACEOF
  23802. if ac_fn_c_try_compile "$LINENO"
  23803. then :
  23804. have_wince=yes
  23805. as_fn_error $? "
  23806. *** Sorry, Windows CE is no longer supported.
  23807. " "$LINENO" 5
  23808. fi
  23809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23811. printf "%s\n" "$have_wince" >&6; }
  23812. # headers needed elsewhere
  23813. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23814. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23815. then :
  23816. have_tpcshrd_h=yes
  23817. fi
  23818. if test x$have_tpcshrd_h = xyes; then
  23819. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23820. fi
  23821. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23822. if test "x$ac_cv_header_roapi_h" = xyes
  23823. then :
  23824. have_roapi_h=yes
  23825. fi
  23826. if test x$have_roapi_h = xyes; then
  23827. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23828. fi
  23829. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23830. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23831. then :
  23832. have_shellscalingapi_h=yes
  23833. fi
  23834. if test x$shellscalingapi_h = xyes; then
  23835. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23836. fi
  23837. }
  23838. CheckOS2()
  23839. {
  23840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23841. printf %s "checking OS/2 compiler... " >&6; }
  23842. have_os2_gcc=no
  23843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23844. /* end confdefs.h. */
  23845. #include <os2.h>
  23846. int
  23847. main (void)
  23848. {
  23849. ;
  23850. return 0;
  23851. }
  23852. _ACEOF
  23853. if ac_fn_c_try_compile "$LINENO"
  23854. then :
  23855. have_os2_gcc=yes
  23856. fi
  23857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23859. printf "%s\n" "$have_os2_gcc" >&6; }
  23860. if test x$have_os2_gcc != xyes; then
  23861. as_fn_error $? "
  23862. *** Your compiler ($CC) does not produce OS/2 executables!
  23863. " "$LINENO" 5
  23864. fi
  23865. }
  23866. CheckDIRECTX()
  23867. {
  23868. # Check whether --enable-directx was given.
  23869. if test ${enable_directx+y}
  23870. then :
  23871. enableval=$enable_directx;
  23872. else $as_nop
  23873. enable_directx=yes
  23874. fi
  23875. if test x$enable_directx = xyes; then
  23876. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23877. if test "x$ac_cv_header_d3d9_h" = xyes
  23878. then :
  23879. have_d3d=yes
  23880. fi
  23881. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23882. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23883. then :
  23884. have_d3d11=yes
  23885. fi
  23886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23887. printf %s "checking for compatible d3d12 headers... " >&6; }
  23888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23889. /* end confdefs.h. */
  23890. #include <d3d12.h>
  23891. #include <d3d12sdklayers.h>
  23892. ID3D12Device1 *device;
  23893. int
  23894. main (void)
  23895. {
  23896. ;
  23897. return 0;
  23898. }
  23899. _ACEOF
  23900. if ac_fn_c_try_compile "$LINENO"
  23901. then :
  23902. have_d3d12=yes
  23903. else $as_nop
  23904. have_d3d12=no
  23905. fi
  23906. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23908. printf "%s\n" "$have_d3d12" >&6; }
  23909. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23910. if test "x$ac_cv_header_ddraw_h" = xyes
  23911. then :
  23912. have_ddraw=yes
  23913. fi
  23914. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23915. if test "x$ac_cv_header_dsound_h" = xyes
  23916. then :
  23917. have_dsound=yes
  23918. fi
  23919. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23920. if test "x$ac_cv_header_dinput_h" = xyes
  23921. then :
  23922. have_dinput=yes
  23923. fi
  23924. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23925. if test "x$ac_cv_header_dxgi_h" = xyes
  23926. then :
  23927. have_dxgi=yes
  23928. fi
  23929. if test x$have_ddraw = xyes; then
  23930. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23931. fi
  23932. if test x$have_dinput = xyes; then
  23933. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23934. fi
  23935. if test x$have_dsound = xyes; then
  23936. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23937. fi
  23938. if test x$have_dxgi = xyes; then
  23939. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23940. fi
  23941. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23942. # FIXME: ...so force it off for now.
  23943. case "$host" in
  23944. *-*-cygwin*)
  23945. have_dinput=false
  23946. ;;
  23947. esac
  23948. fi
  23949. # Check whether --enable-xinput was given.
  23950. if test ${enable_xinput+y}
  23951. then :
  23952. enableval=$enable_xinput;
  23953. else $as_nop
  23954. enable_xinput=yes
  23955. fi
  23956. if test x$enable_xinput = xyes; then
  23957. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23958. if test "x$ac_cv_header_xinput_h" = xyes
  23959. then :
  23960. have_xinput=yes
  23961. fi
  23962. if test x$have_xinput = xyes; then
  23963. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23964. fi
  23965. fi
  23966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23967. printf %s "checking for windows.gaming.input.h... " >&6; }
  23968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23969. /* end confdefs.h. */
  23970. #define COBJMACROS
  23971. #include <windows.gaming.input.h>
  23972. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23973. int
  23974. main (void)
  23975. {
  23976. ;
  23977. return 0;
  23978. }
  23979. _ACEOF
  23980. if ac_fn_c_try_compile "$LINENO"
  23981. then :
  23982. have_wgi=yes
  23983. else $as_nop
  23984. have_wgi=no
  23985. fi
  23986. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23988. printf "%s\n" "$have_wgi" >&6; }
  23989. if test x$have_wgi = xyes; then
  23990. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23991. fi
  23992. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23993. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23994. then :
  23995. have_wasapi=yes
  23996. fi
  23997. if test x$have_wasapi = xyes; then
  23998. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23999. fi
  24000. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  24001. if test "x$ac_cv_header_audioclient_h" = xyes
  24002. then :
  24003. else $as_nop
  24004. have_wasapi=no
  24005. fi
  24006. if test x$have_wasapi = xyes; then
  24007. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24008. fi
  24009. # Check whether --enable-wasapi was given.
  24010. if test ${enable_wasapi+y}
  24011. then :
  24012. enableval=$enable_wasapi;
  24013. else $as_nop
  24014. enable_wasapi=yes
  24015. fi
  24016. }
  24017. CheckDLOPEN()
  24018. {
  24019. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24020. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24021. if test "x$ac_cv_header_dlfcn_h" = xyes
  24022. then :
  24023. have_dlfcn_h=yes
  24024. else $as_nop
  24025. have_dlfcn_h=no
  24026. fi
  24027. have_dlopen=no
  24028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24029. printf %s "checking for dlopen in -lc... " >&6; }
  24030. if test ${ac_cv_lib_c_dlopen+y}
  24031. then :
  24032. printf %s "(cached) " >&6
  24033. else $as_nop
  24034. ac_check_lib_save_LIBS=$LIBS
  24035. LIBS="-lc $LIBS"
  24036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24037. /* end confdefs.h. */
  24038. /* Override any GCC internal prototype to avoid an error.
  24039. Use char because int might match the return type of a GCC
  24040. builtin and then its argument prototype would still apply. */
  24041. char dlopen ();
  24042. int
  24043. main (void)
  24044. {
  24045. return dlopen ();
  24046. ;
  24047. return 0;
  24048. }
  24049. _ACEOF
  24050. if ac_fn_c_try_link "$LINENO"
  24051. then :
  24052. ac_cv_lib_c_dlopen=yes
  24053. else $as_nop
  24054. ac_cv_lib_c_dlopen=no
  24055. fi
  24056. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24057. conftest$ac_exeext conftest.$ac_ext
  24058. LIBS=$ac_check_lib_save_LIBS
  24059. fi
  24060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24061. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24062. if test "x$ac_cv_lib_c_dlopen" = xyes
  24063. then :
  24064. have_dlopen=yes
  24065. else $as_nop
  24066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24067. printf %s "checking for dlopen in -ldl... " >&6; }
  24068. if test ${ac_cv_lib_dl_dlopen+y}
  24069. then :
  24070. printf %s "(cached) " >&6
  24071. else $as_nop
  24072. ac_check_lib_save_LIBS=$LIBS
  24073. LIBS="-ldl $LIBS"
  24074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24075. /* end confdefs.h. */
  24076. /* Override any GCC internal prototype to avoid an error.
  24077. Use char because int might match the return type of a GCC
  24078. builtin and then its argument prototype would still apply. */
  24079. char dlopen ();
  24080. int
  24081. main (void)
  24082. {
  24083. return dlopen ();
  24084. ;
  24085. return 0;
  24086. }
  24087. _ACEOF
  24088. if ac_fn_c_try_link "$LINENO"
  24089. then :
  24090. ac_cv_lib_dl_dlopen=yes
  24091. else $as_nop
  24092. ac_cv_lib_dl_dlopen=no
  24093. fi
  24094. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24095. conftest$ac_exeext conftest.$ac_ext
  24096. LIBS=$ac_check_lib_save_LIBS
  24097. fi
  24098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24099. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24100. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24101. then :
  24102. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24103. fi
  24104. fi
  24105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24106. printf %s "checking for dlopen... " >&6; }
  24107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24108. printf "%s\n" "$have_dlopen" >&6; }
  24109. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24110. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24111. if test x$enable_loadso = xyes; then
  24112. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24113. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24114. have_loadso=yes
  24115. fi
  24116. fi
  24117. }
  24118. CheckO_CLOEXEC()
  24119. {
  24120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24121. printf %s "checking for O_CLOEXEC... " >&6; }
  24122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24123. /* end confdefs.h. */
  24124. #include <fcntl.h>
  24125. int flag = O_CLOEXEC;
  24126. int
  24127. main (void)
  24128. {
  24129. ;
  24130. return 0;
  24131. }
  24132. _ACEOF
  24133. if ac_fn_c_try_compile "$LINENO"
  24134. then :
  24135. have_o_cloexec=yes
  24136. else $as_nop
  24137. have_o_cloexec=no
  24138. fi
  24139. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24141. printf "%s\n" "$have_o_cloexec" >&6; }
  24142. if test $have_o_cloexec = yes; then
  24143. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24144. fi
  24145. }
  24146. CheckUSBHID()
  24147. {
  24148. case "$host" in
  24149. *-*-*bsd*|*-*-dragonfly*)
  24150. if test x$enable_joystick = xyes; then
  24151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24152. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24153. if test ${ac_cv_lib_usbhid_hid_init+y}
  24154. then :
  24155. printf %s "(cached) " >&6
  24156. else $as_nop
  24157. ac_check_lib_save_LIBS=$LIBS
  24158. LIBS="-lusbhid $LIBS"
  24159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24160. /* end confdefs.h. */
  24161. /* Override any GCC internal prototype to avoid an error.
  24162. Use char because int might match the return type of a GCC
  24163. builtin and then its argument prototype would still apply. */
  24164. char hid_init ();
  24165. int
  24166. main (void)
  24167. {
  24168. return hid_init ();
  24169. ;
  24170. return 0;
  24171. }
  24172. _ACEOF
  24173. if ac_fn_c_try_link "$LINENO"
  24174. then :
  24175. ac_cv_lib_usbhid_hid_init=yes
  24176. else $as_nop
  24177. ac_cv_lib_usbhid_hid_init=no
  24178. fi
  24179. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24180. conftest$ac_exeext conftest.$ac_ext
  24181. LIBS=$ac_check_lib_save_LIBS
  24182. fi
  24183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24184. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24185. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24186. then :
  24187. have_libusbhid=yes
  24188. fi
  24189. if test x$have_libusbhid = xyes; then
  24190. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24191. if test "x$ac_cv_header_usbhid_h" = xyes
  24192. then :
  24193. USB_CFLAGS="-DHAVE_USBHID_H"
  24194. fi
  24195. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24196. if test "x$ac_cv_header_libusbhid_h" = xyes
  24197. then :
  24198. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24199. fi
  24200. USB_LIBS="$USB_LIBS -lusbhid"
  24201. else
  24202. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24203. if test "x$ac_cv_header_usb_h" = xyes
  24204. then :
  24205. USB_CFLAGS="-DHAVE_USB_H"
  24206. fi
  24207. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24208. if test "x$ac_cv_header_libusb_h" = xyes
  24209. then :
  24210. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24211. fi
  24212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24213. printf %s "checking for hid_init in -lusb... " >&6; }
  24214. if test ${ac_cv_lib_usb_hid_init+y}
  24215. then :
  24216. printf %s "(cached) " >&6
  24217. else $as_nop
  24218. ac_check_lib_save_LIBS=$LIBS
  24219. LIBS="-lusb $LIBS"
  24220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24221. /* end confdefs.h. */
  24222. /* Override any GCC internal prototype to avoid an error.
  24223. Use char because int might match the return type of a GCC
  24224. builtin and then its argument prototype would still apply. */
  24225. char hid_init ();
  24226. int
  24227. main (void)
  24228. {
  24229. return hid_init ();
  24230. ;
  24231. return 0;
  24232. }
  24233. _ACEOF
  24234. if ac_fn_c_try_link "$LINENO"
  24235. then :
  24236. ac_cv_lib_usb_hid_init=yes
  24237. else $as_nop
  24238. ac_cv_lib_usb_hid_init=no
  24239. fi
  24240. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24241. conftest$ac_exeext conftest.$ac_ext
  24242. LIBS=$ac_check_lib_save_LIBS
  24243. fi
  24244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24245. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24246. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24247. then :
  24248. USB_LIBS="$USB_LIBS -lusb"
  24249. fi
  24250. fi
  24251. save_CFLAGS="$CFLAGS"
  24252. CFLAGS="$CFLAGS $USB_CFLAGS"
  24253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24254. printf %s "checking for usbhid... " >&6; }
  24255. have_usbhid=no
  24256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24257. /* end confdefs.h. */
  24258. #include <sys/types.h>
  24259. #if defined(HAVE_USB_H)
  24260. #include <usb.h>
  24261. #endif
  24262. #ifdef __DragonFly__
  24263. # include <bus/u4b/usb.h>
  24264. # include <bus/u4b/usbhid.h>
  24265. #else
  24266. # include <dev/usb/usb.h>
  24267. # include <dev/usb/usbhid.h>
  24268. #endif
  24269. #if defined(HAVE_USBHID_H)
  24270. #include <usbhid.h>
  24271. #elif defined(HAVE_LIBUSB_H)
  24272. #include <libusb.h>
  24273. #elif defined(HAVE_LIBUSBHID_H)
  24274. #include <libusbhid.h>
  24275. #endif
  24276. int
  24277. main (void)
  24278. {
  24279. struct report_desc *repdesc;
  24280. struct usb_ctl_report *repbuf;
  24281. hid_kind_t hidkind;
  24282. ;
  24283. return 0;
  24284. }
  24285. _ACEOF
  24286. if ac_fn_c_try_compile "$LINENO"
  24287. then :
  24288. have_usbhid=yes
  24289. fi
  24290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24292. printf "%s\n" "$have_usbhid" >&6; }
  24293. if test x$have_usbhid = xyes; then
  24294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24295. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24296. have_usbhid_ucr_data=no
  24297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24298. /* end confdefs.h. */
  24299. #include <sys/types.h>
  24300. #if defined(HAVE_USB_H)
  24301. #include <usb.h>
  24302. #endif
  24303. #ifdef __DragonFly__
  24304. # include <bus/u4b/usb.h>
  24305. # include <bus/u4b/usbhid.h>
  24306. #else
  24307. # include <dev/usb/usb.h>
  24308. # include <dev/usb/usbhid.h>
  24309. #endif
  24310. #if defined(HAVE_USBHID_H)
  24311. #include <usbhid.h>
  24312. #elif defined(HAVE_LIBUSB_H)
  24313. #include <libusb.h>
  24314. #elif defined(HAVE_LIBUSBHID_H)
  24315. #include <libusbhid.h>
  24316. #endif
  24317. int
  24318. main (void)
  24319. {
  24320. struct usb_ctl_report buf;
  24321. if (buf.ucr_data) { }
  24322. ;
  24323. return 0;
  24324. }
  24325. _ACEOF
  24326. if ac_fn_c_try_compile "$LINENO"
  24327. then :
  24328. have_usbhid_ucr_data=yes
  24329. fi
  24330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24331. if test x$have_usbhid_ucr_data = xyes; then
  24332. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24333. fi
  24334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24335. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24337. printf %s "checking for new usbhid API... " >&6; }
  24338. have_usbhid_new=no
  24339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24340. /* end confdefs.h. */
  24341. #include <sys/types.h>
  24342. #if defined(HAVE_USB_H)
  24343. #include <usb.h>
  24344. #endif
  24345. #ifdef __DragonFly__
  24346. #include <bus/u4b/usb.h>
  24347. #include <bus/u4b/usbhid.h>
  24348. #else
  24349. #include <dev/usb/usb.h>
  24350. #include <dev/usb/usbhid.h>
  24351. #endif
  24352. #if defined(HAVE_USBHID_H)
  24353. #include <usbhid.h>
  24354. #elif defined(HAVE_LIBUSB_H)
  24355. #include <libusb.h>
  24356. #elif defined(HAVE_LIBUSBHID_H)
  24357. #include <libusbhid.h>
  24358. #endif
  24359. int
  24360. main (void)
  24361. {
  24362. report_desc_t d;
  24363. hid_start_parse(d, 1, 1);
  24364. ;
  24365. return 0;
  24366. }
  24367. _ACEOF
  24368. if ac_fn_c_try_compile "$LINENO"
  24369. then :
  24370. have_usbhid_new=yes
  24371. fi
  24372. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24373. if test x$have_usbhid_new = xyes; then
  24374. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24375. fi
  24376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24377. printf "%s\n" "$have_usbhid_new" >&6; }
  24378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24379. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24380. have_machine_joystick=no
  24381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24382. /* end confdefs.h. */
  24383. #include <machine/joystick.h>
  24384. int
  24385. main (void)
  24386. {
  24387. struct joystick t;
  24388. ;
  24389. return 0;
  24390. }
  24391. _ACEOF
  24392. if ac_fn_c_try_compile "$LINENO"
  24393. then :
  24394. have_machine_joystick=yes
  24395. fi
  24396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24397. if test x$have_machine_joystick = xyes; then
  24398. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24399. fi
  24400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24401. printf "%s\n" "$have_machine_joystick" >&6; }
  24402. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24403. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24404. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24406. have_joystick=yes
  24407. fi
  24408. CFLAGS="$save_CFLAGS"
  24409. fi
  24410. ;;
  24411. esac
  24412. }
  24413. CheckHIDAPI()
  24414. {
  24415. # Check whether --enable-hidapi-joystick was given.
  24416. if test ${enable_hidapi_joystick+y}
  24417. then :
  24418. enableval=$enable_hidapi_joystick;
  24419. else $as_nop
  24420. enable_hidapi_joystick=yes
  24421. fi
  24422. # Check whether --enable-hidapi-libusb was given.
  24423. if test ${enable_hidapi_libusb+y}
  24424. then :
  24425. enableval=$enable_hidapi_libusb;
  24426. else $as_nop
  24427. enable_hidapi_libusb=maybe
  24428. fi
  24429. if test x$enable_hidapi = xyes; then
  24430. case "$host" in
  24431. # libusb does not support iOS
  24432. *-ios-* )
  24433. enable_hidapi_libusb=no
  24434. ;;
  24435. # On the other hand, *BSD specifically uses libusb only
  24436. *-*-*bsd* )
  24437. enable_hidapi_libusb=yes
  24438. require_hidapi_libusb=yes
  24439. ;;
  24440. *-*-os2* )
  24441. enable_hidapi_libusb=yes
  24442. ;;
  24443. esac
  24444. hidapi_support=yes
  24445. if test x$enable_hidapi_libusb = xyes; then
  24446. pkg_failed=no
  24447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24448. printf %s "checking for libusb-1.0... " >&6; }
  24449. if test -n "$LIBUSB_CFLAGS"; then
  24450. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24451. elif test -n "$PKG_CONFIG"; then
  24452. if test -n "$PKG_CONFIG" && \
  24453. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24454. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24455. ac_status=$?
  24456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24457. test $ac_status = 0; }; then
  24458. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24459. test "x$?" != "x0" && pkg_failed=yes
  24460. else
  24461. pkg_failed=yes
  24462. fi
  24463. else
  24464. pkg_failed=untried
  24465. fi
  24466. if test -n "$LIBUSB_LIBS"; then
  24467. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24468. elif test -n "$PKG_CONFIG"; then
  24469. if test -n "$PKG_CONFIG" && \
  24470. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24471. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24472. ac_status=$?
  24473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24474. test $ac_status = 0; }; then
  24475. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24476. test "x$?" != "x0" && pkg_failed=yes
  24477. else
  24478. pkg_failed=yes
  24479. fi
  24480. else
  24481. pkg_failed=untried
  24482. fi
  24483. if test $pkg_failed = yes; then
  24484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24485. printf "%s\n" "no" >&6; }
  24486. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24487. _pkg_short_errors_supported=yes
  24488. else
  24489. _pkg_short_errors_supported=no
  24490. fi
  24491. if test $_pkg_short_errors_supported = yes; then
  24492. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24493. else
  24494. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24495. fi
  24496. # Put the nasty error message in config.log where it belongs
  24497. echo "$LIBUSB_PKG_ERRORS" >&5
  24498. have_libusb=no
  24499. elif test $pkg_failed = untried; then
  24500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24501. printf "%s\n" "no" >&6; }
  24502. have_libusb=no
  24503. else
  24504. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24505. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24507. printf "%s\n" "yes" >&6; }
  24508. have_libusb=yes
  24509. fi
  24510. save_CPPFLAGS="$CPPFLAGS"
  24511. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24512. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24513. if test "x$ac_cv_header_libusb_h" = xyes
  24514. then :
  24515. have_libusb_h=yes
  24516. else $as_nop
  24517. have_libusb_h=no
  24518. fi
  24519. CPPFLAGS="$save_CPPFLAGS"
  24520. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24521. hidapi_support=no
  24522. fi
  24523. fi
  24524. if test x$hidapi_support = xyes; then
  24525. if test x$have_libusb_h = xyes; then
  24526. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24527. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24528. if test x$require_hidapi_libusb = xyes; then
  24529. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24530. else
  24531. if test x$have_loadso != xyes; then
  24532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24533. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24534. fi
  24535. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24536. libusb_lib=""
  24537. case "$host" in
  24538. *-*-darwin* )
  24539. libusb_lib="libusb-1.0.0.dylib"
  24540. ;;
  24541. *-*-cygwin* | *-*-mingw* )
  24542. libusb_lib="libusb-1.0.dll"
  24543. ;;
  24544. *-*-os2* )
  24545. libusb_lib="usb100.dll"
  24546. ;;
  24547. esac
  24548. if test x$libusb_lib = x; then
  24549. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24550. fi
  24551. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24552. fi
  24553. fi
  24554. fi
  24555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24556. printf %s "checking for hidapi joystick support... " >&6; }
  24557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24558. printf "%s\n" "$hidapi_support" >&6; }
  24559. fi
  24560. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24561. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24562. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24563. fi
  24564. }
  24565. CheckClockGettime()
  24566. {
  24567. # Check whether --enable-clock_gettime was given.
  24568. if test ${enable_clock_gettime+y}
  24569. then :
  24570. enableval=$enable_clock_gettime;
  24571. else $as_nop
  24572. enable_clock_gettime=yes
  24573. fi
  24574. if test x$enable_clock_gettime = xyes; then
  24575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24576. printf %s "checking for clock_gettime in -lc... " >&6; }
  24577. if test ${ac_cv_lib_c_clock_gettime+y}
  24578. then :
  24579. printf %s "(cached) " >&6
  24580. else $as_nop
  24581. ac_check_lib_save_LIBS=$LIBS
  24582. LIBS="-lc $LIBS"
  24583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24584. /* end confdefs.h. */
  24585. /* Override any GCC internal prototype to avoid an error.
  24586. Use char because int might match the return type of a GCC
  24587. builtin and then its argument prototype would still apply. */
  24588. char clock_gettime ();
  24589. int
  24590. main (void)
  24591. {
  24592. return clock_gettime ();
  24593. ;
  24594. return 0;
  24595. }
  24596. _ACEOF
  24597. if ac_fn_c_try_link "$LINENO"
  24598. then :
  24599. ac_cv_lib_c_clock_gettime=yes
  24600. else $as_nop
  24601. ac_cv_lib_c_clock_gettime=no
  24602. fi
  24603. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24604. conftest$ac_exeext conftest.$ac_ext
  24605. LIBS=$ac_check_lib_save_LIBS
  24606. fi
  24607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24608. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24609. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24610. then :
  24611. have_clock_gettime=yes
  24612. fi
  24613. if test x$have_clock_gettime = xyes; then
  24614. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24615. else
  24616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24617. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24618. if test ${ac_cv_lib_rt_clock_gettime+y}
  24619. then :
  24620. printf %s "(cached) " >&6
  24621. else $as_nop
  24622. ac_check_lib_save_LIBS=$LIBS
  24623. LIBS="-lrt $LIBS"
  24624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24625. /* end confdefs.h. */
  24626. /* Override any GCC internal prototype to avoid an error.
  24627. Use char because int might match the return type of a GCC
  24628. builtin and then its argument prototype would still apply. */
  24629. char clock_gettime ();
  24630. int
  24631. main (void)
  24632. {
  24633. return clock_gettime ();
  24634. ;
  24635. return 0;
  24636. }
  24637. _ACEOF
  24638. if ac_fn_c_try_link "$LINENO"
  24639. then :
  24640. ac_cv_lib_rt_clock_gettime=yes
  24641. else $as_nop
  24642. ac_cv_lib_rt_clock_gettime=no
  24643. fi
  24644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24645. conftest$ac_exeext conftest.$ac_ext
  24646. LIBS=$ac_check_lib_save_LIBS
  24647. fi
  24648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24649. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24650. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24651. then :
  24652. have_clock_gettime=yes
  24653. fi
  24654. if test x$have_clock_gettime = xyes; then
  24655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24656. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24657. fi
  24658. fi
  24659. fi
  24660. }
  24661. CheckLinuxVersion()
  24662. {
  24663. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24664. if test "x$ac_cv_header_linux_version_h" = xyes
  24665. then :
  24666. have_linux_version_h=yes
  24667. fi
  24668. if test x$have_linux_version_h = xyes; then
  24669. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24670. fi
  24671. }
  24672. CheckRPATH()
  24673. {
  24674. # Check whether --enable-rpath was given.
  24675. if test ${enable_rpath+y}
  24676. then :
  24677. enableval=$enable_rpath;
  24678. else $as_nop
  24679. enable_rpath=yes
  24680. fi
  24681. }
  24682. CheckEventSignals()
  24683. {
  24684. # Check whether --enable-backgrounding-signal was given.
  24685. if test ${enable_backgrounding_signal+y}
  24686. then :
  24687. enableval=$enable_backgrounding_signal;
  24688. else $as_nop
  24689. enable_backgrounding_signal=no
  24690. fi
  24691. if test x$enable_backgrounding_signal != xno; then
  24692. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24693. fi
  24694. # Check whether --enable-foregrounding-signal was given.
  24695. if test ${enable_foregrounding_signal+y}
  24696. then :
  24697. enableval=$enable_foregrounding_signal;
  24698. else $as_nop
  24699. enable_foregrounding_signal=no
  24700. fi
  24701. if test x$enable_foregrounding_signal != xno; then
  24702. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24703. fi
  24704. }
  24705. CheckVirtualJoystick()
  24706. {
  24707. # Check whether --enable-joystick-virtual was given.
  24708. if test ${enable_joystick_virtual+y}
  24709. then :
  24710. enableval=$enable_joystick_virtual;
  24711. else $as_nop
  24712. enable_joystick_virtual=yes
  24713. fi
  24714. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24715. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24716. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24717. have_joystick_virtual=yes
  24718. fi
  24719. }
  24720. CheckWarnAll
  24721. CheckUnusedLocalTypedefs
  24722. CheckNoStrictAliasing
  24723. CheckEventSignals
  24724. have_locale=no
  24725. case "$host" in
  24726. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24727. case "$host" in
  24728. *-*-android*)
  24729. # Android
  24730. ARCH=android
  24731. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24732. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24733. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24734. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24736. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24737. if test x$enable_video = xyes; then
  24738. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24739. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24740. SUMMARY_video="${SUMMARY_video} android"
  24741. have_video=yes
  24742. fi
  24743. ;;
  24744. *-*-linux*) ARCH=linux ;;
  24745. *-*-uclinux*) ARCH=linux ;;
  24746. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24747. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24748. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24749. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24750. *-*-bsdi*) ARCH=bsdi ;;
  24751. *-*-freebsd*) ARCH=freebsd ;;
  24752. *-*-dragonfly*) ARCH=freebsd ;;
  24753. *-*-netbsd*) ARCH=netbsd ;;
  24754. *-*-openbsd*) ARCH=openbsd ;;
  24755. *-*-sysv5*) ARCH=sysv5 ;;
  24756. *-*-solaris*) ARCH=solaris ;;
  24757. *-*-hpux*) ARCH=hpux ;;
  24758. *-*-aix*) ARCH=aix ;;
  24759. *-*-minix*) ARCH=minix ;;
  24760. *-*-nto*) ARCH=nto
  24761. CheckQNXVideo
  24762. ;;
  24763. esac
  24764. CheckVisibilityHidden
  24765. CheckWerror
  24766. CheckDeclarationAfterStatement
  24767. CheckDummyVideo
  24768. CheckOffscreenVideo
  24769. CheckDiskAudio
  24770. CheckDummyAudio
  24771. CheckDLOPEN
  24772. CheckARM
  24773. CheckNEON
  24774. CheckO_CLOEXEC
  24775. CheckOSS
  24776. CheckALSA
  24777. CheckPipewire
  24778. CheckPulseAudio
  24779. CheckJACK
  24780. CheckARTSC
  24781. CheckESD
  24782. CheckNAS
  24783. CheckSNDIO
  24784. CheckFusionSound
  24785. CheckLibSampleRate
  24786. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24787. CheckRPI
  24788. CheckX11
  24789. CheckDirectFB
  24790. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24791. CheckEGL
  24792. CheckKMSDRM
  24793. CheckGLX
  24794. CheckOpenGL
  24795. CheckOpenGLES
  24796. CheckVulkan
  24797. CheckWayland
  24798. CheckInputEvents
  24799. CheckLibUDev
  24800. CheckDBus
  24801. CheckIME
  24802. CheckInotify
  24803. CheckIBus
  24804. CheckFcitx
  24805. case $ARCH in
  24806. linux)
  24807. CheckInputKD
  24808. ;;
  24809. freebsd)
  24810. CheckInputKBIO
  24811. ;;
  24812. openbsd|netbsd)
  24813. CheckInputWSCONS
  24814. ;;
  24815. esac
  24816. CheckUSBHID
  24817. CheckHIDAPI
  24818. CheckPTHREAD
  24819. CheckClockGettime
  24820. CheckLinuxVersion
  24821. CheckRPATH
  24822. CheckVivanteVideo
  24823. # Set up files for the misc library
  24824. if test x$enable_misc = xyes; then
  24825. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24826. have_misc=yes
  24827. fi
  24828. # Set up files for the locale library
  24829. if test x$enable_locale = xyes; then
  24830. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24831. have_locale=yes
  24832. fi
  24833. # Set up files for the audio library
  24834. if test x$enable_audio = xyes; then
  24835. case $ARCH in
  24836. sysv5|solaris|hpux)
  24837. # Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
  24838. ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
  24839. if test "x$ac_cv_header_sys_audioio_h" = xyes
  24840. then :
  24841. have_sys_audioio_h=yes
  24842. else $as_nop
  24843. have_sys_audioio_h=no
  24844. fi
  24845. if test x$have_sys_audioio_h = xyes; then
  24846. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24847. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24848. SUMMARY_audio="${SUMMARY_audio} sun"
  24849. have_audio=yes
  24850. fi
  24851. ;;
  24852. netbsd) # Don't use this on OpenBSD, it's busted.
  24853. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24854. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24855. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24856. have_audio=yes
  24857. ;;
  24858. aix)
  24859. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24860. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24861. SUMMARY_audio="${SUMMARY_audio} paudio"
  24862. have_audio=yes
  24863. ;;
  24864. android)
  24865. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24866. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24867. SUMMARY_audio="${SUMMARY_audio} android"
  24868. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24869. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24870. SUMMARY_audio="${SUMMARY_audio} openslES"
  24871. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24872. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24873. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24874. have_audio=yes
  24875. ;;
  24876. nto)
  24877. CheckQNXAudio
  24878. ;;
  24879. esac
  24880. fi
  24881. # Set up files for the joystick library
  24882. if test x$enable_joystick = xyes; then
  24883. case $ARCH in
  24884. linux)
  24885. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24886. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24887. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24888. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24889. have_joystick=yes
  24890. fi
  24891. ;;
  24892. freebsd)
  24893. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24894. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24895. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24896. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24897. have_joystick=yes
  24898. fi
  24899. ;;
  24900. android)
  24901. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24902. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24903. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24904. have_joystick=yes
  24905. ;;
  24906. esac
  24907. fi
  24908. # Set up files for the haptic library
  24909. if test x$enable_haptic = xyes; then
  24910. case $ARCH in
  24911. linux|freebsd)
  24912. if test x$use_input_events = xyes; then
  24913. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24914. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24915. have_haptic=yes
  24916. fi
  24917. ;;
  24918. android)
  24919. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24920. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24921. have_haptic=yes
  24922. ;;
  24923. esac
  24924. fi
  24925. # Set up files for the sensor library
  24926. if test x$enable_sensor = xyes; then
  24927. case $ARCH in
  24928. android)
  24929. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24930. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24931. have_sensor=yes
  24932. ;;
  24933. esac
  24934. fi
  24935. # Set up files for the power library
  24936. if test x$enable_power = xyes; then
  24937. case $ARCH in
  24938. linux)
  24939. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24940. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24941. have_power=yes
  24942. ;;
  24943. android)
  24944. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24945. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24946. have_power=yes
  24947. ;;
  24948. esac
  24949. fi
  24950. # Set up files for the filesystem library
  24951. if test x$enable_filesystem = xyes; then
  24952. case $ARCH in
  24953. android)
  24954. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24955. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24956. have_filesystem=yes
  24957. ;;
  24958. *)
  24959. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24960. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24961. have_filesystem=yes
  24962. ;;
  24963. esac
  24964. fi
  24965. # Set up files for the timer library
  24966. if test x$enable_timers = xyes; then
  24967. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24968. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24969. have_timers=yes
  24970. fi
  24971. # Set up files for udev hotplugging support
  24972. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24973. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24974. fi
  24975. # Set up files for evdev input
  24976. if test x$use_input_events = xyes; then
  24977. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24978. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24979. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24980. fi
  24981. # Set up files for wscons input
  24982. if test x$use_input_wscons = xyes; then
  24983. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24984. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24985. fi
  24986. # Set up other core UNIX files
  24987. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24988. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24989. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24990. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24991. ;;
  24992. *-*-cygwin* | *-*-mingw*)
  24993. ARCH=win32
  24994. if test "$build" != "$host"; then # cross-compiling
  24995. # Default cross-compile location
  24996. ac_default_prefix=/usr/local/cross-tools/$host
  24997. else
  24998. # Look for the location of the tools and install there
  24999. if test "$BUILD_PREFIX" != ""; then
  25000. ac_default_prefix=$BUILD_PREFIX
  25001. fi
  25002. fi
  25003. if test x$enable_loadso = xyes; then
  25004. have_loadso=yes
  25005. fi
  25006. CheckGDwarf4
  25007. CheckWerror
  25008. CheckDeclarationAfterStatement
  25009. CheckDummyVideo
  25010. CheckOffscreenVideo
  25011. CheckDiskAudio
  25012. CheckDummyAudio
  25013. CheckWINDOWS
  25014. CheckWINDOWSGL
  25015. CheckWINDOWSGLES
  25016. CheckVulkan
  25017. CheckDIRECTX
  25018. CheckHIDAPI
  25019. # Set up the core platform files
  25020. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25021. # Set up files for the misc library
  25022. if test x$enable_misc = xyes; then
  25023. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25024. have_misc=yes
  25025. fi
  25026. # Use the Windows locale APIs.
  25027. if test x$enable_locale = xyes; then
  25028. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25029. have_locale=yes
  25030. fi
  25031. # Set up files for the video library
  25032. if test x$enable_video = xyes; then
  25033. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25034. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25035. have_video=yes
  25036. # Check whether --enable-render-d3d was given.
  25037. if test ${enable_render_d3d+y}
  25038. then :
  25039. enableval=$enable_render_d3d;
  25040. else $as_nop
  25041. enable_render_d3d=yes
  25042. fi
  25043. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25044. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25045. SUMMARY_video="${SUMMARY_video} d3d9"
  25046. fi
  25047. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25048. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25049. SUMMARY_video="${SUMMARY_video} d3d11"
  25050. fi
  25051. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25052. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25053. SUMMARY_video="${SUMMARY_video} d3d12"
  25054. fi
  25055. fi
  25056. # Set up files for the audio library
  25057. if test x$enable_audio = xyes; then
  25058. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25059. SUMMARY_audio="${SUMMARY_audio} winmm"
  25060. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25061. if test x$have_dsound = xyes; then
  25062. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25063. SUMMARY_audio="${SUMMARY_audio} directsound"
  25064. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25065. fi
  25066. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25067. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25068. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25069. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25070. fi
  25071. have_audio=yes
  25072. fi
  25073. # Set up files for the joystick library
  25074. if test x$enable_joystick = xyes; then
  25075. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25076. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25077. if test x$have_xinput = xyes; then
  25078. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25079. fi
  25080. if test x$have_wgi = xyes; then
  25081. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25082. fi
  25083. if test x$have_dinput = xyes; then
  25084. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25086. fi
  25087. fi
  25088. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25089. have_joystick=yes
  25090. fi
  25091. if test x$enable_haptic = xyes; then
  25092. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25093. if test x$have_xinput = xyes; then
  25094. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25095. fi
  25096. if test x$have_dinput = xyes; then
  25097. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25098. fi
  25099. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25100. have_haptic=yes
  25101. fi
  25102. fi
  25103. # Set up files for the sensor library
  25104. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25105. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25106. then :
  25107. have_winsensors=yes
  25108. else $as_nop
  25109. have_winsensors=no
  25110. fi
  25111. if test x$have_winsensors = xyes; then
  25112. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25113. fi
  25114. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25115. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25116. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25117. have_sensor=yes
  25118. fi
  25119. # Set up files for the power library
  25120. if test x$enable_power = xyes; then
  25121. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25122. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25123. have_power=yes
  25124. fi
  25125. # Set up files for the filesystem library
  25126. if test x$enable_filesystem = xyes; then
  25127. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25128. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25129. have_filesystem=yes
  25130. fi
  25131. # Set up files for the thread library
  25132. if test x$enable_threads = xyes; then
  25133. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25134. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25135. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25136. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25137. have_threads=yes
  25138. fi
  25139. # Set up files for the timer library
  25140. if test x$enable_timers = xyes; then
  25141. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25142. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25143. have_timers=yes
  25144. fi
  25145. # Set up files for the shared object loading library
  25146. if test x$enable_loadso = xyes; then
  25147. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25148. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25149. fi
  25150. # Set up the system libraries we need
  25151. if test -f /lib/w32api/libuuid.a; then
  25152. LIBUUID=/lib/w32api/libuuid.a
  25153. else
  25154. LIBUUID=-luuid
  25155. fi
  25156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25157. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25158. # The Windows platform requires special setup
  25159. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25160. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25161. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25162. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25163. # Check to see if this is a mingw or cygwin build
  25164. have_mingw32=
  25165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25166. printf %s "checking for main in -lmingw32... " >&6; }
  25167. if test ${ac_cv_lib_mingw32_main+y}
  25168. then :
  25169. printf %s "(cached) " >&6
  25170. else $as_nop
  25171. ac_check_lib_save_LIBS=$LIBS
  25172. LIBS="-lmingw32 $LIBS"
  25173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25174. /* end confdefs.h. */
  25175. int
  25176. main (void)
  25177. {
  25178. return main ();
  25179. ;
  25180. return 0;
  25181. }
  25182. _ACEOF
  25183. if ac_fn_c_try_link "$LINENO"
  25184. then :
  25185. ac_cv_lib_mingw32_main=yes
  25186. else $as_nop
  25187. ac_cv_lib_mingw32_main=no
  25188. fi
  25189. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25190. conftest$ac_exeext conftest.$ac_ext
  25191. LIBS=$ac_check_lib_save_LIBS
  25192. fi
  25193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25194. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25195. if test "x$ac_cv_lib_mingw32_main" = xyes
  25196. then :
  25197. have_mingw32=yes
  25198. fi
  25199. if test x$have_mingw32 = xyes; then
  25200. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25201. else
  25202. SDL_LIBS="-lcygwin $SDL_LIBS"
  25203. fi
  25204. ;;
  25205. *-*-beos*)
  25206. as_fn_error $? "
  25207. *** BeOS support has been removed as of SDL 2.0.2.
  25208. " "$LINENO" 5
  25209. ;;
  25210. *-*-haiku*)
  25211. ARCH=haiku
  25212. ac_default_prefix=/boot/system
  25213. CheckDummyVideo
  25214. CheckOffscreenVideo
  25215. CheckDiskAudio
  25216. CheckDummyAudio
  25217. CheckDLOPEN
  25218. CheckO_CLOEXEC
  25219. CheckHaikuVideo
  25220. CheckHaikuGL
  25221. CheckPTHREAD
  25222. # Set up files for the audio library
  25223. if test x$enable_audio = xyes; then
  25224. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25225. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25226. SUMMARY_audio="${SUMMARY_audio} haiku"
  25227. have_audio=yes
  25228. fi
  25229. # Set up files for the joystick library
  25230. if test x$enable_joystick = xyes; then
  25231. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25232. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25233. have_joystick=yes
  25234. fi
  25235. # Set up files for the timer library
  25236. if test x$enable_timers = xyes; then
  25237. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25238. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25239. have_timers=yes
  25240. fi
  25241. # Set up files for the system power library
  25242. if test x$enable_power = xyes; then
  25243. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25244. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25245. have_power=yes
  25246. fi
  25247. # Set up files for the system filesystem library
  25248. if test x$enable_filesystem = xyes; then
  25249. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25250. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25251. have_filesystem=yes
  25252. fi
  25253. # Set up files for the misc library
  25254. if test x$enable_misc = xyes; then
  25255. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25256. have_misc=yes
  25257. fi
  25258. # Set up files for the locale library
  25259. if test x$enable_locale = xyes; then
  25260. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25261. have_locale=yes
  25262. fi
  25263. # The Haiku platform requires special setup.
  25264. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25265. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25266. ;;
  25267. *-ios-*)
  25268. ARCH=ios
  25269. CheckVisibilityHidden
  25270. CheckWerror
  25271. CheckNoErrorDeprecatedDeclarationsWerror
  25272. CheckDeclarationAfterStatement
  25273. CheckDummyVideo
  25274. CheckOffscreenVideo
  25275. CheckDiskAudio
  25276. CheckDummyAudio
  25277. CheckDLOPEN
  25278. CheckO_CLOEXEC
  25279. CheckMETAL
  25280. CheckVulkan
  25281. CheckPTHREAD
  25282. # Set up files for the misc library
  25283. if test x$enable_misc = xyes; then
  25284. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25285. have_misc=yes
  25286. fi
  25287. # Set up files for the locale library
  25288. if test x$enable_locale = xyes; then
  25289. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25290. have_locale=yes
  25291. fi
  25292. # Set up files for the audio library
  25293. if test x$enable_audio = xyes; then
  25294. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25295. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25296. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25297. have_audio=yes
  25298. fi
  25299. # Set up files for the joystick library
  25300. if test x$enable_joystick = xyes; then
  25301. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25302. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25303. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25304. have_joystick=yes
  25305. else
  25306. # Need this code for accelerometer as joystick support
  25307. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25308. fi
  25309. # Set up files for the haptic library
  25310. #if test x$enable_haptic = xyes; then
  25311. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25312. # have_haptic=yes
  25313. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25314. #fi
  25315. # Set up files for the sensor library
  25316. if test x$enable_sensor = xyes; then
  25317. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25318. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25319. have_sensor=yes
  25320. fi
  25321. # Set up files for the power library
  25322. if test x$enable_power = xyes; then
  25323. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25324. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25325. have_power=yes
  25326. fi
  25327. # Set up files for the filesystem library
  25328. if test x$enable_filesystem = xyes; then
  25329. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25330. have_filesystem=yes
  25331. fi
  25332. # Set up additional files for the file library
  25333. if test x$enable_file = xyes; then
  25334. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25335. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25336. fi
  25337. # Set up files for the timer library
  25338. if test x$enable_timers = xyes; then
  25339. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25340. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25341. have_timers=yes
  25342. fi
  25343. # Set up other core UNIX files
  25344. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25345. # The iOS platform requires special setup.
  25346. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25347. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25348. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25349. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25350. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25351. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25352. SUMMARY_video="${SUMMARY_video} uikit"
  25353. have_video=yes
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25355. if test x$enable_system_iconv = xyes; then
  25356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25357. fi
  25358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25367. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25369. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25371. fi
  25372. ;;
  25373. *-*-darwin* )
  25374. # This could be either full "Mac OS X", or plain "Darwin" which is
  25375. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25376. # Next line is broken, and a few files below require Mac OS X (full)
  25377. ARCH=macosx
  25378. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25379. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25380. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25381. CheckObjectiveCARC
  25382. CheckVisibilityHidden
  25383. CheckWerror
  25384. CheckNoErrorDeprecatedDeclarationsWerror
  25385. CheckDeclarationAfterStatement
  25386. CheckDummyVideo
  25387. CheckOffscreenVideo
  25388. CheckDiskAudio
  25389. CheckDummyAudio
  25390. CheckDLOPEN
  25391. CheckO_CLOEXEC
  25392. CheckCOCOA
  25393. CheckMETAL
  25394. CheckX11
  25395. CheckMacGL
  25396. CheckMacGLES
  25397. CheckGLX
  25398. CheckOpenGL
  25399. CheckVulkan
  25400. CheckPTHREAD
  25401. CheckHIDAPI
  25402. # Set up files for the misc library
  25403. if test x$enable_misc = xyes; then
  25404. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25405. have_misc=yes
  25406. fi
  25407. # Set up files for the locale library
  25408. if test x$enable_locale = xyes; then
  25409. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25410. have_locale=yes
  25411. fi
  25412. # Set up files for the audio library
  25413. if test x$enable_audio = xyes; then
  25414. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25415. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25417. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25418. have_audio=yes
  25419. fi
  25420. # Set up files for the joystick library
  25421. if test x$enable_joystick = xyes; then
  25422. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25423. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25424. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25425. CheckJoystickMFI
  25426. have_joystick=yes
  25427. fi
  25428. # Set up files for the haptic library
  25429. if test x$enable_haptic = xyes; then
  25430. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25431. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25432. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25433. have_haptic=yes
  25434. fi
  25435. # Set up files for the power library
  25436. if test x$enable_power = xyes; then
  25437. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25438. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25439. have_power=yes
  25440. fi
  25441. # Set up files for the filesystem library
  25442. if test x$enable_filesystem = xyes; then
  25443. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25444. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25445. have_filesystem=yes
  25446. fi
  25447. # Set up files for the timer library
  25448. if test x$enable_timers = xyes; then
  25449. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25450. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25451. have_timers=yes
  25452. fi
  25453. # Set up additional files for the file library
  25454. if test x$enable_file = xyes; then
  25455. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25456. fi
  25457. # Set up other core UNIX files
  25458. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25459. # The Mac OS X platform requires special setup.
  25460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25463. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25465. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25467. fi
  25468. ;;
  25469. *-nacl|*-pnacl)
  25470. ARCH=nacl
  25471. CheckNativeClient
  25472. CheckDummyAudio
  25473. CheckDummyVideo
  25474. CheckOffscreenVideo
  25475. CheckInputEvents
  25476. CheckPTHREAD
  25477. CheckO_CLOEXEC
  25478. # Set up files for the timer library
  25479. if test x$enable_timers = xyes; then
  25480. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25481. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25482. have_timers=yes
  25483. fi
  25484. if test x$enable_filesystem = xyes; then
  25485. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25486. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25487. have_filesystem=yes
  25488. fi
  25489. ;;
  25490. *-*-emscripten* )
  25491. if test x$enable_video = xyes; then
  25492. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25493. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25494. have_video=yes
  25495. SUMMARY_video="${SUMMARY_video} emscripten"
  25496. fi
  25497. if test x$enable_audio = xyes; then
  25498. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25499. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25500. have_audio=yes
  25501. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25502. fi
  25503. CheckVisibilityHidden
  25504. CheckWerror
  25505. CheckDeclarationAfterStatement
  25506. CheckDummyVideo
  25507. CheckOffscreenVideo
  25508. CheckDiskAudio
  25509. CheckDummyAudio
  25510. CheckPTHREAD
  25511. CheckDLOPEN
  25512. CheckClockGettime
  25513. CheckEmscriptenGLES
  25514. # Set up files for the misc library
  25515. if test x$enable_misc = xyes; then
  25516. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25517. have_misc=yes
  25518. fi
  25519. # Set up files for the power library
  25520. if test x$enable_power = xyes; then
  25521. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25522. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25523. have_power=yes
  25524. fi
  25525. # Set up files for the joystick library
  25526. if test x$enable_joystick = xyes; then
  25527. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25528. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25529. have_joystick=yes
  25530. fi
  25531. # Set up files for the filesystem library
  25532. if test x$enable_filesystem = xyes; then
  25533. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25534. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25535. have_filesystem=yes
  25536. fi
  25537. # Set up files for the timer library
  25538. if test x$enable_timers = xyes; then
  25539. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25540. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25541. have_timers=yes
  25542. fi
  25543. # Set up files for the locale library
  25544. if test x$enable_locale = xyes; then
  25545. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25546. have_locale=yes
  25547. fi
  25548. ;;
  25549. *-*-riscos*)
  25550. ARCH=riscos
  25551. CheckVisibilityHidden
  25552. CheckWerror
  25553. CheckDeclarationAfterStatement
  25554. CheckDummyVideo
  25555. CheckOffscreenVideo
  25556. CheckDiskAudio
  25557. CheckDummyAudio
  25558. CheckDLOPEN
  25559. CheckO_CLOEXEC
  25560. CheckOSS
  25561. CheckPTHREAD
  25562. CheckClockGettime
  25563. # Set up files for the misc library
  25564. if test x$enable_misc = xyes; then
  25565. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25566. have_misc=yes
  25567. fi
  25568. # Set up files for the video library
  25569. if test x$enable_video = xyes; then
  25570. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25571. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25572. have_video=yes
  25573. SUMMARY_video="${SUMMARY_video} riscos"
  25574. fi
  25575. # Set up files for the filesystem library
  25576. if test x$enable_filesystem = xyes; then
  25577. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25578. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25579. have_filesystem=yes
  25580. fi
  25581. # Set up files for the timer library
  25582. if test x$enable_timers = xyes; then
  25583. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25584. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25585. have_timers=yes
  25586. fi
  25587. ;;
  25588. *-*-os2*)
  25589. ARCH=os2
  25590. if test "$build" != "$host"; then # cross-compiling
  25591. # Default cross-compile location
  25592. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25593. else
  25594. # Look for the location of the tools and install there
  25595. if test "$BUILD_PREFIX" != ""; then
  25596. ac_default_prefix=$BUILD_PREFIX
  25597. fi
  25598. fi
  25599. enable_static=no # disable static builds
  25600. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25601. CheckOS2
  25602. CheckWerror
  25603. CheckDeclarationAfterStatement
  25604. CheckDummyVideo
  25605. CheckDiskAudio
  25606. CheckDummyAudio
  25607. CheckHIDAPI
  25608. # Set up the core platform files
  25609. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25610. if test x$enable_system_iconv = xyes; then
  25611. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25612. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25613. fi
  25614. fi
  25615. # Use the Unix locale APIs.
  25616. if test x$enable_locale = xyes; then
  25617. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25618. have_locale=yes
  25619. fi
  25620. # Set up files for the video library
  25621. if test x$enable_video = xyes; then
  25622. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25623. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25624. have_video=yes
  25625. SUMMARY_video="${SUMMARY_video} OS/2"
  25626. fi
  25627. # Set up files for the audio library
  25628. if test x$enable_audio = xyes; then
  25629. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25630. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25631. have_audio=yes
  25632. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25633. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25634. fi
  25635. # Set up files for the thread library
  25636. if test x$enable_threads = xyes; then
  25637. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25638. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25639. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25640. have_threads=yes
  25641. fi
  25642. # Set up files for the timer library
  25643. if test x$enable_timers = xyes; then
  25644. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25645. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25646. have_timers=yes
  25647. fi
  25648. # Set up files for the shared object loading library
  25649. if test x$enable_loadso = xyes; then
  25650. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25651. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25652. have_loadso=yes
  25653. fi
  25654. # Set up files for the filesystem library
  25655. if test x$enable_filesystem = xyes; then
  25656. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25657. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25658. have_filesystem=yes
  25659. fi
  25660. # Set up files for the joystick library
  25661. if test x$enable_joystick = xyes; then
  25662. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25663. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25664. have_joystick=yes
  25665. fi
  25666. ;;
  25667. *)
  25668. as_fn_error $? "
  25669. *** Unsupported host: Please add to configure.ac
  25670. " "$LINENO" 5
  25671. ;;
  25672. esac
  25673. CheckVirtualJoystick
  25674. # Check whether to install sdl2-config
  25675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25676. printf %s "checking whether to install sdl2-config... " >&6; }
  25677. # Check whether --enable-sdl2-config was given.
  25678. if test ${enable_sdl2_config+y}
  25679. then :
  25680. enableval=$enable_sdl2_config; case "${enableval}" in
  25681. yes) enable_sdl2_config="TRUE" ;;
  25682. no) enable_sdl2_config="FALSE" ;;
  25683. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25684. esac
  25685. else $as_nop
  25686. enable_sdl2_config="TRUE"
  25687. fi
  25688. if test "$enable_sdl2_config" = "TRUE"; then
  25689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25690. printf "%s\n" "yes" >&6; }
  25691. else
  25692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25693. printf "%s\n" "no" >&6; }
  25694. fi
  25695. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25696. # Check whether --enable-vendor-info was given.
  25697. if test ${enable_vendor_info+y}
  25698. then :
  25699. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25700. else $as_nop
  25701. enable_vendor_info=
  25702. fi
  25703. if test "$enable_vendor_info" = no
  25704. then :
  25705. enable_vendor_info=
  25706. fi
  25707. SDL_VENDOR_INFO=$enable_vendor_info
  25708. # Verify that we have all the platform specific files we need
  25709. if test x$have_audio != xyes; then
  25710. if test x$enable_audio = xyes; then
  25711. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25712. fi
  25713. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25714. fi
  25715. if test x$have_video != xyes; then
  25716. if test x$enable_video = xyes; then
  25717. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25718. fi
  25719. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25720. fi
  25721. if test x$have_misc != xyes; then
  25722. if test x$enable_misc = xyes; then
  25723. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25724. fi
  25725. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25726. fi
  25727. if test x$have_locale != xyes; then
  25728. if test x$enable_locale = xyes; then
  25729. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25730. fi
  25731. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25732. fi
  25733. if test x$have_joystick != xyes; then
  25734. if test x$enable_joystick = xyes; then
  25735. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25736. fi
  25737. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25738. fi
  25739. if test x$have_haptic != xyes; then
  25740. if test x$enable_haptic = xyes; then
  25741. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25742. fi
  25743. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25744. fi
  25745. if test x$have_sensor != xyes; then
  25746. if test x$enable_sensor = xyes; then
  25747. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25748. fi
  25749. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25750. fi
  25751. if test x$have_threads != xyes; then
  25752. if test x$enable_threads = xyes; then
  25753. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25754. fi
  25755. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25756. fi
  25757. if test x$have_timers != xyes; then
  25758. if test x$enable_timers = xyes; then
  25759. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25760. fi
  25761. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25762. fi
  25763. if test x$have_filesystem != xyes; then
  25764. if test x$enable_filesystem = xyes; then
  25765. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25766. fi
  25767. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25768. fi
  25769. if test x$have_loadso != xyes; then
  25770. if test x$enable_loadso = xyes; then
  25771. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25772. fi
  25773. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25774. fi
  25775. if test x$SDLMAIN_SOURCES = x; then
  25776. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25777. fi
  25778. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25779. if test x$video_wayland = xyes; then
  25780. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25781. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25782. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25783. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25784. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25785. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25786. echo ;\
  25787. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25788. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25789. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25790. echo ;\
  25791. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25792. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25793. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25794. echo ;\
  25795. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25796. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25797. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25798. done ;\
  25799. echo ;\
  25800. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25801. fi
  25802. OBJECTS=`echo $SOURCES`
  25803. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25804. for EXT in asm cc m c S; do
  25805. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25806. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25807. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25808. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25809. done
  25810. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25811. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25812. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25813. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25814. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25815. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25816. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25817. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25818. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25819. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25820. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25821. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25822. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25823. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25824. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25825. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25826. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25827. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25828. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25829. # Set runtime shared library paths as needed
  25830. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25831. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25832. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25834. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25835. have_enable_new_dtags=no
  25836. save_LDFLAGS="$LDFLAGS"
  25837. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25839. /* end confdefs.h. */
  25840. int
  25841. main (void)
  25842. {
  25843. ;
  25844. return 0;
  25845. }
  25846. _ACEOF
  25847. if ac_fn_c_try_link "$LINENO"
  25848. then :
  25849. have_enable_new_dtags=yes
  25850. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25851. fi
  25852. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25853. conftest$ac_exeext conftest.$ac_ext
  25854. LDFLAGS="$save_LDFLAGS"
  25855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25856. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25857. fi
  25858. if test $ARCH = solaris; then
  25859. SDL_RLD_FLAGS="-R\${libdir}"
  25860. fi
  25861. else
  25862. SDL_RLD_FLAGS=""
  25863. fi
  25864. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25865. pkg_cmakedir='$libdir/cmake/SDL2'
  25866. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25867. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25868. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25869. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25870. _lcl_receval="$_lcl_from"
  25871. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25872. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25873. _lcl_receval_old=''
  25874. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25875. _lcl_receval_old="$_lcl_receval"
  25876. eval _lcl_receval="\"$_lcl_receval\""
  25877. done
  25878. echo "$_lcl_receval")`
  25879. _lcl_receval="$_lcl_to"
  25880. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25881. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25882. _lcl_receval_old=''
  25883. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25884. _lcl_receval_old="$_lcl_receval"
  25885. eval _lcl_receval="\"$_lcl_receval\""
  25886. done
  25887. echo "$_lcl_receval")`
  25888. _lcl_notation="$_lcl_from$_lcl_to"
  25889. case ":$_lcl_from:" in
  25890. # change empty paths to '.'
  25891. ::) _lcl_from='.' ;;
  25892. # strip trailing slashes
  25893. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25894. :*:) ;;
  25895. esac
  25896. # squeeze repeated slashes
  25897. case '/' in
  25898. # if the path contains any backslashes, turn slashes into backslashes
  25899. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25900. # if the path contains slashes, also turn backslashes into slashes
  25901. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25902. esac
  25903. case ":$_lcl_to:" in
  25904. # change empty paths to '.'
  25905. ::) _lcl_to='.' ;;
  25906. # strip trailing slashes
  25907. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25908. :*:) ;;
  25909. esac
  25910. # squeeze repeated slashes
  25911. case '/' in
  25912. # if the path contains any backslashes, turn slashes into backslashes
  25913. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25914. # if the path contains slashes, also turn backslashes into slashes
  25915. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25916. esac
  25917. _lcl_common_prefix=''
  25918. _lcl_second_prefix_match=''
  25919. while test "$_lcl_second_prefix_match" != 0; do
  25920. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25921. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25922. if test "$_lcl_second_prefix_match" != 0; then
  25923. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25924. _lcl_common_prefix="$_lcl_first_prefix"
  25925. else
  25926. _lcl_second_prefix_match=0
  25927. fi
  25928. fi
  25929. done
  25930. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25931. _lcl_first_rel=''
  25932. _lcl_tmp='xxx'
  25933. while test "$_lcl_tmp" != ''; do
  25934. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25935. if test "$_lcl_first_suffix" != ''; then
  25936. _lcl_first_suffix="$_lcl_tmp"
  25937. _lcl_first_rel="../$_lcl_first_rel"
  25938. fi
  25939. done
  25940. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25941. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25942. case ":$_lcl_result_tmp:" in
  25943. # change empty paths to '.'
  25944. ::) _lcl_result_tmp='.' ;;
  25945. # strip trailing slashes
  25946. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25947. :*:) ;;
  25948. esac
  25949. # squeeze repeated slashes
  25950. case "$_lcl_notation" in
  25951. # if the path contains any backslashes, turn slashes into backslashes
  25952. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25953. # if the path contains slashes, also turn backslashes into slashes
  25954. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25955. esac
  25956. eval $_lcl_result_var='$_lcl_result_tmp'
  25957. done
  25958. PKGCONFIG_DEPENDS=""
  25959. if test x$enable_shared = xyes; then
  25960. PKGCONFIG_LIBS_PRIV="
  25961. Libs.private:"
  25962. ENABLE_SHARED_TRUE=
  25963. ENABLE_SHARED_FALSE="#"
  25964. else
  25965. PKGCONFIG_LIBS_PRIV=
  25966. ENABLE_SHARED_TRUE="#"
  25967. ENABLE_SHARED_FALSE=
  25968. fi
  25969. if test x$enable_static = xyes; then
  25970. ENABLE_STATIC_TRUE=
  25971. ENABLE_STATIC_FALSE="#"
  25972. else
  25973. ENABLE_STATIC_TRUE="#"
  25974. ENABLE_STATIC_FALSE=
  25975. fi
  25976. cat >Makefile.rules <<__EOF__
  25977. # Build rules for objects
  25978. -include \$(OBJECTS:.lo=.d)
  25979. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25980. $srcdir/src/SDL.c: update-revision
  25981. $DEPENDS
  25982. $VERSION_DEPENDS
  25983. $SDLMAIN_DEPENDS
  25984. $SDLTEST_DEPENDS
  25985. $WAYLAND_PROTOCOLS_DEPENDS
  25986. __EOF__
  25987. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25988. ac_config_commands="$ac_config_commands sdl2_config"
  25989. SUMMARY="SDL2 Configure Summary:\n"
  25990. if test x$enable_shared = xyes; then
  25991. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25992. fi
  25993. if test x$enable_static = xyes; then
  25994. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25995. fi
  25996. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25997. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25998. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25999. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  26000. if test x$have_x = xyes; then
  26001. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  26002. fi
  26003. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  26004. if test x$have_joystick_virtual = xyes; then
  26005. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  26006. else
  26007. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  26008. fi
  26009. if test x$have_samplerate_h_hdr = xyes; then
  26010. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  26011. else
  26012. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  26013. fi
  26014. if test x$have_libudev_h_hdr = xyes; then
  26015. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26016. else
  26017. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26018. fi
  26019. if test x$have_dbus_dbus_h_hdr = xyes; then
  26020. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26021. else
  26022. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26023. fi
  26024. if test x$enable_ime = xyes; then
  26025. SUMMARY="${SUMMARY}Using ime : YES\n"
  26026. else
  26027. SUMMARY="${SUMMARY}Using ime : NO\n"
  26028. fi
  26029. if test x$have_ibus_ibus_h_hdr = xyes; then
  26030. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26031. else
  26032. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26033. fi
  26034. if test x$have_fcitx = xyes; then
  26035. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26036. else
  26037. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26038. fi
  26039. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26040. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26041. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26042. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26043. SUMMARY="${SUMMARY}configure script with:\n"
  26044. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26045. fi
  26046. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26047. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26048. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26049. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26050. SUMMARY="${SUMMARY}configure script with:\n"
  26051. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26052. fi
  26053. ac_config_commands="$ac_config_commands summary"
  26054. cat >confcache <<\_ACEOF
  26055. # This file is a shell script that caches the results of configure
  26056. # tests run on this system so they can be shared between configure
  26057. # scripts and configure runs, see configure's option --config-cache.
  26058. # It is not useful on other systems. If it contains results you don't
  26059. # want to keep, you may remove or edit it.
  26060. #
  26061. # config.status only pays attention to the cache file if you give it
  26062. # the --recheck option to rerun configure.
  26063. #
  26064. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26065. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26066. # following values.
  26067. _ACEOF
  26068. # The following way of writing the cache mishandles newlines in values,
  26069. # but we know of no workaround that is simple, portable, and efficient.
  26070. # So, we kill variables containing newlines.
  26071. # Ultrix sh set writes to stderr and can't be redirected directly,
  26072. # and sets the high bit in the cache file unless we assign to the vars.
  26073. (
  26074. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26075. eval ac_val=\$$ac_var
  26076. case $ac_val in #(
  26077. *${as_nl}*)
  26078. case $ac_var in #(
  26079. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26080. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26081. esac
  26082. case $ac_var in #(
  26083. _ | IFS | as_nl) ;; #(
  26084. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26085. *) { eval $ac_var=; unset $ac_var;} ;;
  26086. esac ;;
  26087. esac
  26088. done
  26089. (set) 2>&1 |
  26090. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26091. *${as_nl}ac_space=\ *)
  26092. # `set' does not quote correctly, so add quotes: double-quote
  26093. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26094. sed -n \
  26095. "s/'/'\\\\''/g;
  26096. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26097. ;; #(
  26098. *)
  26099. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26100. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26101. ;;
  26102. esac |
  26103. sort
  26104. ) |
  26105. sed '
  26106. /^ac_cv_env_/b end
  26107. t clear
  26108. :clear
  26109. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26110. t end
  26111. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26112. :end' >>confcache
  26113. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26114. if test -w "$cache_file"; then
  26115. if test "x$cache_file" != "x/dev/null"; then
  26116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26117. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26118. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26119. cat confcache >"$cache_file"
  26120. else
  26121. case $cache_file in #(
  26122. */* | ?:*)
  26123. mv -f confcache "$cache_file"$$ &&
  26124. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26125. *)
  26126. mv -f confcache "$cache_file" ;;
  26127. esac
  26128. fi
  26129. fi
  26130. else
  26131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26132. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26133. fi
  26134. fi
  26135. rm -f confcache
  26136. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26137. # Let make expand exec_prefix.
  26138. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26139. DEFS=-DHAVE_CONFIG_H
  26140. ac_libobjs=
  26141. ac_ltlibobjs=
  26142. U=
  26143. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26144. # 1. Remove the extension, and $U if already installed.
  26145. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26146. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26147. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26148. # will be set to the directory where LIBOBJS objects are built.
  26149. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26150. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26151. done
  26152. LIBOBJS=$ac_libobjs
  26153. LTLIBOBJS=$ac_ltlibobjs
  26154. : "${CONFIG_STATUS=./config.status}"
  26155. ac_write_fail=0
  26156. ac_clean_files_save=$ac_clean_files
  26157. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26159. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26160. as_write_fail=0
  26161. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26162. #! $SHELL
  26163. # Generated by $as_me.
  26164. # Run this file to recreate the current configuration.
  26165. # Compiler output produced by configure, useful for debugging
  26166. # configure, is in config.log if it exists.
  26167. debug=false
  26168. ac_cs_recheck=false
  26169. ac_cs_silent=false
  26170. SHELL=\${CONFIG_SHELL-$SHELL}
  26171. export SHELL
  26172. _ASEOF
  26173. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26174. ## -------------------- ##
  26175. ## M4sh Initialization. ##
  26176. ## -------------------- ##
  26177. # Be more Bourne compatible
  26178. DUALCASE=1; export DUALCASE # for MKS sh
  26179. as_nop=:
  26180. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26181. then :
  26182. emulate sh
  26183. NULLCMD=:
  26184. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26185. # is contrary to our usage. Disable this feature.
  26186. alias -g '${1+"$@"}'='"$@"'
  26187. setopt NO_GLOB_SUBST
  26188. else $as_nop
  26189. case `(set -o) 2>/dev/null` in #(
  26190. *posix*) :
  26191. set -o posix ;; #(
  26192. *) :
  26193. ;;
  26194. esac
  26195. fi
  26196. # Reset variables that may have inherited troublesome values from
  26197. # the environment.
  26198. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26199. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26200. # side effect of setting IFS to empty, thus disabling word splitting.)
  26201. # Quoting is to prevent editors from complaining about space-tab.
  26202. as_nl='
  26203. '
  26204. export as_nl
  26205. IFS=" "" $as_nl"
  26206. PS1='$ '
  26207. PS2='> '
  26208. PS4='+ '
  26209. # Ensure predictable behavior from utilities with locale-dependent output.
  26210. LC_ALL=C
  26211. export LC_ALL
  26212. LANGUAGE=C
  26213. export LANGUAGE
  26214. # We cannot yet rely on "unset" to work, but we need these variables
  26215. # to be unset--not just set to an empty or harmless value--now, to
  26216. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26217. # also avoids known problems related to "unset" and subshell syntax
  26218. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26219. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26220. do eval test \${$as_var+y} \
  26221. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26222. done
  26223. # Ensure that fds 0, 1, and 2 are open.
  26224. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26225. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26226. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26227. # The user is always right.
  26228. if ${PATH_SEPARATOR+false} :; then
  26229. PATH_SEPARATOR=:
  26230. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26231. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26232. PATH_SEPARATOR=';'
  26233. }
  26234. fi
  26235. # Find who we are. Look in the path if we contain no directory separator.
  26236. as_myself=
  26237. case $0 in #((
  26238. *[\\/]* ) as_myself=$0 ;;
  26239. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26240. for as_dir in $PATH
  26241. do
  26242. IFS=$as_save_IFS
  26243. case $as_dir in #(((
  26244. '') as_dir=./ ;;
  26245. */) ;;
  26246. *) as_dir=$as_dir/ ;;
  26247. esac
  26248. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26249. done
  26250. IFS=$as_save_IFS
  26251. ;;
  26252. esac
  26253. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26254. # in which case we are not to be found in the path.
  26255. if test "x$as_myself" = x; then
  26256. as_myself=$0
  26257. fi
  26258. if test ! -f "$as_myself"; then
  26259. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26260. exit 1
  26261. fi
  26262. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26263. # ----------------------------------------
  26264. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26265. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26266. # script with STATUS, using 1 if that was 0.
  26267. as_fn_error ()
  26268. {
  26269. as_status=$1; test $as_status -eq 0 && as_status=1
  26270. if test "$4"; then
  26271. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26272. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26273. fi
  26274. printf "%s\n" "$as_me: error: $2" >&2
  26275. as_fn_exit $as_status
  26276. } # as_fn_error
  26277. # as_fn_set_status STATUS
  26278. # -----------------------
  26279. # Set $? to STATUS, without forking.
  26280. as_fn_set_status ()
  26281. {
  26282. return $1
  26283. } # as_fn_set_status
  26284. # as_fn_exit STATUS
  26285. # -----------------
  26286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26287. as_fn_exit ()
  26288. {
  26289. set +e
  26290. as_fn_set_status $1
  26291. exit $1
  26292. } # as_fn_exit
  26293. # as_fn_unset VAR
  26294. # ---------------
  26295. # Portably unset VAR.
  26296. as_fn_unset ()
  26297. {
  26298. { eval $1=; unset $1;}
  26299. }
  26300. as_unset=as_fn_unset
  26301. # as_fn_append VAR VALUE
  26302. # ----------------------
  26303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26304. # advantage of any shell optimizations that allow amortized linear growth over
  26305. # repeated appends, instead of the typical quadratic growth present in naive
  26306. # implementations.
  26307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26308. then :
  26309. eval 'as_fn_append ()
  26310. {
  26311. eval $1+=\$2
  26312. }'
  26313. else $as_nop
  26314. as_fn_append ()
  26315. {
  26316. eval $1=\$$1\$2
  26317. }
  26318. fi # as_fn_append
  26319. # as_fn_arith ARG...
  26320. # ------------------
  26321. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26322. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26323. # must be portable across $(()) and expr.
  26324. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26325. then :
  26326. eval 'as_fn_arith ()
  26327. {
  26328. as_val=$(( $* ))
  26329. }'
  26330. else $as_nop
  26331. as_fn_arith ()
  26332. {
  26333. as_val=`expr "$@" || test $? -eq 1`
  26334. }
  26335. fi # as_fn_arith
  26336. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26337. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26338. as_expr=expr
  26339. else
  26340. as_expr=false
  26341. fi
  26342. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26343. as_basename=basename
  26344. else
  26345. as_basename=false
  26346. fi
  26347. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26348. as_dirname=dirname
  26349. else
  26350. as_dirname=false
  26351. fi
  26352. as_me=`$as_basename -- "$0" ||
  26353. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26354. X"$0" : 'X\(//\)$' \| \
  26355. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26356. printf "%s\n" X/"$0" |
  26357. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26358. s//\1/
  26359. q
  26360. }
  26361. /^X\/\(\/\/\)$/{
  26362. s//\1/
  26363. q
  26364. }
  26365. /^X\/\(\/\).*/{
  26366. s//\1/
  26367. q
  26368. }
  26369. s/.*/./; q'`
  26370. # Avoid depending upon Character Ranges.
  26371. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26372. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26373. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26374. as_cr_digits='0123456789'
  26375. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26376. # Determine whether it's possible to make 'echo' print without a newline.
  26377. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26378. # for compatibility with existing Makefiles.
  26379. ECHO_C= ECHO_N= ECHO_T=
  26380. case `echo -n x` in #(((((
  26381. -n*)
  26382. case `echo 'xy\c'` in
  26383. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26384. xy) ECHO_C='\c';;
  26385. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26386. ECHO_T=' ';;
  26387. esac;;
  26388. *)
  26389. ECHO_N='-n';;
  26390. esac
  26391. # For backward compatibility with old third-party macros, we provide
  26392. # the shell variables $as_echo and $as_echo_n. New code should use
  26393. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26394. as_echo='printf %s\n'
  26395. as_echo_n='printf %s'
  26396. rm -f conf$$ conf$$.exe conf$$.file
  26397. if test -d conf$$.dir; then
  26398. rm -f conf$$.dir/conf$$.file
  26399. else
  26400. rm -f conf$$.dir
  26401. mkdir conf$$.dir 2>/dev/null
  26402. fi
  26403. if (echo >conf$$.file) 2>/dev/null; then
  26404. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26405. as_ln_s='ln -s'
  26406. # ... but there are two gotchas:
  26407. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26408. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26409. # In both cases, we have to default to `cp -pR'.
  26410. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26411. as_ln_s='cp -pR'
  26412. elif ln conf$$.file conf$$ 2>/dev/null; then
  26413. as_ln_s=ln
  26414. else
  26415. as_ln_s='cp -pR'
  26416. fi
  26417. else
  26418. as_ln_s='cp -pR'
  26419. fi
  26420. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26421. rmdir conf$$.dir 2>/dev/null
  26422. # as_fn_mkdir_p
  26423. # -------------
  26424. # Create "$as_dir" as a directory, including parents if necessary.
  26425. as_fn_mkdir_p ()
  26426. {
  26427. case $as_dir in #(
  26428. -*) as_dir=./$as_dir;;
  26429. esac
  26430. test -d "$as_dir" || eval $as_mkdir_p || {
  26431. as_dirs=
  26432. while :; do
  26433. case $as_dir in #(
  26434. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26435. *) as_qdir=$as_dir;;
  26436. esac
  26437. as_dirs="'$as_qdir' $as_dirs"
  26438. as_dir=`$as_dirname -- "$as_dir" ||
  26439. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26440. X"$as_dir" : 'X\(//\)[^/]' \| \
  26441. X"$as_dir" : 'X\(//\)$' \| \
  26442. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26443. printf "%s\n" X"$as_dir" |
  26444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26445. s//\1/
  26446. q
  26447. }
  26448. /^X\(\/\/\)[^/].*/{
  26449. s//\1/
  26450. q
  26451. }
  26452. /^X\(\/\/\)$/{
  26453. s//\1/
  26454. q
  26455. }
  26456. /^X\(\/\).*/{
  26457. s//\1/
  26458. q
  26459. }
  26460. s/.*/./; q'`
  26461. test -d "$as_dir" && break
  26462. done
  26463. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26464. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26465. } # as_fn_mkdir_p
  26466. if mkdir -p . 2>/dev/null; then
  26467. as_mkdir_p='mkdir -p "$as_dir"'
  26468. else
  26469. test -d ./-p && rmdir ./-p
  26470. as_mkdir_p=false
  26471. fi
  26472. # as_fn_executable_p FILE
  26473. # -----------------------
  26474. # Test if FILE is an executable regular file.
  26475. as_fn_executable_p ()
  26476. {
  26477. test -f "$1" && test -x "$1"
  26478. } # as_fn_executable_p
  26479. as_test_x='test -x'
  26480. as_executable_p=as_fn_executable_p
  26481. # Sed expression to map a string onto a valid CPP name.
  26482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26483. # Sed expression to map a string onto a valid variable name.
  26484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26485. exec 6>&1
  26486. ## ----------------------------------- ##
  26487. ## Main body of $CONFIG_STATUS script. ##
  26488. ## ----------------------------------- ##
  26489. _ASEOF
  26490. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26492. # Save the log message, to keep $0 and so on meaningful, and to
  26493. # report actual input values of CONFIG_FILES etc. instead of their
  26494. # values after options handling.
  26495. ac_log="
  26496. This file was extended by $as_me, which was
  26497. generated by GNU Autoconf 2.71. Invocation command line was
  26498. CONFIG_FILES = $CONFIG_FILES
  26499. CONFIG_HEADERS = $CONFIG_HEADERS
  26500. CONFIG_LINKS = $CONFIG_LINKS
  26501. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26502. $ $0 $@
  26503. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26504. "
  26505. _ACEOF
  26506. case $ac_config_files in *"
  26507. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26508. esac
  26509. case $ac_config_headers in *"
  26510. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26511. esac
  26512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26513. # Files that config.status was made for.
  26514. config_files="$ac_config_files"
  26515. config_headers="$ac_config_headers"
  26516. config_commands="$ac_config_commands"
  26517. _ACEOF
  26518. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26519. ac_cs_usage="\
  26520. \`$as_me' instantiates files and other configuration actions
  26521. from templates according to the current configuration. Unless the files
  26522. and actions are specified as TAGs, all are instantiated by default.
  26523. Usage: $0 [OPTION]... [TAG]...
  26524. -h, --help print this help, then exit
  26525. -V, --version print version number and configuration settings, then exit
  26526. --config print configuration, then exit
  26527. -q, --quiet, --silent
  26528. do not print progress messages
  26529. -d, --debug don't remove temporary files
  26530. --recheck update $as_me by reconfiguring in the same conditions
  26531. --file=FILE[:TEMPLATE]
  26532. instantiate the configuration file FILE
  26533. --header=FILE[:TEMPLATE]
  26534. instantiate the configuration header FILE
  26535. Configuration files:
  26536. $config_files
  26537. Configuration headers:
  26538. $config_headers
  26539. Configuration commands:
  26540. $config_commands
  26541. Report bugs to the package provider."
  26542. _ACEOF
  26543. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26544. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26545. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26546. ac_cs_config='$ac_cs_config_escaped'
  26547. ac_cs_version="\\
  26548. config.status
  26549. configured by $0, generated by GNU Autoconf 2.71,
  26550. with options \\"\$ac_cs_config\\"
  26551. Copyright (C) 2021 Free Software Foundation, Inc.
  26552. This config.status script is free software; the Free Software Foundation
  26553. gives unlimited permission to copy, distribute and modify it."
  26554. ac_pwd='$ac_pwd'
  26555. srcdir='$srcdir'
  26556. INSTALL='$INSTALL'
  26557. AWK='$AWK'
  26558. test -n "\$AWK" || AWK=awk
  26559. _ACEOF
  26560. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26561. # The default lists apply if the user does not specify any file.
  26562. ac_need_defaults=:
  26563. while test $# != 0
  26564. do
  26565. case $1 in
  26566. --*=?*)
  26567. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26568. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26569. ac_shift=:
  26570. ;;
  26571. --*=)
  26572. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26573. ac_optarg=
  26574. ac_shift=:
  26575. ;;
  26576. *)
  26577. ac_option=$1
  26578. ac_optarg=$2
  26579. ac_shift=shift
  26580. ;;
  26581. esac
  26582. case $ac_option in
  26583. # Handling of the options.
  26584. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26585. ac_cs_recheck=: ;;
  26586. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26587. printf "%s\n" "$ac_cs_version"; exit ;;
  26588. --config | --confi | --conf | --con | --co | --c )
  26589. printf "%s\n" "$ac_cs_config"; exit ;;
  26590. --debug | --debu | --deb | --de | --d | -d )
  26591. debug=: ;;
  26592. --file | --fil | --fi | --f )
  26593. $ac_shift
  26594. case $ac_optarg in
  26595. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26596. '') as_fn_error $? "missing file argument" ;;
  26597. esac
  26598. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26599. ac_need_defaults=false;;
  26600. --header | --heade | --head | --hea )
  26601. $ac_shift
  26602. case $ac_optarg in
  26603. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26604. esac
  26605. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26606. ac_need_defaults=false;;
  26607. --he | --h)
  26608. # Conflict between --help and --header
  26609. as_fn_error $? "ambiguous option: \`$1'
  26610. Try \`$0 --help' for more information.";;
  26611. --help | --hel | -h )
  26612. printf "%s\n" "$ac_cs_usage"; exit ;;
  26613. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26614. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26615. ac_cs_silent=: ;;
  26616. # This is an error.
  26617. -*) as_fn_error $? "unrecognized option: \`$1'
  26618. Try \`$0 --help' for more information." ;;
  26619. *) as_fn_append ac_config_targets " $1"
  26620. ac_need_defaults=false ;;
  26621. esac
  26622. shift
  26623. done
  26624. ac_configure_extra_args=
  26625. if $ac_cs_silent; then
  26626. exec 6>/dev/null
  26627. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26628. fi
  26629. _ACEOF
  26630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26631. if \$ac_cs_recheck; then
  26632. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26633. shift
  26634. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26635. CONFIG_SHELL='$SHELL'
  26636. export CONFIG_SHELL
  26637. exec "\$@"
  26638. fi
  26639. _ACEOF
  26640. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26641. exec 5>>config.log
  26642. {
  26643. echo
  26644. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26645. ## Running $as_me. ##
  26646. _ASBOX
  26647. printf "%s\n" "$ac_log"
  26648. } >&5
  26649. _ACEOF
  26650. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26651. #
  26652. # INIT-COMMANDS
  26653. #
  26654. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26655. # if CDPATH is set.
  26656. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26657. sed_quote_subst='$sed_quote_subst'
  26658. double_quote_subst='$double_quote_subst'
  26659. delay_variable_subst='$delay_variable_subst'
  26660. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26661. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26662. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26663. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26664. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26665. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26666. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26667. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26668. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26669. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26670. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26671. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26672. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26673. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26674. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26675. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26676. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26677. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26678. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26679. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26680. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26681. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26682. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26683. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26684. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26685. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26686. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26687. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26688. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26689. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26690. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26691. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26692. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26693. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26694. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26695. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26696. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26697. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26698. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26699. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26700. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26701. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26702. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26703. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26704. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26705. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26706. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26707. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26708. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26709. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26710. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26711. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26712. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26713. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26714. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26715. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26716. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26717. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26718. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26719. 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"`'
  26720. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26721. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26722. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26723. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26724. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26725. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26726. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26727. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26728. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26729. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26730. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26731. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26732. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26733. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26734. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26735. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26736. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26737. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26738. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26739. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26740. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26741. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26742. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26743. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26744. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26745. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26746. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26747. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26748. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26749. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26750. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26751. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26752. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26753. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26754. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26755. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26756. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26757. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26758. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26759. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26760. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26761. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26762. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26763. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26764. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26765. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26766. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26767. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26768. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26769. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26770. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26771. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26772. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26773. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26774. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26775. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26776. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26777. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26778. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26779. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26780. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26781. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26782. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26783. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26784. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26785. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26786. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26787. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26788. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26789. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26790. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26791. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26792. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26793. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26794. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26795. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26796. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26797. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26798. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26799. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26800. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26801. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26802. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26803. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26804. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26805. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26806. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26807. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26808. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26809. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26810. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26811. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26812. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26813. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26814. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26815. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26816. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26817. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26818. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26819. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26820. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26821. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26822. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26823. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26824. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26825. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26826. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26827. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26828. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26829. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26830. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26831. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26832. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26833. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26834. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26835. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26836. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26837. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26838. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26839. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26840. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26841. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26842. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26843. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26844. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26845. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26846. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26847. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26848. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26849. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26850. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26851. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26852. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26853. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26854. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26855. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26856. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26857. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26858. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26859. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26860. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26861. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26862. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26863. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26864. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26865. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26866. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26867. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26868. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26869. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26870. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26871. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26872. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26873. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26874. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26875. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26876. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26877. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26878. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26879. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26880. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26881. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26882. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26883. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26884. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26885. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26886. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26887. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26888. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26889. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26890. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26891. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26892. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26893. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26894. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26895. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26896. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26897. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26898. LTCC='$LTCC'
  26899. LTCFLAGS='$LTCFLAGS'
  26900. compiler='$compiler_DEFAULT'
  26901. # A function that is used when there is no print builtin or printf.
  26902. func_fallback_echo ()
  26903. {
  26904. eval 'cat <<_LTECHO_EOF
  26905. \$1
  26906. _LTECHO_EOF'
  26907. }
  26908. # Quote evaled strings.
  26909. for var in AS \
  26910. DLLTOOL \
  26911. OBJDUMP \
  26912. SHELL \
  26913. ECHO \
  26914. PATH_SEPARATOR \
  26915. SED \
  26916. GREP \
  26917. EGREP \
  26918. FGREP \
  26919. LD \
  26920. NM \
  26921. LN_S \
  26922. lt_SP2NL \
  26923. lt_NL2SP \
  26924. reload_flag \
  26925. deplibs_check_method \
  26926. file_magic_cmd \
  26927. file_magic_glob \
  26928. want_nocaseglob \
  26929. sharedlib_from_linklib_cmd \
  26930. AR \
  26931. AR_FLAGS \
  26932. archiver_list_spec \
  26933. STRIP \
  26934. RANLIB \
  26935. CC \
  26936. CFLAGS \
  26937. compiler \
  26938. lt_cv_sys_global_symbol_pipe \
  26939. lt_cv_sys_global_symbol_to_cdecl \
  26940. lt_cv_sys_global_symbol_to_import \
  26941. lt_cv_sys_global_symbol_to_c_name_address \
  26942. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26943. lt_cv_nm_interface \
  26944. nm_file_list_spec \
  26945. lt_cv_truncate_bin \
  26946. lt_prog_compiler_no_builtin_flag \
  26947. lt_prog_compiler_pic \
  26948. lt_prog_compiler_wl \
  26949. lt_prog_compiler_static \
  26950. lt_cv_prog_compiler_c_o \
  26951. need_locks \
  26952. MANIFEST_TOOL \
  26953. DSYMUTIL \
  26954. NMEDIT \
  26955. LIPO \
  26956. OTOOL \
  26957. OTOOL64 \
  26958. shrext_cmds \
  26959. export_dynamic_flag_spec \
  26960. whole_archive_flag_spec \
  26961. compiler_needs_object \
  26962. with_gnu_ld \
  26963. allow_undefined_flag \
  26964. no_undefined_flag \
  26965. hardcode_libdir_flag_spec \
  26966. hardcode_libdir_separator \
  26967. exclude_expsyms \
  26968. include_expsyms \
  26969. file_list_spec \
  26970. variables_saved_for_relink \
  26971. libname_spec \
  26972. library_names_spec \
  26973. soname_spec \
  26974. install_override_mode \
  26975. finish_eval \
  26976. old_striplib \
  26977. striplib \
  26978. compiler_lib_search_dirs \
  26979. predep_objects \
  26980. postdep_objects \
  26981. predeps \
  26982. postdeps \
  26983. compiler_lib_search_path \
  26984. LD_RC \
  26985. LD_CXX \
  26986. reload_flag_RC \
  26987. reload_flag_CXX \
  26988. compiler_RC \
  26989. compiler_CXX \
  26990. lt_prog_compiler_no_builtin_flag_RC \
  26991. lt_prog_compiler_no_builtin_flag_CXX \
  26992. lt_prog_compiler_pic_RC \
  26993. lt_prog_compiler_pic_CXX \
  26994. lt_prog_compiler_wl_RC \
  26995. lt_prog_compiler_wl_CXX \
  26996. lt_prog_compiler_static_RC \
  26997. lt_prog_compiler_static_CXX \
  26998. lt_cv_prog_compiler_c_o_RC \
  26999. lt_cv_prog_compiler_c_o_CXX \
  27000. export_dynamic_flag_spec_RC \
  27001. export_dynamic_flag_spec_CXX \
  27002. whole_archive_flag_spec_RC \
  27003. whole_archive_flag_spec_CXX \
  27004. compiler_needs_object_RC \
  27005. compiler_needs_object_CXX \
  27006. with_gnu_ld_RC \
  27007. with_gnu_ld_CXX \
  27008. allow_undefined_flag_RC \
  27009. allow_undefined_flag_CXX \
  27010. no_undefined_flag_RC \
  27011. no_undefined_flag_CXX \
  27012. hardcode_libdir_flag_spec_RC \
  27013. hardcode_libdir_flag_spec_CXX \
  27014. hardcode_libdir_separator_RC \
  27015. hardcode_libdir_separator_CXX \
  27016. exclude_expsyms_RC \
  27017. exclude_expsyms_CXX \
  27018. include_expsyms_RC \
  27019. include_expsyms_CXX \
  27020. file_list_spec_RC \
  27021. file_list_spec_CXX \
  27022. compiler_lib_search_dirs_RC \
  27023. compiler_lib_search_dirs_CXX \
  27024. predep_objects_RC \
  27025. predep_objects_CXX \
  27026. postdep_objects_RC \
  27027. postdep_objects_CXX \
  27028. predeps_RC \
  27029. predeps_CXX \
  27030. postdeps_RC \
  27031. postdeps_CXX \
  27032. compiler_lib_search_path_RC \
  27033. compiler_lib_search_path_CXX; do
  27034. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27035. *[\\\\\\\`\\"\\\$]*)
  27036. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27037. ;;
  27038. *)
  27039. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27040. ;;
  27041. esac
  27042. done
  27043. # Double-quote double-evaled strings.
  27044. for var in reload_cmds \
  27045. old_postinstall_cmds \
  27046. old_postuninstall_cmds \
  27047. old_archive_cmds \
  27048. extract_expsyms_cmds \
  27049. old_archive_from_new_cmds \
  27050. old_archive_from_expsyms_cmds \
  27051. archive_cmds \
  27052. archive_expsym_cmds \
  27053. module_cmds \
  27054. module_expsym_cmds \
  27055. export_symbols_cmds \
  27056. prelink_cmds \
  27057. postlink_cmds \
  27058. postinstall_cmds \
  27059. postuninstall_cmds \
  27060. finish_cmds \
  27061. sys_lib_search_path_spec \
  27062. configure_time_dlsearch_path \
  27063. configure_time_lt_sys_library_path \
  27064. reload_cmds_RC \
  27065. reload_cmds_CXX \
  27066. old_archive_cmds_RC \
  27067. old_archive_cmds_CXX \
  27068. old_archive_from_new_cmds_RC \
  27069. old_archive_from_new_cmds_CXX \
  27070. old_archive_from_expsyms_cmds_RC \
  27071. old_archive_from_expsyms_cmds_CXX \
  27072. archive_cmds_RC \
  27073. archive_cmds_CXX \
  27074. archive_expsym_cmds_RC \
  27075. archive_expsym_cmds_CXX \
  27076. module_cmds_RC \
  27077. module_cmds_CXX \
  27078. module_expsym_cmds_RC \
  27079. module_expsym_cmds_CXX \
  27080. export_symbols_cmds_RC \
  27081. export_symbols_cmds_CXX \
  27082. prelink_cmds_RC \
  27083. prelink_cmds_CXX \
  27084. postlink_cmds_RC \
  27085. postlink_cmds_CXX; do
  27086. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27087. *[\\\\\\\`\\"\\\$]*)
  27088. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27089. ;;
  27090. *)
  27091. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27092. ;;
  27093. esac
  27094. done
  27095. ac_aux_dir='$ac_aux_dir'
  27096. # See if we are running on zsh, and set the options that allow our
  27097. # commands through without removal of \ escapes INIT.
  27098. if test -n "\${ZSH_VERSION+set}"; then
  27099. setopt NO_GLOB_SUBST
  27100. fi
  27101. PACKAGE='$PACKAGE'
  27102. VERSION='$VERSION'
  27103. RM='$RM'
  27104. ofile='$ofile'
  27105. SUMMARY="$SUMMARY"
  27106. _ACEOF
  27107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27108. # Handling of arguments.
  27109. for ac_config_target in $ac_config_targets
  27110. do
  27111. case $ac_config_target in
  27112. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27113. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27114. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27115. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27116. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27117. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27118. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27119. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27120. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27121. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27122. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27123. esac
  27124. done
  27125. # If the user did not use the arguments to specify the items to instantiate,
  27126. # then the envvar interface is used. Set only those that are not.
  27127. # We use the long form for the default assignment because of an extremely
  27128. # bizarre bug on SunOS 4.1.3.
  27129. if $ac_need_defaults; then
  27130. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27131. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27132. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27133. fi
  27134. # Have a temporary directory for convenience. Make it in the build tree
  27135. # simply because there is no reason against having it here, and in addition,
  27136. # creating and moving files from /tmp can sometimes cause problems.
  27137. # Hook for its removal unless debugging.
  27138. # Note that there is a small window in which the directory will not be cleaned:
  27139. # after its creation but before its name has been assigned to `$tmp'.
  27140. $debug ||
  27141. {
  27142. tmp= ac_tmp=
  27143. trap 'exit_status=$?
  27144. : "${ac_tmp:=$tmp}"
  27145. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27146. ' 0
  27147. trap 'as_fn_exit 1' 1 2 13 15
  27148. }
  27149. # Create a (secure) tmp directory for tmp files.
  27150. {
  27151. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27152. test -d "$tmp"
  27153. } ||
  27154. {
  27155. tmp=./conf$$-$RANDOM
  27156. (umask 077 && mkdir "$tmp")
  27157. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27158. ac_tmp=$tmp
  27159. # Set up the scripts for CONFIG_FILES section.
  27160. # No need to generate them if there are no CONFIG_FILES.
  27161. # This happens for instance with `./config.status config.h'.
  27162. if test -n "$CONFIG_FILES"; then
  27163. ac_cr=`echo X | tr X '\015'`
  27164. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27165. # But we know of no other shell where ac_cr would be empty at this
  27166. # point, so we can use a bashism as a fallback.
  27167. if test "x$ac_cr" = x; then
  27168. eval ac_cr=\$\'\\r\'
  27169. fi
  27170. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27171. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27172. ac_cs_awk_cr='\\r'
  27173. else
  27174. ac_cs_awk_cr=$ac_cr
  27175. fi
  27176. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27177. _ACEOF
  27178. {
  27179. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27180. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27181. echo "_ACEOF"
  27182. } >conf$$subs.sh ||
  27183. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27184. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27185. ac_delim='%!_!# '
  27186. for ac_last_try in false false false false false :; do
  27187. . ./conf$$subs.sh ||
  27188. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27189. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27190. if test $ac_delim_n = $ac_delim_num; then
  27191. break
  27192. elif $ac_last_try; then
  27193. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27194. else
  27195. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27196. fi
  27197. done
  27198. rm -f conf$$subs.sh
  27199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27200. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27201. _ACEOF
  27202. sed -n '
  27203. h
  27204. s/^/S["/; s/!.*/"]=/
  27205. p
  27206. g
  27207. s/^[^!]*!//
  27208. :repl
  27209. t repl
  27210. s/'"$ac_delim"'$//
  27211. t delim
  27212. :nl
  27213. h
  27214. s/\(.\{148\}\)..*/\1/
  27215. t more1
  27216. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27217. p
  27218. n
  27219. b repl
  27220. :more1
  27221. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27222. p
  27223. g
  27224. s/.\{148\}//
  27225. t nl
  27226. :delim
  27227. h
  27228. s/\(.\{148\}\)..*/\1/
  27229. t more2
  27230. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27231. p
  27232. b
  27233. :more2
  27234. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27235. p
  27236. g
  27237. s/.\{148\}//
  27238. t delim
  27239. ' <conf$$subs.awk | sed '
  27240. /^[^""]/{
  27241. N
  27242. s/\n//
  27243. }
  27244. ' >>$CONFIG_STATUS || ac_write_fail=1
  27245. rm -f conf$$subs.awk
  27246. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27247. _ACAWK
  27248. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27249. for (key in S) S_is_set[key] = 1
  27250. FS = ""
  27251. }
  27252. {
  27253. line = $ 0
  27254. nfields = split(line, field, "@")
  27255. substed = 0
  27256. len = length(field[1])
  27257. for (i = 2; i < nfields; i++) {
  27258. key = field[i]
  27259. keylen = length(key)
  27260. if (S_is_set[key]) {
  27261. value = S[key]
  27262. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27263. len += length(value) + length(field[++i])
  27264. substed = 1
  27265. } else
  27266. len += 1 + keylen
  27267. }
  27268. print line
  27269. }
  27270. _ACAWK
  27271. _ACEOF
  27272. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27273. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27274. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27275. else
  27276. cat
  27277. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27278. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27279. _ACEOF
  27280. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27281. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27282. # trailing colons and then remove the whole line if VPATH becomes empty
  27283. # (actually we leave an empty line to preserve line numbers).
  27284. if test "x$srcdir" = x.; then
  27285. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27286. h
  27287. s///
  27288. s/^/:/
  27289. s/[ ]*$/:/
  27290. s/:\$(srcdir):/:/g
  27291. s/:\${srcdir}:/:/g
  27292. s/:@srcdir@:/:/g
  27293. s/^:*//
  27294. s/:*$//
  27295. x
  27296. s/\(=[ ]*\).*/\1/
  27297. G
  27298. s/\n//
  27299. s/^[^=]*=[ ]*$//
  27300. }'
  27301. fi
  27302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27303. fi # test -n "$CONFIG_FILES"
  27304. # Set up the scripts for CONFIG_HEADERS section.
  27305. # No need to generate them if there are no CONFIG_HEADERS.
  27306. # This happens for instance with `./config.status Makefile'.
  27307. if test -n "$CONFIG_HEADERS"; then
  27308. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27309. BEGIN {
  27310. _ACEOF
  27311. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27312. # here-document in config.status, that substitutes the proper values into
  27313. # config.h.in to produce config.h.
  27314. # Create a delimiter string that does not exist in confdefs.h, to ease
  27315. # handling of long lines.
  27316. ac_delim='%!_!# '
  27317. for ac_last_try in false false :; do
  27318. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27319. if test -z "$ac_tt"; then
  27320. break
  27321. elif $ac_last_try; then
  27322. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27323. else
  27324. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27325. fi
  27326. done
  27327. # For the awk script, D is an array of macro values keyed by name,
  27328. # likewise P contains macro parameters if any. Preserve backslash
  27329. # newline sequences.
  27330. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27331. sed -n '
  27332. s/.\{148\}/&'"$ac_delim"'/g
  27333. t rset
  27334. :rset
  27335. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27336. t def
  27337. d
  27338. :def
  27339. s/\\$//
  27340. t bsnl
  27341. s/["\\]/\\&/g
  27342. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27343. D["\1"]=" \3"/p
  27344. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27345. d
  27346. :bsnl
  27347. s/["\\]/\\&/g
  27348. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27349. D["\1"]=" \3\\\\\\n"\\/p
  27350. t cont
  27351. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27352. t cont
  27353. d
  27354. :cont
  27355. n
  27356. s/.\{148\}/&'"$ac_delim"'/g
  27357. t clear
  27358. :clear
  27359. s/\\$//
  27360. t bsnlc
  27361. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27362. d
  27363. :bsnlc
  27364. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27365. b cont
  27366. ' <confdefs.h | sed '
  27367. s/'"$ac_delim"'/"\\\
  27368. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27369. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27370. for (key in D) D_is_set[key] = 1
  27371. FS = ""
  27372. }
  27373. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27374. line = \$ 0
  27375. split(line, arg, " ")
  27376. if (arg[1] == "#") {
  27377. defundef = arg[2]
  27378. mac1 = arg[3]
  27379. } else {
  27380. defundef = substr(arg[1], 2)
  27381. mac1 = arg[2]
  27382. }
  27383. split(mac1, mac2, "(") #)
  27384. macro = mac2[1]
  27385. prefix = substr(line, 1, index(line, defundef) - 1)
  27386. if (D_is_set[macro]) {
  27387. # Preserve the white space surrounding the "#".
  27388. print prefix "define", macro P[macro] D[macro]
  27389. next
  27390. } else {
  27391. # Replace #undef with comments. This is necessary, for example,
  27392. # in the case of _POSIX_SOURCE, which is predefined and required
  27393. # on some systems where configure will not decide to define it.
  27394. if (defundef == "undef") {
  27395. print "/*", prefix defundef, macro, "*/"
  27396. next
  27397. }
  27398. }
  27399. }
  27400. { print }
  27401. _ACAWK
  27402. _ACEOF
  27403. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27404. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27405. fi # test -n "$CONFIG_HEADERS"
  27406. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27407. shift
  27408. for ac_tag
  27409. do
  27410. case $ac_tag in
  27411. :[FHLC]) ac_mode=$ac_tag; continue;;
  27412. esac
  27413. case $ac_mode$ac_tag in
  27414. :[FHL]*:*);;
  27415. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27416. :[FH]-) ac_tag=-:-;;
  27417. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27418. esac
  27419. ac_save_IFS=$IFS
  27420. IFS=:
  27421. set x $ac_tag
  27422. IFS=$ac_save_IFS
  27423. shift
  27424. ac_file=$1
  27425. shift
  27426. case $ac_mode in
  27427. :L) ac_source=$1;;
  27428. :[FH])
  27429. ac_file_inputs=
  27430. for ac_f
  27431. do
  27432. case $ac_f in
  27433. -) ac_f="$ac_tmp/stdin";;
  27434. *) # Look for the file first in the build tree, then in the source tree
  27435. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27436. # because $ac_f cannot contain `:'.
  27437. test -f "$ac_f" ||
  27438. case $ac_f in
  27439. [\\/$]*) false;;
  27440. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27441. esac ||
  27442. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27443. esac
  27444. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27445. as_fn_append ac_file_inputs " '$ac_f'"
  27446. done
  27447. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27448. # use $as_me), people would be surprised to read:
  27449. # /* config.h. Generated by config.status. */
  27450. configure_input='Generated from '`
  27451. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27452. `' by configure.'
  27453. if test x"$ac_file" != x-; then
  27454. configure_input="$ac_file. $configure_input"
  27455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27456. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27457. fi
  27458. # Neutralize special characters interpreted by sed in replacement strings.
  27459. case $configure_input in #(
  27460. *\&* | *\|* | *\\* )
  27461. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27462. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27463. *) ac_sed_conf_input=$configure_input;;
  27464. esac
  27465. case $ac_tag in
  27466. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27467. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27468. esac
  27469. ;;
  27470. esac
  27471. ac_dir=`$as_dirname -- "$ac_file" ||
  27472. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27473. X"$ac_file" : 'X\(//\)[^/]' \| \
  27474. X"$ac_file" : 'X\(//\)$' \| \
  27475. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27476. printf "%s\n" X"$ac_file" |
  27477. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27478. s//\1/
  27479. q
  27480. }
  27481. /^X\(\/\/\)[^/].*/{
  27482. s//\1/
  27483. q
  27484. }
  27485. /^X\(\/\/\)$/{
  27486. s//\1/
  27487. q
  27488. }
  27489. /^X\(\/\).*/{
  27490. s//\1/
  27491. q
  27492. }
  27493. s/.*/./; q'`
  27494. as_dir="$ac_dir"; as_fn_mkdir_p
  27495. ac_builddir=.
  27496. case "$ac_dir" in
  27497. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27498. *)
  27499. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27500. # A ".." for each directory in $ac_dir_suffix.
  27501. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27502. case $ac_top_builddir_sub in
  27503. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27504. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27505. esac ;;
  27506. esac
  27507. ac_abs_top_builddir=$ac_pwd
  27508. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27509. # for backward compatibility:
  27510. ac_top_builddir=$ac_top_build_prefix
  27511. case $srcdir in
  27512. .) # We are building in place.
  27513. ac_srcdir=.
  27514. ac_top_srcdir=$ac_top_builddir_sub
  27515. ac_abs_top_srcdir=$ac_pwd ;;
  27516. [\\/]* | ?:[\\/]* ) # Absolute name.
  27517. ac_srcdir=$srcdir$ac_dir_suffix;
  27518. ac_top_srcdir=$srcdir
  27519. ac_abs_top_srcdir=$srcdir ;;
  27520. *) # Relative name.
  27521. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27522. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27523. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27524. esac
  27525. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27526. case $ac_mode in
  27527. :F)
  27528. #
  27529. # CONFIG_FILE
  27530. #
  27531. case $INSTALL in
  27532. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27533. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27534. esac
  27535. _ACEOF
  27536. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27537. # If the template does not know about datarootdir, expand it.
  27538. # FIXME: This hack should be removed a few years after 2.60.
  27539. ac_datarootdir_hack=; ac_datarootdir_seen=
  27540. ac_sed_dataroot='
  27541. /datarootdir/ {
  27542. p
  27543. q
  27544. }
  27545. /@datadir@/p
  27546. /@docdir@/p
  27547. /@infodir@/p
  27548. /@localedir@/p
  27549. /@mandir@/p'
  27550. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27551. *datarootdir*) ac_datarootdir_seen=yes;;
  27552. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27554. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27555. _ACEOF
  27556. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27557. ac_datarootdir_hack='
  27558. s&@datadir@&$datadir&g
  27559. s&@docdir@&$docdir&g
  27560. s&@infodir@&$infodir&g
  27561. s&@localedir@&$localedir&g
  27562. s&@mandir@&$mandir&g
  27563. s&\\\${datarootdir}&$datarootdir&g' ;;
  27564. esac
  27565. _ACEOF
  27566. # Neutralize VPATH when `$srcdir' = `.'.
  27567. # Shell code in configure.ac might set extrasub.
  27568. # FIXME: do we really want to maintain this feature?
  27569. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27570. ac_sed_extra="$ac_vpsub
  27571. $extrasub
  27572. _ACEOF
  27573. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27574. :t
  27575. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27576. s|@configure_input@|$ac_sed_conf_input|;t t
  27577. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27578. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27579. s&@srcdir@&$ac_srcdir&;t t
  27580. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27581. s&@top_srcdir@&$ac_top_srcdir&;t t
  27582. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27583. s&@builddir@&$ac_builddir&;t t
  27584. s&@abs_builddir@&$ac_abs_builddir&;t t
  27585. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27586. s&@INSTALL@&$ac_INSTALL&;t t
  27587. $ac_datarootdir_hack
  27588. "
  27589. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27590. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27591. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27592. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27593. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27594. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27596. which seems to be undefined. Please make sure it is defined" >&5
  27597. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27598. which seems to be undefined. Please make sure it is defined" >&2;}
  27599. rm -f "$ac_tmp/stdin"
  27600. case $ac_file in
  27601. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27602. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27603. esac \
  27604. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27605. ;;
  27606. :H)
  27607. #
  27608. # CONFIG_HEADER
  27609. #
  27610. if test x"$ac_file" != x-; then
  27611. {
  27612. printf "%s\n" "/* $configure_input */" >&1 \
  27613. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27614. } >"$ac_tmp/config.h" \
  27615. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27616. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27618. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27619. else
  27620. rm -f "$ac_file"
  27621. mv "$ac_tmp/config.h" "$ac_file" \
  27622. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27623. fi
  27624. else
  27625. printf "%s\n" "/* $configure_input */" >&1 \
  27626. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27627. || as_fn_error $? "could not create -" "$LINENO" 5
  27628. fi
  27629. ;;
  27630. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27631. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27632. ;;
  27633. esac
  27634. case $ac_file$ac_mode in
  27635. "libtool":C)
  27636. # See if we are running on zsh, and set the options that allow our
  27637. # commands through without removal of \ escapes.
  27638. if test -n "${ZSH_VERSION+set}"; then
  27639. setopt NO_GLOB_SUBST
  27640. fi
  27641. cfgfile=${ofile}T
  27642. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27643. $RM "$cfgfile"
  27644. cat <<_LT_EOF >> "$cfgfile"
  27645. #! $SHELL
  27646. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27647. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27648. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27649. # Provide generalized library-building support services.
  27650. # Written by Gordon Matzigkeit, 1996
  27651. # Copyright (C) 2014 Free Software Foundation, Inc.
  27652. # This is free software; see the source for copying conditions. There is NO
  27653. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27654. # GNU Libtool is free software; you can redistribute it and/or modify
  27655. # it under the terms of the GNU General Public License as published by
  27656. # the Free Software Foundation; either version 2 of of the License, or
  27657. # (at your option) any later version.
  27658. #
  27659. # As a special exception to the GNU General Public License, if you
  27660. # distribute this file as part of a program or library that is built
  27661. # using GNU Libtool, you may include this file under the same
  27662. # distribution terms that you use for the rest of that program.
  27663. #
  27664. # GNU Libtool is distributed in the hope that it will be useful, but
  27665. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27666. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27667. # GNU General Public License for more details.
  27668. #
  27669. # You should have received a copy of the GNU General Public License
  27670. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27671. # The names of the tagged configurations supported by this script.
  27672. available_tags='RC CXX '
  27673. # Configured defaults for sys_lib_dlsearch_path munging.
  27674. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27675. # ### BEGIN LIBTOOL CONFIG
  27676. # Which release of libtool.m4 was used?
  27677. macro_version=$macro_version
  27678. macro_revision=$macro_revision
  27679. # Assembler program.
  27680. AS=$lt_AS
  27681. # DLL creation program.
  27682. DLLTOOL=$lt_DLLTOOL
  27683. # Object dumper program.
  27684. OBJDUMP=$lt_OBJDUMP
  27685. # Whether or not to build shared libraries.
  27686. build_libtool_libs=$enable_shared
  27687. # Whether or not to build static libraries.
  27688. build_old_libs=$enable_static
  27689. # What type of objects to build.
  27690. pic_mode=$pic_mode
  27691. # Whether or not to optimize for fast installation.
  27692. fast_install=$enable_fast_install
  27693. # Shared archive member basename,for filename based shared library versioning on AIX.
  27694. shared_archive_member_spec=$shared_archive_member_spec
  27695. # Shell to use when invoking shell scripts.
  27696. SHELL=$lt_SHELL
  27697. # An echo program that protects backslashes.
  27698. ECHO=$lt_ECHO
  27699. # The PATH separator for the build system.
  27700. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27701. # The host system.
  27702. host_alias=$host_alias
  27703. host=$host
  27704. host_os=$host_os
  27705. # The build system.
  27706. build_alias=$build_alias
  27707. build=$build
  27708. build_os=$build_os
  27709. # A sed program that does not truncate output.
  27710. SED=$lt_SED
  27711. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27712. Xsed="\$SED -e 1s/^X//"
  27713. # A grep program that handles long lines.
  27714. GREP=$lt_GREP
  27715. # An ERE matcher.
  27716. EGREP=$lt_EGREP
  27717. # A literal string matcher.
  27718. FGREP=$lt_FGREP
  27719. # A BSD- or MS-compatible name lister.
  27720. NM=$lt_NM
  27721. # Whether we need soft or hard links.
  27722. LN_S=$lt_LN_S
  27723. # What is the maximum length of a command?
  27724. max_cmd_len=$max_cmd_len
  27725. # Object file suffix (normally "o").
  27726. objext=$ac_objext
  27727. # Executable file suffix (normally "").
  27728. exeext=$exeext
  27729. # whether the shell understands "unset".
  27730. lt_unset=$lt_unset
  27731. # turn spaces into newlines.
  27732. SP2NL=$lt_lt_SP2NL
  27733. # turn newlines into spaces.
  27734. NL2SP=$lt_lt_NL2SP
  27735. # convert \$build file names to \$host format.
  27736. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27737. # convert \$build files to toolchain format.
  27738. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27739. # Method to check whether dependent libraries are shared objects.
  27740. deplibs_check_method=$lt_deplibs_check_method
  27741. # Command to use when deplibs_check_method = "file_magic".
  27742. file_magic_cmd=$lt_file_magic_cmd
  27743. # How to find potential files when deplibs_check_method = "file_magic".
  27744. file_magic_glob=$lt_file_magic_glob
  27745. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27746. want_nocaseglob=$lt_want_nocaseglob
  27747. # Command to associate shared and link libraries.
  27748. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27749. # The archiver.
  27750. AR=$lt_AR
  27751. # Flags to create an archive.
  27752. AR_FLAGS=$lt_AR_FLAGS
  27753. # How to feed a file listing to the archiver.
  27754. archiver_list_spec=$lt_archiver_list_spec
  27755. # A symbol stripping program.
  27756. STRIP=$lt_STRIP
  27757. # Commands used to install an old-style archive.
  27758. RANLIB=$lt_RANLIB
  27759. old_postinstall_cmds=$lt_old_postinstall_cmds
  27760. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27761. # Whether to use a lock for old archive extraction.
  27762. lock_old_archive_extraction=$lock_old_archive_extraction
  27763. # A C compiler.
  27764. LTCC=$lt_CC
  27765. # LTCC compiler flags.
  27766. LTCFLAGS=$lt_CFLAGS
  27767. # Take the output of nm and produce a listing of raw symbols and C names.
  27768. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27769. # Transform the output of nm in a proper C declaration.
  27770. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27771. # Transform the output of nm into a list of symbols to manually relocate.
  27772. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27773. # Transform the output of nm in a C name address pair.
  27774. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27775. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27776. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27777. # The name lister interface.
  27778. nm_interface=$lt_lt_cv_nm_interface
  27779. # Specify filename containing input files for \$NM.
  27780. nm_file_list_spec=$lt_nm_file_list_spec
  27781. # The root where to search for dependent libraries,and where our libraries should be installed.
  27782. lt_sysroot=$lt_sysroot
  27783. # Command to truncate a binary pipe.
  27784. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27785. # The name of the directory that contains temporary libtool files.
  27786. objdir=$objdir
  27787. # Used to examine libraries when file_magic_cmd begins with "file".
  27788. MAGIC_CMD=$MAGIC_CMD
  27789. # Must we lock files when doing compilation?
  27790. need_locks=$lt_need_locks
  27791. # Manifest tool.
  27792. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27793. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27794. DSYMUTIL=$lt_DSYMUTIL
  27795. # Tool to change global to local symbols on Mac OS X.
  27796. NMEDIT=$lt_NMEDIT
  27797. # Tool to manipulate fat objects and archives on Mac OS X.
  27798. LIPO=$lt_LIPO
  27799. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27800. OTOOL=$lt_OTOOL
  27801. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27802. OTOOL64=$lt_OTOOL64
  27803. # Old archive suffix (normally "a").
  27804. libext=$libext
  27805. # Shared library suffix (normally ".so").
  27806. shrext_cmds=$lt_shrext_cmds
  27807. # The commands to extract the exported symbol list from a shared archive.
  27808. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27809. # Variables whose values should be saved in libtool wrapper scripts and
  27810. # restored at link time.
  27811. variables_saved_for_relink=$lt_variables_saved_for_relink
  27812. # Do we need the "lib" prefix for modules?
  27813. need_lib_prefix=$need_lib_prefix
  27814. # Do we need a version for libraries?
  27815. need_version=$need_version
  27816. # Library versioning type.
  27817. version_type=$version_type
  27818. # Shared library runtime path variable.
  27819. runpath_var=$runpath_var
  27820. # Shared library path variable.
  27821. shlibpath_var=$shlibpath_var
  27822. # Is shlibpath searched before the hard-coded library search path?
  27823. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27824. # Format of library name prefix.
  27825. libname_spec=$lt_libname_spec
  27826. # List of archive names. First name is the real one, the rest are links.
  27827. # The last name is the one that the linker finds with -lNAME
  27828. library_names_spec=$lt_library_names_spec
  27829. # The coded name of the library, if different from the real name.
  27830. soname_spec=$lt_soname_spec
  27831. # Permission mode override for installation of shared libraries.
  27832. install_override_mode=$lt_install_override_mode
  27833. # Command to use after installation of a shared archive.
  27834. postinstall_cmds=$lt_postinstall_cmds
  27835. # Command to use after uninstallation of a shared archive.
  27836. postuninstall_cmds=$lt_postuninstall_cmds
  27837. # Commands used to finish a libtool library installation in a directory.
  27838. finish_cmds=$lt_finish_cmds
  27839. # As "finish_cmds", except a single script fragment to be evaled but
  27840. # not shown.
  27841. finish_eval=$lt_finish_eval
  27842. # Whether we should hardcode library paths into libraries.
  27843. hardcode_into_libs=$hardcode_into_libs
  27844. # Compile-time system search path for libraries.
  27845. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27846. # Detected run-time system search path for libraries.
  27847. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27848. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27849. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27850. # Whether dlopen is supported.
  27851. dlopen_support=$enable_dlopen
  27852. # Whether dlopen of programs is supported.
  27853. dlopen_self=$enable_dlopen_self
  27854. # Whether dlopen of statically linked programs is supported.
  27855. dlopen_self_static=$enable_dlopen_self_static
  27856. # Commands to strip libraries.
  27857. old_striplib=$lt_old_striplib
  27858. striplib=$lt_striplib
  27859. # The linker used to build libraries.
  27860. LD=$lt_LD
  27861. # How to create reloadable object files.
  27862. reload_flag=$lt_reload_flag
  27863. reload_cmds=$lt_reload_cmds
  27864. # Commands used to build an old-style archive.
  27865. old_archive_cmds=$lt_old_archive_cmds
  27866. # A language specific compiler.
  27867. CC=$lt_compiler
  27868. # Is the compiler the GNU compiler?
  27869. with_gcc=$GCC
  27870. # Compiler flag to turn off builtin functions.
  27871. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27872. # Additional compiler flags for building library objects.
  27873. pic_flag=$lt_lt_prog_compiler_pic
  27874. # How to pass a linker flag through the compiler.
  27875. wl=$lt_lt_prog_compiler_wl
  27876. # Compiler flag to prevent dynamic linking.
  27877. link_static_flag=$lt_lt_prog_compiler_static
  27878. # Does compiler simultaneously support -c and -o options?
  27879. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27880. # Whether or not to add -lc for building shared libraries.
  27881. build_libtool_need_lc=$archive_cmds_need_lc
  27882. # Whether or not to disallow shared libs when runtime libs are static.
  27883. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27884. # Compiler flag to allow reflexive dlopens.
  27885. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27886. # Compiler flag to generate shared objects directly from archives.
  27887. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27888. # Whether the compiler copes with passing no objects directly.
  27889. compiler_needs_object=$lt_compiler_needs_object
  27890. # Create an old-style archive from a shared archive.
  27891. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27892. # Create a temporary old-style archive to link instead of a shared archive.
  27893. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27894. # Commands used to build a shared archive.
  27895. archive_cmds=$lt_archive_cmds
  27896. archive_expsym_cmds=$lt_archive_expsym_cmds
  27897. # Commands used to build a loadable module if different from building
  27898. # a shared archive.
  27899. module_cmds=$lt_module_cmds
  27900. module_expsym_cmds=$lt_module_expsym_cmds
  27901. # Whether we are building with GNU ld or not.
  27902. with_gnu_ld=$lt_with_gnu_ld
  27903. # Flag that allows shared libraries with undefined symbols to be built.
  27904. allow_undefined_flag=$lt_allow_undefined_flag
  27905. # Flag that enforces no undefined symbols.
  27906. no_undefined_flag=$lt_no_undefined_flag
  27907. # Flag to hardcode \$libdir into a binary during linking.
  27908. # This must work even if \$libdir does not exist
  27909. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27910. # Whether we need a single "-rpath" flag with a separated argument.
  27911. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27912. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27913. # DIR into the resulting binary.
  27914. hardcode_direct=$hardcode_direct
  27915. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27916. # DIR into the resulting binary and the resulting library dependency is
  27917. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27918. # library is relocated.
  27919. hardcode_direct_absolute=$hardcode_direct_absolute
  27920. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27921. # into the resulting binary.
  27922. hardcode_minus_L=$hardcode_minus_L
  27923. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27924. # into the resulting binary.
  27925. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27926. # Set to "yes" if building a shared library automatically hardcodes DIR
  27927. # into the library and all subsequent libraries and executables linked
  27928. # against it.
  27929. hardcode_automatic=$hardcode_automatic
  27930. # Set to yes if linker adds runtime paths of dependent libraries
  27931. # to runtime path list.
  27932. inherit_rpath=$inherit_rpath
  27933. # Whether libtool must link a program against all its dependency libraries.
  27934. link_all_deplibs=$link_all_deplibs
  27935. # Set to "yes" if exported symbols are required.
  27936. always_export_symbols=$always_export_symbols
  27937. # The commands to list exported symbols.
  27938. export_symbols_cmds=$lt_export_symbols_cmds
  27939. # Symbols that should not be listed in the preloaded symbols.
  27940. exclude_expsyms=$lt_exclude_expsyms
  27941. # Symbols that must always be exported.
  27942. include_expsyms=$lt_include_expsyms
  27943. # Commands necessary for linking programs (against libraries) with templates.
  27944. prelink_cmds=$lt_prelink_cmds
  27945. # Commands necessary for finishing linking programs.
  27946. postlink_cmds=$lt_postlink_cmds
  27947. # Specify filename containing input files.
  27948. file_list_spec=$lt_file_list_spec
  27949. # How to hardcode a shared library path into an executable.
  27950. hardcode_action=$hardcode_action
  27951. # The directories searched by this compiler when creating a shared library.
  27952. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27953. # Dependencies to place before and after the objects being linked to
  27954. # create a shared library.
  27955. predep_objects=$lt_predep_objects
  27956. postdep_objects=$lt_postdep_objects
  27957. predeps=$lt_predeps
  27958. postdeps=$lt_postdeps
  27959. # The library search path used internally by the compiler when linking
  27960. # a shared library.
  27961. compiler_lib_search_path=$lt_compiler_lib_search_path
  27962. # ### END LIBTOOL CONFIG
  27963. _LT_EOF
  27964. cat <<'_LT_EOF' >> "$cfgfile"
  27965. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27966. # func_munge_path_list VARIABLE PATH
  27967. # -----------------------------------
  27968. # VARIABLE is name of variable containing _space_ separated list of
  27969. # directories to be munged by the contents of PATH, which is string
  27970. # having a format:
  27971. # "DIR[:DIR]:"
  27972. # string "DIR[ DIR]" will be prepended to VARIABLE
  27973. # ":DIR[:DIR]"
  27974. # string "DIR[ DIR]" will be appended to VARIABLE
  27975. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27976. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27977. # "DIRA[ DIRA]" will be appended to VARIABLE
  27978. # "DIR[:DIR]"
  27979. # VARIABLE will be replaced by "DIR[ DIR]"
  27980. func_munge_path_list ()
  27981. {
  27982. case x$2 in
  27983. x)
  27984. ;;
  27985. *:)
  27986. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27987. ;;
  27988. x:*)
  27989. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27990. ;;
  27991. *::*)
  27992. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27993. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27994. ;;
  27995. *)
  27996. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27997. ;;
  27998. esac
  27999. }
  28000. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  28001. func_cc_basename ()
  28002. {
  28003. for cc_temp in $*""; do
  28004. case $cc_temp in
  28005. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28006. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28007. \-*) ;;
  28008. *) break;;
  28009. esac
  28010. done
  28011. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28012. }
  28013. # ### END FUNCTIONS SHARED WITH CONFIGURE
  28014. _LT_EOF
  28015. case $host_os in
  28016. aix3*)
  28017. cat <<\_LT_EOF >> "$cfgfile"
  28018. # AIX sometimes has problems with the GCC collect2 program. For some
  28019. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28020. # vanish in a puff of smoke.
  28021. if test set != "${COLLECT_NAMES+set}"; then
  28022. COLLECT_NAMES=
  28023. export COLLECT_NAMES
  28024. fi
  28025. _LT_EOF
  28026. ;;
  28027. esac
  28028. ltmain=$ac_aux_dir/ltmain.sh
  28029. # We use sed instead of cat because bash on DJGPP gets confused if
  28030. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28031. # text mode, it properly converts lines to CR/LF. This bash problem
  28032. # is reportedly fixed, but why not run on old versions too?
  28033. sed '$q' "$ltmain" >> "$cfgfile" \
  28034. || (rm -f "$cfgfile"; exit 1)
  28035. mv -f "$cfgfile" "$ofile" ||
  28036. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28037. chmod +x "$ofile"
  28038. cat <<_LT_EOF >> "$ofile"
  28039. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28040. # The linker used to build libraries.
  28041. LD=$lt_LD_RC
  28042. # How to create reloadable object files.
  28043. reload_flag=$lt_reload_flag_RC
  28044. reload_cmds=$lt_reload_cmds_RC
  28045. # Commands used to build an old-style archive.
  28046. old_archive_cmds=$lt_old_archive_cmds_RC
  28047. # A language specific compiler.
  28048. CC=$lt_compiler_RC
  28049. # Is the compiler the GNU compiler?
  28050. with_gcc=$GCC_RC
  28051. # Compiler flag to turn off builtin functions.
  28052. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28053. # Additional compiler flags for building library objects.
  28054. pic_flag=$lt_lt_prog_compiler_pic_RC
  28055. # How to pass a linker flag through the compiler.
  28056. wl=$lt_lt_prog_compiler_wl_RC
  28057. # Compiler flag to prevent dynamic linking.
  28058. link_static_flag=$lt_lt_prog_compiler_static_RC
  28059. # Does compiler simultaneously support -c and -o options?
  28060. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28061. # Whether or not to add -lc for building shared libraries.
  28062. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28063. # Whether or not to disallow shared libs when runtime libs are static.
  28064. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28065. # Compiler flag to allow reflexive dlopens.
  28066. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28067. # Compiler flag to generate shared objects directly from archives.
  28068. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28069. # Whether the compiler copes with passing no objects directly.
  28070. compiler_needs_object=$lt_compiler_needs_object_RC
  28071. # Create an old-style archive from a shared archive.
  28072. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28073. # Create a temporary old-style archive to link instead of a shared archive.
  28074. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28075. # Commands used to build a shared archive.
  28076. archive_cmds=$lt_archive_cmds_RC
  28077. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28078. # Commands used to build a loadable module if different from building
  28079. # a shared archive.
  28080. module_cmds=$lt_module_cmds_RC
  28081. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28082. # Whether we are building with GNU ld or not.
  28083. with_gnu_ld=$lt_with_gnu_ld_RC
  28084. # Flag that allows shared libraries with undefined symbols to be built.
  28085. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28086. # Flag that enforces no undefined symbols.
  28087. no_undefined_flag=$lt_no_undefined_flag_RC
  28088. # Flag to hardcode \$libdir into a binary during linking.
  28089. # This must work even if \$libdir does not exist
  28090. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28091. # Whether we need a single "-rpath" flag with a separated argument.
  28092. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28093. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28094. # DIR into the resulting binary.
  28095. hardcode_direct=$hardcode_direct_RC
  28096. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28097. # DIR into the resulting binary and the resulting library dependency is
  28098. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28099. # library is relocated.
  28100. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28101. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28102. # into the resulting binary.
  28103. hardcode_minus_L=$hardcode_minus_L_RC
  28104. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28105. # into the resulting binary.
  28106. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28107. # Set to "yes" if building a shared library automatically hardcodes DIR
  28108. # into the library and all subsequent libraries and executables linked
  28109. # against it.
  28110. hardcode_automatic=$hardcode_automatic_RC
  28111. # Set to yes if linker adds runtime paths of dependent libraries
  28112. # to runtime path list.
  28113. inherit_rpath=$inherit_rpath_RC
  28114. # Whether libtool must link a program against all its dependency libraries.
  28115. link_all_deplibs=$link_all_deplibs_RC
  28116. # Set to "yes" if exported symbols are required.
  28117. always_export_symbols=$always_export_symbols_RC
  28118. # The commands to list exported symbols.
  28119. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28120. # Symbols that should not be listed in the preloaded symbols.
  28121. exclude_expsyms=$lt_exclude_expsyms_RC
  28122. # Symbols that must always be exported.
  28123. include_expsyms=$lt_include_expsyms_RC
  28124. # Commands necessary for linking programs (against libraries) with templates.
  28125. prelink_cmds=$lt_prelink_cmds_RC
  28126. # Commands necessary for finishing linking programs.
  28127. postlink_cmds=$lt_postlink_cmds_RC
  28128. # Specify filename containing input files.
  28129. file_list_spec=$lt_file_list_spec_RC
  28130. # How to hardcode a shared library path into an executable.
  28131. hardcode_action=$hardcode_action_RC
  28132. # The directories searched by this compiler when creating a shared library.
  28133. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28134. # Dependencies to place before and after the objects being linked to
  28135. # create a shared library.
  28136. predep_objects=$lt_predep_objects_RC
  28137. postdep_objects=$lt_postdep_objects_RC
  28138. predeps=$lt_predeps_RC
  28139. postdeps=$lt_postdeps_RC
  28140. # The library search path used internally by the compiler when linking
  28141. # a shared library.
  28142. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28143. # ### END LIBTOOL TAG CONFIG: RC
  28144. _LT_EOF
  28145. cat <<_LT_EOF >> "$ofile"
  28146. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28147. # The linker used to build libraries.
  28148. LD=$lt_LD_CXX
  28149. # How to create reloadable object files.
  28150. reload_flag=$lt_reload_flag_CXX
  28151. reload_cmds=$lt_reload_cmds_CXX
  28152. # Commands used to build an old-style archive.
  28153. old_archive_cmds=$lt_old_archive_cmds_CXX
  28154. # A language specific compiler.
  28155. CC=$lt_compiler_CXX
  28156. # Is the compiler the GNU compiler?
  28157. with_gcc=$GCC_CXX
  28158. # Compiler flag to turn off builtin functions.
  28159. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28160. # Additional compiler flags for building library objects.
  28161. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28162. # How to pass a linker flag through the compiler.
  28163. wl=$lt_lt_prog_compiler_wl_CXX
  28164. # Compiler flag to prevent dynamic linking.
  28165. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28166. # Does compiler simultaneously support -c and -o options?
  28167. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28168. # Whether or not to add -lc for building shared libraries.
  28169. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28170. # Whether or not to disallow shared libs when runtime libs are static.
  28171. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28172. # Compiler flag to allow reflexive dlopens.
  28173. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28174. # Compiler flag to generate shared objects directly from archives.
  28175. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28176. # Whether the compiler copes with passing no objects directly.
  28177. compiler_needs_object=$lt_compiler_needs_object_CXX
  28178. # Create an old-style archive from a shared archive.
  28179. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28180. # Create a temporary old-style archive to link instead of a shared archive.
  28181. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28182. # Commands used to build a shared archive.
  28183. archive_cmds=$lt_archive_cmds_CXX
  28184. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28185. # Commands used to build a loadable module if different from building
  28186. # a shared archive.
  28187. module_cmds=$lt_module_cmds_CXX
  28188. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28189. # Whether we are building with GNU ld or not.
  28190. with_gnu_ld=$lt_with_gnu_ld_CXX
  28191. # Flag that allows shared libraries with undefined symbols to be built.
  28192. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28193. # Flag that enforces no undefined symbols.
  28194. no_undefined_flag=$lt_no_undefined_flag_CXX
  28195. # Flag to hardcode \$libdir into a binary during linking.
  28196. # This must work even if \$libdir does not exist
  28197. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28198. # Whether we need a single "-rpath" flag with a separated argument.
  28199. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28200. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28201. # DIR into the resulting binary.
  28202. hardcode_direct=$hardcode_direct_CXX
  28203. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28204. # DIR into the resulting binary and the resulting library dependency is
  28205. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28206. # library is relocated.
  28207. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28208. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28209. # into the resulting binary.
  28210. hardcode_minus_L=$hardcode_minus_L_CXX
  28211. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28212. # into the resulting binary.
  28213. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28214. # Set to "yes" if building a shared library automatically hardcodes DIR
  28215. # into the library and all subsequent libraries and executables linked
  28216. # against it.
  28217. hardcode_automatic=$hardcode_automatic_CXX
  28218. # Set to yes if linker adds runtime paths of dependent libraries
  28219. # to runtime path list.
  28220. inherit_rpath=$inherit_rpath_CXX
  28221. # Whether libtool must link a program against all its dependency libraries.
  28222. link_all_deplibs=$link_all_deplibs_CXX
  28223. # Set to "yes" if exported symbols are required.
  28224. always_export_symbols=$always_export_symbols_CXX
  28225. # The commands to list exported symbols.
  28226. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28227. # Symbols that should not be listed in the preloaded symbols.
  28228. exclude_expsyms=$lt_exclude_expsyms_CXX
  28229. # Symbols that must always be exported.
  28230. include_expsyms=$lt_include_expsyms_CXX
  28231. # Commands necessary for linking programs (against libraries) with templates.
  28232. prelink_cmds=$lt_prelink_cmds_CXX
  28233. # Commands necessary for finishing linking programs.
  28234. postlink_cmds=$lt_postlink_cmds_CXX
  28235. # Specify filename containing input files.
  28236. file_list_spec=$lt_file_list_spec_CXX
  28237. # How to hardcode a shared library path into an executable.
  28238. hardcode_action=$hardcode_action_CXX
  28239. # The directories searched by this compiler when creating a shared library.
  28240. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28241. # Dependencies to place before and after the objects being linked to
  28242. # create a shared library.
  28243. predep_objects=$lt_predep_objects_CXX
  28244. postdep_objects=$lt_postdep_objects_CXX
  28245. predeps=$lt_predeps_CXX
  28246. postdeps=$lt_postdeps_CXX
  28247. # The library search path used internally by the compiler when linking
  28248. # a shared library.
  28249. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28250. # ### END LIBTOOL TAG CONFIG: CXX
  28251. _LT_EOF
  28252. ;;
  28253. "sdl2_config":C) chmod a+x sdl2-config ;;
  28254. "summary":C) printf "$SUMMARY" ;;
  28255. esac
  28256. done # for ac_tag
  28257. as_fn_exit 0
  28258. _ACEOF
  28259. ac_clean_files=$ac_clean_files_save
  28260. test $ac_write_fail = 0 ||
  28261. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28262. # configure is writing to config.log, and then calls config.status.
  28263. # config.status does its own redirection, appending to config.log.
  28264. # Unfortunately, on DOS this fails, as config.log is still kept open
  28265. # by configure, so config.status won't be able to write to it; its
  28266. # output is simply discarded. So we exec the FD to /dev/null,
  28267. # effectively closing config.log, so it can be properly (re)opened and
  28268. # appended to by config.status. When coming back to configure, we
  28269. # need to make the FD available again.
  28270. if test "$no_create" != yes; then
  28271. ac_cs_success=:
  28272. ac_config_status_args=
  28273. test "$silent" = yes &&
  28274. ac_config_status_args="$ac_config_status_args --quiet"
  28275. exec 5>/dev/null
  28276. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28277. exec 5>>config.log
  28278. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28279. # would make configure fail if this is the last instruction.
  28280. $ac_cs_success || as_fn_exit 1
  28281. fi
  28282. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28284. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28285. fi