configure 965 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871
  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=33
  3208. SDL_MICRO_VERSION=0
  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. *-*-android*)
  16035. BASE_LDFLAGS="-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384"
  16036. ;;
  16037. *-*-cygwin*)
  16038. # We build SDL on cygwin without the UNIX emulation layer
  16039. save_CFLAGS="$CFLAGS"
  16040. have_no_cygwin=no
  16041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16042. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16043. CFLAGS="$save_CFLAGS -mno-cygwin"
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. int
  16047. main (void)
  16048. {
  16049. ;
  16050. return 0;
  16051. }
  16052. _ACEOF
  16053. if ac_fn_c_try_compile "$LINENO"
  16054. then :
  16055. have_no_cygwin=yes
  16056. fi
  16057. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16059. printf "%s\n" "$have_no_cygwin" >&6; }
  16060. CFLAGS="$save_CFLAGS"
  16061. if test x$have_no_cygwin = xyes; then
  16062. BASE_CFLAGS="-mno-cygwin"
  16063. BASE_LDFLAGS="-mno-cygwin"
  16064. fi
  16065. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16066. ;;
  16067. esac
  16068. # Uncomment the following line if you want to force SDL and applications
  16069. # built with it to be compiled for a particular architecture.
  16070. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16071. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16072. # The default optimization for SDL is -O3 (Bug #31)
  16073. if test "x$orig_CFLAGS" = x; then
  16074. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16075. fi
  16076. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16077. BUILD_LDFLAGS="$LDFLAGS"
  16078. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16079. ## These are common directories to find software packages
  16080. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16081. # if test -d $path/include; then
  16082. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16083. # fi
  16084. # if test -d $path/lib; then
  16085. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16086. # fi
  16087. #done
  16088. SDL_CFLAGS="$BASE_CFLAGS"
  16089. SDL_LIBS="-lSDL2"
  16090. if test "x$BASE_LDFLAGS" != x; then
  16091. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16092. fi
  16093. if test "x$EXTRA_CFLAGS" != x; then
  16094. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16095. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16096. fi
  16097. if test "x$EXTRA_LDFLAGS" != x; then
  16098. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16099. fi
  16100. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16101. find_lib()
  16102. {
  16103. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16104. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16105. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16106. if test "$cross_compiling" = yes; then
  16107. host_lib_path=""
  16108. else
  16109. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16110. fi
  16111. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16112. 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`
  16113. if test x$lib != x; then
  16114. echo $lib
  16115. return
  16116. fi
  16117. done
  16118. }
  16119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16120. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16121. if test ${ac_cv_c_const+y}
  16122. then :
  16123. printf %s "(cached) " >&6
  16124. else $as_nop
  16125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16126. /* end confdefs.h. */
  16127. int
  16128. main (void)
  16129. {
  16130. #ifndef __cplusplus
  16131. /* Ultrix mips cc rejects this sort of thing. */
  16132. typedef int charset[2];
  16133. const charset cs = { 0, 0 };
  16134. /* SunOS 4.1.1 cc rejects this. */
  16135. char const *const *pcpcc;
  16136. char **ppc;
  16137. /* NEC SVR4.0.2 mips cc rejects this. */
  16138. struct point {int x, y;};
  16139. static struct point const zero = {0,0};
  16140. /* IBM XL C 1.02.0.0 rejects this.
  16141. It does not let you subtract one const X* pointer from another in
  16142. an arm of an if-expression whose if-part is not a constant
  16143. expression */
  16144. const char *g = "string";
  16145. pcpcc = &g + (g ? g-g : 0);
  16146. /* HPUX 7.0 cc rejects these. */
  16147. ++pcpcc;
  16148. ppc = (char**) pcpcc;
  16149. pcpcc = (char const *const *) ppc;
  16150. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16151. char tx;
  16152. char *t = &tx;
  16153. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16154. *t++ = 0;
  16155. if (s) return 0;
  16156. }
  16157. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16158. int x[] = {25, 17};
  16159. const int *foo = &x[0];
  16160. ++foo;
  16161. }
  16162. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16163. typedef const int *iptr;
  16164. iptr p = 0;
  16165. ++p;
  16166. }
  16167. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16168. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16169. struct s { int j; const int *ap[3]; } bx;
  16170. struct s *b = &bx; b->j = 5;
  16171. }
  16172. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16173. const int foo = 10;
  16174. if (!foo) return 0;
  16175. }
  16176. return !cs[0] && !zero.x;
  16177. #endif
  16178. ;
  16179. return 0;
  16180. }
  16181. _ACEOF
  16182. if ac_fn_c_try_compile "$LINENO"
  16183. then :
  16184. ac_cv_c_const=yes
  16185. else $as_nop
  16186. ac_cv_c_const=no
  16187. fi
  16188. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16189. fi
  16190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16191. printf "%s\n" "$ac_cv_c_const" >&6; }
  16192. if test $ac_cv_c_const = no; then
  16193. printf "%s\n" "#define const /**/" >>confdefs.h
  16194. fi
  16195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16196. printf %s "checking for inline... " >&6; }
  16197. if test ${ac_cv_c_inline+y}
  16198. then :
  16199. printf %s "(cached) " >&6
  16200. else $as_nop
  16201. ac_cv_c_inline=no
  16202. for ac_kw in inline __inline__ __inline; do
  16203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16204. /* end confdefs.h. */
  16205. #ifndef __cplusplus
  16206. typedef int foo_t;
  16207. static $ac_kw foo_t static_foo (void) {return 0; }
  16208. $ac_kw foo_t foo (void) {return 0; }
  16209. #endif
  16210. _ACEOF
  16211. if ac_fn_c_try_compile "$LINENO"
  16212. then :
  16213. ac_cv_c_inline=$ac_kw
  16214. fi
  16215. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16216. test "$ac_cv_c_inline" != no && break
  16217. done
  16218. fi
  16219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16220. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16221. case $ac_cv_c_inline in
  16222. inline | yes) ;;
  16223. *)
  16224. case $ac_cv_c_inline in
  16225. no) ac_val=;;
  16226. *) ac_val=$ac_cv_c_inline;;
  16227. esac
  16228. cat >>confdefs.h <<_ACEOF
  16229. #ifndef __cplusplus
  16230. #define inline $ac_val
  16231. #endif
  16232. _ACEOF
  16233. ;;
  16234. esac
  16235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16236. printf %s "checking for working volatile... " >&6; }
  16237. if test ${ac_cv_c_volatile+y}
  16238. then :
  16239. printf %s "(cached) " >&6
  16240. else $as_nop
  16241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16242. /* end confdefs.h. */
  16243. int
  16244. main (void)
  16245. {
  16246. volatile int x;
  16247. int * volatile y = (int *) 0;
  16248. return !x && !y;
  16249. ;
  16250. return 0;
  16251. }
  16252. _ACEOF
  16253. if ac_fn_c_try_compile "$LINENO"
  16254. then :
  16255. ac_cv_c_volatile=yes
  16256. else $as_nop
  16257. ac_cv_c_volatile=no
  16258. fi
  16259. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16260. fi
  16261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16262. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16263. if test $ac_cv_c_volatile = no; then
  16264. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16265. fi
  16266. # Check whether --enable-assertions was given.
  16267. if test ${enable_assertions+y}
  16268. then :
  16269. enableval=$enable_assertions;
  16270. else $as_nop
  16271. enable_assertions=auto
  16272. fi
  16273. case "$enable_assertions" in
  16274. auto) # Use optimization settings to determine assertion level
  16275. ;;
  16276. disabled)
  16277. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16278. ;;
  16279. release)
  16280. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16281. ;;
  16282. enabled)
  16283. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16284. ;;
  16285. paranoid)
  16286. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16287. ;;
  16288. *)
  16289. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16290. ;;
  16291. esac
  16292. 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"
  16293. # Check whether --enable-dependency-tracking was given.
  16294. if test ${enable_dependency_tracking+y}
  16295. then :
  16296. enableval=$enable_dependency_tracking;
  16297. else $as_nop
  16298. enable_dependency_tracking=yes
  16299. fi
  16300. if test x$enable_dependency_tracking = xyes; then
  16301. have_gcc_mmd_mt=no
  16302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16303. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. #if !defined(__GNUC__) || __GNUC__ < 3
  16307. #error Dependency tracking requires GCC 3.0 or newer
  16308. #endif
  16309. int
  16310. main (void)
  16311. {
  16312. ;
  16313. return 0;
  16314. }
  16315. _ACEOF
  16316. if ac_fn_c_try_compile "$LINENO"
  16317. then :
  16318. have_gcc_mmd_mt=yes
  16319. fi
  16320. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16322. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16323. if test x$have_gcc_mmd_mt = xyes; then
  16324. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16325. fi
  16326. fi
  16327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16328. printf %s "checking for linker option --no-undefined... " >&6; }
  16329. have_no_undefined=no
  16330. case "$host" in
  16331. *-*-openbsd*)
  16332. ;;
  16333. *)
  16334. save_LDFLAGS="$LDFLAGS"
  16335. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16337. /* end confdefs.h. */
  16338. int
  16339. main (void)
  16340. {
  16341. ;
  16342. return 0;
  16343. }
  16344. _ACEOF
  16345. if ac_fn_c_try_link "$LINENO"
  16346. then :
  16347. have_no_undefined=yes
  16348. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16349. fi
  16350. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16351. conftest$ac_exeext conftest.$ac_ext
  16352. LDFLAGS="$save_LDFLAGS"
  16353. ;;
  16354. esac
  16355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16356. printf "%s\n" "$have_no_undefined" >&6; }
  16357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16358. printf %s "checking for linker option --dynamicbase... " >&6; }
  16359. have_dynamicbase=no
  16360. case "$host" in
  16361. *)
  16362. save_LDFLAGS="$LDFLAGS"
  16363. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. int
  16367. main (void)
  16368. {
  16369. ;
  16370. return 0;
  16371. }
  16372. _ACEOF
  16373. if ac_fn_c_try_link "$LINENO"
  16374. then :
  16375. have_dynamicbase=yes
  16376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16377. fi
  16378. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16379. conftest$ac_exeext conftest.$ac_ext
  16380. LDFLAGS="$save_LDFLAGS"
  16381. ;;
  16382. esac
  16383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16384. printf "%s\n" "$have_dynamicbase" >&6; }
  16385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16386. printf %s "checking for linker option --nxcompat... " >&6; }
  16387. have_nxcompat=no
  16388. case "$host" in
  16389. *)
  16390. save_LDFLAGS="$LDFLAGS"
  16391. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. int
  16395. main (void)
  16396. {
  16397. ;
  16398. return 0;
  16399. }
  16400. _ACEOF
  16401. if ac_fn_c_try_link "$LINENO"
  16402. then :
  16403. have_nxcompat=yes
  16404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16405. fi
  16406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16407. conftest$ac_exeext conftest.$ac_ext
  16408. LDFLAGS="$save_LDFLAGS"
  16409. ;;
  16410. esac
  16411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16412. printf "%s\n" "$have_nxcompat" >&6; }
  16413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16414. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16415. have_high_entropy_va=no
  16416. case "$host" in
  16417. *)
  16418. save_LDFLAGS="$LDFLAGS"
  16419. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16421. /* end confdefs.h. */
  16422. int
  16423. main (void)
  16424. {
  16425. ;
  16426. return 0;
  16427. }
  16428. _ACEOF
  16429. if ac_fn_c_try_link "$LINENO"
  16430. then :
  16431. have_high_entropy_va=yes
  16432. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16433. fi
  16434. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16435. conftest$ac_exeext conftest.$ac_ext
  16436. LDFLAGS="$save_LDFLAGS"
  16437. ;;
  16438. esac
  16439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16440. printf "%s\n" "$have_high_entropy_va" >&6; }
  16441. # Check whether --enable-libc was given.
  16442. if test ${enable_libc+y}
  16443. then :
  16444. enableval=$enable_libc;
  16445. else $as_nop
  16446. enable_libc=yes
  16447. fi
  16448. enable_system_iconv_default=yes
  16449. case "$host" in
  16450. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16451. enable_system_iconv_default=no
  16452. ;;
  16453. esac
  16454. # Check whether --enable-system-iconv was given.
  16455. if test ${enable_system_iconv+y}
  16456. then :
  16457. enableval=$enable_system_iconv;
  16458. else $as_nop
  16459. enable_system_iconv=$enable_system_iconv_default
  16460. fi
  16461. # Check whether --enable-libiconv was given.
  16462. if test ${enable_libiconv+y}
  16463. then :
  16464. enableval=$enable_libiconv;
  16465. else $as_nop
  16466. enable_libiconv=no
  16467. fi
  16468. if test x$enable_libc = xyes; then
  16469. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16470. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16471. if test "x$ac_cv_header_sys_types_h" = xyes
  16472. then :
  16473. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16474. fi
  16475. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16476. if test "x$ac_cv_header_stdio_h" = xyes
  16477. then :
  16478. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16479. fi
  16480. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16481. if test "x$ac_cv_header_stdlib_h" = xyes
  16482. then :
  16483. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16484. fi
  16485. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16486. if test "x$ac_cv_header_stddef_h" = xyes
  16487. then :
  16488. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16489. fi
  16490. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16491. if test "x$ac_cv_header_stdarg_h" = xyes
  16492. then :
  16493. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16494. fi
  16495. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16496. if test "x$ac_cv_header_malloc_h" = xyes
  16497. then :
  16498. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16499. fi
  16500. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16501. if test "x$ac_cv_header_memory_h" = xyes
  16502. then :
  16503. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16504. fi
  16505. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16506. if test "x$ac_cv_header_string_h" = xyes
  16507. then :
  16508. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16509. fi
  16510. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16511. if test "x$ac_cv_header_strings_h" = xyes
  16512. then :
  16513. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16514. fi
  16515. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16516. if test "x$ac_cv_header_wchar_h" = xyes
  16517. then :
  16518. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16519. fi
  16520. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16521. if test "x$ac_cv_header_inttypes_h" = xyes
  16522. then :
  16523. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16524. fi
  16525. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16526. if test "x$ac_cv_header_stdint_h" = xyes
  16527. then :
  16528. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16529. fi
  16530. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16531. if test "x$ac_cv_header_limits_h" = xyes
  16532. then :
  16533. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16534. fi
  16535. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16536. if test "x$ac_cv_header_ctype_h" = xyes
  16537. then :
  16538. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16539. fi
  16540. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16541. if test "x$ac_cv_header_math_h" = xyes
  16542. then :
  16543. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16544. fi
  16545. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16546. if test "x$ac_cv_header_float_h" = xyes
  16547. then :
  16548. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16549. fi
  16550. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16551. if test "x$ac_cv_header_iconv_h" = xyes
  16552. then :
  16553. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16554. fi
  16555. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16556. if test "x$ac_cv_header_signal_h" = xyes
  16557. then :
  16558. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16559. fi
  16560. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16561. if test "x$ac_cv_type_size_t" = xyes
  16562. then :
  16563. else $as_nop
  16564. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16565. fi
  16566. ac_ext=c
  16567. ac_cpp='$CPP $CPPFLAGS'
  16568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16572. printf %s "checking how to run the C preprocessor... " >&6; }
  16573. # On Suns, sometimes $CPP names a directory.
  16574. if test -n "$CPP" && test -d "$CPP"; then
  16575. CPP=
  16576. fi
  16577. if test -z "$CPP"; then
  16578. if test ${ac_cv_prog_CPP+y}
  16579. then :
  16580. printf %s "(cached) " >&6
  16581. else $as_nop
  16582. # Double quotes because $CC needs to be expanded
  16583. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16584. do
  16585. ac_preproc_ok=false
  16586. for ac_c_preproc_warn_flag in '' yes
  16587. do
  16588. # Use a header file that comes with gcc, so configuring glibc
  16589. # with a fresh cross-compiler works.
  16590. # On the NeXT, cc -E runs the code through the compiler's parser,
  16591. # not just through cpp. "Syntax error" is here to catch this case.
  16592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16593. /* end confdefs.h. */
  16594. #include <limits.h>
  16595. Syntax error
  16596. _ACEOF
  16597. if ac_fn_c_try_cpp "$LINENO"
  16598. then :
  16599. else $as_nop
  16600. # Broken: fails on valid input.
  16601. continue
  16602. fi
  16603. rm -f conftest.err conftest.i conftest.$ac_ext
  16604. # OK, works on sane cases. Now check whether nonexistent headers
  16605. # can be detected and how.
  16606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16607. /* end confdefs.h. */
  16608. #include <ac_nonexistent.h>
  16609. _ACEOF
  16610. if ac_fn_c_try_cpp "$LINENO"
  16611. then :
  16612. # Broken: success on invalid input.
  16613. continue
  16614. else $as_nop
  16615. # Passes both tests.
  16616. ac_preproc_ok=:
  16617. break
  16618. fi
  16619. rm -f conftest.err conftest.i conftest.$ac_ext
  16620. done
  16621. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16622. rm -f conftest.i conftest.err conftest.$ac_ext
  16623. if $ac_preproc_ok
  16624. then :
  16625. break
  16626. fi
  16627. done
  16628. ac_cv_prog_CPP=$CPP
  16629. fi
  16630. CPP=$ac_cv_prog_CPP
  16631. else
  16632. ac_cv_prog_CPP=$CPP
  16633. fi
  16634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16635. printf "%s\n" "$CPP" >&6; }
  16636. ac_preproc_ok=false
  16637. for ac_c_preproc_warn_flag in '' yes
  16638. do
  16639. # Use a header file that comes with gcc, so configuring glibc
  16640. # with a fresh cross-compiler works.
  16641. # On the NeXT, cc -E runs the code through the compiler's parser,
  16642. # not just through cpp. "Syntax error" is here to catch this case.
  16643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16644. /* end confdefs.h. */
  16645. #include <limits.h>
  16646. Syntax error
  16647. _ACEOF
  16648. if ac_fn_c_try_cpp "$LINENO"
  16649. then :
  16650. else $as_nop
  16651. # Broken: fails on valid input.
  16652. continue
  16653. fi
  16654. rm -f conftest.err conftest.i conftest.$ac_ext
  16655. # OK, works on sane cases. Now check whether nonexistent headers
  16656. # can be detected and how.
  16657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16658. /* end confdefs.h. */
  16659. #include <ac_nonexistent.h>
  16660. _ACEOF
  16661. if ac_fn_c_try_cpp "$LINENO"
  16662. then :
  16663. # Broken: success on invalid input.
  16664. continue
  16665. else $as_nop
  16666. # Passes both tests.
  16667. ac_preproc_ok=:
  16668. break
  16669. fi
  16670. rm -f conftest.err conftest.i conftest.$ac_ext
  16671. done
  16672. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16673. rm -f conftest.i conftest.err conftest.$ac_ext
  16674. if $ac_preproc_ok
  16675. then :
  16676. else $as_nop
  16677. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16678. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16679. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16680. See \`config.log' for more details" "$LINENO" 5; }
  16681. fi
  16682. ac_ext=c
  16683. ac_cpp='$CPP $CPPFLAGS'
  16684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16688. printf %s "checking for M_PI in math.h... " >&6; }
  16689. if test ${ac_cv_define_M_PI+y}
  16690. then :
  16691. printf %s "(cached) " >&6
  16692. else $as_nop
  16693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16694. /* end confdefs.h. */
  16695. #include <math.h>
  16696. #ifdef M_PI
  16697. YES_IS_DEFINED
  16698. #endif
  16699. _ACEOF
  16700. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16701. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16702. then :
  16703. ac_cv_define_M_PI=yes
  16704. else $as_nop
  16705. ac_cv_define_M_PI=no
  16706. fi
  16707. rm -rf conftest*
  16708. fi
  16709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16710. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16711. if test "$ac_cv_define_M_PI" = "yes" ; then
  16712. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16713. fi
  16714. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16715. # for constant arguments. Useless!
  16716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16717. printf %s "checking for working alloca.h... " >&6; }
  16718. if test ${ac_cv_working_alloca_h+y}
  16719. then :
  16720. printf %s "(cached) " >&6
  16721. else $as_nop
  16722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16723. /* end confdefs.h. */
  16724. #include <alloca.h>
  16725. int
  16726. main (void)
  16727. {
  16728. char *p = (char *) alloca (2 * sizeof (int));
  16729. if (p) return 0;
  16730. ;
  16731. return 0;
  16732. }
  16733. _ACEOF
  16734. if ac_fn_c_try_link "$LINENO"
  16735. then :
  16736. ac_cv_working_alloca_h=yes
  16737. else $as_nop
  16738. ac_cv_working_alloca_h=no
  16739. fi
  16740. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16741. conftest$ac_exeext conftest.$ac_ext
  16742. fi
  16743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16744. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16745. if test $ac_cv_working_alloca_h = yes; then
  16746. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16747. fi
  16748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16749. printf %s "checking for alloca... " >&6; }
  16750. if test ${ac_cv_func_alloca_works+y}
  16751. then :
  16752. printf %s "(cached) " >&6
  16753. else $as_nop
  16754. if test $ac_cv_working_alloca_h = yes; then
  16755. ac_cv_func_alloca_works=yes
  16756. else
  16757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16758. /* end confdefs.h. */
  16759. #include <stdlib.h>
  16760. #include <stddef.h>
  16761. #ifndef alloca
  16762. # ifdef __GNUC__
  16763. # define alloca __builtin_alloca
  16764. # elif defined _MSC_VER
  16765. # include <malloc.h>
  16766. # define alloca _alloca
  16767. # else
  16768. # ifdef __cplusplus
  16769. extern "C"
  16770. # endif
  16771. void *alloca (size_t);
  16772. # endif
  16773. #endif
  16774. int
  16775. main (void)
  16776. {
  16777. char *p = (char *) alloca (1);
  16778. if (p) return 0;
  16779. ;
  16780. return 0;
  16781. }
  16782. _ACEOF
  16783. if ac_fn_c_try_link "$LINENO"
  16784. then :
  16785. ac_cv_func_alloca_works=yes
  16786. else $as_nop
  16787. ac_cv_func_alloca_works=no
  16788. fi
  16789. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16790. conftest$ac_exeext conftest.$ac_ext
  16791. fi
  16792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16793. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16794. fi
  16795. if test $ac_cv_func_alloca_works = yes; then
  16796. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16797. else
  16798. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16799. # that cause trouble. Some versions do not even contain alloca or
  16800. # contain a buggy version. If you still want to use their alloca,
  16801. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16802. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16803. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16805. printf %s "checking stack direction for C alloca... " >&6; }
  16806. if test ${ac_cv_c_stack_direction+y}
  16807. then :
  16808. printf %s "(cached) " >&6
  16809. else $as_nop
  16810. if test "$cross_compiling" = yes
  16811. then :
  16812. ac_cv_c_stack_direction=0
  16813. else $as_nop
  16814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16815. /* end confdefs.h. */
  16816. $ac_includes_default
  16817. int
  16818. find_stack_direction (int *addr, int depth)
  16819. {
  16820. int dir, dummy = 0;
  16821. if (! addr)
  16822. addr = &dummy;
  16823. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16824. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16825. return dir + dummy;
  16826. }
  16827. int
  16828. main (int argc, char **argv)
  16829. {
  16830. return find_stack_direction (0, argc + !argv + 20) < 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_run "$LINENO"
  16834. then :
  16835. ac_cv_c_stack_direction=1
  16836. else $as_nop
  16837. ac_cv_c_stack_direction=-1
  16838. fi
  16839. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16840. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16841. fi
  16842. fi
  16843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16844. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16845. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16848. if test "x$ac_cv_func_mprotect" = xyes
  16849. then :
  16850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16851. /* end confdefs.h. */
  16852. #include <sys/types.h>
  16853. #include <sys/mman.h>
  16854. int
  16855. main (void)
  16856. {
  16857. ;
  16858. return 0;
  16859. }
  16860. _ACEOF
  16861. if ac_fn_c_try_compile "$LINENO"
  16862. then :
  16863. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16864. fi
  16865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16868. if test "x$ac_cv_func_malloc" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16873. if test "x$ac_cv_func_calloc" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16878. if test "x$ac_cv_func_realloc" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16883. if test "x$ac_cv_func_free" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16888. if test "x$ac_cv_func_getenv" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16893. if test "x$ac_cv_func_setenv" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16898. if test "x$ac_cv_func_putenv" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16903. if test "x$ac_cv_func_unsetenv" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16908. if test "x$ac_cv_func_bsearch" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16913. if test "x$ac_cv_func_qsort" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16918. if test "x$ac_cv_func_abs" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16923. if test "x$ac_cv_func_bcopy" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16928. if test "x$ac_cv_func_memset" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16933. if test "x$ac_cv_func_memcmp" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16938. if test "x$ac_cv_func_memcpy" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16943. if test "x$ac_cv_func_memmove" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16948. if test "x$ac_cv_func_wcslen" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16953. if test "x$ac_cv_func_wcslcpy" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16958. if test "x$ac_cv_func_wcslcat" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16963. if test "x$ac_cv_func__wcsdup" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16968. if test "x$ac_cv_func_wcsdup" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16973. if test "x$ac_cv_func_wcsstr" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16978. if test "x$ac_cv_func_wcscmp" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16983. if test "x$ac_cv_func_wcsncmp" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16988. if test "x$ac_cv_func_wcscasecmp" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16993. if test "x$ac_cv_func__wcsicmp" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16998. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  17003. if test "x$ac_cv_func__wcsnicmp" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  17006. fi
  17007. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  17008. if test "x$ac_cv_func_strlen" = xyes
  17009. then :
  17010. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  17011. fi
  17012. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17013. if test "x$ac_cv_func_strlcpy" = xyes
  17014. then :
  17015. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  17016. fi
  17017. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  17018. if test "x$ac_cv_func_strlcat" = xyes
  17019. then :
  17020. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  17021. fi
  17022. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  17023. if test "x$ac_cv_func__strrev" = xyes
  17024. then :
  17025. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17028. if test "x$ac_cv_func__strupr" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17033. if test "x$ac_cv_func__strlwr" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17036. fi
  17037. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17038. if test "x$ac_cv_func_index" = xyes
  17039. then :
  17040. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17041. fi
  17042. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17043. if test "x$ac_cv_func_rindex" = xyes
  17044. then :
  17045. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17046. fi
  17047. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17048. if test "x$ac_cv_func_strchr" = xyes
  17049. then :
  17050. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17051. fi
  17052. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17053. if test "x$ac_cv_func_strrchr" = xyes
  17054. then :
  17055. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17056. fi
  17057. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17058. if test "x$ac_cv_func_strstr" = xyes
  17059. then :
  17060. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17061. fi
  17062. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17063. if test "x$ac_cv_func_strtok_r" = xyes
  17064. then :
  17065. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17066. fi
  17067. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17068. if test "x$ac_cv_func_itoa" = xyes
  17069. then :
  17070. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17071. fi
  17072. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17073. if test "x$ac_cv_func__ltoa" = xyes
  17074. then :
  17075. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17076. fi
  17077. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17078. if test "x$ac_cv_func__uitoa" = xyes
  17079. then :
  17080. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17081. fi
  17082. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17083. if test "x$ac_cv_func__ultoa" = xyes
  17084. then :
  17085. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17086. fi
  17087. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17088. if test "x$ac_cv_func_strtod" = xyes
  17089. then :
  17090. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17091. fi
  17092. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17093. if test "x$ac_cv_func_strtol" = xyes
  17094. then :
  17095. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17096. fi
  17097. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17098. if test "x$ac_cv_func_strtoul" = xyes
  17099. then :
  17100. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17101. fi
  17102. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17103. if test "x$ac_cv_func__i64toa" = xyes
  17104. then :
  17105. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17106. fi
  17107. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17108. if test "x$ac_cv_func__ui64toa" = xyes
  17109. then :
  17110. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17111. fi
  17112. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17113. if test "x$ac_cv_func_strtoll" = xyes
  17114. then :
  17115. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17118. if test "x$ac_cv_func_strtoull" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17123. if test "x$ac_cv_func_atoi" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17128. if test "x$ac_cv_func_atof" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17133. if test "x$ac_cv_func_strcmp" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17138. if test "x$ac_cv_func_strncmp" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17143. if test "x$ac_cv_func__stricmp" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17146. fi
  17147. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17148. if test "x$ac_cv_func_strcasecmp" = xyes
  17149. then :
  17150. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17151. fi
  17152. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17153. if test "x$ac_cv_func__strnicmp" = xyes
  17154. then :
  17155. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17156. fi
  17157. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17158. if test "x$ac_cv_func_strncasecmp" = xyes
  17159. then :
  17160. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17161. fi
  17162. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17163. if test "x$ac_cv_func_strcasestr" = xyes
  17164. then :
  17165. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17166. fi
  17167. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17168. if test "x$ac_cv_func_vsscanf" = xyes
  17169. then :
  17170. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17171. fi
  17172. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17173. if test "x$ac_cv_func_vsnprintf" = xyes
  17174. then :
  17175. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17178. if test "x$ac_cv_func_fopen64" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17183. if test "x$ac_cv_func_fseeko" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17188. if test "x$ac_cv_func_fseeko64" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17193. if test "x$ac_cv_func_sigaction" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17198. if test "x$ac_cv_func_setjmp" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17201. fi
  17202. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17203. if test "x$ac_cv_func_nanosleep" = xyes
  17204. then :
  17205. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17206. fi
  17207. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17208. if test "x$ac_cv_func_sysconf" = xyes
  17209. then :
  17210. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17211. fi
  17212. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17213. if test "x$ac_cv_func_sysctlbyname" = xyes
  17214. then :
  17215. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17216. fi
  17217. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17218. if test "x$ac_cv_func_getauxval" = xyes
  17219. then :
  17220. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17221. fi
  17222. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17223. if test "x$ac_cv_func_elf_aux_info" = xyes
  17224. then :
  17225. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17226. fi
  17227. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17228. if test "x$ac_cv_func_poll" = xyes
  17229. then :
  17230. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17233. if test "x$ac_cv_func_memfd_create" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17238. if test "x$ac_cv_func_posix_fallocate" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17243. if test "x$ac_cv_func__Exit" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17246. fi
  17247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17248. printf %s "checking for pow in -lm... " >&6; }
  17249. if test ${ac_cv_lib_m_pow+y}
  17250. then :
  17251. printf %s "(cached) " >&6
  17252. else $as_nop
  17253. ac_check_lib_save_LIBS=$LIBS
  17254. LIBS="-lm $LIBS"
  17255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17256. /* end confdefs.h. */
  17257. /* Override any GCC internal prototype to avoid an error.
  17258. Use char because int might match the return type of a GCC
  17259. builtin and then its argument prototype would still apply. */
  17260. char pow ();
  17261. int
  17262. main (void)
  17263. {
  17264. return pow ();
  17265. ;
  17266. return 0;
  17267. }
  17268. _ACEOF
  17269. if ac_fn_c_try_link "$LINENO"
  17270. then :
  17271. ac_cv_lib_m_pow=yes
  17272. else $as_nop
  17273. ac_cv_lib_m_pow=no
  17274. fi
  17275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17276. conftest$ac_exeext conftest.$ac_ext
  17277. LIBS=$ac_check_lib_save_LIBS
  17278. fi
  17279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17280. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17281. if test "x$ac_cv_lib_m_pow" = xyes
  17282. then :
  17283. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17284. fi
  17285. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17286. if test "x$ac_cv_func_acos" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17289. fi
  17290. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17291. if test "x$ac_cv_func_acosf" = xyes
  17292. then :
  17293. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17294. fi
  17295. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17296. if test "x$ac_cv_func_asin" = xyes
  17297. then :
  17298. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17299. fi
  17300. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17301. if test "x$ac_cv_func_asinf" = xyes
  17302. then :
  17303. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17304. fi
  17305. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17306. if test "x$ac_cv_func_atan" = xyes
  17307. then :
  17308. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17309. fi
  17310. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17311. if test "x$ac_cv_func_atanf" = xyes
  17312. then :
  17313. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17314. fi
  17315. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17316. if test "x$ac_cv_func_atan2" = xyes
  17317. then :
  17318. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17319. fi
  17320. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17321. if test "x$ac_cv_func_atan2f" = xyes
  17322. then :
  17323. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17324. fi
  17325. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17326. if test "x$ac_cv_func_ceil" = xyes
  17327. then :
  17328. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17329. fi
  17330. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17331. if test "x$ac_cv_func_ceilf" = xyes
  17332. then :
  17333. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17334. fi
  17335. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17336. if test "x$ac_cv_func_copysign" = xyes
  17337. then :
  17338. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17339. fi
  17340. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17341. if test "x$ac_cv_func_copysignf" = xyes
  17342. then :
  17343. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17344. fi
  17345. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17346. if test "x$ac_cv_func_cos" = xyes
  17347. then :
  17348. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17349. fi
  17350. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17351. if test "x$ac_cv_func_cosf" = xyes
  17352. then :
  17353. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17354. fi
  17355. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17356. if test "x$ac_cv_func_exp" = xyes
  17357. then :
  17358. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17359. fi
  17360. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17361. if test "x$ac_cv_func_expf" = xyes
  17362. then :
  17363. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17364. fi
  17365. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17366. if test "x$ac_cv_func_fabs" = xyes
  17367. then :
  17368. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17369. fi
  17370. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17371. if test "x$ac_cv_func_fabsf" = xyes
  17372. then :
  17373. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17374. fi
  17375. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17376. if test "x$ac_cv_func_floor" = xyes
  17377. then :
  17378. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17379. fi
  17380. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17381. if test "x$ac_cv_func_floorf" = xyes
  17382. then :
  17383. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17384. fi
  17385. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17386. if test "x$ac_cv_func_trunc" = xyes
  17387. then :
  17388. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17389. fi
  17390. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17391. if test "x$ac_cv_func_truncf" = xyes
  17392. then :
  17393. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17394. fi
  17395. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17396. if test "x$ac_cv_func_fmod" = xyes
  17397. then :
  17398. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17399. fi
  17400. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17401. if test "x$ac_cv_func_fmodf" = xyes
  17402. then :
  17403. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17404. fi
  17405. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17406. if test "x$ac_cv_func_log" = xyes
  17407. then :
  17408. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17409. fi
  17410. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17411. if test "x$ac_cv_func_logf" = xyes
  17412. then :
  17413. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17414. fi
  17415. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17416. if test "x$ac_cv_func_log10" = xyes
  17417. then :
  17418. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17419. fi
  17420. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17421. if test "x$ac_cv_func_log10f" = xyes
  17422. then :
  17423. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17424. fi
  17425. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17426. if test "x$ac_cv_func_lround" = xyes
  17427. then :
  17428. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17429. fi
  17430. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17431. if test "x$ac_cv_func_lroundf" = xyes
  17432. then :
  17433. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17434. fi
  17435. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17436. if test "x$ac_cv_func_pow" = xyes
  17437. then :
  17438. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17439. fi
  17440. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17441. if test "x$ac_cv_func_powf" = xyes
  17442. then :
  17443. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17444. fi
  17445. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17446. if test "x$ac_cv_func_round" = xyes
  17447. then :
  17448. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17449. fi
  17450. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17451. if test "x$ac_cv_func_roundf" = xyes
  17452. then :
  17453. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17454. fi
  17455. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17456. if test "x$ac_cv_func_scalbn" = xyes
  17457. then :
  17458. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17459. fi
  17460. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17461. if test "x$ac_cv_func_scalbnf" = xyes
  17462. then :
  17463. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17464. fi
  17465. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17466. if test "x$ac_cv_func_sin" = xyes
  17467. then :
  17468. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17469. fi
  17470. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17471. if test "x$ac_cv_func_sinf" = xyes
  17472. then :
  17473. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17474. fi
  17475. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17476. if test "x$ac_cv_func_sqrt" = xyes
  17477. then :
  17478. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17479. fi
  17480. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17481. if test "x$ac_cv_func_sqrtf" = xyes
  17482. then :
  17483. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17484. fi
  17485. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17486. if test "x$ac_cv_func_tan" = xyes
  17487. then :
  17488. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17489. fi
  17490. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17491. if test "x$ac_cv_func_tanf" = xyes
  17492. then :
  17493. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17494. fi
  17495. if test x$enable_system_iconv = xyes; then
  17496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17497. printf %s "checking for iconv in libc... " >&6; }
  17498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17499. /* end confdefs.h. */
  17500. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17501. #include <stddef.h>
  17502. #include <iconv.h>
  17503. int
  17504. main (void)
  17505. {
  17506. iconv_open(NULL,NULL);
  17507. ;
  17508. return 0;
  17509. }
  17510. _ACEOF
  17511. if ac_fn_c_try_link "$LINENO"
  17512. then :
  17513. have_libc_iconv=yes
  17514. else $as_nop
  17515. have_libc_iconv=no
  17516. fi
  17517. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17518. conftest$ac_exeext conftest.$ac_ext
  17519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17520. printf "%s\n" "$have_libc_iconv" >&6; }
  17521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17522. printf %s "checking for iconv in libiconv... " >&6; }
  17523. save_LIBS="$LIBS"
  17524. LIBS="$LIBS -liconv"
  17525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17526. /* end confdefs.h. */
  17527. #include <stddef.h>
  17528. #include <iconv.h>
  17529. int
  17530. main (void)
  17531. {
  17532. iconv_open(NULL,NULL);
  17533. ;
  17534. return 0;
  17535. }
  17536. _ACEOF
  17537. if ac_fn_c_try_link "$LINENO"
  17538. then :
  17539. have_libiconv=yes
  17540. else $as_nop
  17541. have_libiconv=no
  17542. fi
  17543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17544. conftest$ac_exeext conftest.$ac_ext
  17545. LIBS="$save_LIBS"
  17546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17547. printf "%s\n" "$have_libiconv" >&6; }
  17548. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17549. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17550. if test x$have_libiconv = xyes; then
  17551. if test x$have_libc_iconv != xyes; then
  17552. use_libiconv=yes
  17553. elif test x$enable_libiconv = xyes; then
  17554. use_libiconv=yes
  17555. fi
  17556. fi
  17557. if test x$use_libiconv = xyes; then
  17558. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17559. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17560. echo "-- Using iconv from libiconv"
  17561. else
  17562. echo "-- Using iconv from libc"
  17563. fi
  17564. fi
  17565. fi
  17566. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17567. "
  17568. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17569. then :
  17570. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17571. fi
  17572. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17573. if test "x$ac_cv_header_libunwind_h" = xyes
  17574. then :
  17575. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17576. fi
  17577. fi
  17578. # Check whether --enable-gcc-atomics was given.
  17579. if test ${enable_gcc_atomics+y}
  17580. then :
  17581. enableval=$enable_gcc_atomics;
  17582. else $as_nop
  17583. enable_gcc_atomics=yes
  17584. fi
  17585. if test x$enable_gcc_atomics = xyes; then
  17586. have_gcc_atomics=no
  17587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17588. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17590. /* end confdefs.h. */
  17591. int
  17592. main (void)
  17593. {
  17594. int a;
  17595. void *x, *y, *z;
  17596. __sync_lock_test_and_set(&a, 4);
  17597. __sync_lock_test_and_set(&x, y);
  17598. __sync_fetch_and_add(&a, 1);
  17599. __sync_bool_compare_and_swap(&a, 5, 10);
  17600. __sync_bool_compare_and_swap(&x, y, z);
  17601. ;
  17602. return 0;
  17603. }
  17604. _ACEOF
  17605. if ac_fn_c_try_link "$LINENO"
  17606. then :
  17607. have_gcc_atomics=yes
  17608. fi
  17609. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17610. conftest$ac_exeext conftest.$ac_ext
  17611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17612. printf "%s\n" "$have_gcc_atomics" >&6; }
  17613. if test x$have_gcc_atomics = xyes; then
  17614. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17615. else
  17616. # See if we have the minimum operation needed for GCC atomics
  17617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17618. /* end confdefs.h. */
  17619. int
  17620. main (void)
  17621. {
  17622. int a;
  17623. __sync_lock_test_and_set(&a, 1);
  17624. __sync_lock_release(&a);
  17625. ;
  17626. return 0;
  17627. }
  17628. _ACEOF
  17629. if ac_fn_c_try_link "$LINENO"
  17630. then :
  17631. have_gcc_sync_lock_test_and_set=yes
  17632. fi
  17633. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17634. conftest$ac_exeext conftest.$ac_ext
  17635. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17636. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17637. fi
  17638. fi
  17639. fi
  17640. # Standard C sources
  17641. SOURCES="$SOURCES $srcdir/src/*.c"
  17642. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17643. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17644. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17645. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17646. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17647. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17648. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17649. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17650. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17651. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17652. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17653. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17654. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17655. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17656. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17657. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17658. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17659. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17660. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17661. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17662. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17663. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17664. case "$host" in
  17665. *-*-emscripten*)
  17666. default_atomic=no
  17667. ;;
  17668. *)
  17669. default_atomic=yes
  17670. ;;
  17671. esac
  17672. # Check whether --enable-atomic was given.
  17673. if test ${enable_atomic+y}
  17674. then :
  17675. enableval=$enable_atomic;
  17676. else $as_nop
  17677. enable_atomic=$default_atomic
  17678. fi
  17679. if test x$enable_atomic != xyes; then
  17680. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17681. else
  17682. SUMMARY_modules="${SUMMARY_modules} atomic"
  17683. fi
  17684. # Check whether --enable-audio was given.
  17685. if test ${enable_audio+y}
  17686. then :
  17687. enableval=$enable_audio;
  17688. else $as_nop
  17689. enable_audio=yes
  17690. fi
  17691. if test x$enable_audio != xyes; then
  17692. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17693. else
  17694. SUMMARY_modules="${SUMMARY_modules} audio"
  17695. fi
  17696. # Check whether --enable-video was given.
  17697. if test ${enable_video+y}
  17698. then :
  17699. enableval=$enable_video;
  17700. else $as_nop
  17701. enable_video=yes
  17702. fi
  17703. if test x$enable_video != xyes; then
  17704. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17705. else
  17706. SUMMARY_modules="${SUMMARY_modules} video"
  17707. fi
  17708. # Check whether --enable-render was given.
  17709. if test ${enable_render+y}
  17710. then :
  17711. enableval=$enable_render;
  17712. else $as_nop
  17713. enable_render=yes
  17714. fi
  17715. if test x$enable_render != xyes; then
  17716. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17717. else
  17718. SUMMARY_modules="${SUMMARY_modules} render"
  17719. fi
  17720. # Check whether --enable-events was given.
  17721. if test ${enable_events+y}
  17722. then :
  17723. enableval=$enable_events;
  17724. else $as_nop
  17725. enable_events=yes
  17726. fi
  17727. if test x$enable_events != xyes; then
  17728. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17729. else
  17730. SUMMARY_modules="${SUMMARY_modules} events"
  17731. fi
  17732. # Check whether --enable-joystick was given.
  17733. if test ${enable_joystick+y}
  17734. then :
  17735. enableval=$enable_joystick;
  17736. else $as_nop
  17737. enable_joystick=yes
  17738. fi
  17739. if test x$enable_joystick != xyes; then
  17740. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17741. else
  17742. SUMMARY_modules="${SUMMARY_modules} joystick"
  17743. fi
  17744. # Check whether --enable-haptic was given.
  17745. if test ${enable_haptic+y}
  17746. then :
  17747. enableval=$enable_haptic;
  17748. else $as_nop
  17749. enable_haptic=yes
  17750. fi
  17751. if test x$enable_haptic != xyes; then
  17752. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17753. else
  17754. SUMMARY_modules="${SUMMARY_modules} haptic"
  17755. fi
  17756. # Check whether --enable-hidapi was given.
  17757. if test ${enable_hidapi+y}
  17758. then :
  17759. enableval=$enable_hidapi;
  17760. else $as_nop
  17761. enable_hidapi=yes
  17762. fi
  17763. if test x$enable_hidapi != xyes; then
  17764. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17765. else
  17766. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17767. fi
  17768. # Check whether --enable-sensor was given.
  17769. if test ${enable_sensor+y}
  17770. then :
  17771. enableval=$enable_sensor;
  17772. else $as_nop
  17773. enable_sensor=yes
  17774. fi
  17775. if test x$enable_sensor != xyes; then
  17776. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17777. else
  17778. SUMMARY_modules="${SUMMARY_modules} sensor"
  17779. fi
  17780. # Check whether --enable-power was given.
  17781. if test ${enable_power+y}
  17782. then :
  17783. enableval=$enable_power;
  17784. else $as_nop
  17785. enable_power=yes
  17786. fi
  17787. if test x$enable_power != xyes; then
  17788. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17789. else
  17790. SUMMARY_modules="${SUMMARY_modules} power"
  17791. fi
  17792. # Check whether --enable-filesystem was given.
  17793. if test ${enable_filesystem+y}
  17794. then :
  17795. enableval=$enable_filesystem;
  17796. else $as_nop
  17797. enable_filesystem=yes
  17798. fi
  17799. if test x$enable_filesystem != xyes; then
  17800. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17801. else
  17802. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17803. fi
  17804. # Many subsystems depend on threads, so leave them enabled by default
  17805. #AC_ARG_ENABLE(threads,
  17806. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17807. # , enable_threads=yes)
  17808. enable_threads=yes
  17809. if test x$enable_threads != xyes; then
  17810. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17811. else
  17812. SUMMARY_modules="${SUMMARY_modules} threads"
  17813. fi
  17814. # Check whether --enable-timers was given.
  17815. if test ${enable_timers+y}
  17816. then :
  17817. enableval=$enable_timers;
  17818. else $as_nop
  17819. enable_timers=yes
  17820. fi
  17821. if test x$enable_timers != xyes; then
  17822. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17823. else
  17824. SUMMARY_modules="${SUMMARY_modules} timers"
  17825. fi
  17826. # Check whether --enable-file was given.
  17827. if test ${enable_file+y}
  17828. then :
  17829. enableval=$enable_file;
  17830. else $as_nop
  17831. enable_file=yes
  17832. fi
  17833. if test x$enable_file != xyes; then
  17834. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17835. else
  17836. SUMMARY_modules="${SUMMARY_modules} file"
  17837. fi
  17838. # Check whether --enable-misc was given.
  17839. if test ${enable_misc+y}
  17840. then :
  17841. enableval=$enable_misc;
  17842. else $as_nop
  17843. enable_misc=yes
  17844. fi
  17845. if test x$enable_misc != xyes; then
  17846. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17847. else
  17848. SUMMARY_modules="${SUMMARY_modules} misc"
  17849. fi
  17850. # Check whether --enable-locale was given.
  17851. if test ${enable_locale+y}
  17852. then :
  17853. enableval=$enable_locale;
  17854. else $as_nop
  17855. enable_locale=yes
  17856. fi
  17857. if test x$enable_locale != xyes; then
  17858. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17859. else
  17860. SUMMARY_modules="${SUMMARY_modules} locale"
  17861. fi
  17862. # Check whether --enable-loadso was given.
  17863. if test ${enable_loadso+y}
  17864. then :
  17865. enableval=$enable_loadso;
  17866. else $as_nop
  17867. enable_loadso=yes
  17868. fi
  17869. if test x$enable_loadso != xyes; then
  17870. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17871. else
  17872. SUMMARY_modules="${SUMMARY_modules} loadso"
  17873. fi
  17874. # Check whether --enable-cpuinfo was given.
  17875. if test ${enable_cpuinfo+y}
  17876. then :
  17877. enableval=$enable_cpuinfo;
  17878. else $as_nop
  17879. enable_cpuinfo=yes
  17880. fi
  17881. if test x$enable_cpuinfo != xyes; then
  17882. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17883. else
  17884. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17885. fi
  17886. # Check whether --enable-assembly was given.
  17887. if test ${enable_assembly+y}
  17888. then :
  17889. enableval=$enable_assembly;
  17890. else $as_nop
  17891. enable_assembly=yes
  17892. fi
  17893. if test x$enable_assembly = xyes; then
  17894. SUMMARY_modules="${SUMMARY_modules} assembly"
  17895. # Make sure that we don't generate floating point code that would
  17896. # cause illegal instruction exceptions on older processors
  17897. case "$host" in
  17898. *-*-darwin*)
  17899. # Don't need to worry about Apple hardware, it's all SSE capable
  17900. default_ssemath=yes
  17901. ;;
  17902. *64-*-*)
  17903. # x86 64-bit architectures all have SSE instructions
  17904. default_ssemath=yes
  17905. ;;
  17906. *)
  17907. default_ssemath=no
  17908. ;;
  17909. esac
  17910. # Check whether --enable-ssemath was given.
  17911. if test ${enable_ssemath+y}
  17912. then :
  17913. enableval=$enable_ssemath;
  17914. else $as_nop
  17915. enable_ssemath=$default_ssemath
  17916. fi
  17917. if test x$enable_ssemath = xno; then
  17918. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17919. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17920. fi
  17921. fi
  17922. # Check whether --enable-mmx was given.
  17923. if test ${enable_mmx+y}
  17924. then :
  17925. enableval=$enable_mmx;
  17926. else $as_nop
  17927. enable_mmx=yes
  17928. fi
  17929. if test x$enable_mmx = xyes; then
  17930. save_CFLAGS="$CFLAGS"
  17931. have_gcc_mmx=no
  17932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17933. printf %s "checking for GCC -mmmx option... " >&6; }
  17934. mmx_CFLAGS="-mmmx"
  17935. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17937. /* end confdefs.h. */
  17938. #ifdef __MINGW32__
  17939. #include <_mingw.h>
  17940. #ifdef __MINGW64_VERSION_MAJOR
  17941. #include <intrin.h>
  17942. #else
  17943. #include <mmintrin.h>
  17944. #endif
  17945. #else
  17946. #include <mmintrin.h>
  17947. #endif
  17948. #ifndef __MMX__
  17949. #error Assembler CPP flag not enabled
  17950. #endif
  17951. int
  17952. main (void)
  17953. {
  17954. ;
  17955. return 0;
  17956. }
  17957. _ACEOF
  17958. if ac_fn_c_try_compile "$LINENO"
  17959. then :
  17960. have_gcc_mmx=yes
  17961. fi
  17962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17964. printf "%s\n" "$have_gcc_mmx" >&6; }
  17965. CFLAGS="$save_CFLAGS"
  17966. if test x$have_gcc_mmx = xyes; then
  17967. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17968. SUMMARY_math="${SUMMARY_math} mmx"
  17969. fi
  17970. fi
  17971. # Check whether --enable-3dnow was given.
  17972. if test ${enable_3dnow+y}
  17973. then :
  17974. enableval=$enable_3dnow;
  17975. else $as_nop
  17976. enable_3dnow=no
  17977. fi
  17978. if test x$enable_3dnow = xyes; then
  17979. save_CFLAGS="$CFLAGS"
  17980. have_gcc_3dnow=no
  17981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17982. printf %s "checking for GCC -m3dnow option... " >&6; }
  17983. amd3dnow_CFLAGS="-m3dnow"
  17984. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17986. /* end confdefs.h. */
  17987. #include <mm3dnow.h>
  17988. #ifndef __3dNOW__
  17989. #error Assembler CPP flag not enabled
  17990. #endif
  17991. int
  17992. main (void)
  17993. {
  17994. void *p = 0;
  17995. _m_prefetch(p);
  17996. ;
  17997. return 0;
  17998. }
  17999. _ACEOF
  18000. if ac_fn_c_try_link "$LINENO"
  18001. then :
  18002. have_gcc_3dnow=yes
  18003. fi
  18004. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18005. conftest$ac_exeext conftest.$ac_ext
  18006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  18007. printf "%s\n" "$have_gcc_3dnow" >&6; }
  18008. CFLAGS="$save_CFLAGS"
  18009. if test x$have_gcc_3dnow = xyes; then
  18010. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  18011. SUMMARY_math="${SUMMARY_math} 3dnow"
  18012. fi
  18013. fi
  18014. # Check whether --enable-sse was given.
  18015. if test ${enable_sse+y}
  18016. then :
  18017. enableval=$enable_sse;
  18018. else $as_nop
  18019. enable_sse=yes
  18020. fi
  18021. if test x$enable_sse = xyes; then
  18022. save_CFLAGS="$CFLAGS"
  18023. have_gcc_sse=no
  18024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  18025. printf %s "checking for GCC -msse option... " >&6; }
  18026. sse_CFLAGS="-msse"
  18027. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18029. /* end confdefs.h. */
  18030. #ifdef __MINGW32__
  18031. #include <_mingw.h>
  18032. #ifdef __MINGW64_VERSION_MAJOR
  18033. #include <intrin.h>
  18034. #else
  18035. #include <xmmintrin.h>
  18036. #endif
  18037. #else
  18038. #include <xmmintrin.h>
  18039. #endif
  18040. #ifndef __SSE__
  18041. #error Assembler CPP flag not enabled
  18042. #endif
  18043. int
  18044. main (void)
  18045. {
  18046. ;
  18047. return 0;
  18048. }
  18049. _ACEOF
  18050. if ac_fn_c_try_compile "$LINENO"
  18051. then :
  18052. have_gcc_sse=yes
  18053. fi
  18054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18056. printf "%s\n" "$have_gcc_sse" >&6; }
  18057. CFLAGS="$save_CFLAGS"
  18058. if test x$have_gcc_sse = xyes; then
  18059. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18060. SUMMARY_math="${SUMMARY_math} sse"
  18061. fi
  18062. fi
  18063. # Check whether --enable-sse2 was given.
  18064. if test ${enable_sse2+y}
  18065. then :
  18066. enableval=$enable_sse2;
  18067. else $as_nop
  18068. enable_sse2=$default_ssemath
  18069. fi
  18070. if test x$enable_sse2 = xyes; then
  18071. save_CFLAGS="$CFLAGS"
  18072. have_gcc_sse2=no
  18073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18074. printf %s "checking for GCC -msse2 option... " >&6; }
  18075. sse2_CFLAGS="-msse2"
  18076. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18078. /* end confdefs.h. */
  18079. #ifdef __MINGW32__
  18080. #include <_mingw.h>
  18081. #ifdef __MINGW64_VERSION_MAJOR
  18082. #include <intrin.h>
  18083. #else
  18084. #include <emmintrin.h>
  18085. #endif
  18086. #else
  18087. #include <emmintrin.h>
  18088. #endif
  18089. #ifndef __SSE2__
  18090. #error Assembler CPP flag not enabled
  18091. #endif
  18092. int
  18093. main (void)
  18094. {
  18095. ;
  18096. return 0;
  18097. }
  18098. _ACEOF
  18099. if ac_fn_c_try_compile "$LINENO"
  18100. then :
  18101. have_gcc_sse2=yes
  18102. fi
  18103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18105. printf "%s\n" "$have_gcc_sse2" >&6; }
  18106. CFLAGS="$save_CFLAGS"
  18107. if test x$have_gcc_sse2 = xyes; then
  18108. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18109. SUMMARY_math="${SUMMARY_math} sse2"
  18110. fi
  18111. fi
  18112. # Check whether --enable-sse3 was given.
  18113. if test ${enable_sse3+y}
  18114. then :
  18115. enableval=$enable_sse3;
  18116. else $as_nop
  18117. enable_sse3=$default_ssemath
  18118. fi
  18119. if test x$enable_sse3 = xyes; then
  18120. save_CFLAGS="$CFLAGS"
  18121. have_gcc_sse3=no
  18122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18123. printf %s "checking for GCC -msse3 option... " >&6; }
  18124. sse3_CFLAGS="-msse3"
  18125. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18127. /* end confdefs.h. */
  18128. #ifdef __MINGW32__
  18129. #include <_mingw.h>
  18130. #ifdef __MINGW64_VERSION_MAJOR
  18131. #include <intrin.h>
  18132. #else
  18133. #include <pmmintrin.h>
  18134. #endif
  18135. #else
  18136. #include <pmmintrin.h>
  18137. #endif
  18138. #ifndef __SSE2__
  18139. #error Assembler CPP flag not enabled
  18140. #endif
  18141. int
  18142. main (void)
  18143. {
  18144. ;
  18145. return 0;
  18146. }
  18147. _ACEOF
  18148. if ac_fn_c_try_compile "$LINENO"
  18149. then :
  18150. have_gcc_sse3=yes
  18151. fi
  18152. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18154. printf "%s\n" "$have_gcc_sse3" >&6; }
  18155. CFLAGS="$save_CFLAGS"
  18156. if test x$have_gcc_sse3 = xyes; then
  18157. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18158. SUMMARY_math="${SUMMARY_math} sse3"
  18159. fi
  18160. fi
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18162. printf %s "checking for immintrin.h... " >&6; }
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #include <immintrin.h>
  18166. int
  18167. main (void)
  18168. {
  18169. ;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. if ac_fn_c_try_compile "$LINENO"
  18174. then :
  18175. have_immintrin_h_hdr=yes
  18176. else $as_nop
  18177. have_immintrin_h_hdr=no
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18181. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18182. if test x$have_immintrin_h_hdr = xyes; then
  18183. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18184. fi
  18185. # Check whether --enable-altivec was given.
  18186. if test ${enable_altivec+y}
  18187. then :
  18188. enableval=$enable_altivec;
  18189. else $as_nop
  18190. enable_altivec=yes
  18191. fi
  18192. if test x$enable_altivec = xyes; then
  18193. save_CFLAGS="$CFLAGS"
  18194. have_gcc_altivec=no
  18195. have_altivec_h_hdr=no
  18196. altivec_CFLAGS="-maltivec"
  18197. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18199. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18201. /* end confdefs.h. */
  18202. #include <altivec.h>
  18203. vector unsigned int vzero() {
  18204. return vec_splat_u32(0);
  18205. }
  18206. int
  18207. main (void)
  18208. {
  18209. ;
  18210. return 0;
  18211. }
  18212. _ACEOF
  18213. if ac_fn_c_try_compile "$LINENO"
  18214. then :
  18215. have_gcc_altivec=yes
  18216. have_altivec_h_hdr=yes
  18217. fi
  18218. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18220. printf "%s\n" "$have_gcc_altivec" >&6; }
  18221. if test x$have_gcc_altivec = xno; then
  18222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18223. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18225. /* end confdefs.h. */
  18226. vector unsigned int vzero() {
  18227. return vec_splat_u32(0);
  18228. }
  18229. int
  18230. main (void)
  18231. {
  18232. ;
  18233. return 0;
  18234. }
  18235. _ACEOF
  18236. if ac_fn_c_try_compile "$LINENO"
  18237. then :
  18238. have_gcc_altivec=yes
  18239. fi
  18240. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18242. printf "%s\n" "$have_gcc_altivec" >&6; }
  18243. fi
  18244. if test x$have_gcc_altivec = xno; then
  18245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18246. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18247. altivec_CFLAGS="-faltivec"
  18248. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18250. /* end confdefs.h. */
  18251. #include <altivec.h>
  18252. vector unsigned int vzero() {
  18253. return vec_splat_u32(0);
  18254. }
  18255. int
  18256. main (void)
  18257. {
  18258. ;
  18259. return 0;
  18260. }
  18261. _ACEOF
  18262. if ac_fn_c_try_compile "$LINENO"
  18263. then :
  18264. have_gcc_altivec=yes
  18265. have_altivec_h_hdr=yes
  18266. fi
  18267. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18269. printf "%s\n" "$have_gcc_altivec" >&6; }
  18270. fi
  18271. if test x$have_gcc_altivec = xno; then
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18273. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18275. /* end confdefs.h. */
  18276. vector unsigned int vzero() {
  18277. return vec_splat_u32(0);
  18278. }
  18279. int
  18280. main (void)
  18281. {
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. if ac_fn_c_try_compile "$LINENO"
  18287. then :
  18288. have_gcc_altivec=yes
  18289. fi
  18290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18292. printf "%s\n" "$have_gcc_altivec" >&6; }
  18293. fi
  18294. CFLAGS="$save_CFLAGS"
  18295. if test x$have_gcc_altivec = xyes; then
  18296. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18297. if test x$have_altivec_h_hdr = xyes; then
  18298. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18299. fi
  18300. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18301. SUMMARY_math="${SUMMARY_math} altivec"
  18302. fi
  18303. fi
  18304. fi
  18305. # Check whether --enable-lsx was given.
  18306. if test ${enable_lsx+y}
  18307. then :
  18308. enableval=$enable_lsx;
  18309. else $as_nop
  18310. enable_lsx=yes
  18311. fi
  18312. if test x$enable_lsx = xyes; then
  18313. save_CFLAGS="$CFLAGS"
  18314. have_gcc_lsx=no
  18315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18316. printf %s "checking for GCC -mlsx option... " >&6; }
  18317. lsx_CFLAGS="-mlsx"
  18318. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18320. /* end confdefs.h. */
  18321. #ifndef __loongarch_sx
  18322. #error Assembler CPP flag not enabled
  18323. #endif
  18324. int
  18325. main (void)
  18326. {
  18327. ;
  18328. return 0;
  18329. }
  18330. _ACEOF
  18331. if ac_fn_c_try_compile "$LINENO"
  18332. then :
  18333. have_gcc_lsx=yes
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18337. printf "%s\n" "$have_gcc_lsx" >&6; }
  18338. CFLAGS="$save_CFLAGS"
  18339. if test x$have_gcc_lsx = xyes; then
  18340. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18341. SUMMARY_math="${SUMMARY_math} lsx"
  18342. fi
  18343. fi
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18345. printf %s "checking for lsxintrin.h... " >&6; }
  18346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18347. /* end confdefs.h. */
  18348. #include <lsxintrin.h>
  18349. int
  18350. main (void)
  18351. {
  18352. ;
  18353. return 0;
  18354. }
  18355. _ACEOF
  18356. if ac_fn_c_try_compile "$LINENO"
  18357. then :
  18358. have_lsxintrin_h_hdr=yes
  18359. else $as_nop
  18360. have_lsxintrin_h_hdr=no
  18361. fi
  18362. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18364. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18365. if test x$have_lsxintrin_h_hdr = xyes; then
  18366. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18367. fi
  18368. CheckOSS()
  18369. {
  18370. # Check whether --enable-oss was given.
  18371. if test ${enable_oss+y}
  18372. then :
  18373. enableval=$enable_oss;
  18374. else $as_nop
  18375. enable_oss=maybe
  18376. fi
  18377. if test x$enable_oss = xmaybe; then
  18378. enable_oss=yes
  18379. fi
  18380. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18382. printf %s "checking for OSS audio support... " >&6; }
  18383. have_oss=no
  18384. if test x$have_oss != xyes; then
  18385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18386. /* end confdefs.h. */
  18387. #include <sys/soundcard.h>
  18388. int
  18389. main (void)
  18390. {
  18391. int arg = SNDCTL_DSP_SETFRAGMENT;
  18392. ;
  18393. return 0;
  18394. }
  18395. _ACEOF
  18396. if ac_fn_c_try_compile "$LINENO"
  18397. then :
  18398. have_oss=yes
  18399. fi
  18400. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18401. fi
  18402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18403. printf "%s\n" "$have_oss" >&6; }
  18404. if test x$have_oss = xyes; then
  18405. SUMMARY_audio="${SUMMARY_audio} oss"
  18406. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18407. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18408. have_audio=yes
  18409. # We may need to link with ossaudio emulation library
  18410. case "$host" in
  18411. *-*-netbsd*)
  18412. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18413. esac
  18414. fi
  18415. fi
  18416. }
  18417. CheckALSA()
  18418. {
  18419. # Check whether --enable-alsa was given.
  18420. if test ${enable_alsa+y}
  18421. then :
  18422. enableval=$enable_alsa;
  18423. else $as_nop
  18424. enable_alsa=yes
  18425. fi
  18426. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18427. alsa_save_CFLAGS="$CFLAGS"
  18428. alsa_save_LDFLAGS="$LDFLAGS"
  18429. alsa_save_LIBS="$LIBS"
  18430. alsa_found=yes
  18431. # Check whether --with-alsa-prefix was given.
  18432. if test ${with_alsa_prefix+y}
  18433. then :
  18434. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18435. else $as_nop
  18436. alsa_prefix=""
  18437. fi
  18438. # Check whether --with-alsa-inc-prefix was given.
  18439. if test ${with_alsa_inc_prefix+y}
  18440. then :
  18441. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18442. else $as_nop
  18443. alsa_inc_prefix=""
  18444. fi
  18445. # Check whether --enable-alsatest was given.
  18446. if test ${enable_alsatest+y}
  18447. then :
  18448. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18449. else $as_nop
  18450. enable_alsatest=yes
  18451. fi
  18452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18453. printf %s "checking for ALSA CFLAGS... " >&6; }
  18454. if test "$alsa_inc_prefix" != "" ; then
  18455. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18456. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18457. fi
  18458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18459. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18461. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18462. if test "$alsa_prefix" != "" ; then
  18463. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18464. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18465. fi
  18466. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18467. LIBS=`echo $LIBS | sed 's/-lm//'`
  18468. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18469. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18470. LIBS=`echo $LIBS | sed 's/ //'`
  18471. LIBS="$ALSA_LIBS $LIBS"
  18472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18473. printf "%s\n" "$ALSA_LIBS" >&6; }
  18474. min_alsa_version=1.0.11
  18475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18476. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18477. no_alsa=""
  18478. alsa_min_major_version=`echo $min_alsa_version | \
  18479. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18480. alsa_min_minor_version=`echo $min_alsa_version | \
  18481. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18482. alsa_min_micro_version=`echo $min_alsa_version | \
  18483. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18484. ac_ext=c
  18485. ac_cpp='$CPP $CPPFLAGS'
  18486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18490. /* end confdefs.h. */
  18491. #include <alsa/asoundlib.h>
  18492. int
  18493. main (void)
  18494. {
  18495. /* ensure backward compatibility */
  18496. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18497. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18498. #endif
  18499. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18500. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18501. #endif
  18502. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18503. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18504. #endif
  18505. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18506. exit(0);
  18507. # else
  18508. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18509. # error not present
  18510. # endif
  18511. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18512. exit(0);
  18513. # else
  18514. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18515. # error not present
  18516. # endif
  18517. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18518. # error not present
  18519. # endif
  18520. # endif
  18521. # endif
  18522. exit(0);
  18523. ;
  18524. return 0;
  18525. }
  18526. _ACEOF
  18527. if ac_fn_c_try_compile "$LINENO"
  18528. then :
  18529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18530. printf "%s\n" "found." >&6; }
  18531. else $as_nop
  18532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18533. printf "%s\n" "not present." >&6; }
  18534. alsa_found=no
  18535. fi
  18536. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18537. ac_ext=c
  18538. ac_cpp='$CPP $CPPFLAGS'
  18539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18542. if test "x$enable_alsatest" = "xyes"; then
  18543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18544. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18545. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18546. then :
  18547. printf %s "(cached) " >&6
  18548. else $as_nop
  18549. ac_check_lib_save_LIBS=$LIBS
  18550. LIBS="-lasound $LIBS"
  18551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18552. /* end confdefs.h. */
  18553. /* Override any GCC internal prototype to avoid an error.
  18554. Use char because int might match the return type of a GCC
  18555. builtin and then its argument prototype would still apply. */
  18556. char snd_ctl_open ();
  18557. int
  18558. main (void)
  18559. {
  18560. return snd_ctl_open ();
  18561. ;
  18562. return 0;
  18563. }
  18564. _ACEOF
  18565. if ac_fn_c_try_link "$LINENO"
  18566. then :
  18567. ac_cv_lib_asound_snd_ctl_open=yes
  18568. else $as_nop
  18569. ac_cv_lib_asound_snd_ctl_open=no
  18570. fi
  18571. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18572. conftest$ac_exeext conftest.$ac_ext
  18573. LIBS=$ac_check_lib_save_LIBS
  18574. fi
  18575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18576. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18577. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18578. then :
  18579. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18580. LIBS="-lasound $LIBS"
  18581. else $as_nop
  18582. alsa_found=no
  18583. fi
  18584. fi
  18585. if test "x$alsa_found" = "xyes" ; then
  18586. have_alsa=yes
  18587. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18588. LIBS=`echo $LIBS | sed 's/ //'`
  18589. LIBS="-lasound $LIBS"
  18590. fi
  18591. if test "x$alsa_found" = "xno" ; then
  18592. have_alsa=no
  18593. CFLAGS="$alsa_save_CFLAGS"
  18594. LDFLAGS="$alsa_save_LDFLAGS"
  18595. LIBS="$alsa_save_LIBS"
  18596. ALSA_CFLAGS=""
  18597. ALSA_LIBS=""
  18598. fi
  18599. # Restore all flags from before the ALSA detection runs
  18600. CFLAGS="$alsa_save_CFLAGS"
  18601. LDFLAGS="$alsa_save_LDFLAGS"
  18602. LIBS="$alsa_save_LIBS"
  18603. if test x$have_alsa = xyes; then
  18604. # Check whether --enable-alsa-shared was given.
  18605. if test ${enable_alsa_shared+y}
  18606. then :
  18607. enableval=$enable_alsa_shared;
  18608. else $as_nop
  18609. enable_alsa_shared=yes
  18610. fi
  18611. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18612. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18613. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18614. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18615. if test x$have_loadso != xyes && \
  18616. test x$enable_alsa_shared = xyes; then
  18617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18618. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18619. fi
  18620. if test x$have_loadso = xyes && \
  18621. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18622. echo "-- dynamic libasound -> $alsa_lib"
  18623. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18624. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18625. else
  18626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18627. SUMMARY_audio="${SUMMARY_audio} alsa"
  18628. fi
  18629. have_audio=yes
  18630. fi
  18631. fi
  18632. }
  18633. CheckJACK()
  18634. {
  18635. # Check whether --enable-jack was given.
  18636. if test ${enable_jack+y}
  18637. then :
  18638. enableval=$enable_jack;
  18639. else $as_nop
  18640. enable_jack=yes
  18641. fi
  18642. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18643. pkg_failed=no
  18644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18645. printf %s "checking for jack >= 0.125... " >&6; }
  18646. if test -n "$JACK_CFLAGS"; then
  18647. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18648. elif test -n "$PKG_CONFIG"; then
  18649. if test -n "$PKG_CONFIG" && \
  18650. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18651. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18652. ac_status=$?
  18653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18654. test $ac_status = 0; }; then
  18655. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18656. test "x$?" != "x0" && pkg_failed=yes
  18657. else
  18658. pkg_failed=yes
  18659. fi
  18660. else
  18661. pkg_failed=untried
  18662. fi
  18663. if test -n "$JACK_LIBS"; then
  18664. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18665. elif test -n "$PKG_CONFIG"; then
  18666. if test -n "$PKG_CONFIG" && \
  18667. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18668. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18669. ac_status=$?
  18670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18671. test $ac_status = 0; }; then
  18672. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18673. test "x$?" != "x0" && pkg_failed=yes
  18674. else
  18675. pkg_failed=yes
  18676. fi
  18677. else
  18678. pkg_failed=untried
  18679. fi
  18680. if test $pkg_failed = yes; then
  18681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18682. printf "%s\n" "no" >&6; }
  18683. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18684. _pkg_short_errors_supported=yes
  18685. else
  18686. _pkg_short_errors_supported=no
  18687. fi
  18688. if test $_pkg_short_errors_supported = yes; then
  18689. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18690. else
  18691. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18692. fi
  18693. # Put the nasty error message in config.log where it belongs
  18694. echo "$JACK_PKG_ERRORS" >&5
  18695. audio_jack=no
  18696. elif test $pkg_failed = untried; then
  18697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18698. printf "%s\n" "no" >&6; }
  18699. audio_jack=no
  18700. else
  18701. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18702. JACK_LIBS=$pkg_cv_JACK_LIBS
  18703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18704. printf "%s\n" "yes" >&6; }
  18705. audio_jack=yes
  18706. fi
  18707. if test x$audio_jack = xyes; then
  18708. # Check whether --enable-jack-shared was given.
  18709. if test ${enable_jack_shared+y}
  18710. then :
  18711. enableval=$enable_jack_shared;
  18712. else $as_nop
  18713. enable_jack_shared=yes
  18714. fi
  18715. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18716. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18717. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18718. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18719. if test x$have_loadso != xyes && \
  18720. test x$enable_jack_shared = xyes; then
  18721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18722. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18723. fi
  18724. if test x$have_loadso = xyes && \
  18725. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18726. echo "-- dynamic libjack -> $jack_lib"
  18727. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18728. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18729. case "$host" in
  18730. # On Solaris, jack must be linked deferred explicitly
  18731. # to prevent undefined symbol failures.
  18732. *-*-solaris*)
  18733. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18735. esac
  18736. else
  18737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18738. SUMMARY_audio="${SUMMARY_audio} jack"
  18739. fi
  18740. have_audio=yes
  18741. fi
  18742. fi
  18743. }
  18744. CheckESD()
  18745. {
  18746. # Check whether --enable-esd was given.
  18747. if test ${enable_esd+y}
  18748. then :
  18749. enableval=$enable_esd;
  18750. else $as_nop
  18751. enable_esd=yes
  18752. fi
  18753. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18754. pkg_failed=no
  18755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18756. printf %s "checking for esound >= 0.2.8... " >&6; }
  18757. if test -n "$ESD_CFLAGS"; then
  18758. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18759. elif test -n "$PKG_CONFIG"; then
  18760. if test -n "$PKG_CONFIG" && \
  18761. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18762. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18763. ac_status=$?
  18764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18765. test $ac_status = 0; }; then
  18766. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18767. test "x$?" != "x0" && pkg_failed=yes
  18768. else
  18769. pkg_failed=yes
  18770. fi
  18771. else
  18772. pkg_failed=untried
  18773. fi
  18774. if test -n "$ESD_LIBS"; then
  18775. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18776. elif test -n "$PKG_CONFIG"; then
  18777. if test -n "$PKG_CONFIG" && \
  18778. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18779. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18780. ac_status=$?
  18781. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18782. test $ac_status = 0; }; then
  18783. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18784. test "x$?" != "x0" && pkg_failed=yes
  18785. else
  18786. pkg_failed=yes
  18787. fi
  18788. else
  18789. pkg_failed=untried
  18790. fi
  18791. if test $pkg_failed = yes; then
  18792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18793. printf "%s\n" "no" >&6; }
  18794. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18795. _pkg_short_errors_supported=yes
  18796. else
  18797. _pkg_short_errors_supported=no
  18798. fi
  18799. if test $_pkg_short_errors_supported = yes; then
  18800. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18801. else
  18802. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18803. fi
  18804. # Put the nasty error message in config.log where it belongs
  18805. echo "$ESD_PKG_ERRORS" >&5
  18806. have_esd=no
  18807. elif test $pkg_failed = untried; then
  18808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18809. printf "%s\n" "no" >&6; }
  18810. have_esd=no
  18811. else
  18812. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18813. ESD_LIBS=$pkg_cv_ESD_LIBS
  18814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18815. printf "%s\n" "yes" >&6; }
  18816. have_esd=yes
  18817. fi
  18818. if test x$have_esd = xno; then
  18819. # Check whether --with-esd-prefix was given.
  18820. if test ${with_esd_prefix+y}
  18821. then :
  18822. withval=$with_esd_prefix; esd_prefix="$withval"
  18823. else $as_nop
  18824. esd_prefix=""
  18825. fi
  18826. # Check whether --with-esd-exec-prefix was given.
  18827. if test ${with_esd_exec_prefix+y}
  18828. then :
  18829. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18830. else $as_nop
  18831. esd_exec_prefix=""
  18832. fi
  18833. # Check whether --enable-esdtest was given.
  18834. if test ${enable_esdtest+y}
  18835. then :
  18836. enableval=$enable_esdtest;
  18837. else $as_nop
  18838. enable_esdtest=yes
  18839. fi
  18840. if test x$esd_exec_prefix != x ; then
  18841. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18842. if test x${ESD_CONFIG+set} != xset ; then
  18843. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18844. fi
  18845. fi
  18846. if test x$esd_prefix != x ; then
  18847. esd_args="$esd_args --prefix=$esd_prefix"
  18848. if test x${ESD_CONFIG+set} != xset ; then
  18849. ESD_CONFIG=$esd_prefix/bin/esd-config
  18850. fi
  18851. fi
  18852. # Extract the first word of "esd-config", so it can be a program name with args.
  18853. set dummy esd-config; ac_word=$2
  18854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18855. printf %s "checking for $ac_word... " >&6; }
  18856. if test ${ac_cv_path_ESD_CONFIG+y}
  18857. then :
  18858. printf %s "(cached) " >&6
  18859. else $as_nop
  18860. case $ESD_CONFIG in
  18861. [\\/]* | ?:[\\/]*)
  18862. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18863. ;;
  18864. *)
  18865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18866. for as_dir in $PATH
  18867. do
  18868. IFS=$as_save_IFS
  18869. case $as_dir in #(((
  18870. '') as_dir=./ ;;
  18871. */) ;;
  18872. *) as_dir=$as_dir/ ;;
  18873. esac
  18874. for ac_exec_ext in '' $ac_executable_extensions; do
  18875. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18876. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18878. break 2
  18879. fi
  18880. done
  18881. done
  18882. IFS=$as_save_IFS
  18883. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18884. ;;
  18885. esac
  18886. fi
  18887. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18888. if test -n "$ESD_CONFIG"; then
  18889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18890. printf "%s\n" "$ESD_CONFIG" >&6; }
  18891. else
  18892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18893. printf "%s\n" "no" >&6; }
  18894. fi
  18895. min_esd_version=0.2.8
  18896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18897. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18898. no_esd=""
  18899. if test "$ESD_CONFIG" = "no" ; then
  18900. no_esd=yes
  18901. else
  18902. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18903. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18904. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18905. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18906. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18907. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18908. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18909. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18910. if test "x$enable_esdtest" = "xyes" ; then
  18911. ac_ext=c
  18912. ac_cpp='$CPP $CPPFLAGS'
  18913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18916. ac_save_CFLAGS="$CFLAGS"
  18917. ac_save_LIBS="$LIBS"
  18918. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18919. LIBS="$LIBS $ESD_LIBS"
  18920. rm -f conf.esdtest
  18921. if test "$cross_compiling" = yes
  18922. then :
  18923. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18924. else $as_nop
  18925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18926. /* end confdefs.h. */
  18927. #include <stdio.h>
  18928. #include <stdlib.h>
  18929. #include <esd.h>
  18930. int main (void)
  18931. {
  18932. int major, minor, micro;
  18933. FILE *fp = fopen("conf.esdtest", "w");
  18934. if (fp) fclose(fp);
  18935. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18936. printf("%s, bad version string\n", "$min_esd_version");
  18937. exit(1);
  18938. }
  18939. if (($esd_major_version > major) ||
  18940. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18941. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18942. {
  18943. return 0;
  18944. }
  18945. else
  18946. {
  18947. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18948. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18949. printf("*** best to upgrade to the required version.\n");
  18950. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18951. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18952. printf("*** config.cache before re-running configure\n");
  18953. return 1;
  18954. }
  18955. }
  18956. _ACEOF
  18957. if ac_fn_c_try_run "$LINENO"
  18958. then :
  18959. else $as_nop
  18960. no_esd=yes
  18961. fi
  18962. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18963. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18964. fi
  18965. CFLAGS="$ac_save_CFLAGS"
  18966. LIBS="$ac_save_LIBS"
  18967. ac_ext=c
  18968. ac_cpp='$CPP $CPPFLAGS'
  18969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18972. fi
  18973. fi
  18974. if test "x$no_esd" = x ; then
  18975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18976. printf "%s\n" "yes" >&6; }
  18977. have_esd=yes
  18978. else
  18979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18980. printf "%s\n" "no" >&6; }
  18981. if test "$ESD_CONFIG" = "no" ; then
  18982. :
  18983. else
  18984. if test -f conf.esdtest ; then
  18985. :
  18986. else
  18987. echo "*** Could not run ESD test program, checking why..."
  18988. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18989. LIBS="$LIBS $ESD_LIBS"
  18990. ac_ext=c
  18991. ac_cpp='$CPP $CPPFLAGS'
  18992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18996. /* end confdefs.h. */
  18997. #include <stdio.h>
  18998. #include <esd.h>
  18999. int
  19000. main (void)
  19001. {
  19002. return 0;
  19003. ;
  19004. return 0;
  19005. }
  19006. _ACEOF
  19007. if ac_fn_c_try_link "$LINENO"
  19008. then :
  19009. echo "*** The test program compiled, but did not run. This usually means"
  19010. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  19011. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  19012. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  19013. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  19014. echo "*** is required on your system"
  19015. echo "***"
  19016. echo "*** If you have an old version installed, it is best to remove it, although"
  19017. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  19018. else $as_nop
  19019. echo "*** The test program failed to compile or link. See the file config.log for the"
  19020. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  19021. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  19022. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  19023. fi
  19024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19025. conftest$ac_exeext conftest.$ac_ext
  19026. CFLAGS="$ac_save_CFLAGS"
  19027. LIBS="$ac_save_LIBS"
  19028. ac_ext=c
  19029. ac_cpp='$CPP $CPPFLAGS'
  19030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19033. fi
  19034. fi
  19035. ESD_CFLAGS=""
  19036. ESD_LIBS=""
  19037. have_esd=no
  19038. fi
  19039. rm -f conf.esdtest
  19040. fi
  19041. if test x$have_esd = xyes; then
  19042. # Check whether --enable-esd-shared was given.
  19043. if test ${enable_esd_shared+y}
  19044. then :
  19045. enableval=$enable_esd_shared;
  19046. else $as_nop
  19047. enable_esd_shared=yes
  19048. fi
  19049. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19050. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19051. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19052. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19053. if test x$have_loadso != xyes && \
  19054. test x$enable_esd_shared = xyes; then
  19055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19056. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19057. fi
  19058. if test x$have_loadso = xyes && \
  19059. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19060. echo "-- dynamic libesd -> $esd_lib"
  19061. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19062. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19063. else
  19064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19065. SUMMARY_audio="${SUMMARY_audio} esd"
  19066. fi
  19067. have_audio=yes
  19068. fi
  19069. fi
  19070. }
  19071. CheckPipewire()
  19072. {
  19073. # Check whether --enable-pipewire was given.
  19074. if test ${enable_pipewire+y}
  19075. then :
  19076. enableval=$enable_pipewire;
  19077. else $as_nop
  19078. enable_pipewire=yes
  19079. fi
  19080. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19081. pkg_failed=no
  19082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19083. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19084. if test -n "$PIPEWIRE_CFLAGS"; then
  19085. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19086. elif test -n "$PKG_CONFIG"; then
  19087. if test -n "$PKG_CONFIG" && \
  19088. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19089. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19090. ac_status=$?
  19091. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19092. test $ac_status = 0; }; then
  19093. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19094. test "x$?" != "x0" && pkg_failed=yes
  19095. else
  19096. pkg_failed=yes
  19097. fi
  19098. else
  19099. pkg_failed=untried
  19100. fi
  19101. if test -n "$PIPEWIRE_LIBS"; then
  19102. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19103. elif test -n "$PKG_CONFIG"; then
  19104. if test -n "$PKG_CONFIG" && \
  19105. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19106. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19107. ac_status=$?
  19108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19109. test $ac_status = 0; }; then
  19110. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19111. test "x$?" != "x0" && pkg_failed=yes
  19112. else
  19113. pkg_failed=yes
  19114. fi
  19115. else
  19116. pkg_failed=untried
  19117. fi
  19118. if test $pkg_failed = yes; then
  19119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19120. printf "%s\n" "no" >&6; }
  19121. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19122. _pkg_short_errors_supported=yes
  19123. else
  19124. _pkg_short_errors_supported=no
  19125. fi
  19126. if test $_pkg_short_errors_supported = yes; then
  19127. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19128. else
  19129. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19130. fi
  19131. # Put the nasty error message in config.log where it belongs
  19132. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19133. audio_pipewire=no
  19134. elif test $pkg_failed = untried; then
  19135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19136. printf "%s\n" "no" >&6; }
  19137. audio_pipewire=no
  19138. else
  19139. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19140. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19142. printf "%s\n" "yes" >&6; }
  19143. audio_pipewire=yes
  19144. fi
  19145. if test x$audio_pipewire = xyes; then
  19146. # Check whether --enable-pipewire-shared was given.
  19147. if test ${enable_pipewire_shared+y}
  19148. then :
  19149. enableval=$enable_pipewire_shared;
  19150. else $as_nop
  19151. enable_pipewire_shared=yes
  19152. fi
  19153. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19154. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19155. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19156. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19157. if test x$have_loadso != xyes && \
  19158. test x$enable_pipewire_shared = xyes; then
  19159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19160. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19161. fi
  19162. if test x$have_loadso = xyes && \
  19163. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19164. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19165. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19166. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19167. else
  19168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19169. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19170. fi
  19171. have_audio=yes
  19172. fi
  19173. fi
  19174. }
  19175. CheckPulseAudio()
  19176. {
  19177. # Check whether --enable-pulseaudio was given.
  19178. if test ${enable_pulseaudio+y}
  19179. then :
  19180. enableval=$enable_pulseaudio;
  19181. else $as_nop
  19182. enable_pulseaudio=yes
  19183. fi
  19184. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19185. pkg_failed=no
  19186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19187. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19188. if test -n "$PULSEAUDIO_CFLAGS"; then
  19189. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19190. elif test -n "$PKG_CONFIG"; then
  19191. if test -n "$PKG_CONFIG" && \
  19192. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19193. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19194. ac_status=$?
  19195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19196. test $ac_status = 0; }; then
  19197. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19198. test "x$?" != "x0" && pkg_failed=yes
  19199. else
  19200. pkg_failed=yes
  19201. fi
  19202. else
  19203. pkg_failed=untried
  19204. fi
  19205. if test -n "$PULSEAUDIO_LIBS"; then
  19206. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19207. elif test -n "$PKG_CONFIG"; then
  19208. if test -n "$PKG_CONFIG" && \
  19209. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19210. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19211. ac_status=$?
  19212. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19213. test $ac_status = 0; }; then
  19214. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19215. test "x$?" != "x0" && pkg_failed=yes
  19216. else
  19217. pkg_failed=yes
  19218. fi
  19219. else
  19220. pkg_failed=untried
  19221. fi
  19222. if test $pkg_failed = yes; then
  19223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19224. printf "%s\n" "no" >&6; }
  19225. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19226. _pkg_short_errors_supported=yes
  19227. else
  19228. _pkg_short_errors_supported=no
  19229. fi
  19230. if test $_pkg_short_errors_supported = yes; then
  19231. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19232. else
  19233. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19234. fi
  19235. # Put the nasty error message in config.log where it belongs
  19236. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19237. audio_pulseaudio=no
  19238. elif test $pkg_failed = untried; then
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19240. printf "%s\n" "no" >&6; }
  19241. audio_pulseaudio=no
  19242. else
  19243. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19244. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19246. printf "%s\n" "yes" >&6; }
  19247. audio_pulseaudio=yes
  19248. fi
  19249. if test x$audio_pulseaudio = xyes; then
  19250. # Check whether --enable-pulseaudio-shared was given.
  19251. if test ${enable_pulseaudio_shared+y}
  19252. then :
  19253. enableval=$enable_pulseaudio_shared;
  19254. else $as_nop
  19255. enable_pulseaudio_shared=yes
  19256. fi
  19257. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19258. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19259. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19260. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19261. if test x$have_loadso != xyes && \
  19262. test x$enable_pulseaudio_shared = xyes; then
  19263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19264. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19265. fi
  19266. if test x$have_loadso = xyes && \
  19267. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19268. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19269. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19270. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19271. case "$host" in
  19272. # On Solaris, pulseaudio must be linked deferred explicitly
  19273. # to prevent undefined symbol failures.
  19274. *-*-solaris*)
  19275. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19277. esac
  19278. else
  19279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19280. SUMMARY_audio="${SUMMARY_audio} pulse"
  19281. fi
  19282. have_audio=yes
  19283. fi
  19284. fi
  19285. }
  19286. CheckARTSC()
  19287. {
  19288. # Check whether --enable-arts was given.
  19289. if test ${enable_arts+y}
  19290. then :
  19291. enableval=$enable_arts;
  19292. else $as_nop
  19293. enable_arts=yes
  19294. fi
  19295. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19296. # Extract the first word of "artsc-config", so it can be a program name with args.
  19297. set dummy artsc-config; ac_word=$2
  19298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19299. printf %s "checking for $ac_word... " >&6; }
  19300. if test ${ac_cv_path_ARTSCONFIG+y}
  19301. then :
  19302. printf %s "(cached) " >&6
  19303. else $as_nop
  19304. case $ARTSCONFIG in
  19305. [\\/]* | ?:[\\/]*)
  19306. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19307. ;;
  19308. *)
  19309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19310. for as_dir in $PATH
  19311. do
  19312. IFS=$as_save_IFS
  19313. case $as_dir in #(((
  19314. '') as_dir=./ ;;
  19315. */) ;;
  19316. *) as_dir=$as_dir/ ;;
  19317. esac
  19318. for ac_exec_ext in '' $ac_executable_extensions; do
  19319. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19320. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19321. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19322. break 2
  19323. fi
  19324. done
  19325. done
  19326. IFS=$as_save_IFS
  19327. ;;
  19328. esac
  19329. fi
  19330. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19331. if test -n "$ARTSCONFIG"; then
  19332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19333. printf "%s\n" "$ARTSCONFIG" >&6; }
  19334. else
  19335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19336. printf "%s\n" "no" >&6; }
  19337. fi
  19338. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19339. : # arts isn't installed
  19340. else
  19341. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19342. ARTS_LIBS=`$ARTSCONFIG --libs`
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19344. printf %s "checking for aRts development environment... " >&6; }
  19345. audio_arts=no
  19346. save_CFLAGS="$CFLAGS"
  19347. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19349. /* end confdefs.h. */
  19350. #include <artsc.h>
  19351. int
  19352. main (void)
  19353. {
  19354. arts_stream_t stream;
  19355. ;
  19356. return 0;
  19357. }
  19358. _ACEOF
  19359. if ac_fn_c_try_compile "$LINENO"
  19360. then :
  19361. audio_arts=yes
  19362. fi
  19363. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19364. CFLAGS="$save_CFLAGS"
  19365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19366. printf "%s\n" "$audio_arts" >&6; }
  19367. if test x$audio_arts = xyes; then
  19368. # Check whether --enable-arts-shared was given.
  19369. if test ${enable_arts_shared+y}
  19370. then :
  19371. enableval=$enable_arts_shared;
  19372. else $as_nop
  19373. enable_arts_shared=yes
  19374. fi
  19375. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19376. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19377. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19378. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19379. if test x$have_loadso != xyes && \
  19380. test x$enable_arts_shared = xyes; then
  19381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19382. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19383. fi
  19384. if test x$have_loadso = xyes && \
  19385. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19386. echo "-- dynamic libartsc -> $arts_lib"
  19387. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19388. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19389. else
  19390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19391. SUMMARY_audio="${SUMMARY_audio} arts"
  19392. fi
  19393. have_audio=yes
  19394. fi
  19395. fi
  19396. fi
  19397. }
  19398. CheckNAS()
  19399. {
  19400. # Check whether --enable-nas was given.
  19401. if test ${enable_nas+y}
  19402. then :
  19403. enableval=$enable_nas;
  19404. else $as_nop
  19405. enable_nas=yes
  19406. fi
  19407. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19408. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19409. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19410. then :
  19411. have_nas_hdr=yes
  19412. fi
  19413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19414. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19415. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19416. then :
  19417. printf %s "(cached) " >&6
  19418. else $as_nop
  19419. ac_check_lib_save_LIBS=$LIBS
  19420. LIBS="-laudio $LIBS"
  19421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19422. /* end confdefs.h. */
  19423. /* Override any GCC internal prototype to avoid an error.
  19424. Use char because int might match the return type of a GCC
  19425. builtin and then its argument prototype would still apply. */
  19426. char AuOpenServer ();
  19427. int
  19428. main (void)
  19429. {
  19430. return AuOpenServer ();
  19431. ;
  19432. return 0;
  19433. }
  19434. _ACEOF
  19435. if ac_fn_c_try_link "$LINENO"
  19436. then :
  19437. ac_cv_lib_audio_AuOpenServer=yes
  19438. else $as_nop
  19439. ac_cv_lib_audio_AuOpenServer=no
  19440. fi
  19441. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19442. conftest$ac_exeext conftest.$ac_ext
  19443. LIBS=$ac_check_lib_save_LIBS
  19444. fi
  19445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19446. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19447. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19448. then :
  19449. have_nas_lib=yes
  19450. fi
  19451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19452. printf %s "checking for NAS audio support... " >&6; }
  19453. have_nas=no
  19454. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19455. have_nas=yes
  19456. NAS_LIBS="-laudio"
  19457. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19458. have_nas=yes
  19459. NAS_CFLAGS="-I/usr/X11R6/include/"
  19460. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19461. fi
  19462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19463. printf "%s\n" "$have_nas" >&6; }
  19464. if test x$have_nas = xyes; then
  19465. # Check whether --enable-nas-shared was given.
  19466. if test ${enable_nas_shared+y}
  19467. then :
  19468. enableval=$enable_nas_shared;
  19469. else $as_nop
  19470. enable_nas_shared=yes
  19471. fi
  19472. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19473. if test x$have_loadso != xyes && \
  19474. test x$enable_nas_shared = xyes; then
  19475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19476. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19477. fi
  19478. if test x$have_loadso = xyes && \
  19479. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19480. echo "-- dynamic libaudio -> $nas_lib"
  19481. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19482. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19483. else
  19484. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19485. SUMMARY_audio="${SUMMARY_audio} nas"
  19486. fi
  19487. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19488. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19489. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19490. have_audio=yes
  19491. fi
  19492. fi
  19493. }
  19494. CheckSNDIO()
  19495. {
  19496. # Check whether --enable-sndio was given.
  19497. if test ${enable_sndio+y}
  19498. then :
  19499. enableval=$enable_sndio;
  19500. else $as_nop
  19501. enable_sndio=yes
  19502. fi
  19503. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19504. pkg_failed=no
  19505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19506. printf %s "checking for sndio... " >&6; }
  19507. if test -n "$SNDIO_CFLAGS"; then
  19508. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19509. elif test -n "$PKG_CONFIG"; then
  19510. if test -n "$PKG_CONFIG" && \
  19511. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19512. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19513. ac_status=$?
  19514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19515. test $ac_status = 0; }; then
  19516. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19517. test "x$?" != "x0" && pkg_failed=yes
  19518. else
  19519. pkg_failed=yes
  19520. fi
  19521. else
  19522. pkg_failed=untried
  19523. fi
  19524. if test -n "$SNDIO_LIBS"; then
  19525. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19526. elif test -n "$PKG_CONFIG"; then
  19527. if test -n "$PKG_CONFIG" && \
  19528. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19529. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19530. ac_status=$?
  19531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19532. test $ac_status = 0; }; then
  19533. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19534. test "x$?" != "x0" && pkg_failed=yes
  19535. else
  19536. pkg_failed=yes
  19537. fi
  19538. else
  19539. pkg_failed=untried
  19540. fi
  19541. if test $pkg_failed = yes; then
  19542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19543. printf "%s\n" "no" >&6; }
  19544. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19545. _pkg_short_errors_supported=yes
  19546. else
  19547. _pkg_short_errors_supported=no
  19548. fi
  19549. if test $_pkg_short_errors_supported = yes; then
  19550. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19551. else
  19552. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19553. fi
  19554. # Put the nasty error message in config.log where it belongs
  19555. echo "$SNDIO_PKG_ERRORS" >&5
  19556. audio_sndio=no
  19557. elif test $pkg_failed = untried; then
  19558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19559. printf "%s\n" "no" >&6; }
  19560. audio_sndio=no
  19561. else
  19562. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19563. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19565. printf "%s\n" "yes" >&6; }
  19566. audio_sndio=yes
  19567. fi
  19568. if test x$audio_sndio = xyes; then
  19569. # Check whether --enable-sndio-shared was given.
  19570. if test ${enable_sndio_shared+y}
  19571. then :
  19572. enableval=$enable_sndio_shared;
  19573. else $as_nop
  19574. enable_sndio_shared=yes
  19575. fi
  19576. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19577. if test x$have_loadso != xyes && \
  19578. test x$enable_sndio_shared = xyes; then
  19579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19580. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19581. fi
  19582. if test x$have_loadso = xyes && \
  19583. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19584. echo "-- dynamic libsndio -> $sndio_lib"
  19585. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19586. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19587. else
  19588. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19589. SUMMARY_audio="${SUMMARY_audio} sndio"
  19590. fi
  19591. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19592. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19593. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19594. have_audio=yes
  19595. fi
  19596. fi
  19597. }
  19598. CheckFusionSound()
  19599. {
  19600. # Check whether --enable-fusionsound was given.
  19601. if test ${enable_fusionsound+y}
  19602. then :
  19603. enableval=$enable_fusionsound;
  19604. else $as_nop
  19605. enable_fusionsound=no
  19606. fi
  19607. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19608. pkg_failed=no
  19609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19610. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19611. if test -n "$FUSIONSOUND_CFLAGS"; then
  19612. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19613. elif test -n "$PKG_CONFIG"; then
  19614. if test -n "$PKG_CONFIG" && \
  19615. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19616. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19617. ac_status=$?
  19618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19619. test $ac_status = 0; }; then
  19620. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19621. test "x$?" != "x0" && pkg_failed=yes
  19622. else
  19623. pkg_failed=yes
  19624. fi
  19625. else
  19626. pkg_failed=untried
  19627. fi
  19628. if test -n "$FUSIONSOUND_LIBS"; then
  19629. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19630. elif test -n "$PKG_CONFIG"; then
  19631. if test -n "$PKG_CONFIG" && \
  19632. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19633. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19634. ac_status=$?
  19635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19636. test $ac_status = 0; }; then
  19637. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19638. test "x$?" != "x0" && pkg_failed=yes
  19639. else
  19640. pkg_failed=yes
  19641. fi
  19642. else
  19643. pkg_failed=untried
  19644. fi
  19645. if test $pkg_failed = yes; then
  19646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19647. printf "%s\n" "no" >&6; }
  19648. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19649. _pkg_short_errors_supported=yes
  19650. else
  19651. _pkg_short_errors_supported=no
  19652. fi
  19653. if test $_pkg_short_errors_supported = yes; then
  19654. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19655. else
  19656. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19657. fi
  19658. # Put the nasty error message in config.log where it belongs
  19659. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19660. fusionsound=no
  19661. elif test $pkg_failed = untried; then
  19662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19663. printf "%s\n" "no" >&6; }
  19664. fusionsound=no
  19665. else
  19666. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19667. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19669. printf "%s\n" "yes" >&6; }
  19670. fusionsound=yes
  19671. fi
  19672. if test x$fusionsound = xyes; then
  19673. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19674. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19675. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19676. # Check whether --enable-fusionsound-shared was given.
  19677. if test ${enable_fusionsound_shared+y}
  19678. then :
  19679. enableval=$enable_fusionsound_shared;
  19680. else $as_nop
  19681. enable_fusionsound_shared=yes
  19682. fi
  19683. fusionsound_shared=no
  19684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19685. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19686. if test x$have_loadso != xyes && \
  19687. test x$enable_fusionsound_shared = xyes; then
  19688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19689. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19690. fi
  19691. if test x$have_loadso = xyes && \
  19692. test x$enable_fusionsound_shared = xyes; then
  19693. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19694. fusionsound_shared=yes
  19695. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19696. else
  19697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19698. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19699. fi
  19700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19701. printf "%s\n" "$fusionsound_shared" >&6; }
  19702. have_audio=yes
  19703. fi
  19704. fi
  19705. }
  19706. CheckDiskAudio()
  19707. {
  19708. # Check whether --enable-diskaudio was given.
  19709. if test ${enable_diskaudio+y}
  19710. then :
  19711. enableval=$enable_diskaudio;
  19712. else $as_nop
  19713. enable_diskaudio=yes
  19714. fi
  19715. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19716. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19717. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19718. SUMMARY_audio="${SUMMARY_audio} disk"
  19719. have_audio=yes
  19720. fi
  19721. }
  19722. CheckDummyAudio()
  19723. {
  19724. # Check whether --enable-dummyaudio was given.
  19725. if test ${enable_dummyaudio+y}
  19726. then :
  19727. enableval=$enable_dummyaudio;
  19728. else $as_nop
  19729. enable_dummyaudio=yes
  19730. fi
  19731. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19732. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19733. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19734. SUMMARY_audio="${SUMMARY_audio} dummy"
  19735. have_audio=yes
  19736. fi
  19737. }
  19738. CheckLibSampleRate()
  19739. {
  19740. # Check whether --enable-libsamplerate was given.
  19741. if test ${enable_libsamplerate+y}
  19742. then :
  19743. enableval=$enable_libsamplerate;
  19744. else $as_nop
  19745. enable_libsamplerate=yes
  19746. fi
  19747. if test x$enable_libsamplerate = xyes; then
  19748. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19749. if test "x$ac_cv_header_samplerate_h" = xyes
  19750. then :
  19751. have_samplerate_h_hdr=yes
  19752. else $as_nop
  19753. have_samplerate_h_hdr=no
  19754. fi
  19755. if test x$have_samplerate_h_hdr = xyes; then
  19756. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19757. # Check whether --enable-libsamplerate-shared was given.
  19758. if test ${enable_libsamplerate_shared+y}
  19759. then :
  19760. enableval=$enable_libsamplerate_shared;
  19761. else $as_nop
  19762. enable_libsamplerate_shared=yes
  19763. fi
  19764. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19765. if test x$have_loadso != xyes && \
  19766. test x$enable_libsamplerate_shared = xyes; then
  19767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19768. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19769. fi
  19770. if test x$have_loadso = xyes && \
  19771. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19772. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19773. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19774. else
  19775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19776. fi
  19777. fi
  19778. fi
  19779. }
  19780. CheckARM()
  19781. {
  19782. # Check whether --enable-arm-simd was given.
  19783. if test ${enable_arm_simd+y}
  19784. then :
  19785. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19786. else $as_nop
  19787. enable_arm_simd=no
  19788. fi
  19789. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19790. save_CFLAGS="$CFLAGS"
  19791. have_arm_simd=no
  19792. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19794. printf %s "checking for ARM SIMD... " >&6; }
  19795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19796. /* end confdefs.h. */
  19797. .text
  19798. .arch armv6
  19799. .object_arch armv4
  19800. .arm
  19801. .altmacro
  19802. #ifndef __ARM_EABI__
  19803. #error EABI is required (to be sure that calling conventions are compatible)
  19804. #endif
  19805. pld [r0]
  19806. uqadd8 r0, r0, r0
  19807. _ACEOF
  19808. if ac_fn_c_try_compile "$LINENO"
  19809. then :
  19810. have_arm_simd=yes
  19811. fi
  19812. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19814. printf "%s\n" "$have_arm_simd" >&6; }
  19815. CFLAGS="$save_CFLAGS"
  19816. if test x$have_arm_simd = xyes; then
  19817. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19818. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19819. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19820. fi
  19821. fi
  19822. }
  19823. CheckNEON()
  19824. {
  19825. # Check whether --enable-arm-neon was given.
  19826. if test ${enable_arm_neon+y}
  19827. then :
  19828. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19829. else $as_nop
  19830. enable_arm_neon=no
  19831. fi
  19832. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19833. save_CFLAGS="$CFLAGS"
  19834. have_arm_neon=no
  19835. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19837. printf %s "checking for ARM NEON... " >&6; }
  19838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19839. /* end confdefs.h. */
  19840. .text
  19841. .fpu neon
  19842. .arch armv7a
  19843. .object_arch armv4
  19844. .eabi_attribute 10, 0
  19845. .arm
  19846. .altmacro
  19847. #ifndef __ARM_EABI__
  19848. #error EABI is required (to be sure that calling conventions are compatible)
  19849. #endif
  19850. pld [r0]
  19851. vmovn.u16 d0, q0
  19852. _ACEOF
  19853. if ac_fn_c_try_compile "$LINENO"
  19854. then :
  19855. have_arm_neon=yes
  19856. fi
  19857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19859. printf "%s\n" "$have_arm_neon" >&6; }
  19860. CFLAGS="$save_CFLAGS"
  19861. if test x$have_arm_neon = xyes; then
  19862. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19863. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19864. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19865. fi
  19866. fi
  19867. }
  19868. CheckObjectiveCARC()
  19869. {
  19870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19871. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19872. have_clang_objc_arc=no
  19873. save_CFLAGS="$CFLAGS"
  19874. CFLAGS="$save_CFLAGS -fobjc-arc"
  19875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19876. /* end confdefs.h. */
  19877. int x = 0;
  19878. int
  19879. main (void)
  19880. {
  19881. ;
  19882. return 0;
  19883. }
  19884. _ACEOF
  19885. if ac_fn_c_try_compile "$LINENO"
  19886. then :
  19887. have_clang_objc_arc=yes
  19888. fi
  19889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19891. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19892. CFLAGS="$save_CFLAGS"
  19893. if test x$have_clang_objc_arc = xyes; then
  19894. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19895. fi
  19896. }
  19897. CheckGDwarf4()
  19898. {
  19899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19900. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19901. have_gcc_gdwarf4=no
  19902. save_CFLAGS="$CFLAGS"
  19903. CFLAGS="$save_CFLAGS -gdwarf-4"
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. int x = 0;
  19907. int
  19908. main (void)
  19909. {
  19910. ;
  19911. return 0;
  19912. }
  19913. _ACEOF
  19914. if ac_fn_c_try_compile "$LINENO"
  19915. then :
  19916. have_gcc_gdwarf4=yes
  19917. fi
  19918. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19920. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19921. CFLAGS="$save_CFLAGS"
  19922. if test x$have_gcc_gdwarf4 = xyes; then
  19923. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19924. fi
  19925. }
  19926. CheckVisibilityHidden()
  19927. {
  19928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19929. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19930. have_gcc_fvisibility=no
  19931. visibility_CFLAGS="-fvisibility=hidden"
  19932. save_CFLAGS="$CFLAGS"
  19933. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19935. /* end confdefs.h. */
  19936. #if !defined(__GNUC__) || __GNUC__ < 4
  19937. #error SDL only uses visibility attributes in GCC 4 or newer
  19938. #endif
  19939. int
  19940. main (void)
  19941. {
  19942. ;
  19943. return 0;
  19944. }
  19945. _ACEOF
  19946. if ac_fn_c_try_compile "$LINENO"
  19947. then :
  19948. have_gcc_fvisibility=yes
  19949. fi
  19950. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19952. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19953. CFLAGS="$save_CFLAGS"
  19954. if test x$have_gcc_fvisibility = xyes; then
  19955. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19956. fi
  19957. }
  19958. CheckNoStrictAliasing()
  19959. {
  19960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19961. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19962. have_gcc_no_strict_aliasing=no
  19963. save_CFLAGS="$CFLAGS"
  19964. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19966. /* end confdefs.h. */
  19967. int x = 0;
  19968. int
  19969. main (void)
  19970. {
  19971. ;
  19972. return 0;
  19973. }
  19974. _ACEOF
  19975. if ac_fn_c_try_compile "$LINENO"
  19976. then :
  19977. have_gcc_no_strict_aliasing=yes
  19978. fi
  19979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19981. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19982. CFLAGS="$save_CFLAGS"
  19983. if test x$have_gcc_no_strict_aliasing = xyes; then
  19984. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19985. fi
  19986. }
  19987. CheckWerror()
  19988. {
  19989. # Check whether --enable-werror was given.
  19990. if test ${enable_werror+y}
  19991. then :
  19992. enableval=$enable_werror; enable_werror=$enableval
  19993. else $as_nop
  19994. enable_werror=no
  19995. fi
  19996. if test x$enable_werror = xyes; then
  19997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19998. printf %s "checking for GCC -Werror option... " >&6; }
  19999. have_gcc_werror=no
  20000. save_CFLAGS="$CFLAGS"
  20001. CFLAGS="$save_CFLAGS -Werror"
  20002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20003. /* end confdefs.h. */
  20004. int x = 0;
  20005. int
  20006. main (void)
  20007. {
  20008. ;
  20009. return 0;
  20010. }
  20011. _ACEOF
  20012. if ac_fn_c_try_compile "$LINENO"
  20013. then :
  20014. have_gcc_werror=yes
  20015. fi
  20016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20018. printf "%s\n" "$have_gcc_werror" >&6; }
  20019. CFLAGS="$save_CFLAGS"
  20020. if test x$have_gcc_werror = xyes; then
  20021. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  20022. fi
  20023. fi
  20024. }
  20025. CheckNoErrorDeprecatedDeclarationsWerror()
  20026. {
  20027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20028. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20029. have_gcc_no_werror_deprecated_declarations=no
  20030. save_CFLAGS="$CFLAGS"
  20031. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20033. /* end confdefs.h. */
  20034. int x = 0;
  20035. int
  20036. main (void)
  20037. {
  20038. ;
  20039. return 0;
  20040. }
  20041. _ACEOF
  20042. if ac_fn_c_try_compile "$LINENO"
  20043. then :
  20044. have_gcc_no_werror_deprecated_declarations=yes
  20045. fi
  20046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20048. printf "%s\n" "$have_gcc_werror" >&6; }
  20049. CFLAGS="$save_CFLAGS"
  20050. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20051. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20052. fi
  20053. }
  20054. CheckDeclarationAfterStatement()
  20055. {
  20056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20057. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20058. have_gcc_declaration_after_statement=no
  20059. save_CFLAGS="$CFLAGS"
  20060. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20062. /* end confdefs.h. */
  20063. int x = 0;
  20064. int
  20065. main (void)
  20066. {
  20067. ;
  20068. return 0;
  20069. }
  20070. _ACEOF
  20071. if ac_fn_c_try_compile "$LINENO"
  20072. then :
  20073. have_gcc_declaration_after_statement=yes
  20074. fi
  20075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20077. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20078. CFLAGS="$save_CFLAGS"
  20079. if test x$have_gcc_declaration_after_statement = xyes; then
  20080. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20081. fi
  20082. }
  20083. CheckWarnAll()
  20084. {
  20085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20086. printf %s "checking for GCC -Wall option... " >&6; }
  20087. have_gcc_Wall=no
  20088. save_CFLAGS="$CFLAGS"
  20089. CFLAGS="$save_CFLAGS -Wall"
  20090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20091. /* end confdefs.h. */
  20092. int x = 0;
  20093. int
  20094. main (void)
  20095. {
  20096. ;
  20097. return 0;
  20098. }
  20099. _ACEOF
  20100. if ac_fn_c_try_compile "$LINENO"
  20101. then :
  20102. have_gcc_Wall=yes
  20103. fi
  20104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20106. printf "%s\n" "$have_gcc_Wall" >&6; }
  20107. CFLAGS="$save_CFLAGS"
  20108. if test x$have_gcc_Wall = xyes; then
  20109. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20111. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20112. need_gcc_Wno_multichar=no
  20113. case "$host" in
  20114. *-*-haiku*)
  20115. need_gcc_Wno_multichar=yes
  20116. ;;
  20117. esac
  20118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20119. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20120. if test x$need_gcc_Wno_multichar = xyes; then
  20121. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20122. fi
  20123. fi
  20124. }
  20125. CheckUnusedLocalTypedefs()
  20126. {
  20127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20128. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20129. have_gcc_unused_local_typedefs=no
  20130. save_CFLAGS="$CFLAGS"
  20131. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20133. /* end confdefs.h. */
  20134. int x = 0;
  20135. int
  20136. main (void)
  20137. {
  20138. ;
  20139. return 0;
  20140. }
  20141. _ACEOF
  20142. if ac_fn_c_try_compile "$LINENO"
  20143. then :
  20144. have_gcc_unused_local_typedefs=yes
  20145. fi
  20146. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20148. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20149. CFLAGS="$save_CFLAGS"
  20150. if test x$have_gcc_unused_local_typedefs = xyes; then
  20151. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20152. fi
  20153. }
  20154. CheckWayland()
  20155. {
  20156. # Check whether --enable-video-wayland was given.
  20157. if test ${enable_video_wayland+y}
  20158. then :
  20159. enableval=$enable_video_wayland;
  20160. else $as_nop
  20161. enable_video_wayland=yes
  20162. fi
  20163. # Check whether --enable-video-wayland-qt-touch was given.
  20164. if test ${enable_video_wayland_qt_touch+y}
  20165. then :
  20166. enableval=$enable_video_wayland_qt_touch;
  20167. else $as_nop
  20168. enable_video_wayland_qt_touch=yes
  20169. fi
  20170. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20172. printf %s "checking for Wayland support... " >&6; }
  20173. video_wayland=no
  20174. if test x$video_opengl_egl = xyes && \
  20175. test x$video_opengles_v2 = xyes; then
  20176. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20177. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20178. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20179. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20180. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20181. then :
  20182. WAYLAND_SCANNER_CODE_MODE=private-code
  20183. else $as_nop
  20184. WAYLAND_SCANNER_CODE_MODE=code
  20185. fi
  20186. video_wayland=yes
  20187. fi
  20188. fi
  20189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20190. printf "%s\n" "$video_wayland" >&6; }
  20191. if test x$video_wayland = xyes; then
  20192. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20193. if test x$enable_video_wayland_qt_touch = xyes; then
  20194. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20195. fi
  20196. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20197. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20198. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20199. # Check whether --enable-wayland-shared was given.
  20200. if test ${enable_wayland_shared+y}
  20201. then :
  20202. enableval=$enable_wayland_shared;
  20203. else $as_nop
  20204. enable_wayland_shared=maybe
  20205. fi
  20206. case "$host" in
  20207. *)
  20208. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20209. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20210. if test x$wayland_egl_lib = x; then
  20211. # This works in Ubuntu 13.10, maybe others
  20212. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20213. fi
  20214. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20215. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20216. ;;
  20217. esac
  20218. if test x$enable_wayland_shared = xmaybe; then
  20219. enable_wayland_shared=yes
  20220. fi
  20221. if test x$have_loadso != xyes && \
  20222. test x$enable_wayland_shared = xyes; then
  20223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20224. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20225. enable_wayland_shared=no
  20226. fi
  20227. if test x$have_loadso = xyes && \
  20228. test x$enable_wayland_shared = xyes && \
  20229. test x$wayland_client_lib != x && \
  20230. test x$wayland_egl_lib != x && \
  20231. test x$wayland_cursor_lib != x && \
  20232. test x$xkbcommon_lib != x; then
  20233. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20234. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20235. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20236. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20237. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20238. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20239. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20240. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20241. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20242. else
  20243. enable_wayland_shared=no
  20244. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20245. SUMMARY_video="${SUMMARY_video} wayland"
  20246. fi
  20247. have_video=yes
  20248. # Check whether --enable-libdecor was given.
  20249. if test ${enable_libdecor+y}
  20250. then :
  20251. enableval=$enable_libdecor;
  20252. else $as_nop
  20253. enable_libdecor=yes
  20254. fi
  20255. if test x$enable_libdecor = xyes; then
  20256. pkg_failed=no
  20257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20258. printf %s "checking for libdecor-0... " >&6; }
  20259. if test -n "$DECOR_CFLAGS"; then
  20260. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20261. elif test -n "$PKG_CONFIG"; then
  20262. if test -n "$PKG_CONFIG" && \
  20263. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20264. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20265. ac_status=$?
  20266. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20267. test $ac_status = 0; }; then
  20268. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20269. test "x$?" != "x0" && pkg_failed=yes
  20270. else
  20271. pkg_failed=yes
  20272. fi
  20273. else
  20274. pkg_failed=untried
  20275. fi
  20276. if test -n "$DECOR_LIBS"; then
  20277. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20278. elif test -n "$PKG_CONFIG"; then
  20279. if test -n "$PKG_CONFIG" && \
  20280. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20281. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20282. ac_status=$?
  20283. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20284. test $ac_status = 0; }; then
  20285. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20286. test "x$?" != "x0" && pkg_failed=yes
  20287. else
  20288. pkg_failed=yes
  20289. fi
  20290. else
  20291. pkg_failed=untried
  20292. fi
  20293. if test $pkg_failed = yes; then
  20294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20295. printf "%s\n" "no" >&6; }
  20296. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20297. _pkg_short_errors_supported=yes
  20298. else
  20299. _pkg_short_errors_supported=no
  20300. fi
  20301. if test $_pkg_short_errors_supported = yes; then
  20302. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20303. else
  20304. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20305. fi
  20306. # Put the nasty error message in config.log where it belongs
  20307. echo "$DECOR_PKG_ERRORS" >&5
  20308. video_libdecor=no
  20309. elif test $pkg_failed = untried; then
  20310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20311. printf "%s\n" "no" >&6; }
  20312. video_libdecor=no
  20313. else
  20314. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20315. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20317. printf "%s\n" "yes" >&6; }
  20318. video_libdecor=yes
  20319. fi
  20320. if test x$video_libdecor = xyes; then
  20321. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20322. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20323. # Check whether --enable-libdecor-shared was given.
  20324. if test ${enable_libdecor_shared+y}
  20325. then :
  20326. enableval=$enable_libdecor_shared;
  20327. else $as_nop
  20328. enable_libdecor_shared=yes
  20329. fi
  20330. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20331. if test x$enable_wayland_shared != xyes; then
  20332. enable_libdecor_shared=no
  20333. fi
  20334. if test x$have_loadso != xyes && \
  20335. test x$enable_libdecor_shared = xyes; then
  20336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20337. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20338. fi
  20339. if test x$have_loadso = xyes && \
  20340. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20341. echo "-- dynamic libdecor -> $decor_lib"
  20342. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20343. else
  20344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20345. fi
  20346. saved_cflags=$CFLAGS
  20347. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20349. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20350. if test ${ac_cv_c_undeclared_builtin_options+y}
  20351. then :
  20352. printf %s "(cached) " >&6
  20353. else $as_nop
  20354. ac_save_CFLAGS=$CFLAGS
  20355. ac_cv_c_undeclared_builtin_options='cannot detect'
  20356. for ac_arg in '' -fno-builtin; do
  20357. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20358. # This test program should *not* compile successfully.
  20359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20360. /* end confdefs.h. */
  20361. int
  20362. main (void)
  20363. {
  20364. (void) strchr;
  20365. ;
  20366. return 0;
  20367. }
  20368. _ACEOF
  20369. if ac_fn_c_try_compile "$LINENO"
  20370. then :
  20371. else $as_nop
  20372. # This test program should compile successfully.
  20373. # No library function is consistently available on
  20374. # freestanding implementations, so test against a dummy
  20375. # declaration. Include always-available headers on the
  20376. # off chance that they somehow elicit warnings.
  20377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20378. /* end confdefs.h. */
  20379. #include <float.h>
  20380. #include <limits.h>
  20381. #include <stdarg.h>
  20382. #include <stddef.h>
  20383. extern void ac_decl (int, char *);
  20384. int
  20385. main (void)
  20386. {
  20387. (void) ac_decl (0, (char *) 0);
  20388. (void) ac_decl;
  20389. ;
  20390. return 0;
  20391. }
  20392. _ACEOF
  20393. if ac_fn_c_try_compile "$LINENO"
  20394. then :
  20395. if test x"$ac_arg" = x
  20396. then :
  20397. ac_cv_c_undeclared_builtin_options='none needed'
  20398. else $as_nop
  20399. ac_cv_c_undeclared_builtin_options=$ac_arg
  20400. fi
  20401. break
  20402. fi
  20403. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20404. fi
  20405. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20406. done
  20407. CFLAGS=$ac_save_CFLAGS
  20408. fi
  20409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20410. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20411. case $ac_cv_c_undeclared_builtin_options in #(
  20412. 'cannot detect') :
  20413. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20414. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20415. as_fn_error $? "cannot make $CC report undeclared builtins
  20416. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20417. 'none needed') :
  20418. ac_c_undeclared_builtin_options='' ;; #(
  20419. *) :
  20420. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20421. esac
  20422. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20423. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20424. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20425. then :
  20426. ac_have_decl=1
  20427. else $as_nop
  20428. ac_have_decl=0
  20429. fi
  20430. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20431. if test $ac_have_decl = 1
  20432. then :
  20433. libdecor_get_min_max=yes
  20434. fi
  20435. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20436. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20437. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20438. then :
  20439. ac_have_decl=1
  20440. else $as_nop
  20441. ac_have_decl=0
  20442. fi
  20443. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20444. if test $ac_have_decl = 1
  20445. then :
  20446. libdecor_get_min_max=yes
  20447. fi
  20448. if test x$libdecor_get_min_max = xyes; then
  20449. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20450. fi
  20451. CFLAGS="$saved_cflags"
  20452. fi
  20453. fi
  20454. fi
  20455. fi
  20456. }
  20457. CheckNativeClient()
  20458. {
  20459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20460. /* end confdefs.h. */
  20461. #if !defined(__native_client__)
  20462. #error "NO NACL"
  20463. #endif
  20464. int
  20465. main (void)
  20466. {
  20467. ;
  20468. return 0;
  20469. }
  20470. _ACEOF
  20471. if ac_fn_c_try_compile "$LINENO"
  20472. then :
  20473. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20474. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20475. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20476. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20477. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20478. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20479. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20480. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20481. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20482. SUMMARY_audio="${SUMMARY_audio} nacl"
  20483. have_audio=yes
  20484. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20485. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20486. have_video=yes
  20487. fi
  20488. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20489. }
  20490. CheckRPI()
  20491. {
  20492. # Check whether --enable-video-rpi was given.
  20493. if test ${enable_video_rpi+y}
  20494. then :
  20495. enableval=$enable_video_rpi;
  20496. else $as_nop
  20497. enable_video_rpi=yes
  20498. fi
  20499. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20500. pkg_failed=no
  20501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20502. printf %s "checking for bcm_host... " >&6; }
  20503. if test -n "$RPI_CFLAGS"; then
  20504. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20505. elif test -n "$PKG_CONFIG"; then
  20506. if test -n "$PKG_CONFIG" && \
  20507. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20508. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20509. ac_status=$?
  20510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20511. test $ac_status = 0; }; then
  20512. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20513. test "x$?" != "x0" && pkg_failed=yes
  20514. else
  20515. pkg_failed=yes
  20516. fi
  20517. else
  20518. pkg_failed=untried
  20519. fi
  20520. if test -n "$RPI_LIBS"; then
  20521. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20522. elif test -n "$PKG_CONFIG"; then
  20523. if test -n "$PKG_CONFIG" && \
  20524. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20525. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20526. ac_status=$?
  20527. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20528. test $ac_status = 0; }; then
  20529. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20530. test "x$?" != "x0" && pkg_failed=yes
  20531. else
  20532. pkg_failed=yes
  20533. fi
  20534. else
  20535. pkg_failed=untried
  20536. fi
  20537. if test $pkg_failed = yes; then
  20538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20539. printf "%s\n" "no" >&6; }
  20540. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20541. _pkg_short_errors_supported=yes
  20542. else
  20543. _pkg_short_errors_supported=no
  20544. fi
  20545. if test $_pkg_short_errors_supported = yes; then
  20546. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20547. else
  20548. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20549. fi
  20550. # Put the nasty error message in config.log where it belongs
  20551. echo "$RPI_PKG_ERRORS" >&5
  20552. video_rpi=no
  20553. elif test $pkg_failed = untried; then
  20554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20555. printf "%s\n" "no" >&6; }
  20556. video_rpi=no
  20557. else
  20558. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20559. RPI_LIBS=$pkg_cv_RPI_LIBS
  20560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20561. printf "%s\n" "yes" >&6; }
  20562. video_rpi=yes
  20563. fi
  20564. pkg_failed=no
  20565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20566. printf %s "checking for brcmegl... " >&6; }
  20567. if test -n "$RPI_EGL_CFLAGS"; then
  20568. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20569. elif test -n "$PKG_CONFIG"; then
  20570. if test -n "$PKG_CONFIG" && \
  20571. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20572. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20573. ac_status=$?
  20574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20575. test $ac_status = 0; }; then
  20576. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20577. test "x$?" != "x0" && pkg_failed=yes
  20578. else
  20579. pkg_failed=yes
  20580. fi
  20581. else
  20582. pkg_failed=untried
  20583. fi
  20584. if test -n "$RPI_EGL_LIBS"; then
  20585. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20586. elif test -n "$PKG_CONFIG"; then
  20587. if test -n "$PKG_CONFIG" && \
  20588. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20589. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20590. ac_status=$?
  20591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20592. test $ac_status = 0; }; then
  20593. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20594. test "x$?" != "x0" && pkg_failed=yes
  20595. else
  20596. pkg_failed=yes
  20597. fi
  20598. else
  20599. pkg_failed=untried
  20600. fi
  20601. if test $pkg_failed = yes; then
  20602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20603. printf "%s\n" "no" >&6; }
  20604. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20605. _pkg_short_errors_supported=yes
  20606. else
  20607. _pkg_short_errors_supported=no
  20608. fi
  20609. if test $_pkg_short_errors_supported = yes; then
  20610. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20611. else
  20612. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20613. fi
  20614. # Put the nasty error message in config.log where it belongs
  20615. echo "$RPI_EGL_PKG_ERRORS" >&5
  20616. video_rpi_egl=no
  20617. elif test $pkg_failed = untried; then
  20618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20619. printf "%s\n" "no" >&6; }
  20620. video_rpi_egl=no
  20621. else
  20622. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20623. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20625. printf "%s\n" "yes" >&6; }
  20626. video_rpi_egl=yes
  20627. fi
  20628. if test x$video_rpi = xno; then
  20629. if test x$ARCH = xnetbsd; then
  20630. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20631. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20632. else
  20633. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20634. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20635. fi
  20636. fi
  20637. if test x$video_rpi_egl = xno; then
  20638. if test x$ARCH = xnetbsd; then
  20639. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20640. else
  20641. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20642. fi
  20643. fi
  20644. # Save the original compiler flags and libraries
  20645. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20646. # Add the Raspberry Pi compiler flags and libraries
  20647. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20649. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20650. have_video_rpi=no
  20651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20652. /* end confdefs.h. */
  20653. #include <bcm_host.h>
  20654. int
  20655. main (void)
  20656. {
  20657. bcm_host_init();
  20658. ;
  20659. return 0;
  20660. }
  20661. _ACEOF
  20662. if ac_fn_c_try_link "$LINENO"
  20663. then :
  20664. have_video_rpi=yes
  20665. fi
  20666. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20667. conftest$ac_exeext conftest.$ac_ext
  20668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20669. printf "%s\n" "$have_video_rpi" >&6; }
  20670. # Restore the compiler flags and libraries
  20671. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20672. if test x$have_video_rpi = xyes; then
  20673. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20674. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20675. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20677. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20678. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20679. SUMMARY_video="${SUMMARY_video} rpi"
  20680. have_video=yes
  20681. fi
  20682. fi
  20683. }
  20684. CheckX11()
  20685. {
  20686. # Check whether --enable-video-x11 was given.
  20687. if test ${enable_video_x11+y}
  20688. then :
  20689. enableval=$enable_video_x11;
  20690. else $as_nop
  20691. enable_video_x11=yes
  20692. case "$host" in
  20693. *-*-darwin*|*-ios-*)
  20694. enable_video_x11=no
  20695. ;;
  20696. esac
  20697. fi
  20698. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20699. case "$host" in
  20700. *-*-darwin*)
  20701. # This isn't necessary for X11, but fixes GLX detection
  20702. if test "x$x_includes" = xNONE && \
  20703. test "x$x_libraries" = xNONE && \
  20704. test -d /opt/X11/include && \
  20705. test -d /opt/X11/lib; then
  20706. x_includes="/opt/X11/include"
  20707. x_libraries="/opt/X11/lib"
  20708. fi
  20709. ;;
  20710. esac
  20711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20712. printf %s "checking for X... " >&6; }
  20713. # Check whether --with-x was given.
  20714. if test ${with_x+y}
  20715. then :
  20716. withval=$with_x;
  20717. fi
  20718. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20719. if test "x$with_x" = xno; then
  20720. # The user explicitly disabled X.
  20721. have_x=disabled
  20722. else
  20723. case $x_includes,$x_libraries in #(
  20724. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20725. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20726. then :
  20727. printf %s "(cached) " >&6
  20728. else $as_nop
  20729. # One or both of the vars are not set, and there is no cached value.
  20730. ac_x_includes=no
  20731. ac_x_libraries=no
  20732. # Do we need to do anything special at all?
  20733. ac_save_LIBS=$LIBS
  20734. LIBS="-lX11 $LIBS"
  20735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20736. /* end confdefs.h. */
  20737. #include <X11/Xlib.h>
  20738. int
  20739. main (void)
  20740. {
  20741. XrmInitialize ()
  20742. ;
  20743. return 0;
  20744. }
  20745. _ACEOF
  20746. if ac_fn_c_try_link "$LINENO"
  20747. then :
  20748. # We can compile and link X programs with no special options.
  20749. ac_x_includes=
  20750. ac_x_libraries=
  20751. fi
  20752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20753. conftest$ac_exeext conftest.$ac_ext
  20754. LIBS="$ac_save_LIBS"
  20755. # If that didn't work, only try xmkmf and file system searches
  20756. # for native compilation.
  20757. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20758. then :
  20759. rm -f -r conftest.dir
  20760. if mkdir conftest.dir; then
  20761. cd conftest.dir
  20762. cat >Imakefile <<'_ACEOF'
  20763. incroot:
  20764. @echo incroot='${INCROOT}'
  20765. usrlibdir:
  20766. @echo usrlibdir='${USRLIBDIR}'
  20767. libdir:
  20768. @echo libdir='${LIBDIR}'
  20769. _ACEOF
  20770. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20771. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20772. for ac_var in incroot usrlibdir libdir; do
  20773. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20774. done
  20775. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20776. for ac_extension in a so sl dylib la dll; do
  20777. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20778. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20779. ac_im_usrlibdir=$ac_im_libdir; break
  20780. fi
  20781. done
  20782. # Screen out bogus values from the imake configuration. They are
  20783. # bogus both because they are the default anyway, and because
  20784. # using them would break gcc on systems where it needs fixed includes.
  20785. case $ac_im_incroot in
  20786. /usr/include) ac_x_includes= ;;
  20787. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20788. esac
  20789. case $ac_im_usrlibdir in
  20790. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20791. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20792. esac
  20793. fi
  20794. cd ..
  20795. rm -f -r conftest.dir
  20796. fi
  20797. # Standard set of common directories for X headers.
  20798. # Check X11 before X11Rn because it is often a symlink to the current release.
  20799. ac_x_header_dirs='
  20800. /usr/X11/include
  20801. /usr/X11R7/include
  20802. /usr/X11R6/include
  20803. /usr/X11R5/include
  20804. /usr/X11R4/include
  20805. /usr/include/X11
  20806. /usr/include/X11R7
  20807. /usr/include/X11R6
  20808. /usr/include/X11R5
  20809. /usr/include/X11R4
  20810. /usr/local/X11/include
  20811. /usr/local/X11R7/include
  20812. /usr/local/X11R6/include
  20813. /usr/local/X11R5/include
  20814. /usr/local/X11R4/include
  20815. /usr/local/include/X11
  20816. /usr/local/include/X11R7
  20817. /usr/local/include/X11R6
  20818. /usr/local/include/X11R5
  20819. /usr/local/include/X11R4
  20820. /opt/X11/include
  20821. /usr/X386/include
  20822. /usr/x386/include
  20823. /usr/XFree86/include/X11
  20824. /usr/include
  20825. /usr/local/include
  20826. /usr/unsupported/include
  20827. /usr/athena/include
  20828. /usr/local/x11r5/include
  20829. /usr/lpp/Xamples/include
  20830. /usr/openwin/include
  20831. /usr/openwin/share/include'
  20832. if test "$ac_x_includes" = no; then
  20833. # Guess where to find include files, by looking for Xlib.h.
  20834. # First, try using that file with no special directory specified.
  20835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20836. /* end confdefs.h. */
  20837. #include <X11/Xlib.h>
  20838. _ACEOF
  20839. if ac_fn_c_try_cpp "$LINENO"
  20840. then :
  20841. # We can compile using X headers with no special include directory.
  20842. ac_x_includes=
  20843. else $as_nop
  20844. for ac_dir in $ac_x_header_dirs; do
  20845. if test -r "$ac_dir/X11/Xlib.h"; then
  20846. ac_x_includes=$ac_dir
  20847. break
  20848. fi
  20849. done
  20850. fi
  20851. rm -f conftest.err conftest.i conftest.$ac_ext
  20852. fi # $ac_x_includes = no
  20853. if test "$ac_x_libraries" = no; then
  20854. # Check for the libraries.
  20855. # See if we find them without any special options.
  20856. # Don't add to $LIBS permanently.
  20857. ac_save_LIBS=$LIBS
  20858. LIBS="-lX11 $LIBS"
  20859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20860. /* end confdefs.h. */
  20861. #include <X11/Xlib.h>
  20862. int
  20863. main (void)
  20864. {
  20865. XrmInitialize ()
  20866. ;
  20867. return 0;
  20868. }
  20869. _ACEOF
  20870. if ac_fn_c_try_link "$LINENO"
  20871. then :
  20872. LIBS=$ac_save_LIBS
  20873. # We can link X programs with no special library path.
  20874. ac_x_libraries=
  20875. else $as_nop
  20876. LIBS=$ac_save_LIBS
  20877. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20878. do
  20879. # Don't even attempt the hair of trying to link an X program!
  20880. for ac_extension in a so sl dylib la dll; do
  20881. if test -r "$ac_dir/libX11.$ac_extension"; then
  20882. ac_x_libraries=$ac_dir
  20883. break 2
  20884. fi
  20885. done
  20886. done
  20887. fi
  20888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20889. conftest$ac_exeext conftest.$ac_ext
  20890. fi # $ac_x_libraries = no
  20891. fi
  20892. # Record the results.
  20893. case $ac_x_includes,$ac_x_libraries in #(
  20894. no,* | *,no | *\'*) :
  20895. # Didn't find X, or a directory has "'" in its name.
  20896. ac_cv_have_x="have_x=no" ;; #(
  20897. *) :
  20898. # Record where we found X for the cache.
  20899. ac_cv_have_x="have_x=yes\
  20900. ac_x_includes='$ac_x_includes'\
  20901. ac_x_libraries='$ac_x_libraries'" ;;
  20902. esac
  20903. fi
  20904. ;; #(
  20905. *) have_x=yes;;
  20906. esac
  20907. eval "$ac_cv_have_x"
  20908. fi # $with_x != no
  20909. if test "$have_x" != yes; then
  20910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20911. printf "%s\n" "$have_x" >&6; }
  20912. no_x=yes
  20913. else
  20914. # If each of the values was on the command line, it overrides each guess.
  20915. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20916. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20917. # Update the cache value to reflect the command line values.
  20918. ac_cv_have_x="have_x=yes\
  20919. ac_x_includes='$x_includes'\
  20920. ac_x_libraries='$x_libraries'"
  20921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20922. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20923. fi
  20924. if test "$no_x" = yes; then
  20925. # Not all programs may use this symbol, but it does not hurt to define it.
  20926. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20927. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20928. else
  20929. if test -n "$x_includes"; then
  20930. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20931. fi
  20932. # It would also be nice to do this for all -L options, not just this one.
  20933. if test -n "$x_libraries"; then
  20934. X_LIBS="$X_LIBS -L$x_libraries"
  20935. # For Solaris; some versions of Sun CC require a space after -R and
  20936. # others require no space. Words are not sufficient . . . .
  20937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20938. printf %s "checking whether -R must be followed by a space... " >&6; }
  20939. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20940. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20941. ac_c_werror_flag=yes
  20942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20943. /* end confdefs.h. */
  20944. int
  20945. main (void)
  20946. {
  20947. ;
  20948. return 0;
  20949. }
  20950. _ACEOF
  20951. if ac_fn_c_try_link "$LINENO"
  20952. then :
  20953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20954. printf "%s\n" "no" >&6; }
  20955. X_LIBS="$X_LIBS -R$x_libraries"
  20956. else $as_nop
  20957. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20959. /* end confdefs.h. */
  20960. int
  20961. main (void)
  20962. {
  20963. ;
  20964. return 0;
  20965. }
  20966. _ACEOF
  20967. if ac_fn_c_try_link "$LINENO"
  20968. then :
  20969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20970. printf "%s\n" "yes" >&6; }
  20971. X_LIBS="$X_LIBS -R $x_libraries"
  20972. else $as_nop
  20973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20974. printf "%s\n" "neither works" >&6; }
  20975. fi
  20976. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20977. conftest$ac_exeext conftest.$ac_ext
  20978. fi
  20979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20980. conftest$ac_exeext conftest.$ac_ext
  20981. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20982. LIBS=$ac_xsave_LIBS
  20983. fi
  20984. # Check for system-dependent libraries X programs must link with.
  20985. # Do this before checking for the system-independent R6 libraries
  20986. # (-lICE), since we may need -lsocket or whatever for X linking.
  20987. if test "$ISC" = yes; then
  20988. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20989. else
  20990. # Martyn Johnson says this is needed for Ultrix, if the X
  20991. # libraries were built with DECnet support. And Karl Berry says
  20992. # the Alpha needs dnet_stub (dnet does not exist).
  20993. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20995. /* end confdefs.h. */
  20996. /* Override any GCC internal prototype to avoid an error.
  20997. Use char because int might match the return type of a GCC
  20998. builtin and then its argument prototype would still apply. */
  20999. char XOpenDisplay ();
  21000. int
  21001. main (void)
  21002. {
  21003. return XOpenDisplay ();
  21004. ;
  21005. return 0;
  21006. }
  21007. _ACEOF
  21008. if ac_fn_c_try_link "$LINENO"
  21009. then :
  21010. else $as_nop
  21011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21012. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  21013. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  21014. then :
  21015. printf %s "(cached) " >&6
  21016. else $as_nop
  21017. ac_check_lib_save_LIBS=$LIBS
  21018. LIBS="-ldnet $LIBS"
  21019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21020. /* end confdefs.h. */
  21021. /* Override any GCC internal prototype to avoid an error.
  21022. Use char because int might match the return type of a GCC
  21023. builtin and then its argument prototype would still apply. */
  21024. char dnet_ntoa ();
  21025. int
  21026. main (void)
  21027. {
  21028. return dnet_ntoa ();
  21029. ;
  21030. return 0;
  21031. }
  21032. _ACEOF
  21033. if ac_fn_c_try_link "$LINENO"
  21034. then :
  21035. ac_cv_lib_dnet_dnet_ntoa=yes
  21036. else $as_nop
  21037. ac_cv_lib_dnet_dnet_ntoa=no
  21038. fi
  21039. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21040. conftest$ac_exeext conftest.$ac_ext
  21041. LIBS=$ac_check_lib_save_LIBS
  21042. fi
  21043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21044. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21045. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21046. then :
  21047. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21048. fi
  21049. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21051. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21052. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21053. then :
  21054. printf %s "(cached) " >&6
  21055. else $as_nop
  21056. ac_check_lib_save_LIBS=$LIBS
  21057. LIBS="-ldnet_stub $LIBS"
  21058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21059. /* end confdefs.h. */
  21060. /* Override any GCC internal prototype to avoid an error.
  21061. Use char because int might match the return type of a GCC
  21062. builtin and then its argument prototype would still apply. */
  21063. char dnet_ntoa ();
  21064. int
  21065. main (void)
  21066. {
  21067. return dnet_ntoa ();
  21068. ;
  21069. return 0;
  21070. }
  21071. _ACEOF
  21072. if ac_fn_c_try_link "$LINENO"
  21073. then :
  21074. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21075. else $as_nop
  21076. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21077. fi
  21078. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21079. conftest$ac_exeext conftest.$ac_ext
  21080. LIBS=$ac_check_lib_save_LIBS
  21081. fi
  21082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21083. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21084. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21085. then :
  21086. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21087. fi
  21088. fi
  21089. fi
  21090. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21091. conftest$ac_exeext conftest.$ac_ext
  21092. LIBS="$ac_xsave_LIBS"
  21093. # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
  21094. # to get the SysV transport functions.
  21095. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21096. # needs -lnsl.
  21097. # The nsl library prevents programs from opening the X display
  21098. # on Irix 5.2, according to T.E. Dickey.
  21099. # The functions gethostbyname, getservbyname, and inet_addr are
  21100. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21101. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21102. if test "x$ac_cv_func_gethostbyname" = xyes
  21103. then :
  21104. fi
  21105. if test $ac_cv_func_gethostbyname = no; then
  21106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21107. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21108. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21109. then :
  21110. printf %s "(cached) " >&6
  21111. else $as_nop
  21112. ac_check_lib_save_LIBS=$LIBS
  21113. LIBS="-lnsl $LIBS"
  21114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21115. /* end confdefs.h. */
  21116. /* Override any GCC internal prototype to avoid an error.
  21117. Use char because int might match the return type of a GCC
  21118. builtin and then its argument prototype would still apply. */
  21119. char gethostbyname ();
  21120. int
  21121. main (void)
  21122. {
  21123. return gethostbyname ();
  21124. ;
  21125. return 0;
  21126. }
  21127. _ACEOF
  21128. if ac_fn_c_try_link "$LINENO"
  21129. then :
  21130. ac_cv_lib_nsl_gethostbyname=yes
  21131. else $as_nop
  21132. ac_cv_lib_nsl_gethostbyname=no
  21133. fi
  21134. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21135. conftest$ac_exeext conftest.$ac_ext
  21136. LIBS=$ac_check_lib_save_LIBS
  21137. fi
  21138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21139. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21140. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21141. then :
  21142. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21143. fi
  21144. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21146. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21147. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21148. then :
  21149. printf %s "(cached) " >&6
  21150. else $as_nop
  21151. ac_check_lib_save_LIBS=$LIBS
  21152. LIBS="-lbsd $LIBS"
  21153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21154. /* end confdefs.h. */
  21155. /* Override any GCC internal prototype to avoid an error.
  21156. Use char because int might match the return type of a GCC
  21157. builtin and then its argument prototype would still apply. */
  21158. char gethostbyname ();
  21159. int
  21160. main (void)
  21161. {
  21162. return gethostbyname ();
  21163. ;
  21164. return 0;
  21165. }
  21166. _ACEOF
  21167. if ac_fn_c_try_link "$LINENO"
  21168. then :
  21169. ac_cv_lib_bsd_gethostbyname=yes
  21170. else $as_nop
  21171. ac_cv_lib_bsd_gethostbyname=no
  21172. fi
  21173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21174. conftest$ac_exeext conftest.$ac_ext
  21175. LIBS=$ac_check_lib_save_LIBS
  21176. fi
  21177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21178. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21179. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21180. then :
  21181. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21182. fi
  21183. fi
  21184. fi
  21185. # [email protected] says without -lsocket,
  21186. # socket/setsockopt and other routines are undefined under SCO ODT
  21187. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21188. # on later versions), says Simon Leinen: it contains gethostby*
  21189. # variants that don't use the name server (or something). -lsocket
  21190. # must be given before -lnsl if both are needed. We assume that
  21191. # if connect needs -lnsl, so does gethostbyname.
  21192. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21193. if test "x$ac_cv_func_connect" = xyes
  21194. then :
  21195. fi
  21196. if test $ac_cv_func_connect = no; then
  21197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21198. printf %s "checking for connect in -lsocket... " >&6; }
  21199. if test ${ac_cv_lib_socket_connect+y}
  21200. then :
  21201. printf %s "(cached) " >&6
  21202. else $as_nop
  21203. ac_check_lib_save_LIBS=$LIBS
  21204. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21206. /* end confdefs.h. */
  21207. /* Override any GCC internal prototype to avoid an error.
  21208. Use char because int might match the return type of a GCC
  21209. builtin and then its argument prototype would still apply. */
  21210. char connect ();
  21211. int
  21212. main (void)
  21213. {
  21214. return connect ();
  21215. ;
  21216. return 0;
  21217. }
  21218. _ACEOF
  21219. if ac_fn_c_try_link "$LINENO"
  21220. then :
  21221. ac_cv_lib_socket_connect=yes
  21222. else $as_nop
  21223. ac_cv_lib_socket_connect=no
  21224. fi
  21225. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21226. conftest$ac_exeext conftest.$ac_ext
  21227. LIBS=$ac_check_lib_save_LIBS
  21228. fi
  21229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21230. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21231. if test "x$ac_cv_lib_socket_connect" = xyes
  21232. then :
  21233. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21234. fi
  21235. fi
  21236. # Guillermo Gomez says -lposix is necessary on A/UX.
  21237. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21238. if test "x$ac_cv_func_remove" = xyes
  21239. then :
  21240. fi
  21241. if test $ac_cv_func_remove = no; then
  21242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21243. printf %s "checking for remove in -lposix... " >&6; }
  21244. if test ${ac_cv_lib_posix_remove+y}
  21245. then :
  21246. printf %s "(cached) " >&6
  21247. else $as_nop
  21248. ac_check_lib_save_LIBS=$LIBS
  21249. LIBS="-lposix $LIBS"
  21250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21251. /* end confdefs.h. */
  21252. /* Override any GCC internal prototype to avoid an error.
  21253. Use char because int might match the return type of a GCC
  21254. builtin and then its argument prototype would still apply. */
  21255. char remove ();
  21256. int
  21257. main (void)
  21258. {
  21259. return remove ();
  21260. ;
  21261. return 0;
  21262. }
  21263. _ACEOF
  21264. if ac_fn_c_try_link "$LINENO"
  21265. then :
  21266. ac_cv_lib_posix_remove=yes
  21267. else $as_nop
  21268. ac_cv_lib_posix_remove=no
  21269. fi
  21270. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21271. conftest$ac_exeext conftest.$ac_ext
  21272. LIBS=$ac_check_lib_save_LIBS
  21273. fi
  21274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21275. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21276. if test "x$ac_cv_lib_posix_remove" = xyes
  21277. then :
  21278. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21279. fi
  21280. fi
  21281. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21282. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21283. if test "x$ac_cv_func_shmat" = xyes
  21284. then :
  21285. fi
  21286. if test $ac_cv_func_shmat = no; then
  21287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21288. printf %s "checking for shmat in -lipc... " >&6; }
  21289. if test ${ac_cv_lib_ipc_shmat+y}
  21290. then :
  21291. printf %s "(cached) " >&6
  21292. else $as_nop
  21293. ac_check_lib_save_LIBS=$LIBS
  21294. LIBS="-lipc $LIBS"
  21295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21296. /* end confdefs.h. */
  21297. /* Override any GCC internal prototype to avoid an error.
  21298. Use char because int might match the return type of a GCC
  21299. builtin and then its argument prototype would still apply. */
  21300. char shmat ();
  21301. int
  21302. main (void)
  21303. {
  21304. return shmat ();
  21305. ;
  21306. return 0;
  21307. }
  21308. _ACEOF
  21309. if ac_fn_c_try_link "$LINENO"
  21310. then :
  21311. ac_cv_lib_ipc_shmat=yes
  21312. else $as_nop
  21313. ac_cv_lib_ipc_shmat=no
  21314. fi
  21315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21316. conftest$ac_exeext conftest.$ac_ext
  21317. LIBS=$ac_check_lib_save_LIBS
  21318. fi
  21319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21320. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21321. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21322. then :
  21323. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21324. fi
  21325. fi
  21326. fi
  21327. # Check for libraries that X11R6 Xt/Xaw programs need.
  21328. ac_save_LDFLAGS=$LDFLAGS
  21329. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21330. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21331. # check for ICE first), but we must link in the order -lSM -lICE or
  21332. # we get undefined symbols. So assume we have SM if we have ICE.
  21333. # These have to be linked with before -lX11, unlike the other
  21334. # libraries we check for below, so use a different variable.
  21335. # John Interrante, Karl Berry
  21336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21337. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21338. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21339. then :
  21340. printf %s "(cached) " >&6
  21341. else $as_nop
  21342. ac_check_lib_save_LIBS=$LIBS
  21343. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21345. /* end confdefs.h. */
  21346. /* Override any GCC internal prototype to avoid an error.
  21347. Use char because int might match the return type of a GCC
  21348. builtin and then its argument prototype would still apply. */
  21349. char IceConnectionNumber ();
  21350. int
  21351. main (void)
  21352. {
  21353. return IceConnectionNumber ();
  21354. ;
  21355. return 0;
  21356. }
  21357. _ACEOF
  21358. if ac_fn_c_try_link "$LINENO"
  21359. then :
  21360. ac_cv_lib_ICE_IceConnectionNumber=yes
  21361. else $as_nop
  21362. ac_cv_lib_ICE_IceConnectionNumber=no
  21363. fi
  21364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21365. conftest$ac_exeext conftest.$ac_ext
  21366. LIBS=$ac_check_lib_save_LIBS
  21367. fi
  21368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21369. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21370. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21371. then :
  21372. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21373. fi
  21374. LDFLAGS=$ac_save_LDFLAGS
  21375. fi
  21376. if test x$have_x = xyes; then
  21377. # Check whether --enable-x11-shared was given.
  21378. if test ${enable_x11_shared+y}
  21379. then :
  21380. enableval=$enable_x11_shared;
  21381. else $as_nop
  21382. enable_x11_shared=maybe
  21383. fi
  21384. case "$host" in
  21385. *-*-darwin*)
  21386. # Apple now puts this in /opt/X11
  21387. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21388. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21389. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21390. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21391. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21392. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21393. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21394. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21395. ;;
  21396. *-*-openbsd*)
  21397. x11_lib='libX11.so'
  21398. x11ext_lib='libXext.so'
  21399. xcursor_lib='libXcursor.so'
  21400. xinput_lib='libXi.so'
  21401. xfixes_lib='libXfixes.so'
  21402. xrandr_lib='libXrandr.so'
  21403. xrender_lib='libXrender.so'
  21404. xss_lib='libXss.so'
  21405. ;;
  21406. *)
  21407. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21408. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21409. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21410. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21411. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21412. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21413. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21414. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21415. ;;
  21416. esac
  21417. if test x$ac_cv_func_shmat != xyes; then
  21418. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21419. fi
  21420. CFLAGS="$CFLAGS $X_CFLAGS"
  21421. LDFLAGS="$LDFLAGS $X_LIBS"
  21422. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21423. #include <X11/Xproto.h>
  21424. "
  21425. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21426. then :
  21427. have_xext_h_hdr=yes
  21428. else $as_nop
  21429. have_xext_h_hdr=no
  21430. fi
  21431. if test x$have_xext_h_hdr != xyes; then
  21432. as_fn_error $? "
  21433. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21434. " "$LINENO" 5
  21435. fi
  21436. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21437. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21438. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21439. # Needed so SDL applications can include SDL_syswm.h
  21440. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21441. if test x$enable_x11_shared = xmaybe; then
  21442. enable_x11_shared=yes
  21443. fi
  21444. if test x$have_loadso != xyes && \
  21445. test x$enable_x11_shared = xyes; then
  21446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21447. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21448. enable_x11_shared=no
  21449. fi
  21450. if test x$have_loadso = xyes && \
  21451. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21452. echo "-- dynamic libX11 -> $x11_lib"
  21453. echo "-- dynamic libX11ext -> $x11ext_lib"
  21454. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21455. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21456. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21457. else
  21458. enable_x11_shared=no
  21459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21460. SUMMARY_video="${SUMMARY_video} x11"
  21461. fi
  21462. have_video=yes
  21463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21464. printf %s "checking for XGenericEvent... " >&6; }
  21465. have_XGenericEvent=no
  21466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21467. /* end confdefs.h. */
  21468. #include <X11/Xlib.h>
  21469. int
  21470. main (void)
  21471. {
  21472. Display *display;
  21473. XEvent event;
  21474. XGenericEventCookie *cookie = &event.xcookie;
  21475. XNextEvent(display, &event);
  21476. XGetEventData(display, cookie);
  21477. XFreeEventData(display, cookie);
  21478. ;
  21479. return 0;
  21480. }
  21481. _ACEOF
  21482. if ac_fn_c_try_compile "$LINENO"
  21483. then :
  21484. have_XGenericEvent=yes
  21485. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21486. fi
  21487. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21489. printf "%s\n" "$have_XGenericEvent" >&6; }
  21490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21491. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21492. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21493. then :
  21494. printf %s "(cached) " >&6
  21495. else $as_nop
  21496. ac_check_lib_save_LIBS=$LIBS
  21497. LIBS="-lX11 $LIBS"
  21498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21499. /* end confdefs.h. */
  21500. /* Override any GCC internal prototype to avoid an error.
  21501. Use char because int might match the return type of a GCC
  21502. builtin and then its argument prototype would still apply. */
  21503. char XkbKeycodeToKeysym ();
  21504. int
  21505. main (void)
  21506. {
  21507. return XkbKeycodeToKeysym ();
  21508. ;
  21509. return 0;
  21510. }
  21511. _ACEOF
  21512. if ac_fn_c_try_link "$LINENO"
  21513. then :
  21514. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21515. else $as_nop
  21516. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21517. fi
  21518. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21519. conftest$ac_exeext conftest.$ac_ext
  21520. LIBS=$ac_check_lib_save_LIBS
  21521. fi
  21522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21523. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21524. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21525. then :
  21526. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21527. fi
  21528. # Check whether --enable-video-x11-xcursor was given.
  21529. if test ${enable_video_x11_xcursor+y}
  21530. then :
  21531. enableval=$enable_video_x11_xcursor;
  21532. else $as_nop
  21533. enable_video_x11_xcursor=yes
  21534. fi
  21535. if test x$enable_video_x11_xcursor = xyes; then
  21536. definitely_enable_video_x11_xcursor=no
  21537. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21538. "
  21539. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21540. then :
  21541. have_xcursor_h_hdr=yes
  21542. else $as_nop
  21543. have_xcursor_h_hdr=no
  21544. fi
  21545. if test x$have_xcursor_h_hdr = xyes; then
  21546. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21547. echo "-- dynamic libXcursor -> $xcursor_lib"
  21548. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21549. definitely_enable_video_x11_xcursor=yes
  21550. else
  21551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21552. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21553. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21554. then :
  21555. printf %s "(cached) " >&6
  21556. else $as_nop
  21557. ac_check_lib_save_LIBS=$LIBS
  21558. LIBS="-lXcursor $LIBS"
  21559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21560. /* end confdefs.h. */
  21561. /* Override any GCC internal prototype to avoid an error.
  21562. Use char because int might match the return type of a GCC
  21563. builtin and then its argument prototype would still apply. */
  21564. char XcursorImageCreate ();
  21565. int
  21566. main (void)
  21567. {
  21568. return XcursorImageCreate ();
  21569. ;
  21570. return 0;
  21571. }
  21572. _ACEOF
  21573. if ac_fn_c_try_link "$LINENO"
  21574. then :
  21575. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21576. else $as_nop
  21577. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21578. fi
  21579. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21580. conftest$ac_exeext conftest.$ac_ext
  21581. LIBS=$ac_check_lib_save_LIBS
  21582. fi
  21583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21584. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21585. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21586. then :
  21587. have_xcursor_lib=yes
  21588. fi
  21589. if test x$have_xcursor_lib = xyes ; then
  21590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21591. definitely_enable_video_x11_xcursor=yes
  21592. fi
  21593. fi
  21594. fi
  21595. fi
  21596. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21597. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21598. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21599. fi
  21600. # Check whether --enable-video-x11-xdbe was given.
  21601. if test ${enable_video_x11_xdbe+y}
  21602. then :
  21603. enableval=$enable_video_x11_xdbe;
  21604. else $as_nop
  21605. enable_video_x11_xdbe=yes
  21606. fi
  21607. if test x$enable_video_x11_xdbe = xyes; then
  21608. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21609. "
  21610. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21611. then :
  21612. have_dbe_h_hdr=yes
  21613. else $as_nop
  21614. have_dbe_h_hdr=no
  21615. fi
  21616. if test x$have_dbe_h_hdr = xyes; then
  21617. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21618. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21619. fi
  21620. fi
  21621. # Check whether --enable-video-x11-xinput was given.
  21622. if test ${enable_video_x11_xinput+y}
  21623. then :
  21624. enableval=$enable_video_x11_xinput;
  21625. else $as_nop
  21626. enable_video_x11_xinput=yes
  21627. fi
  21628. if test x$enable_video_x11_xinput = xyes; then
  21629. definitely_enable_video_x11_xinput=no
  21630. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21631. "
  21632. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21633. then :
  21634. have_xinput_h_hdr=yes
  21635. else $as_nop
  21636. have_xinput_h_hdr=no
  21637. fi
  21638. if test x$have_xinput_h_hdr = xyes; then
  21639. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21640. echo "-- dynamic libXi -> $xinput_lib"
  21641. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21642. definitely_enable_video_x11_xinput=yes
  21643. else
  21644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21645. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21646. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21647. then :
  21648. printf %s "(cached) " >&6
  21649. else $as_nop
  21650. ac_check_lib_save_LIBS=$LIBS
  21651. LIBS="-lXi $LIBS"
  21652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21653. /* end confdefs.h. */
  21654. /* Override any GCC internal prototype to avoid an error.
  21655. Use char because int might match the return type of a GCC
  21656. builtin and then its argument prototype would still apply. */
  21657. char XOpenDevice ();
  21658. int
  21659. main (void)
  21660. {
  21661. return XOpenDevice ();
  21662. ;
  21663. return 0;
  21664. }
  21665. _ACEOF
  21666. if ac_fn_c_try_link "$LINENO"
  21667. then :
  21668. ac_cv_lib_Xi_XOpenDevice=yes
  21669. else $as_nop
  21670. ac_cv_lib_Xi_XOpenDevice=no
  21671. fi
  21672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21673. conftest$ac_exeext conftest.$ac_ext
  21674. LIBS=$ac_check_lib_save_LIBS
  21675. fi
  21676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21677. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21678. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21679. then :
  21680. have_xinput_lib=yes
  21681. fi
  21682. if test x$have_xinput_lib = xyes ; then
  21683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21684. definitely_enable_video_x11_xinput=yes
  21685. fi
  21686. fi
  21687. fi
  21688. fi
  21689. if test x$definitely_enable_video_x11_xinput = xyes; then
  21690. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21691. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21693. printf %s "checking for xinput2 multitouch... " >&6; }
  21694. have_xinput2_multitouch=no
  21695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21696. /* end confdefs.h. */
  21697. #include <X11/Xlib.h>
  21698. #include <X11/Xproto.h>
  21699. #include <X11/extensions/XInput2.h>
  21700. int
  21701. main (void)
  21702. {
  21703. int event_type = XI_TouchBegin;
  21704. XITouchClassInfo *t;
  21705. ;
  21706. return 0;
  21707. }
  21708. _ACEOF
  21709. if ac_fn_c_try_compile "$LINENO"
  21710. then :
  21711. have_xinput2_multitouch=yes
  21712. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21713. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21714. fi
  21715. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21717. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21718. fi
  21719. # Check whether --enable-video-x11-xfixes was given.
  21720. if test ${enable_video_x11_xfixes+y}
  21721. then :
  21722. enableval=$enable_video_x11_xfixes;
  21723. else $as_nop
  21724. enable_video_x11_xfixes=yes
  21725. fi
  21726. if test x$enable_video_x11_xfixes = xyes; then
  21727. definitely_enable_video_x11_xfixes=no
  21728. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21730. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21732. /* end confdefs.h. */
  21733. #include <X11/Xlib.h>
  21734. #include <X11/Xproto.h>
  21735. #include <X11/extensions/XInput2.h>
  21736. #include <X11/extensions/Xfixes.h>
  21737. int
  21738. main (void)
  21739. {
  21740. BarrierEventID b;
  21741. ;
  21742. return 0;
  21743. }
  21744. _ACEOF
  21745. if ac_fn_c_try_compile "$LINENO"
  21746. then :
  21747. have_xfixes_h_hdr=yes
  21748. else $as_nop
  21749. have_xfixes_h_hdr=no
  21750. fi
  21751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21753. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21754. if test x$have_xfixes_h_hdr = xyes; then
  21755. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21756. echo "-- dynamic libXfixes -> $xfixes_lib"
  21757. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21758. definitely_enable_video_x11_xfixes=yes
  21759. else
  21760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21761. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21762. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21763. then :
  21764. printf %s "(cached) " >&6
  21765. else $as_nop
  21766. ac_check_lib_save_LIBS=$LIBS
  21767. LIBS="-lXfixes $LIBS"
  21768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21769. /* end confdefs.h. */
  21770. /* Override any GCC internal prototype to avoid an error.
  21771. Use char because int might match the return type of a GCC
  21772. builtin and then its argument prototype would still apply. */
  21773. char XFixesCreatePointerBarrier ();
  21774. int
  21775. main (void)
  21776. {
  21777. return XFixesCreatePointerBarrier ();
  21778. ;
  21779. return 0;
  21780. }
  21781. _ACEOF
  21782. if ac_fn_c_try_link "$LINENO"
  21783. then :
  21784. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21785. else $as_nop
  21786. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21787. fi
  21788. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21789. conftest$ac_exeext conftest.$ac_ext
  21790. LIBS=$ac_check_lib_save_LIBS
  21791. fi
  21792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21793. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21794. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21795. then :
  21796. have_xfixes_lib=yes
  21797. fi
  21798. if test x$have_xfixes_lib = xyes ; then
  21799. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21800. definitely_enable_video_x11_xfixes=yes
  21801. fi
  21802. fi
  21803. fi
  21804. fi
  21805. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21806. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21807. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21808. fi
  21809. # Check whether --enable-video-x11-xrandr was given.
  21810. if test ${enable_video_x11_xrandr+y}
  21811. then :
  21812. enableval=$enable_video_x11_xrandr;
  21813. else $as_nop
  21814. enable_video_x11_xrandr=yes
  21815. fi
  21816. if test x$enable_video_x11_xrandr = xyes; then
  21817. definitely_enable_video_x11_xrandr=no
  21818. have_xrandr_h_hdr=no
  21819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21820. /* end confdefs.h. */
  21821. #include <X11/Xlib.h>
  21822. #include <X11/extensions/Xrandr.h>
  21823. int
  21824. main (void)
  21825. {
  21826. XRRScreenResources *res = NULL;
  21827. ;
  21828. return 0;
  21829. }
  21830. _ACEOF
  21831. if ac_fn_c_try_compile "$LINENO"
  21832. then :
  21833. have_xrandr_h_hdr=yes
  21834. fi
  21835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21836. if test x$have_xrandr_h_hdr = xyes; then
  21837. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21838. echo "-- dynamic libXrandr -> $xrandr_lib"
  21839. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21840. definitely_enable_video_x11_xrandr=yes
  21841. else
  21842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21843. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21844. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21845. then :
  21846. printf %s "(cached) " >&6
  21847. else $as_nop
  21848. ac_check_lib_save_LIBS=$LIBS
  21849. LIBS="-lXrandr $LIBS"
  21850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21851. /* end confdefs.h. */
  21852. /* Override any GCC internal prototype to avoid an error.
  21853. Use char because int might match the return type of a GCC
  21854. builtin and then its argument prototype would still apply. */
  21855. char XRRQueryExtension ();
  21856. int
  21857. main (void)
  21858. {
  21859. return XRRQueryExtension ();
  21860. ;
  21861. return 0;
  21862. }
  21863. _ACEOF
  21864. if ac_fn_c_try_link "$LINENO"
  21865. then :
  21866. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21867. else $as_nop
  21868. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21869. fi
  21870. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21871. conftest$ac_exeext conftest.$ac_ext
  21872. LIBS=$ac_check_lib_save_LIBS
  21873. fi
  21874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21875. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21876. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21877. then :
  21878. have_xrandr_lib=yes
  21879. fi
  21880. if test x$have_xrandr_lib = xyes ; then
  21881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21882. definitely_enable_video_x11_xrandr=yes
  21883. fi
  21884. fi
  21885. fi
  21886. fi
  21887. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21888. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21889. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21890. fi
  21891. # Check whether --enable-video-x11-scrnsaver was given.
  21892. if test ${enable_video_x11_scrnsaver+y}
  21893. then :
  21894. enableval=$enable_video_x11_scrnsaver;
  21895. else $as_nop
  21896. enable_video_x11_scrnsaver=yes
  21897. fi
  21898. if test x$enable_video_x11_scrnsaver = xyes; then
  21899. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21900. "
  21901. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21902. then :
  21903. have_scrnsaver_h_hdr=yes
  21904. else $as_nop
  21905. have_scrnsaver_h_hdr=no
  21906. fi
  21907. if test x$have_scrnsaver_h_hdr = xyes; then
  21908. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21909. echo "-- dynamic libXss -> $xss_lib"
  21910. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21911. definitely_enable_video_x11_scrnsaver=yes
  21912. else
  21913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21914. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21915. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21916. then :
  21917. printf %s "(cached) " >&6
  21918. else $as_nop
  21919. ac_check_lib_save_LIBS=$LIBS
  21920. LIBS="-lXss $LIBS"
  21921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21922. /* end confdefs.h. */
  21923. /* Override any GCC internal prototype to avoid an error.
  21924. Use char because int might match the return type of a GCC
  21925. builtin and then its argument prototype would still apply. */
  21926. char XScreenSaverSuspend ();
  21927. int
  21928. main (void)
  21929. {
  21930. return XScreenSaverSuspend ();
  21931. ;
  21932. return 0;
  21933. }
  21934. _ACEOF
  21935. if ac_fn_c_try_link "$LINENO"
  21936. then :
  21937. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21938. else $as_nop
  21939. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21940. fi
  21941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21942. conftest$ac_exeext conftest.$ac_ext
  21943. LIBS=$ac_check_lib_save_LIBS
  21944. fi
  21945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21946. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21947. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21948. then :
  21949. have_xss_lib=yes
  21950. fi
  21951. if test x$have_xss_lib = xyes ; then
  21952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21953. definitely_enable_video_x11_scrnsaver=yes
  21954. fi
  21955. fi
  21956. fi
  21957. fi
  21958. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21959. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21960. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21961. fi
  21962. # Check whether --enable-video-x11-xshape was given.
  21963. if test ${enable_video_x11_xshape+y}
  21964. then :
  21965. enableval=$enable_video_x11_xshape;
  21966. else $as_nop
  21967. enable_video_x11_xshape=yes
  21968. fi
  21969. if test x$enable_video_x11_xshape = xyes; then
  21970. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21971. "
  21972. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21973. then :
  21974. have_shape_h_hdr=yes
  21975. else $as_nop
  21976. have_shape_h_hdr=no
  21977. fi
  21978. if test x$have_shape_h_hdr = xyes; then
  21979. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21980. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21981. fi
  21982. fi
  21983. fi
  21984. fi
  21985. if test x$have_x != xyes; then
  21986. # Prevent Mesa from including X11 headers
  21987. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21988. fi
  21989. }
  21990. CheckVivanteVideo()
  21991. {
  21992. # Check whether --enable-video-vivante was given.
  21993. if test ${enable_video_vivante+y}
  21994. then :
  21995. enableval=$enable_video_vivante;
  21996. else $as_nop
  21997. enable_video_vivante=yes
  21998. fi
  21999. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  22000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  22001. printf %s "checking for Vivante VDK API... " >&6; }
  22002. have_vivante_vdk=no
  22003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22004. /* end confdefs.h. */
  22005. #define LINUX
  22006. #define EGL_API_FB
  22007. #include <gc_vdk.h>
  22008. int
  22009. main (void)
  22010. {
  22011. ;
  22012. return 0;
  22013. }
  22014. _ACEOF
  22015. if ac_fn_c_try_compile "$LINENO"
  22016. then :
  22017. have_vivante_vdk=yes
  22018. fi
  22019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  22021. printf "%s\n" "$have_vivante_vdk" >&6; }
  22022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  22023. printf %s "checking for Vivante FB API... " >&6; }
  22024. have_vivante_egl=no
  22025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22026. /* end confdefs.h. */
  22027. #define LINUX
  22028. #define EGL_API_FB
  22029. #include <EGL/eglvivante.h>
  22030. int
  22031. main (void)
  22032. {
  22033. ;
  22034. return 0;
  22035. }
  22036. _ACEOF
  22037. if ac_fn_c_try_compile "$LINENO"
  22038. then :
  22039. have_vivante_egl=yes
  22040. fi
  22041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22043. printf "%s\n" "$have_vivante_egl" >&6; }
  22044. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22045. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22046. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22047. if test x$have_vivante_vdk = xyes; then
  22048. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22050. fi
  22051. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22052. SUMMARY_video="${SUMMARY_video} vivante"
  22053. have_video=yes
  22054. fi
  22055. fi
  22056. }
  22057. CheckHaikuVideo()
  22058. {
  22059. if test x$enable_video = xyes; then
  22060. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22061. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22062. have_video=yes
  22063. SUMMARY_video="${SUMMARY_video} haiku"
  22064. fi
  22065. }
  22066. CheckCOCOA()
  22067. {
  22068. # Check whether --enable-video-cocoa was given.
  22069. if test ${enable_video_cocoa+y}
  22070. then :
  22071. enableval=$enable_video_cocoa;
  22072. else $as_nop
  22073. enable_video_cocoa=yes
  22074. fi
  22075. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22076. save_CFLAGS="$CFLAGS"
  22077. CFLAGS="$CFLAGS -x objective-c"
  22078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22079. printf %s "checking for Cocoa framework... " >&6; }
  22080. have_cocoa=no
  22081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22082. /* end confdefs.h. */
  22083. #import <Cocoa/Cocoa.h>
  22084. int
  22085. main (void)
  22086. {
  22087. ;
  22088. return 0;
  22089. }
  22090. _ACEOF
  22091. if ac_fn_c_try_compile "$LINENO"
  22092. then :
  22093. have_cocoa=yes
  22094. fi
  22095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22097. printf "%s\n" "$have_cocoa" >&6; }
  22098. CFLAGS="$save_CFLAGS"
  22099. if test x$have_cocoa = xyes; then
  22100. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22101. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22102. SUMMARY_video="${SUMMARY_video} cocoa"
  22103. have_video=yes
  22104. fi
  22105. fi
  22106. }
  22107. CheckMETAL()
  22108. {
  22109. # Check whether --enable-video-metal was given.
  22110. if test ${enable_video_metal+y}
  22111. then :
  22112. enableval=$enable_video_metal;
  22113. else $as_nop
  22114. enable_video_metal=yes
  22115. fi
  22116. # Check whether --enable-render-metal was given.
  22117. if test ${enable_render_metal+y}
  22118. then :
  22119. enableval=$enable_render_metal;
  22120. else $as_nop
  22121. enable_render_metal=yes
  22122. fi
  22123. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22124. save_CFLAGS="$CFLAGS"
  22125. CFLAGS="$CFLAGS -x objective-c"
  22126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22127. printf %s "checking for Metal framework... " >&6; }
  22128. have_metal=no
  22129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22130. /* end confdefs.h. */
  22131. #import <Cocoa/Cocoa.h>
  22132. #import <Metal/Metal.h>
  22133. #import <QuartzCore/CAMetalLayer.h>
  22134. #if TARGET_CPU_X86
  22135. #error Metal doesn't work on this configuration
  22136. #endif
  22137. int
  22138. main (void)
  22139. {
  22140. ;
  22141. return 0;
  22142. }
  22143. _ACEOF
  22144. if ac_fn_c_try_compile "$LINENO"
  22145. then :
  22146. have_metal=yes
  22147. fi
  22148. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22149. CFLAGS="$save_CFLAGS"
  22150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22151. printf "%s\n" "$have_metal" >&6; }
  22152. if test x$have_metal = xyes; then
  22153. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22154. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22155. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22156. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22157. fi
  22158. SUMMARY_video="${SUMMARY_video} metal"
  22159. else
  22160. enable_video_metal=no
  22161. enable_render_metal=no
  22162. fi
  22163. fi
  22164. }
  22165. CheckDirectFB()
  22166. {
  22167. # Check whether --enable-video-directfb was given.
  22168. if test ${enable_video_directfb+y}
  22169. then :
  22170. enableval=$enable_video_directfb;
  22171. else $as_nop
  22172. enable_video_directfb=no
  22173. fi
  22174. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22175. pkg_failed=no
  22176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22177. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22178. if test -n "$DIRECTFB_CFLAGS"; then
  22179. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22180. elif test -n "$PKG_CONFIG"; then
  22181. if test -n "$PKG_CONFIG" && \
  22182. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22183. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22184. ac_status=$?
  22185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22186. test $ac_status = 0; }; then
  22187. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22188. test "x$?" != "x0" && pkg_failed=yes
  22189. else
  22190. pkg_failed=yes
  22191. fi
  22192. else
  22193. pkg_failed=untried
  22194. fi
  22195. if test -n "$DIRECTFB_LIBS"; then
  22196. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22197. elif test -n "$PKG_CONFIG"; then
  22198. if test -n "$PKG_CONFIG" && \
  22199. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22200. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22201. ac_status=$?
  22202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22203. test $ac_status = 0; }; then
  22204. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22205. test "x$?" != "x0" && pkg_failed=yes
  22206. else
  22207. pkg_failed=yes
  22208. fi
  22209. else
  22210. pkg_failed=untried
  22211. fi
  22212. if test $pkg_failed = yes; then
  22213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22214. printf "%s\n" "no" >&6; }
  22215. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22216. _pkg_short_errors_supported=yes
  22217. else
  22218. _pkg_short_errors_supported=no
  22219. fi
  22220. if test $_pkg_short_errors_supported = yes; then
  22221. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22222. else
  22223. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22224. fi
  22225. # Put the nasty error message in config.log where it belongs
  22226. echo "$DIRECTFB_PKG_ERRORS" >&5
  22227. video_directfb=no
  22228. elif test $pkg_failed = untried; then
  22229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22230. printf "%s\n" "no" >&6; }
  22231. video_directfb=no
  22232. else
  22233. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22234. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22236. printf "%s\n" "yes" >&6; }
  22237. video_directfb=yes
  22238. fi
  22239. if test x$video_directfb = xyes; then
  22240. # SuSE 11.1 installs directfb-config without directfb-devel
  22241. save_CPPFLAGS="$CPPFLAGS"
  22242. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22243. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22244. if test "x$ac_cv_header_directfb_h" = xyes
  22245. then :
  22246. have_directfb_hdr=yes
  22247. else $as_nop
  22248. have_directfb_hdr=no
  22249. fi
  22250. CPPFLAGS="$save_CPPFLAGS"
  22251. video_directfb=$have_directfb_hdr
  22252. fi
  22253. if test x$video_directfb = xyes; then
  22254. # Check whether --enable-directfb-shared was given.
  22255. if test ${enable_directfb_shared+y}
  22256. then :
  22257. enableval=$enable_directfb_shared;
  22258. else $as_nop
  22259. enable_directfb_shared=yes
  22260. fi
  22261. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22262. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22263. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22264. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22265. directfb_shared=no
  22266. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22267. if test x$have_loadso != xyes && \
  22268. test x$enable_directfb_shared = xyes; then
  22269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22270. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22271. fi
  22272. if test x$have_loadso = xyes && \
  22273. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22274. directfb_shared=yes
  22275. echo "-- dynamic libdirectfb -> $directfb_lib"
  22276. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22277. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22278. else
  22279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22280. SUMMARY_video="${SUMMARY_video} directfb"
  22281. fi
  22282. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22283. have_video=yes
  22284. fi
  22285. fi
  22286. }
  22287. CheckKMSDRM()
  22288. {
  22289. # Check whether --enable-video-kmsdrm was given.
  22290. if test ${enable_video_kmsdrm+y}
  22291. then :
  22292. enableval=$enable_video_kmsdrm;
  22293. else $as_nop
  22294. enable_video_kmsdrm=yes
  22295. fi
  22296. if test x$enable_video = xyes && \
  22297. test x$enable_video_kmsdrm = xyes && \
  22298. test x$video_opengl_egl = xyes; then
  22299. video_kmsdrm=no
  22300. pkg_failed=no
  22301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22302. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22303. if test -n "$LIBDRM_CFLAGS"; then
  22304. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22305. elif test -n "$PKG_CONFIG"; then
  22306. if test -n "$PKG_CONFIG" && \
  22307. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22308. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22309. ac_status=$?
  22310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22311. test $ac_status = 0; }; then
  22312. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22313. test "x$?" != "x0" && pkg_failed=yes
  22314. else
  22315. pkg_failed=yes
  22316. fi
  22317. else
  22318. pkg_failed=untried
  22319. fi
  22320. if test -n "$LIBDRM_LIBS"; then
  22321. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22322. elif test -n "$PKG_CONFIG"; then
  22323. if test -n "$PKG_CONFIG" && \
  22324. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22325. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22326. ac_status=$?
  22327. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22328. test $ac_status = 0; }; then
  22329. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22330. test "x$?" != "x0" && pkg_failed=yes
  22331. else
  22332. pkg_failed=yes
  22333. fi
  22334. else
  22335. pkg_failed=untried
  22336. fi
  22337. if test $pkg_failed = yes; then
  22338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22339. printf "%s\n" "no" >&6; }
  22340. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22341. _pkg_short_errors_supported=yes
  22342. else
  22343. _pkg_short_errors_supported=no
  22344. fi
  22345. if test $_pkg_short_errors_supported = yes; then
  22346. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22347. else
  22348. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22349. fi
  22350. # Put the nasty error message in config.log where it belongs
  22351. echo "$LIBDRM_PKG_ERRORS" >&5
  22352. libdrm_avail=no
  22353. elif test $pkg_failed = untried; then
  22354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22355. printf "%s\n" "no" >&6; }
  22356. libdrm_avail=no
  22357. else
  22358. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22359. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22361. printf "%s\n" "yes" >&6; }
  22362. libdrm_avail=yes
  22363. fi
  22364. pkg_failed=no
  22365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22366. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22367. if test -n "$LIBGBM_CFLAGS"; then
  22368. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22369. elif test -n "$PKG_CONFIG"; then
  22370. if test -n "$PKG_CONFIG" && \
  22371. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22372. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22373. ac_status=$?
  22374. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22375. test $ac_status = 0; }; then
  22376. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22377. test "x$?" != "x0" && pkg_failed=yes
  22378. else
  22379. pkg_failed=yes
  22380. fi
  22381. else
  22382. pkg_failed=untried
  22383. fi
  22384. if test -n "$LIBGBM_LIBS"; then
  22385. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22386. elif test -n "$PKG_CONFIG"; then
  22387. if test -n "$PKG_CONFIG" && \
  22388. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22389. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22390. ac_status=$?
  22391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22392. test $ac_status = 0; }; then
  22393. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22394. test "x$?" != "x0" && pkg_failed=yes
  22395. else
  22396. pkg_failed=yes
  22397. fi
  22398. else
  22399. pkg_failed=untried
  22400. fi
  22401. if test $pkg_failed = yes; then
  22402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22403. printf "%s\n" "no" >&6; }
  22404. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22405. _pkg_short_errors_supported=yes
  22406. else
  22407. _pkg_short_errors_supported=no
  22408. fi
  22409. if test $_pkg_short_errors_supported = yes; then
  22410. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22411. else
  22412. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22413. fi
  22414. # Put the nasty error message in config.log where it belongs
  22415. echo "$LIBGBM_PKG_ERRORS" >&5
  22416. libgbm_avail=no
  22417. elif test $pkg_failed = untried; then
  22418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22419. printf "%s\n" "no" >&6; }
  22420. libgbm_avail=no
  22421. else
  22422. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22423. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22425. printf "%s\n" "yes" >&6; }
  22426. libgbm_avail=yes
  22427. fi
  22428. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22429. video_kmsdrm=yes
  22430. fi
  22431. if test x$video_kmsdrm = xyes; then
  22432. # Check whether --enable-kmsdrm-shared was given.
  22433. if test ${enable_kmsdrm_shared+y}
  22434. then :
  22435. enableval=$enable_kmsdrm_shared;
  22436. else $as_nop
  22437. enable_kmsdrm_shared=yes
  22438. fi
  22439. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22440. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22441. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22443. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22444. kmsdrm_shared=no
  22445. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22446. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22447. if test x$have_loadso != xyes && \
  22448. test x$enable_kmsdrm_shared = xyes; then
  22449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22450. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22451. fi
  22452. if test x$have_loadso = xyes && \
  22453. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22454. kmsdrm_shared=yes
  22455. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22456. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22457. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22458. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22459. else
  22460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22461. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22462. fi
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22464. printf "%s\n" "$kmsdrm_shared" >&6; }
  22465. if test x$kmsdrm_shared = xyes; then
  22466. echo "-- dynamic libdrm -> $drm_lib"
  22467. echo "-- dynamic libgbm -> $gbm_lib"
  22468. fi
  22469. have_video=yes
  22470. fi
  22471. fi
  22472. }
  22473. CheckDummyVideo()
  22474. {
  22475. # Check whether --enable-video-dummy was given.
  22476. if test ${enable_video_dummy+y}
  22477. then :
  22478. enableval=$enable_video_dummy;
  22479. else $as_nop
  22480. enable_video_dummy=yes
  22481. fi
  22482. if test x$enable_video_dummy = xyes; then
  22483. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22484. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22485. have_video=yes
  22486. SUMMARY_video="${SUMMARY_video} dummy"
  22487. fi
  22488. }
  22489. CheckOffscreenVideo()
  22490. {
  22491. # Check whether --enable-video-offscreen was given.
  22492. if test ${enable_video_offscreen+y}
  22493. then :
  22494. enableval=$enable_video_offscreen;
  22495. else $as_nop
  22496. enable_video_offscreen=yes
  22497. fi
  22498. if test x$enable_video_offscreen = xyes; then
  22499. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22500. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22501. have_video=yes
  22502. SUMMARY_video="${SUMMARY_video} offscreen"
  22503. fi
  22504. }
  22505. CheckQNXVideo()
  22506. {
  22507. if test x$enable_video = xyes; then
  22508. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22509. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22510. have_video=yes
  22511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22512. SUMMARY_video="${SUMMARY_video} qnx"
  22513. fi
  22514. }
  22515. CheckQNXAudio()
  22516. {
  22517. if test x$enable_audio = xyes; then
  22518. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22519. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22520. have_audio=yes
  22521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22522. SUMMARY_audio="${SUMMARY_audio} qsa"
  22523. fi
  22524. }
  22525. # Check whether --enable-video-opengl was given.
  22526. if test ${enable_video_opengl+y}
  22527. then :
  22528. enableval=$enable_video_opengl;
  22529. else $as_nop
  22530. enable_video_opengl=yes
  22531. fi
  22532. CheckGLX()
  22533. {
  22534. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22536. printf %s "checking for GLX support... " >&6; }
  22537. video_opengl_glx=no
  22538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22539. /* end confdefs.h. */
  22540. #include <GL/glx.h>
  22541. int
  22542. main (void)
  22543. {
  22544. ;
  22545. return 0;
  22546. }
  22547. _ACEOF
  22548. if ac_fn_c_try_compile "$LINENO"
  22549. then :
  22550. video_opengl_glx=yes
  22551. fi
  22552. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22554. printf "%s\n" "$video_opengl_glx" >&6; }
  22555. if test x$video_opengl_glx = xyes; then
  22556. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22557. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22558. fi
  22559. fi
  22560. }
  22561. # Check whether --enable-video-opengles was given.
  22562. if test ${enable_video_opengles+y}
  22563. then :
  22564. enableval=$enable_video_opengles;
  22565. else $as_nop
  22566. enable_video_opengles=yes
  22567. fi
  22568. # Check whether --enable-video-opengles1 was given.
  22569. if test ${enable_video_opengles1+y}
  22570. then :
  22571. enableval=$enable_video_opengles1;
  22572. else $as_nop
  22573. enable_video_opengles1=yes
  22574. fi
  22575. # Check whether --enable-video-opengles2 was given.
  22576. if test ${enable_video_opengles2+y}
  22577. then :
  22578. enableval=$enable_video_opengles2;
  22579. else $as_nop
  22580. enable_video_opengles2=yes
  22581. fi
  22582. CheckEGL()
  22583. {
  22584. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22586. printf %s "checking for EGL support... " >&6; }
  22587. video_opengl_egl=no
  22588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22589. /* end confdefs.h. */
  22590. #define LINUX
  22591. #define EGL_API_FB
  22592. #define MESA_EGL_NO_X11_HEADERS
  22593. #define EGL_NO_X11
  22594. #include <EGL/egl.h>
  22595. #include <EGL/eglext.h>
  22596. int
  22597. main (void)
  22598. {
  22599. ;
  22600. return 0;
  22601. }
  22602. _ACEOF
  22603. if ac_fn_c_try_compile "$LINENO"
  22604. then :
  22605. video_opengl_egl=yes
  22606. fi
  22607. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22609. printf "%s\n" "$video_opengl_egl" >&6; }
  22610. if test x$video_opengl_egl = xyes; then
  22611. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22612. fi
  22613. fi
  22614. }
  22615. CheckOpenGL()
  22616. {
  22617. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22619. printf %s "checking for OpenGL headers... " >&6; }
  22620. video_opengl=no
  22621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22622. /* end confdefs.h. */
  22623. #include <GL/gl.h>
  22624. #include <GL/glext.h>
  22625. int
  22626. main (void)
  22627. {
  22628. ;
  22629. return 0;
  22630. }
  22631. _ACEOF
  22632. if ac_fn_c_try_compile "$LINENO"
  22633. then :
  22634. video_opengl=yes
  22635. fi
  22636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22638. printf "%s\n" "$video_opengl" >&6; }
  22639. if test x$video_opengl = xyes; then
  22640. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22641. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22642. SUMMARY_video="${SUMMARY_video} opengl"
  22643. fi
  22644. fi
  22645. }
  22646. CheckOpenGLES()
  22647. {
  22648. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22649. if test x$enable_video_opengles1 = xyes; then
  22650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22651. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22652. video_opengles_v1=no
  22653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22654. /* end confdefs.h. */
  22655. #include <GLES/gl.h>
  22656. #include <GLES/glext.h>
  22657. int
  22658. main (void)
  22659. {
  22660. ;
  22661. return 0;
  22662. }
  22663. _ACEOF
  22664. if ac_fn_c_try_compile "$LINENO"
  22665. then :
  22666. video_opengles_v1=yes
  22667. fi
  22668. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22670. printf "%s\n" "$video_opengles_v1" >&6; }
  22671. if test x$video_opengles_v1 = xyes; then
  22672. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22673. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22674. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22675. fi
  22676. fi
  22677. if test x$enable_video_opengles2 = xyes; then
  22678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22679. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22680. video_opengles_v2=no
  22681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22682. /* end confdefs.h. */
  22683. #include <GLES2/gl2.h>
  22684. #include <GLES2/gl2ext.h>
  22685. int
  22686. main (void)
  22687. {
  22688. ;
  22689. return 0;
  22690. }
  22691. _ACEOF
  22692. if ac_fn_c_try_compile "$LINENO"
  22693. then :
  22694. video_opengles_v2=yes
  22695. fi
  22696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22698. printf "%s\n" "$video_opengles_v2" >&6; }
  22699. if test x$video_opengles_v2 = xyes; then
  22700. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22701. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22702. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22703. fi
  22704. fi
  22705. fi
  22706. }
  22707. CheckWINDOWSGL()
  22708. {
  22709. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22710. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22711. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22712. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22713. SUMMARY_video="${SUMMARY_video} opengl"
  22714. fi
  22715. }
  22716. CheckWINDOWSGLES()
  22717. {
  22718. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22720. printf %s "checking for EGL support... " >&6; }
  22721. video_opengl_egl=no
  22722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22723. /* end confdefs.h. */
  22724. #include <EGL/egl.h>
  22725. int
  22726. main (void)
  22727. {
  22728. ;
  22729. return 0;
  22730. }
  22731. _ACEOF
  22732. if ac_fn_c_try_compile "$LINENO"
  22733. then :
  22734. video_opengl_egl=yes
  22735. fi
  22736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22738. printf "%s\n" "$video_opengl_egl" >&6; }
  22739. if test x$video_opengl_egl = xyes; then
  22740. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22741. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22742. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22743. fi
  22744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22745. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22746. video_opengles_v2=no
  22747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22748. /* end confdefs.h. */
  22749. #include <GLES2/gl2.h>
  22750. #include <GLES2/gl2ext.h>
  22751. int
  22752. main (void)
  22753. {
  22754. ;
  22755. return 0;
  22756. }
  22757. _ACEOF
  22758. if ac_fn_c_try_compile "$LINENO"
  22759. then :
  22760. video_opengles_v2=yes
  22761. fi
  22762. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22764. printf "%s\n" "$video_opengles_v2" >&6; }
  22765. if test x$video_opengles_v2 = xyes; then
  22766. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22767. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22768. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22769. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22770. fi
  22771. fi
  22772. }
  22773. CheckHaikuGL()
  22774. {
  22775. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22776. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22777. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22778. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22779. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22780. SUMMARY_video="${SUMMARY_video} opengl"
  22781. fi
  22782. }
  22783. CheckMacGL()
  22784. {
  22785. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22786. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22787. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22788. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22789. SUMMARY_video="${SUMMARY_video} opengl"
  22790. fi
  22791. }
  22792. CheckMacGLES()
  22793. {
  22794. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22795. video_opengl_egl=yes
  22796. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22797. video_opengles_v2=yes
  22798. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22799. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22800. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22801. fi
  22802. }
  22803. CheckEmscriptenGLES()
  22804. {
  22805. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22807. printf %s "checking for EGL support... " >&6; }
  22808. video_opengl_egl=no
  22809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22810. /* end confdefs.h. */
  22811. #include <EGL/egl.h>
  22812. int
  22813. main (void)
  22814. {
  22815. ;
  22816. return 0;
  22817. }
  22818. _ACEOF
  22819. if ac_fn_c_try_compile "$LINENO"
  22820. then :
  22821. video_opengl_egl=yes
  22822. fi
  22823. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22825. printf "%s\n" "$video_opengl_egl" >&6; }
  22826. if test x$video_opengl_egl = xyes; then
  22827. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22828. fi
  22829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22830. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22831. video_opengles_v2=no
  22832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22833. /* end confdefs.h. */
  22834. #include <GLES2/gl2.h>
  22835. #include <GLES2/gl2ext.h>
  22836. int
  22837. main (void)
  22838. {
  22839. ;
  22840. return 0;
  22841. }
  22842. _ACEOF
  22843. if ac_fn_c_try_compile "$LINENO"
  22844. then :
  22845. video_opengles_v2=yes
  22846. fi
  22847. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22849. printf "%s\n" "$video_opengles_v2" >&6; }
  22850. if test x$video_opengles_v2 = xyes; then
  22851. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22852. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22853. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22854. fi
  22855. fi
  22856. }
  22857. # Check whether --enable-video-vulkan was given.
  22858. if test ${enable_video_vulkan+y}
  22859. then :
  22860. enableval=$enable_video_vulkan;
  22861. else $as_nop
  22862. enable_video_vulkan=yes
  22863. fi
  22864. CheckVulkan()
  22865. {
  22866. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22867. case "$host" in
  22868. *-*-android*)
  22869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22870. /* end confdefs.h. */
  22871. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22872. #error Vulkan doesn't work on this configuration
  22873. #endif
  22874. int
  22875. main (void)
  22876. {
  22877. ;
  22878. return 0;
  22879. }
  22880. _ACEOF
  22881. if ac_fn_c_try_compile "$LINENO"
  22882. then :
  22883. else $as_nop
  22884. enable_video_vulkan=no
  22885. fi
  22886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22887. ;;
  22888. *-*-solaris*)
  22889. enable_video_vulkan=no
  22890. ;;
  22891. *-*-darwin*)
  22892. save_CFLAGS="$CFLAGS"
  22893. CFLAGS="$CFLAGS -x objective-c"
  22894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22895. /* end confdefs.h. */
  22896. #include <Cocoa/Cocoa.h>
  22897. #include <Metal/Metal.h>
  22898. #include <QuartzCore/CAMetalLayer.h>
  22899. #if TARGET_CPU_X86
  22900. #error Vulkan doesn't work on this configuration
  22901. #endif
  22902. int
  22903. main (void)
  22904. {
  22905. ;
  22906. return 0;
  22907. }
  22908. _ACEOF
  22909. if ac_fn_c_try_compile "$LINENO"
  22910. then :
  22911. else $as_nop
  22912. enable_video_vulkan=no
  22913. fi
  22914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22915. CFLAGS="$save_CFLAGS"
  22916. ;;
  22917. *)
  22918. ;;
  22919. esac
  22920. if test x$enable_video_vulkan = xno; then
  22921. # For reasons I am totally unable to see, I get an undefined macro error if
  22922. # I put this in the AC_TRY_COMPILE.
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22924. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22925. fi
  22926. fi
  22927. if test x$have_loadso != xyes; then
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22929. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22930. enable_video_vulkan=no
  22931. fi
  22932. if test x$enable_video_vulkan = xyes; then
  22933. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22934. SUMMARY_video="${SUMMARY_video} vulkan"
  22935. fi
  22936. }
  22937. CheckInputEvents()
  22938. {
  22939. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22940. if test "x$ac_cv_header_linux_input_h" = xyes
  22941. then :
  22942. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22943. fi
  22944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22945. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22946. use_input_events=no
  22947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22948. /* end confdefs.h. */
  22949. #include <linux/input.h>
  22950. int
  22951. main (void)
  22952. {
  22953. #ifndef EVIOCGNAME
  22954. #error EVIOCGNAME() ioctl not available
  22955. #endif
  22956. ;
  22957. return 0;
  22958. }
  22959. _ACEOF
  22960. if ac_fn_c_try_compile "$LINENO"
  22961. then :
  22962. use_input_events=yes
  22963. fi
  22964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22966. printf "%s\n" "$use_input_events" >&6; }
  22967. if test x$use_input_events = xyes; then
  22968. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22969. SUMMARY_input="${SUMMARY_input} linuxev"
  22970. fi
  22971. }
  22972. CheckInputKD()
  22973. {
  22974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22975. printf %s "checking for Linux kd.h... " >&6; }
  22976. use_input_kd=no
  22977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22978. /* end confdefs.h. */
  22979. #include <linux/kd.h>
  22980. #include <linux/keyboard.h>
  22981. #include <sys/ioctl.h>
  22982. int
  22983. main (void)
  22984. {
  22985. struct kbentry kbe;
  22986. kbe.kb_table = KG_CTRL;
  22987. ioctl(0, KDGKBENT, &kbe);
  22988. ;
  22989. return 0;
  22990. }
  22991. _ACEOF
  22992. if ac_fn_c_try_compile "$LINENO"
  22993. then :
  22994. use_input_kd=yes
  22995. fi
  22996. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22998. printf "%s\n" "$use_input_kd" >&6; }
  22999. if test x$use_input_kd = xyes; then
  23000. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  23001. SUMMARY_input="${SUMMARY_input} linuxkd"
  23002. fi
  23003. }
  23004. CheckInputKBIO()
  23005. {
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  23007. printf %s "checking for FreeBSD kbio.h... " >&6; }
  23008. use_input_kbio=no
  23009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23010. /* end confdefs.h. */
  23011. #include <sys/kbio.h>
  23012. #include <sys/ioctl.h>
  23013. int
  23014. main (void)
  23015. {
  23016. accentmap_t accTable;
  23017. ioctl(0, KDENABIO, 1);
  23018. ;
  23019. return 0;
  23020. }
  23021. _ACEOF
  23022. if ac_fn_c_try_compile "$LINENO"
  23023. then :
  23024. use_input_kbio=yes
  23025. fi
  23026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  23028. printf "%s\n" "$use_input_kbio" >&6; }
  23029. if test x$use_input_kbio = xyes; then
  23030. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23031. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23032. fi
  23033. }
  23034. CheckInputWSCONS()
  23035. {
  23036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23037. printf %s "checking for OpenBSD wscons... " >&6; }
  23038. use_input_wscons=no
  23039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23040. /* end confdefs.h. */
  23041. #include <sys/time.h>
  23042. #include <dev/wscons/wsconsio.h>
  23043. #include <dev/wscons/wsksymdef.h>
  23044. #include <dev/wscons/wsksymvar.h>
  23045. #include <sys/ioctl.h>
  23046. int
  23047. main (void)
  23048. {
  23049. struct wskbd_map_data data;
  23050. ioctl(0, WSKBDIO_GETMAP, &data);
  23051. ;
  23052. return 0;
  23053. }
  23054. _ACEOF
  23055. if ac_fn_c_try_compile "$LINENO"
  23056. then :
  23057. use_input_wscons=yes
  23058. fi
  23059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23061. printf "%s\n" "$use_input_wscons" >&6; }
  23062. if test x$use_input_wscons = xyes; then
  23063. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23064. SUMMARY_input="${SUMMARY_input} wscons"
  23065. fi
  23066. }
  23067. CheckLibUDev()
  23068. {
  23069. # Check whether --enable-libudev was given.
  23070. if test ${enable_libudev+y}
  23071. then :
  23072. enableval=$enable_libudev;
  23073. else $as_nop
  23074. enable_libudev=yes
  23075. fi
  23076. if test x$enable_libudev = xyes; then
  23077. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23078. if test "x$ac_cv_header_libudev_h" = xyes
  23079. then :
  23080. have_libudev_h_hdr=yes
  23081. else $as_nop
  23082. have_libudev_h_hdr=no
  23083. fi
  23084. if test x$have_libudev_h_hdr = xyes; then
  23085. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23086. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23087. if test x$udev_lib != x; then
  23088. echo "-- dynamic udev -> $udev_lib"
  23089. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23090. fi
  23091. fi
  23092. fi
  23093. }
  23094. CheckDBus()
  23095. {
  23096. # Check whether --enable-dbus was given.
  23097. if test ${enable_dbus+y}
  23098. then :
  23099. enableval=$enable_dbus;
  23100. else $as_nop
  23101. enable_dbus=yes
  23102. fi
  23103. if test x$enable_dbus = xyes; then
  23104. pkg_failed=no
  23105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23106. printf %s "checking for dbus-1... " >&6; }
  23107. if test -n "$DBUS_CFLAGS"; then
  23108. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23109. elif test -n "$PKG_CONFIG"; then
  23110. if test -n "$PKG_CONFIG" && \
  23111. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23112. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23113. ac_status=$?
  23114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23115. test $ac_status = 0; }; then
  23116. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23117. test "x$?" != "x0" && pkg_failed=yes
  23118. else
  23119. pkg_failed=yes
  23120. fi
  23121. else
  23122. pkg_failed=untried
  23123. fi
  23124. if test -n "$DBUS_LIBS"; then
  23125. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23126. elif test -n "$PKG_CONFIG"; then
  23127. if test -n "$PKG_CONFIG" && \
  23128. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23129. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23130. ac_status=$?
  23131. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23132. test $ac_status = 0; }; then
  23133. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23134. test "x$?" != "x0" && pkg_failed=yes
  23135. else
  23136. pkg_failed=yes
  23137. fi
  23138. else
  23139. pkg_failed=untried
  23140. fi
  23141. if test $pkg_failed = yes; then
  23142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23143. printf "%s\n" "no" >&6; }
  23144. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23145. _pkg_short_errors_supported=yes
  23146. else
  23147. _pkg_short_errors_supported=no
  23148. fi
  23149. if test $_pkg_short_errors_supported = yes; then
  23150. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23151. else
  23152. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23153. fi
  23154. # Put the nasty error message in config.log where it belongs
  23155. echo "$DBUS_PKG_ERRORS" >&5
  23156. have_dbus=no
  23157. elif test $pkg_failed = untried; then
  23158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23159. printf "%s\n" "no" >&6; }
  23160. have_dbus=no
  23161. else
  23162. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23163. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23165. printf "%s\n" "yes" >&6; }
  23166. have_dbus=yes
  23167. fi
  23168. save_CPPFLAGS="$CPPFLAGS"
  23169. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23170. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23171. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23172. then :
  23173. have_dbus_dbus_h_hdr=yes
  23174. else $as_nop
  23175. have_dbus_dbus_h_hdr=no
  23176. fi
  23177. CPPFLAGS="$save_CPPFLAGS"
  23178. if test x$have_dbus_dbus_h_hdr = xyes; then
  23179. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23180. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23181. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23182. fi
  23183. fi
  23184. }
  23185. CheckIME()
  23186. {
  23187. # Check whether --enable-ime was given.
  23188. if test ${enable_ime+y}
  23189. then :
  23190. enableval=$enable_ime;
  23191. else $as_nop
  23192. enable_ime=yes
  23193. fi
  23194. if test x$enable_ime = xyes; then
  23195. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23196. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23197. fi
  23198. }
  23199. CheckInotify()
  23200. {
  23201. save_LIBS="$LIBS"
  23202. case "$host" in
  23203. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23204. ;;
  23205. esac
  23206. for ac_header in sys/inotify.h
  23207. do :
  23208. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23209. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23210. then :
  23211. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23212. have_inotify_inotify_h_hdr=yes
  23213. fi
  23214. done
  23215. for ac_func in inotify_init
  23216. do :
  23217. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23218. if test "x$ac_cv_func_inotify_init" = xyes
  23219. then :
  23220. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23221. have_inotify=yes
  23222. fi
  23223. done
  23224. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23225. if test "x$ac_cv_func_inotify_init1" = xyes
  23226. then :
  23227. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23228. fi
  23229. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23230. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23231. case "$host" in
  23232. *-*-freebsd*|*-*-dragonfly*)
  23233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23234. ;;
  23235. esac
  23236. fi
  23237. LIBS="$save_LIBS"
  23238. }
  23239. CheckIBus()
  23240. {
  23241. # Check whether --enable-ibus was given.
  23242. if test ${enable_ibus+y}
  23243. then :
  23244. enableval=$enable_ibus;
  23245. else $as_nop
  23246. enable_ibus=yes
  23247. fi
  23248. if test x$enable_ibus = xyes; then
  23249. pkg_failed=no
  23250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23251. printf %s "checking for ibus-1.0... " >&6; }
  23252. if test -n "$IBUS_CFLAGS"; then
  23253. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23254. elif test -n "$PKG_CONFIG"; then
  23255. if test -n "$PKG_CONFIG" && \
  23256. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23257. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23258. ac_status=$?
  23259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23260. test $ac_status = 0; }; then
  23261. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23262. test "x$?" != "x0" && pkg_failed=yes
  23263. else
  23264. pkg_failed=yes
  23265. fi
  23266. else
  23267. pkg_failed=untried
  23268. fi
  23269. if test -n "$IBUS_LIBS"; then
  23270. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23271. elif test -n "$PKG_CONFIG"; then
  23272. if test -n "$PKG_CONFIG" && \
  23273. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23274. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23275. ac_status=$?
  23276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23277. test $ac_status = 0; }; then
  23278. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23279. test "x$?" != "x0" && pkg_failed=yes
  23280. else
  23281. pkg_failed=yes
  23282. fi
  23283. else
  23284. pkg_failed=untried
  23285. fi
  23286. if test $pkg_failed = yes; then
  23287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23288. printf "%s\n" "no" >&6; }
  23289. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23290. _pkg_short_errors_supported=yes
  23291. else
  23292. _pkg_short_errors_supported=no
  23293. fi
  23294. if test $_pkg_short_errors_supported = yes; then
  23295. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23296. else
  23297. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23298. fi
  23299. # Put the nasty error message in config.log where it belongs
  23300. echo "$IBUS_PKG_ERRORS" >&5
  23301. have_ibus=no
  23302. elif test $pkg_failed = untried; then
  23303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23304. printf "%s\n" "no" >&6; }
  23305. have_ibus=no
  23306. else
  23307. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23308. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23310. printf "%s\n" "yes" >&6; }
  23311. have_ibus=yes
  23312. fi
  23313. save_CPPFLAGS="$CPPFLAGS"
  23314. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23315. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23316. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23317. then :
  23318. have_ibus_ibus_h_hdr=yes
  23319. else $as_nop
  23320. have_ibus_ibus_h_hdr=no
  23321. fi
  23322. CPPFLAGS="$save_CPPFLAGS"
  23323. if test x$have_ibus_ibus_h_hdr = xyes; then
  23324. if test x$enable_ime != xyes; then
  23325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23326. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23327. have_ibus_ibus_h_hdr=no
  23328. elif test x$enable_dbus != xyes; then
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23330. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23331. have_ibus_ibus_h_hdr=no
  23332. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23334. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23335. have_ibus_ibus_h_hdr=no
  23336. else
  23337. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23338. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23339. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23340. fi
  23341. fi
  23342. fi
  23343. }
  23344. CheckFcitx()
  23345. {
  23346. # Check whether --enable-fcitx was given.
  23347. if test ${enable_fcitx+y}
  23348. then :
  23349. enableval=$enable_fcitx;
  23350. else $as_nop
  23351. enable_fcitx=yes
  23352. fi
  23353. if test x$enable_fcitx = xyes; then
  23354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23355. printf %s "checking for fcitx support... " >&6; }
  23356. have_fcitx=no
  23357. if test x$enable_ime != xyes; then
  23358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23359. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23360. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23362. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23363. else
  23364. have_fcitx=yes
  23365. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23366. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23367. fi
  23368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23369. printf "%s\n" "$have_fcitx" >&6; }
  23370. fi
  23371. }
  23372. CheckJoystickMFI()
  23373. {
  23374. # Check whether --enable-joystick-mfi was given.
  23375. if test ${enable_joystick_mfi+y}
  23376. then :
  23377. enableval=$enable_joystick_mfi;
  23378. else $as_nop
  23379. enable_joystick_mfi=yes
  23380. fi
  23381. if test x$enable_joystick_mfi = xyes; then
  23382. save_CFLAGS="$CFLAGS"
  23383. save_LDFLAGS="$LDFLAGS"
  23384. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23385. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23387. printf %s "checking for GameController framework... " >&6; }
  23388. enable_joystick_mfi=no
  23389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23390. /* end confdefs.h. */
  23391. #include <AvailabilityMacros.h>
  23392. #include <TargetConditionals.h>
  23393. #import <GameController/GameController.h>
  23394. int
  23395. main (void)
  23396. {
  23397. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23398. #error GameController framework doesn't work on this configuration
  23399. #endif
  23400. #if TARGET_CPU_X86
  23401. #error GameController framework doesn't work on this configuration
  23402. #endif
  23403. ;
  23404. return 0;
  23405. }
  23406. _ACEOF
  23407. if ac_fn_c_try_link "$LINENO"
  23408. then :
  23409. enable_joystick_mfi=yes
  23410. fi
  23411. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23412. conftest$ac_exeext conftest.$ac_ext
  23413. CFLAGS="$save_CFLAGS"
  23414. LDFLAGS="$save_LDFLAGS"
  23415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23416. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23417. if test x$enable_joystick_mfi = xyes; then
  23418. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23419. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23421. fi
  23422. fi
  23423. }
  23424. CheckPTHREAD()
  23425. {
  23426. case "$host" in
  23427. *-*-emscripten*)
  23428. enable_pthreads_default=no
  23429. ;;
  23430. *)
  23431. enable_pthreads_default=yes
  23432. ;;
  23433. esac
  23434. # Check whether --enable-pthreads was given.
  23435. if test ${enable_pthreads+y}
  23436. then :
  23437. enableval=$enable_pthreads;
  23438. else $as_nop
  23439. enable_pthreads=maybe
  23440. fi
  23441. # Check whether --enable-pthread-sem was given.
  23442. if test ${enable_pthread_sem+y}
  23443. then :
  23444. enableval=$enable_pthread_sem;
  23445. else $as_nop
  23446. enable_pthread_sem=maybe
  23447. fi
  23448. if test x$enable_pthreads = xmaybe; then
  23449. enable_pthreads=$enable_pthreads_default
  23450. fi
  23451. if test x$enable_pthread_sem = xmaybe; then
  23452. enable_pthread_sem=$enable_pthreads
  23453. fi
  23454. case "$host" in
  23455. *-*-android*)
  23456. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23457. pthread_lib=""
  23458. ;;
  23459. *-*-linux*|*-*-uclinux*)
  23460. pthread_cflags="-D_REENTRANT"
  23461. pthread_lib="-lpthread"
  23462. ;;
  23463. *-*-bsdi*)
  23464. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23465. pthread_lib=""
  23466. ;;
  23467. *-*-darwin*)
  23468. pthread_cflags="-D_THREAD_SAFE"
  23469. # causes Carbon.p complaints?
  23470. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23471. ;;
  23472. *-*-freebsd*|*-*-dragonfly*)
  23473. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23474. pthread_lib="-pthread"
  23475. ;;
  23476. *-*-netbsd*)
  23477. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23478. pthread_lib="-lpthread"
  23479. ;;
  23480. *-*-openbsd*)
  23481. pthread_cflags="-D_REENTRANT"
  23482. pthread_lib="-lpthread"
  23483. ;;
  23484. *-*-solaris2.9)
  23485. # From Solaris 9+, posix4's preferred name is rt.
  23486. pthread_cflags="-D_REENTRANT"
  23487. pthread_lib="-lpthread -lrt"
  23488. ;;
  23489. *-*-solaris2.10)
  23490. # Solaris 10+ merged pthread into libc.
  23491. pthread_cflags="-D_REENTRANT"
  23492. pthread_lib="-lrt"
  23493. ;;
  23494. *-*-solaris*)
  23495. # Solaris 11+ merged rt into libc.
  23496. pthread_cflags="-D_REENTRANT"
  23497. pthread_lib=""
  23498. ;;
  23499. *-*-sysv5*)
  23500. pthread_cflags="-D_REENTRANT -Kthread"
  23501. pthread_lib=""
  23502. ;;
  23503. *-*-aix*)
  23504. pthread_cflags="-D_REENTRANT -mthreads"
  23505. pthread_lib="-lpthread"
  23506. ;;
  23507. *-*-hpux11*)
  23508. pthread_cflags="-D_REENTRANT"
  23509. pthread_lib="-L/usr/lib -lpthread"
  23510. ;;
  23511. *-*-haiku*)
  23512. pthread_cflags="-D_REENTRANT"
  23513. pthread_lib=""
  23514. ;;
  23515. *-*-nto*)
  23516. pthread_cflags="-D_REENTRANT"
  23517. pthread_lib=""
  23518. ;;
  23519. *-*-emscripten*)
  23520. pthread_cflags="-D_REENTRANT -pthread"
  23521. pthread_lib="-pthread"
  23522. ;;
  23523. *)
  23524. pthread_cflags="-D_REENTRANT"
  23525. pthread_lib="-lpthread"
  23526. ;;
  23527. esac
  23528. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23529. # Save the original compiler flags and libraries
  23530. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23531. # Add the pthread compiler flags and libraries
  23532. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23533. # Check to see if we have pthread support on this system
  23534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23535. printf %s "checking for pthreads... " >&6; }
  23536. use_pthreads=no
  23537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23538. /* end confdefs.h. */
  23539. #include <pthread.h>
  23540. int
  23541. main (void)
  23542. {
  23543. pthread_attr_t type;
  23544. pthread_attr_init(&type);
  23545. ;
  23546. return 0;
  23547. }
  23548. _ACEOF
  23549. if ac_fn_c_try_link "$LINENO"
  23550. then :
  23551. use_pthreads=yes
  23552. fi
  23553. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23554. conftest$ac_exeext conftest.$ac_ext
  23555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23556. printf "%s\n" "$use_pthreads" >&6; }
  23557. # Restore the compiler flags and libraries
  23558. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23559. # Do futher testing if we have pthread support...
  23560. if test x$use_pthreads = xyes; then
  23561. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23562. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23563. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23564. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23565. # Save the original compiler flags and libraries
  23566. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23567. # Add the pthread compiler flags and libraries
  23568. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23569. # Check to see if recursive mutexes are available
  23570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23571. printf %s "checking for recursive mutexes... " >&6; }
  23572. has_recursive_mutexes=no
  23573. if test x$has_recursive_mutexes = xno; then
  23574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23575. /* end confdefs.h. */
  23576. #define _GNU_SOURCE 1
  23577. #include <pthread.h>
  23578. int
  23579. main (void)
  23580. {
  23581. pthread_mutexattr_t attr;
  23582. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23583. ;
  23584. return 0;
  23585. }
  23586. _ACEOF
  23587. if ac_fn_c_try_link "$LINENO"
  23588. then :
  23589. has_recursive_mutexes=yes
  23590. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23591. fi
  23592. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23593. conftest$ac_exeext conftest.$ac_ext
  23594. fi
  23595. if test x$has_recursive_mutexes = xno; then
  23596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23597. /* end confdefs.h. */
  23598. #define _GNU_SOURCE 1
  23599. #include <pthread.h>
  23600. int
  23601. main (void)
  23602. {
  23603. pthread_mutexattr_t attr;
  23604. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23605. ;
  23606. return 0;
  23607. }
  23608. _ACEOF
  23609. if ac_fn_c_try_link "$LINENO"
  23610. then :
  23611. has_recursive_mutexes=yes
  23612. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23613. fi
  23614. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23615. conftest$ac_exeext conftest.$ac_ext
  23616. fi
  23617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23618. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23619. # Check to see if pthread semaphore support is missing
  23620. if test x$enable_pthread_sem = xyes; then
  23621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23622. printf %s "checking for pthread semaphores... " >&6; }
  23623. have_pthread_sem=no
  23624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23625. /* end confdefs.h. */
  23626. #include <pthread.h>
  23627. #include <semaphore.h>
  23628. int
  23629. main (void)
  23630. {
  23631. ;
  23632. return 0;
  23633. }
  23634. _ACEOF
  23635. if ac_fn_c_try_compile "$LINENO"
  23636. then :
  23637. have_pthread_sem=yes
  23638. fi
  23639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23641. printf "%s\n" "$have_pthread_sem" >&6; }
  23642. fi
  23643. if test x$have_pthread_sem = xyes; then
  23644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23645. printf %s "checking for sem_timedwait... " >&6; }
  23646. have_sem_timedwait=no
  23647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23648. /* end confdefs.h. */
  23649. #include <pthread.h>
  23650. #include <semaphore.h>
  23651. int
  23652. main (void)
  23653. {
  23654. sem_timedwait(NULL, NULL);
  23655. ;
  23656. return 0;
  23657. }
  23658. _ACEOF
  23659. if ac_fn_c_try_link "$LINENO"
  23660. then :
  23661. have_sem_timedwait=yes
  23662. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23663. fi
  23664. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23665. conftest$ac_exeext conftest.$ac_ext
  23666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23667. printf "%s\n" "$have_sem_timedwait" >&6; }
  23668. fi
  23669. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23670. "
  23671. if test "x$ac_cv_header_pthread_np_h" = xyes
  23672. then :
  23673. have_pthread_np_h=yes
  23674. else $as_nop
  23675. have_pthread_np_h=no
  23676. fi
  23677. if test x$have_pthread_np_h = xyes; then
  23678. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23679. fi
  23680. # Check to see if pthread naming is available
  23681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23682. printf %s "checking for pthread_setname_np... " >&6; }
  23683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23684. /* end confdefs.h. */
  23685. /* Override any GCC internal prototype to avoid an error.
  23686. Use char because int might match the return type of a GCC
  23687. builtin and then its argument prototype would still apply. */
  23688. char pthread_setname_np ();
  23689. int
  23690. main (void)
  23691. {
  23692. return pthread_setname_np ();
  23693. ;
  23694. return 0;
  23695. }
  23696. _ACEOF
  23697. if ac_fn_c_try_link "$LINENO"
  23698. then :
  23699. has_pthread_setname_np=yes
  23700. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23701. else $as_nop
  23702. has_pthread_setname_np=no
  23703. fi
  23704. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23705. conftest$ac_exeext conftest.$ac_ext
  23706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23707. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23709. printf %s "checking for pthread_set_name_np... " >&6; }
  23710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23711. /* end confdefs.h. */
  23712. /* Override any GCC internal prototype to avoid an error.
  23713. Use char because int might match the return type of a GCC
  23714. builtin and then its argument prototype would still apply. */
  23715. char pthread_set_name_np ();
  23716. int
  23717. main (void)
  23718. {
  23719. return pthread_set_name_np ();
  23720. ;
  23721. return 0;
  23722. }
  23723. _ACEOF
  23724. if ac_fn_c_try_link "$LINENO"
  23725. then :
  23726. has_pthread_set_name_np=yes
  23727. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23728. else $as_nop
  23729. has_pthread_set_name_np=no
  23730. fi
  23731. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23732. conftest$ac_exeext conftest.$ac_ext
  23733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23734. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23735. # Restore the compiler flags and libraries
  23736. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23737. # Basic thread creation functions
  23738. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23739. # Semaphores
  23740. # We can fake these with mutexes and condition variables if necessary
  23741. if test x$have_pthread_sem = xyes; then
  23742. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23743. else
  23744. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23745. fi
  23746. # Mutexes
  23747. # We can fake these with semaphores if necessary
  23748. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23749. # Condition variables
  23750. # We can fake these with semaphores and mutexes if necessary
  23751. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23752. # Thread local storage
  23753. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23754. have_threads=yes
  23755. fi
  23756. fi
  23757. }
  23758. CheckWINDOWS()
  23759. {
  23760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23761. printf %s "checking Windows compiler... " >&6; }
  23762. have_win32_gcc=no
  23763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23764. /* end confdefs.h. */
  23765. #include <windows.h>
  23766. int
  23767. main (void)
  23768. {
  23769. ;
  23770. return 0;
  23771. }
  23772. _ACEOF
  23773. if ac_fn_c_try_compile "$LINENO"
  23774. then :
  23775. have_win32_gcc=yes
  23776. fi
  23777. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23779. printf "%s\n" "$have_win32_gcc" >&6; }
  23780. if test x$have_win32_gcc != xyes; then
  23781. as_fn_error $? "
  23782. *** Your compiler ($CC) does not produce Windows executables!
  23783. " "$LINENO" 5
  23784. fi
  23785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23786. printf %s "checking Windows CE... " >&6; }
  23787. have_wince=no
  23788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23789. /* end confdefs.h. */
  23790. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23791. #error This is not Windows CE
  23792. #endif
  23793. int
  23794. main (void)
  23795. {
  23796. ;
  23797. return 0;
  23798. }
  23799. _ACEOF
  23800. if ac_fn_c_try_compile "$LINENO"
  23801. then :
  23802. have_wince=yes
  23803. as_fn_error $? "
  23804. *** Sorry, Windows CE is no longer supported.
  23805. " "$LINENO" 5
  23806. fi
  23807. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23809. printf "%s\n" "$have_wince" >&6; }
  23810. # headers needed elsewhere
  23811. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23812. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23813. then :
  23814. have_tpcshrd_h=yes
  23815. fi
  23816. if test x$have_tpcshrd_h = xyes; then
  23817. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23818. fi
  23819. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23820. if test "x$ac_cv_header_roapi_h" = xyes
  23821. then :
  23822. have_roapi_h=yes
  23823. fi
  23824. if test x$have_roapi_h = xyes; then
  23825. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23826. fi
  23827. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23828. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23829. then :
  23830. have_shellscalingapi_h=yes
  23831. fi
  23832. if test x$shellscalingapi_h = xyes; then
  23833. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23834. fi
  23835. }
  23836. CheckOS2()
  23837. {
  23838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23839. printf %s "checking OS/2 compiler... " >&6; }
  23840. have_os2_gcc=no
  23841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23842. /* end confdefs.h. */
  23843. #include <os2.h>
  23844. int
  23845. main (void)
  23846. {
  23847. ;
  23848. return 0;
  23849. }
  23850. _ACEOF
  23851. if ac_fn_c_try_compile "$LINENO"
  23852. then :
  23853. have_os2_gcc=yes
  23854. fi
  23855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23857. printf "%s\n" "$have_os2_gcc" >&6; }
  23858. if test x$have_os2_gcc != xyes; then
  23859. as_fn_error $? "
  23860. *** Your compiler ($CC) does not produce OS/2 executables!
  23861. " "$LINENO" 5
  23862. fi
  23863. }
  23864. CheckDIRECTX()
  23865. {
  23866. # Check whether --enable-directx was given.
  23867. if test ${enable_directx+y}
  23868. then :
  23869. enableval=$enable_directx;
  23870. else $as_nop
  23871. enable_directx=yes
  23872. fi
  23873. if test x$enable_directx = xyes; then
  23874. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23875. if test "x$ac_cv_header_d3d9_h" = xyes
  23876. then :
  23877. have_d3d=yes
  23878. fi
  23879. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23880. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23881. then :
  23882. have_d3d11=yes
  23883. fi
  23884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23885. printf %s "checking for compatible d3d12 headers... " >&6; }
  23886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23887. /* end confdefs.h. */
  23888. #include <d3d12.h>
  23889. #include <d3d12sdklayers.h>
  23890. ID3D12Device1 *device;
  23891. int
  23892. main (void)
  23893. {
  23894. ;
  23895. return 0;
  23896. }
  23897. _ACEOF
  23898. if ac_fn_c_try_compile "$LINENO"
  23899. then :
  23900. have_d3d12=yes
  23901. else $as_nop
  23902. have_d3d12=no
  23903. fi
  23904. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23906. printf "%s\n" "$have_d3d12" >&6; }
  23907. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23908. if test "x$ac_cv_header_ddraw_h" = xyes
  23909. then :
  23910. have_ddraw=yes
  23911. fi
  23912. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23913. if test "x$ac_cv_header_dsound_h" = xyes
  23914. then :
  23915. have_dsound=yes
  23916. fi
  23917. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23918. if test "x$ac_cv_header_dinput_h" = xyes
  23919. then :
  23920. have_dinput=yes
  23921. fi
  23922. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23923. if test "x$ac_cv_header_dxgi_h" = xyes
  23924. then :
  23925. have_dxgi=yes
  23926. fi
  23927. if test x$have_ddraw = xyes; then
  23928. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23929. fi
  23930. if test x$have_dinput = xyes; then
  23931. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23932. fi
  23933. if test x$have_dsound = xyes; then
  23934. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23935. fi
  23936. if test x$have_dxgi = xyes; then
  23937. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23938. fi
  23939. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23940. # FIXME: ...so force it off for now.
  23941. case "$host" in
  23942. *-*-cygwin*)
  23943. have_dinput=false
  23944. ;;
  23945. esac
  23946. fi
  23947. # Check whether --enable-xinput was given.
  23948. if test ${enable_xinput+y}
  23949. then :
  23950. enableval=$enable_xinput;
  23951. else $as_nop
  23952. enable_xinput=yes
  23953. fi
  23954. if test x$enable_xinput = xyes; then
  23955. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23956. if test "x$ac_cv_header_xinput_h" = xyes
  23957. then :
  23958. have_xinput=yes
  23959. fi
  23960. if test x$have_xinput = xyes; then
  23961. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23962. fi
  23963. fi
  23964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23965. printf %s "checking for windows.gaming.input.h... " >&6; }
  23966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23967. /* end confdefs.h. */
  23968. #define COBJMACROS
  23969. #include <windows.gaming.input.h>
  23970. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23971. int
  23972. main (void)
  23973. {
  23974. ;
  23975. return 0;
  23976. }
  23977. _ACEOF
  23978. if ac_fn_c_try_compile "$LINENO"
  23979. then :
  23980. have_wgi=yes
  23981. else $as_nop
  23982. have_wgi=no
  23983. fi
  23984. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23986. printf "%s\n" "$have_wgi" >&6; }
  23987. if test x$have_wgi = xyes; then
  23988. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23989. fi
  23990. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23991. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23992. then :
  23993. have_wasapi=yes
  23994. fi
  23995. if test x$have_wasapi = xyes; then
  23996. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23997. fi
  23998. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23999. if test "x$ac_cv_header_audioclient_h" = xyes
  24000. then :
  24001. else $as_nop
  24002. have_wasapi=no
  24003. fi
  24004. if test x$have_wasapi = xyes; then
  24005. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  24006. fi
  24007. # Check whether --enable-wasapi was given.
  24008. if test ${enable_wasapi+y}
  24009. then :
  24010. enableval=$enable_wasapi;
  24011. else $as_nop
  24012. enable_wasapi=yes
  24013. fi
  24014. }
  24015. CheckDLOPEN()
  24016. {
  24017. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  24018. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  24019. if test "x$ac_cv_header_dlfcn_h" = xyes
  24020. then :
  24021. have_dlfcn_h=yes
  24022. else $as_nop
  24023. have_dlfcn_h=no
  24024. fi
  24025. have_dlopen=no
  24026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  24027. printf %s "checking for dlopen in -lc... " >&6; }
  24028. if test ${ac_cv_lib_c_dlopen+y}
  24029. then :
  24030. printf %s "(cached) " >&6
  24031. else $as_nop
  24032. ac_check_lib_save_LIBS=$LIBS
  24033. LIBS="-lc $LIBS"
  24034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24035. /* end confdefs.h. */
  24036. /* Override any GCC internal prototype to avoid an error.
  24037. Use char because int might match the return type of a GCC
  24038. builtin and then its argument prototype would still apply. */
  24039. char dlopen ();
  24040. int
  24041. main (void)
  24042. {
  24043. return dlopen ();
  24044. ;
  24045. return 0;
  24046. }
  24047. _ACEOF
  24048. if ac_fn_c_try_link "$LINENO"
  24049. then :
  24050. ac_cv_lib_c_dlopen=yes
  24051. else $as_nop
  24052. ac_cv_lib_c_dlopen=no
  24053. fi
  24054. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24055. conftest$ac_exeext conftest.$ac_ext
  24056. LIBS=$ac_check_lib_save_LIBS
  24057. fi
  24058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24059. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24060. if test "x$ac_cv_lib_c_dlopen" = xyes
  24061. then :
  24062. have_dlopen=yes
  24063. else $as_nop
  24064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24065. printf %s "checking for dlopen in -ldl... " >&6; }
  24066. if test ${ac_cv_lib_dl_dlopen+y}
  24067. then :
  24068. printf %s "(cached) " >&6
  24069. else $as_nop
  24070. ac_check_lib_save_LIBS=$LIBS
  24071. LIBS="-ldl $LIBS"
  24072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24073. /* end confdefs.h. */
  24074. /* Override any GCC internal prototype to avoid an error.
  24075. Use char because int might match the return type of a GCC
  24076. builtin and then its argument prototype would still apply. */
  24077. char dlopen ();
  24078. int
  24079. main (void)
  24080. {
  24081. return dlopen ();
  24082. ;
  24083. return 0;
  24084. }
  24085. _ACEOF
  24086. if ac_fn_c_try_link "$LINENO"
  24087. then :
  24088. ac_cv_lib_dl_dlopen=yes
  24089. else $as_nop
  24090. ac_cv_lib_dl_dlopen=no
  24091. fi
  24092. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24093. conftest$ac_exeext conftest.$ac_ext
  24094. LIBS=$ac_check_lib_save_LIBS
  24095. fi
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24097. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24098. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24099. then :
  24100. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24101. fi
  24102. fi
  24103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24104. printf %s "checking for dlopen... " >&6; }
  24105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24106. printf "%s\n" "$have_dlopen" >&6; }
  24107. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24108. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24109. if test x$enable_loadso = xyes; then
  24110. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24111. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24112. have_loadso=yes
  24113. fi
  24114. fi
  24115. }
  24116. CheckO_CLOEXEC()
  24117. {
  24118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24119. printf %s "checking for O_CLOEXEC... " >&6; }
  24120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24121. /* end confdefs.h. */
  24122. #include <fcntl.h>
  24123. int flag = O_CLOEXEC;
  24124. int
  24125. main (void)
  24126. {
  24127. ;
  24128. return 0;
  24129. }
  24130. _ACEOF
  24131. if ac_fn_c_try_compile "$LINENO"
  24132. then :
  24133. have_o_cloexec=yes
  24134. else $as_nop
  24135. have_o_cloexec=no
  24136. fi
  24137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24139. printf "%s\n" "$have_o_cloexec" >&6; }
  24140. if test $have_o_cloexec = yes; then
  24141. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24142. fi
  24143. }
  24144. CheckUSBHID()
  24145. {
  24146. case "$host" in
  24147. *-*-*bsd*|*-*-dragonfly*)
  24148. if test x$enable_joystick = xyes; then
  24149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24150. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24151. if test ${ac_cv_lib_usbhid_hid_init+y}
  24152. then :
  24153. printf %s "(cached) " >&6
  24154. else $as_nop
  24155. ac_check_lib_save_LIBS=$LIBS
  24156. LIBS="-lusbhid $LIBS"
  24157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24158. /* end confdefs.h. */
  24159. /* Override any GCC internal prototype to avoid an error.
  24160. Use char because int might match the return type of a GCC
  24161. builtin and then its argument prototype would still apply. */
  24162. char hid_init ();
  24163. int
  24164. main (void)
  24165. {
  24166. return hid_init ();
  24167. ;
  24168. return 0;
  24169. }
  24170. _ACEOF
  24171. if ac_fn_c_try_link "$LINENO"
  24172. then :
  24173. ac_cv_lib_usbhid_hid_init=yes
  24174. else $as_nop
  24175. ac_cv_lib_usbhid_hid_init=no
  24176. fi
  24177. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24178. conftest$ac_exeext conftest.$ac_ext
  24179. LIBS=$ac_check_lib_save_LIBS
  24180. fi
  24181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24182. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24183. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24184. then :
  24185. have_libusbhid=yes
  24186. fi
  24187. if test x$have_libusbhid = xyes; then
  24188. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24189. if test "x$ac_cv_header_usbhid_h" = xyes
  24190. then :
  24191. USB_CFLAGS="-DHAVE_USBHID_H"
  24192. fi
  24193. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24194. if test "x$ac_cv_header_libusbhid_h" = xyes
  24195. then :
  24196. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24197. fi
  24198. USB_LIBS="$USB_LIBS -lusbhid"
  24199. else
  24200. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24201. if test "x$ac_cv_header_usb_h" = xyes
  24202. then :
  24203. USB_CFLAGS="-DHAVE_USB_H"
  24204. fi
  24205. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24206. if test "x$ac_cv_header_libusb_h" = xyes
  24207. then :
  24208. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24209. fi
  24210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24211. printf %s "checking for hid_init in -lusb... " >&6; }
  24212. if test ${ac_cv_lib_usb_hid_init+y}
  24213. then :
  24214. printf %s "(cached) " >&6
  24215. else $as_nop
  24216. ac_check_lib_save_LIBS=$LIBS
  24217. LIBS="-lusb $LIBS"
  24218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24219. /* end confdefs.h. */
  24220. /* Override any GCC internal prototype to avoid an error.
  24221. Use char because int might match the return type of a GCC
  24222. builtin and then its argument prototype would still apply. */
  24223. char hid_init ();
  24224. int
  24225. main (void)
  24226. {
  24227. return hid_init ();
  24228. ;
  24229. return 0;
  24230. }
  24231. _ACEOF
  24232. if ac_fn_c_try_link "$LINENO"
  24233. then :
  24234. ac_cv_lib_usb_hid_init=yes
  24235. else $as_nop
  24236. ac_cv_lib_usb_hid_init=no
  24237. fi
  24238. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24239. conftest$ac_exeext conftest.$ac_ext
  24240. LIBS=$ac_check_lib_save_LIBS
  24241. fi
  24242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24243. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24244. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24245. then :
  24246. USB_LIBS="$USB_LIBS -lusb"
  24247. fi
  24248. fi
  24249. save_CFLAGS="$CFLAGS"
  24250. CFLAGS="$CFLAGS $USB_CFLAGS"
  24251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24252. printf %s "checking for usbhid... " >&6; }
  24253. have_usbhid=no
  24254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24255. /* end confdefs.h. */
  24256. #include <sys/types.h>
  24257. #if defined(HAVE_USB_H)
  24258. #include <usb.h>
  24259. #endif
  24260. #ifdef __DragonFly__
  24261. # include <bus/u4b/usb.h>
  24262. # include <bus/u4b/usbhid.h>
  24263. #else
  24264. # include <dev/usb/usb.h>
  24265. # include <dev/usb/usbhid.h>
  24266. #endif
  24267. #if defined(HAVE_USBHID_H)
  24268. #include <usbhid.h>
  24269. #elif defined(HAVE_LIBUSB_H)
  24270. #include <libusb.h>
  24271. #elif defined(HAVE_LIBUSBHID_H)
  24272. #include <libusbhid.h>
  24273. #endif
  24274. int
  24275. main (void)
  24276. {
  24277. struct report_desc *repdesc;
  24278. struct usb_ctl_report *repbuf;
  24279. hid_kind_t hidkind;
  24280. ;
  24281. return 0;
  24282. }
  24283. _ACEOF
  24284. if ac_fn_c_try_compile "$LINENO"
  24285. then :
  24286. have_usbhid=yes
  24287. fi
  24288. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24290. printf "%s\n" "$have_usbhid" >&6; }
  24291. if test x$have_usbhid = xyes; then
  24292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24293. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24294. have_usbhid_ucr_data=no
  24295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24296. /* end confdefs.h. */
  24297. #include <sys/types.h>
  24298. #if defined(HAVE_USB_H)
  24299. #include <usb.h>
  24300. #endif
  24301. #ifdef __DragonFly__
  24302. # include <bus/u4b/usb.h>
  24303. # include <bus/u4b/usbhid.h>
  24304. #else
  24305. # include <dev/usb/usb.h>
  24306. # include <dev/usb/usbhid.h>
  24307. #endif
  24308. #if defined(HAVE_USBHID_H)
  24309. #include <usbhid.h>
  24310. #elif defined(HAVE_LIBUSB_H)
  24311. #include <libusb.h>
  24312. #elif defined(HAVE_LIBUSBHID_H)
  24313. #include <libusbhid.h>
  24314. #endif
  24315. int
  24316. main (void)
  24317. {
  24318. struct usb_ctl_report buf;
  24319. if (buf.ucr_data) { }
  24320. ;
  24321. return 0;
  24322. }
  24323. _ACEOF
  24324. if ac_fn_c_try_compile "$LINENO"
  24325. then :
  24326. have_usbhid_ucr_data=yes
  24327. fi
  24328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24329. if test x$have_usbhid_ucr_data = xyes; then
  24330. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24331. fi
  24332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24333. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24335. printf %s "checking for new usbhid API... " >&6; }
  24336. have_usbhid_new=no
  24337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24338. /* end confdefs.h. */
  24339. #include <sys/types.h>
  24340. #if defined(HAVE_USB_H)
  24341. #include <usb.h>
  24342. #endif
  24343. #ifdef __DragonFly__
  24344. #include <bus/u4b/usb.h>
  24345. #include <bus/u4b/usbhid.h>
  24346. #else
  24347. #include <dev/usb/usb.h>
  24348. #include <dev/usb/usbhid.h>
  24349. #endif
  24350. #if defined(HAVE_USBHID_H)
  24351. #include <usbhid.h>
  24352. #elif defined(HAVE_LIBUSB_H)
  24353. #include <libusb.h>
  24354. #elif defined(HAVE_LIBUSBHID_H)
  24355. #include <libusbhid.h>
  24356. #endif
  24357. int
  24358. main (void)
  24359. {
  24360. report_desc_t d;
  24361. hid_start_parse(d, 1, 1);
  24362. ;
  24363. return 0;
  24364. }
  24365. _ACEOF
  24366. if ac_fn_c_try_compile "$LINENO"
  24367. then :
  24368. have_usbhid_new=yes
  24369. fi
  24370. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24371. if test x$have_usbhid_new = xyes; then
  24372. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24373. fi
  24374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24375. printf "%s\n" "$have_usbhid_new" >&6; }
  24376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24377. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24378. have_machine_joystick=no
  24379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24380. /* end confdefs.h. */
  24381. #include <machine/joystick.h>
  24382. int
  24383. main (void)
  24384. {
  24385. struct joystick t;
  24386. ;
  24387. return 0;
  24388. }
  24389. _ACEOF
  24390. if ac_fn_c_try_compile "$LINENO"
  24391. then :
  24392. have_machine_joystick=yes
  24393. fi
  24394. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24395. if test x$have_machine_joystick = xyes; then
  24396. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24397. fi
  24398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24399. printf "%s\n" "$have_machine_joystick" >&6; }
  24400. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24401. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24402. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24404. have_joystick=yes
  24405. fi
  24406. CFLAGS="$save_CFLAGS"
  24407. fi
  24408. ;;
  24409. esac
  24410. }
  24411. CheckHIDAPI()
  24412. {
  24413. # Check whether --enable-hidapi-joystick was given.
  24414. if test ${enable_hidapi_joystick+y}
  24415. then :
  24416. enableval=$enable_hidapi_joystick;
  24417. else $as_nop
  24418. enable_hidapi_joystick=yes
  24419. fi
  24420. # Check whether --enable-hidapi-libusb was given.
  24421. if test ${enable_hidapi_libusb+y}
  24422. then :
  24423. enableval=$enable_hidapi_libusb;
  24424. else $as_nop
  24425. enable_hidapi_libusb=maybe
  24426. fi
  24427. if test x$enable_hidapi = xyes; then
  24428. case "$host" in
  24429. # libusb does not support iOS
  24430. *-ios-* )
  24431. enable_hidapi_libusb=no
  24432. ;;
  24433. # On the other hand, *BSD specifically uses libusb only
  24434. *-*-*bsd* )
  24435. enable_hidapi_libusb=yes
  24436. require_hidapi_libusb=yes
  24437. ;;
  24438. *-*-os2* )
  24439. enable_hidapi_libusb=yes
  24440. ;;
  24441. esac
  24442. hidapi_support=yes
  24443. if test x$enable_hidapi_libusb = xyes; then
  24444. pkg_failed=no
  24445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24446. printf %s "checking for libusb-1.0... " >&6; }
  24447. if test -n "$LIBUSB_CFLAGS"; then
  24448. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24449. elif test -n "$PKG_CONFIG"; then
  24450. if test -n "$PKG_CONFIG" && \
  24451. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24452. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24453. ac_status=$?
  24454. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24455. test $ac_status = 0; }; then
  24456. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24457. test "x$?" != "x0" && pkg_failed=yes
  24458. else
  24459. pkg_failed=yes
  24460. fi
  24461. else
  24462. pkg_failed=untried
  24463. fi
  24464. if test -n "$LIBUSB_LIBS"; then
  24465. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24466. elif test -n "$PKG_CONFIG"; then
  24467. if test -n "$PKG_CONFIG" && \
  24468. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24469. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24470. ac_status=$?
  24471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24472. test $ac_status = 0; }; then
  24473. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24474. test "x$?" != "x0" && pkg_failed=yes
  24475. else
  24476. pkg_failed=yes
  24477. fi
  24478. else
  24479. pkg_failed=untried
  24480. fi
  24481. if test $pkg_failed = yes; then
  24482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24483. printf "%s\n" "no" >&6; }
  24484. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24485. _pkg_short_errors_supported=yes
  24486. else
  24487. _pkg_short_errors_supported=no
  24488. fi
  24489. if test $_pkg_short_errors_supported = yes; then
  24490. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24491. else
  24492. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24493. fi
  24494. # Put the nasty error message in config.log where it belongs
  24495. echo "$LIBUSB_PKG_ERRORS" >&5
  24496. have_libusb=no
  24497. elif test $pkg_failed = untried; then
  24498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24499. printf "%s\n" "no" >&6; }
  24500. have_libusb=no
  24501. else
  24502. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24503. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24505. printf "%s\n" "yes" >&6; }
  24506. have_libusb=yes
  24507. fi
  24508. save_CPPFLAGS="$CPPFLAGS"
  24509. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24510. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24511. if test "x$ac_cv_header_libusb_h" = xyes
  24512. then :
  24513. have_libusb_h=yes
  24514. else $as_nop
  24515. have_libusb_h=no
  24516. fi
  24517. CPPFLAGS="$save_CPPFLAGS"
  24518. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24519. hidapi_support=no
  24520. fi
  24521. fi
  24522. if test x$hidapi_support = xyes; then
  24523. if test x$have_libusb_h = xyes; then
  24524. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24525. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24526. if test x$require_hidapi_libusb = xyes; then
  24527. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24528. else
  24529. if test x$have_loadso != xyes; then
  24530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24531. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24532. fi
  24533. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24534. libusb_lib=""
  24535. case "$host" in
  24536. *-*-darwin* )
  24537. libusb_lib="libusb-1.0.0.dylib"
  24538. ;;
  24539. *-*-cygwin* | *-*-mingw* )
  24540. libusb_lib="libusb-1.0.dll"
  24541. ;;
  24542. *-*-os2* )
  24543. libusb_lib="usb100.dll"
  24544. ;;
  24545. esac
  24546. if test x$libusb_lib = x; then
  24547. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24548. fi
  24549. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24550. fi
  24551. fi
  24552. fi
  24553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24554. printf %s "checking for hidapi joystick support... " >&6; }
  24555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24556. printf "%s\n" "$hidapi_support" >&6; }
  24557. fi
  24558. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24559. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24560. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24561. fi
  24562. }
  24563. CheckClockGettime()
  24564. {
  24565. # Check whether --enable-clock_gettime was given.
  24566. if test ${enable_clock_gettime+y}
  24567. then :
  24568. enableval=$enable_clock_gettime;
  24569. else $as_nop
  24570. enable_clock_gettime=yes
  24571. fi
  24572. if test x$enable_clock_gettime = xyes; then
  24573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24574. printf %s "checking for clock_gettime in -lc... " >&6; }
  24575. if test ${ac_cv_lib_c_clock_gettime+y}
  24576. then :
  24577. printf %s "(cached) " >&6
  24578. else $as_nop
  24579. ac_check_lib_save_LIBS=$LIBS
  24580. LIBS="-lc $LIBS"
  24581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24582. /* end confdefs.h. */
  24583. /* Override any GCC internal prototype to avoid an error.
  24584. Use char because int might match the return type of a GCC
  24585. builtin and then its argument prototype would still apply. */
  24586. char clock_gettime ();
  24587. int
  24588. main (void)
  24589. {
  24590. return clock_gettime ();
  24591. ;
  24592. return 0;
  24593. }
  24594. _ACEOF
  24595. if ac_fn_c_try_link "$LINENO"
  24596. then :
  24597. ac_cv_lib_c_clock_gettime=yes
  24598. else $as_nop
  24599. ac_cv_lib_c_clock_gettime=no
  24600. fi
  24601. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24602. conftest$ac_exeext conftest.$ac_ext
  24603. LIBS=$ac_check_lib_save_LIBS
  24604. fi
  24605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24606. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24607. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24608. then :
  24609. have_clock_gettime=yes
  24610. fi
  24611. if test x$have_clock_gettime = xyes; then
  24612. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24613. else
  24614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24615. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24616. if test ${ac_cv_lib_rt_clock_gettime+y}
  24617. then :
  24618. printf %s "(cached) " >&6
  24619. else $as_nop
  24620. ac_check_lib_save_LIBS=$LIBS
  24621. LIBS="-lrt $LIBS"
  24622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24623. /* end confdefs.h. */
  24624. /* Override any GCC internal prototype to avoid an error.
  24625. Use char because int might match the return type of a GCC
  24626. builtin and then its argument prototype would still apply. */
  24627. char clock_gettime ();
  24628. int
  24629. main (void)
  24630. {
  24631. return clock_gettime ();
  24632. ;
  24633. return 0;
  24634. }
  24635. _ACEOF
  24636. if ac_fn_c_try_link "$LINENO"
  24637. then :
  24638. ac_cv_lib_rt_clock_gettime=yes
  24639. else $as_nop
  24640. ac_cv_lib_rt_clock_gettime=no
  24641. fi
  24642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24643. conftest$ac_exeext conftest.$ac_ext
  24644. LIBS=$ac_check_lib_save_LIBS
  24645. fi
  24646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24647. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24648. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24649. then :
  24650. have_clock_gettime=yes
  24651. fi
  24652. if test x$have_clock_gettime = xyes; then
  24653. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24654. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24655. fi
  24656. fi
  24657. fi
  24658. }
  24659. CheckLinuxVersion()
  24660. {
  24661. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24662. if test "x$ac_cv_header_linux_version_h" = xyes
  24663. then :
  24664. have_linux_version_h=yes
  24665. fi
  24666. if test x$have_linux_version_h = xyes; then
  24667. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24668. fi
  24669. }
  24670. CheckRPATH()
  24671. {
  24672. # Check whether --enable-rpath was given.
  24673. if test ${enable_rpath+y}
  24674. then :
  24675. enableval=$enable_rpath;
  24676. else $as_nop
  24677. enable_rpath=yes
  24678. fi
  24679. }
  24680. CheckEventSignals()
  24681. {
  24682. # Check whether --enable-backgrounding-signal was given.
  24683. if test ${enable_backgrounding_signal+y}
  24684. then :
  24685. enableval=$enable_backgrounding_signal;
  24686. else $as_nop
  24687. enable_backgrounding_signal=no
  24688. fi
  24689. if test x$enable_backgrounding_signal != xno; then
  24690. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24691. fi
  24692. # Check whether --enable-foregrounding-signal was given.
  24693. if test ${enable_foregrounding_signal+y}
  24694. then :
  24695. enableval=$enable_foregrounding_signal;
  24696. else $as_nop
  24697. enable_foregrounding_signal=no
  24698. fi
  24699. if test x$enable_foregrounding_signal != xno; then
  24700. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24701. fi
  24702. }
  24703. CheckVirtualJoystick()
  24704. {
  24705. # Check whether --enable-joystick-virtual was given.
  24706. if test ${enable_joystick_virtual+y}
  24707. then :
  24708. enableval=$enable_joystick_virtual;
  24709. else $as_nop
  24710. enable_joystick_virtual=yes
  24711. fi
  24712. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24713. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24714. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24715. have_joystick_virtual=yes
  24716. fi
  24717. }
  24718. CheckWarnAll
  24719. CheckUnusedLocalTypedefs
  24720. CheckNoStrictAliasing
  24721. CheckEventSignals
  24722. have_locale=no
  24723. case "$host" in
  24724. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24725. case "$host" in
  24726. *-*-android*)
  24727. # Android
  24728. ARCH=android
  24729. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24730. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24731. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24732. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24734. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24735. if test x$enable_video = xyes; then
  24736. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24737. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24738. SUMMARY_video="${SUMMARY_video} android"
  24739. have_video=yes
  24740. fi
  24741. ;;
  24742. *-*-linux*) ARCH=linux ;;
  24743. *-*-uclinux*) ARCH=linux ;;
  24744. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24745. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24746. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24747. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24748. *-*-bsdi*) ARCH=bsdi ;;
  24749. *-*-freebsd*) ARCH=freebsd ;;
  24750. *-*-dragonfly*) ARCH=freebsd ;;
  24751. *-*-netbsd*) ARCH=netbsd ;;
  24752. *-*-openbsd*) ARCH=openbsd ;;
  24753. *-*-sysv5*) ARCH=sysv5 ;;
  24754. *-*-solaris*) ARCH=solaris ;;
  24755. *-*-hpux*) ARCH=hpux ;;
  24756. *-*-aix*) ARCH=aix ;;
  24757. *-*-minix*) ARCH=minix ;;
  24758. *-*-nto*) ARCH=nto
  24759. CheckQNXVideo
  24760. ;;
  24761. esac
  24762. CheckVisibilityHidden
  24763. CheckWerror
  24764. CheckDeclarationAfterStatement
  24765. CheckDummyVideo
  24766. CheckOffscreenVideo
  24767. CheckDiskAudio
  24768. CheckDummyAudio
  24769. CheckDLOPEN
  24770. CheckARM
  24771. CheckNEON
  24772. CheckO_CLOEXEC
  24773. CheckOSS
  24774. CheckALSA
  24775. CheckPipewire
  24776. CheckPulseAudio
  24777. CheckJACK
  24778. CheckARTSC
  24779. CheckESD
  24780. CheckNAS
  24781. CheckSNDIO
  24782. CheckFusionSound
  24783. CheckLibSampleRate
  24784. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24785. CheckRPI
  24786. CheckX11
  24787. CheckDirectFB
  24788. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24789. CheckEGL
  24790. CheckKMSDRM
  24791. CheckGLX
  24792. CheckOpenGL
  24793. CheckOpenGLES
  24794. CheckVulkan
  24795. CheckWayland
  24796. CheckInputEvents
  24797. CheckLibUDev
  24798. CheckDBus
  24799. CheckIME
  24800. CheckInotify
  24801. CheckIBus
  24802. CheckFcitx
  24803. case $ARCH in
  24804. linux)
  24805. CheckInputKD
  24806. ;;
  24807. freebsd)
  24808. CheckInputKBIO
  24809. ;;
  24810. openbsd|netbsd)
  24811. CheckInputWSCONS
  24812. ;;
  24813. esac
  24814. CheckUSBHID
  24815. CheckHIDAPI
  24816. CheckPTHREAD
  24817. CheckClockGettime
  24818. CheckLinuxVersion
  24819. CheckRPATH
  24820. CheckVivanteVideo
  24821. # Set up files for the misc library
  24822. if test x$enable_misc = xyes; then
  24823. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24824. have_misc=yes
  24825. fi
  24826. # Set up files for the locale library
  24827. if test x$enable_locale = xyes; then
  24828. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24829. have_locale=yes
  24830. fi
  24831. # Set up files for the audio library
  24832. if test x$enable_audio = xyes; then
  24833. case $ARCH in
  24834. sysv5|solaris|hpux)
  24835. # Newer Solaris-based systems, like OpenIndiana, don't have this interface anymore. Check for the header first.
  24836. ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
  24837. if test "x$ac_cv_header_sys_audioio_h" = xyes
  24838. then :
  24839. have_sys_audioio_h=yes
  24840. else $as_nop
  24841. have_sys_audioio_h=no
  24842. fi
  24843. if test x$have_sys_audioio_h = xyes; then
  24844. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24845. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24846. SUMMARY_audio="${SUMMARY_audio} sun"
  24847. have_audio=yes
  24848. fi
  24849. ;;
  24850. netbsd) # Don't use this on OpenBSD, it's busted.
  24851. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24852. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24853. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24854. have_audio=yes
  24855. ;;
  24856. aix)
  24857. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24858. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24859. SUMMARY_audio="${SUMMARY_audio} paudio"
  24860. have_audio=yes
  24861. ;;
  24862. android)
  24863. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24864. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24865. SUMMARY_audio="${SUMMARY_audio} android"
  24866. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24867. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24868. SUMMARY_audio="${SUMMARY_audio} openslES"
  24869. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24870. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24871. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24872. have_audio=yes
  24873. ;;
  24874. nto)
  24875. CheckQNXAudio
  24876. ;;
  24877. esac
  24878. fi
  24879. # Set up files for the joystick library
  24880. if test x$enable_joystick = xyes; then
  24881. case $ARCH in
  24882. linux)
  24883. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24884. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24885. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24886. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24887. have_joystick=yes
  24888. fi
  24889. ;;
  24890. freebsd)
  24891. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24892. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24893. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24894. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24895. have_joystick=yes
  24896. fi
  24897. ;;
  24898. android)
  24899. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24900. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24901. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24902. have_joystick=yes
  24903. ;;
  24904. esac
  24905. fi
  24906. # Set up files for the haptic library
  24907. if test x$enable_haptic = xyes; then
  24908. case $ARCH in
  24909. linux|freebsd)
  24910. if test x$use_input_events = xyes; then
  24911. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24912. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24913. have_haptic=yes
  24914. fi
  24915. ;;
  24916. android)
  24917. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24918. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24919. have_haptic=yes
  24920. ;;
  24921. esac
  24922. fi
  24923. # Set up files for the sensor library
  24924. if test x$enable_sensor = xyes; then
  24925. case $ARCH in
  24926. android)
  24927. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24928. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24929. have_sensor=yes
  24930. ;;
  24931. esac
  24932. fi
  24933. # Set up files for the power library
  24934. if test x$enable_power = xyes; then
  24935. case $ARCH in
  24936. linux)
  24937. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24938. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24939. have_power=yes
  24940. ;;
  24941. android)
  24942. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24943. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24944. have_power=yes
  24945. ;;
  24946. esac
  24947. fi
  24948. # Set up files for the filesystem library
  24949. if test x$enable_filesystem = xyes; then
  24950. case $ARCH in
  24951. android)
  24952. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24953. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24954. have_filesystem=yes
  24955. ;;
  24956. *)
  24957. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24958. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24959. have_filesystem=yes
  24960. ;;
  24961. esac
  24962. fi
  24963. # Set up files for the timer library
  24964. if test x$enable_timers = xyes; then
  24965. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24966. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24967. have_timers=yes
  24968. fi
  24969. # Set up files for udev hotplugging support
  24970. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24971. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24972. fi
  24973. # Set up files for evdev input
  24974. if test x$use_input_events = xyes; then
  24975. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24976. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24977. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24978. fi
  24979. # Set up files for wscons input
  24980. if test x$use_input_wscons = xyes; then
  24981. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24982. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24983. fi
  24984. # Set up other core UNIX files
  24985. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24986. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24987. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24988. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24989. ;;
  24990. *-*-cygwin* | *-*-mingw*)
  24991. ARCH=win32
  24992. if test "$build" != "$host"; then # cross-compiling
  24993. # Default cross-compile location
  24994. ac_default_prefix=/usr/local/cross-tools/$host
  24995. else
  24996. # Look for the location of the tools and install there
  24997. if test "$BUILD_PREFIX" != ""; then
  24998. ac_default_prefix=$BUILD_PREFIX
  24999. fi
  25000. fi
  25001. if test x$enable_loadso = xyes; then
  25002. have_loadso=yes
  25003. fi
  25004. CheckGDwarf4
  25005. CheckWerror
  25006. CheckDeclarationAfterStatement
  25007. CheckDummyVideo
  25008. CheckOffscreenVideo
  25009. CheckDiskAudio
  25010. CheckDummyAudio
  25011. CheckWINDOWS
  25012. CheckWINDOWSGL
  25013. CheckWINDOWSGLES
  25014. CheckVulkan
  25015. CheckDIRECTX
  25016. CheckHIDAPI
  25017. # Set up the core platform files
  25018. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  25019. # Set up files for the misc library
  25020. if test x$enable_misc = xyes; then
  25021. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  25022. have_misc=yes
  25023. fi
  25024. # Use the Windows locale APIs.
  25025. if test x$enable_locale = xyes; then
  25026. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  25027. have_locale=yes
  25028. fi
  25029. # Set up files for the video library
  25030. if test x$enable_video = xyes; then
  25031. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  25032. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  25033. have_video=yes
  25034. # Check whether --enable-render-d3d was given.
  25035. if test ${enable_render_d3d+y}
  25036. then :
  25037. enableval=$enable_render_d3d;
  25038. else $as_nop
  25039. enable_render_d3d=yes
  25040. fi
  25041. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25042. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25043. SUMMARY_video="${SUMMARY_video} d3d9"
  25044. fi
  25045. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25046. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25047. SUMMARY_video="${SUMMARY_video} d3d11"
  25048. fi
  25049. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25050. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25051. SUMMARY_video="${SUMMARY_video} d3d12"
  25052. fi
  25053. fi
  25054. # Set up files for the audio library
  25055. if test x$enable_audio = xyes; then
  25056. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25057. SUMMARY_audio="${SUMMARY_audio} winmm"
  25058. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25059. if test x$have_dsound = xyes; then
  25060. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25061. SUMMARY_audio="${SUMMARY_audio} directsound"
  25062. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25063. fi
  25064. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25065. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25066. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25067. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25068. fi
  25069. have_audio=yes
  25070. fi
  25071. # Set up files for the joystick library
  25072. if test x$enable_joystick = xyes; then
  25073. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25074. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25075. if test x$have_xinput = xyes; then
  25076. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25077. fi
  25078. if test x$have_wgi = xyes; then
  25079. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25080. fi
  25081. if test x$have_dinput = xyes; then
  25082. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25084. fi
  25085. fi
  25086. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25087. have_joystick=yes
  25088. fi
  25089. if test x$enable_haptic = xyes; then
  25090. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25091. if test x$have_xinput = xyes; then
  25092. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25093. fi
  25094. if test x$have_dinput = xyes; then
  25095. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25096. fi
  25097. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25098. have_haptic=yes
  25099. fi
  25100. fi
  25101. # Set up files for the sensor library
  25102. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25103. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25104. then :
  25105. have_winsensors=yes
  25106. else $as_nop
  25107. have_winsensors=no
  25108. fi
  25109. if test x$have_winsensors = xyes; then
  25110. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25111. fi
  25112. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25113. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25115. have_sensor=yes
  25116. fi
  25117. # Set up files for the power library
  25118. if test x$enable_power = xyes; then
  25119. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25120. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25121. have_power=yes
  25122. fi
  25123. # Set up files for the filesystem library
  25124. if test x$enable_filesystem = xyes; then
  25125. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25126. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25127. have_filesystem=yes
  25128. fi
  25129. # Set up files for the thread library
  25130. if test x$enable_threads = xyes; then
  25131. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25132. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25133. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25134. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25135. have_threads=yes
  25136. fi
  25137. # Set up files for the timer library
  25138. if test x$enable_timers = xyes; then
  25139. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25140. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25141. have_timers=yes
  25142. fi
  25143. # Set up files for the shared object loading library
  25144. if test x$enable_loadso = xyes; then
  25145. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25146. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25147. fi
  25148. # Set up the system libraries we need
  25149. if test -f /lib/w32api/libuuid.a; then
  25150. LIBUUID=/lib/w32api/libuuid.a
  25151. else
  25152. LIBUUID=-luuid
  25153. fi
  25154. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25155. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25156. # The Windows platform requires special setup
  25157. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25158. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25159. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25160. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25161. # Check to see if this is a mingw or cygwin build
  25162. have_mingw32=
  25163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25164. printf %s "checking for main in -lmingw32... " >&6; }
  25165. if test ${ac_cv_lib_mingw32_main+y}
  25166. then :
  25167. printf %s "(cached) " >&6
  25168. else $as_nop
  25169. ac_check_lib_save_LIBS=$LIBS
  25170. LIBS="-lmingw32 $LIBS"
  25171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25172. /* end confdefs.h. */
  25173. int
  25174. main (void)
  25175. {
  25176. return main ();
  25177. ;
  25178. return 0;
  25179. }
  25180. _ACEOF
  25181. if ac_fn_c_try_link "$LINENO"
  25182. then :
  25183. ac_cv_lib_mingw32_main=yes
  25184. else $as_nop
  25185. ac_cv_lib_mingw32_main=no
  25186. fi
  25187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25188. conftest$ac_exeext conftest.$ac_ext
  25189. LIBS=$ac_check_lib_save_LIBS
  25190. fi
  25191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25192. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25193. if test "x$ac_cv_lib_mingw32_main" = xyes
  25194. then :
  25195. have_mingw32=yes
  25196. fi
  25197. if test x$have_mingw32 = xyes; then
  25198. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25199. else
  25200. SDL_LIBS="-lcygwin $SDL_LIBS"
  25201. fi
  25202. ;;
  25203. *-*-beos*)
  25204. as_fn_error $? "
  25205. *** BeOS support has been removed as of SDL 2.0.2.
  25206. " "$LINENO" 5
  25207. ;;
  25208. *-*-haiku*)
  25209. ARCH=haiku
  25210. ac_default_prefix=/boot/system
  25211. CheckDummyVideo
  25212. CheckOffscreenVideo
  25213. CheckDiskAudio
  25214. CheckDummyAudio
  25215. CheckDLOPEN
  25216. CheckO_CLOEXEC
  25217. CheckHaikuVideo
  25218. CheckHaikuGL
  25219. CheckPTHREAD
  25220. # Set up files for the audio library
  25221. if test x$enable_audio = xyes; then
  25222. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25223. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25224. SUMMARY_audio="${SUMMARY_audio} haiku"
  25225. have_audio=yes
  25226. fi
  25227. # Set up files for the joystick library
  25228. if test x$enable_joystick = xyes; then
  25229. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25230. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25231. have_joystick=yes
  25232. fi
  25233. # Set up files for the timer library
  25234. if test x$enable_timers = xyes; then
  25235. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25236. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25237. have_timers=yes
  25238. fi
  25239. # Set up files for the system power library
  25240. if test x$enable_power = xyes; then
  25241. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25242. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25243. have_power=yes
  25244. fi
  25245. # Set up files for the system filesystem library
  25246. if test x$enable_filesystem = xyes; then
  25247. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25248. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25249. have_filesystem=yes
  25250. fi
  25251. # Set up files for the misc library
  25252. if test x$enable_misc = xyes; then
  25253. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25254. have_misc=yes
  25255. fi
  25256. # Set up files for the locale library
  25257. if test x$enable_locale = xyes; then
  25258. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25259. have_locale=yes
  25260. fi
  25261. # The Haiku platform requires special setup.
  25262. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25263. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25264. ;;
  25265. *-ios-*)
  25266. ARCH=ios
  25267. CheckVisibilityHidden
  25268. CheckWerror
  25269. CheckNoErrorDeprecatedDeclarationsWerror
  25270. CheckDeclarationAfterStatement
  25271. CheckDummyVideo
  25272. CheckOffscreenVideo
  25273. CheckDiskAudio
  25274. CheckDummyAudio
  25275. CheckDLOPEN
  25276. CheckO_CLOEXEC
  25277. CheckMETAL
  25278. CheckVulkan
  25279. CheckPTHREAD
  25280. # Set up files for the misc library
  25281. if test x$enable_misc = xyes; then
  25282. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25283. have_misc=yes
  25284. fi
  25285. # Set up files for the locale library
  25286. if test x$enable_locale = xyes; then
  25287. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25288. have_locale=yes
  25289. fi
  25290. # Set up files for the audio library
  25291. if test x$enable_audio = xyes; then
  25292. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25293. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25294. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25295. have_audio=yes
  25296. fi
  25297. # Set up files for the joystick library
  25298. if test x$enable_joystick = xyes; then
  25299. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25300. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25301. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25302. have_joystick=yes
  25303. else
  25304. # Need this code for accelerometer as joystick support
  25305. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25306. fi
  25307. # Set up files for the haptic library
  25308. #if test x$enable_haptic = xyes; then
  25309. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25310. # have_haptic=yes
  25311. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25312. #fi
  25313. # Set up files for the sensor library
  25314. if test x$enable_sensor = xyes; then
  25315. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25316. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25317. have_sensor=yes
  25318. fi
  25319. # Set up files for the power library
  25320. if test x$enable_power = xyes; then
  25321. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25322. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25323. have_power=yes
  25324. fi
  25325. # Set up files for the filesystem library
  25326. if test x$enable_filesystem = xyes; then
  25327. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25328. have_filesystem=yes
  25329. fi
  25330. # Set up additional files for the file library
  25331. if test x$enable_file = xyes; then
  25332. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25333. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25334. fi
  25335. # Set up files for the timer library
  25336. if test x$enable_timers = xyes; then
  25337. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25338. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25339. have_timers=yes
  25340. fi
  25341. # Set up other core UNIX files
  25342. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25343. # The iOS platform requires special setup.
  25344. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25345. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25346. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25347. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25348. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25349. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25350. SUMMARY_video="${SUMMARY_video} uikit"
  25351. have_video=yes
  25352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25353. if test x$enable_system_iconv = xyes; then
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25355. fi
  25356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25367. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25369. fi
  25370. ;;
  25371. *-*-darwin* )
  25372. # This could be either full "Mac OS X", or plain "Darwin" which is
  25373. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25374. # Next line is broken, and a few files below require Mac OS X (full)
  25375. ARCH=macosx
  25376. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25377. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25378. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25379. CheckObjectiveCARC
  25380. CheckVisibilityHidden
  25381. CheckWerror
  25382. CheckNoErrorDeprecatedDeclarationsWerror
  25383. CheckDeclarationAfterStatement
  25384. CheckDummyVideo
  25385. CheckOffscreenVideo
  25386. CheckDiskAudio
  25387. CheckDummyAudio
  25388. CheckDLOPEN
  25389. CheckO_CLOEXEC
  25390. CheckCOCOA
  25391. CheckMETAL
  25392. CheckX11
  25393. CheckMacGL
  25394. CheckMacGLES
  25395. CheckGLX
  25396. CheckOpenGL
  25397. CheckVulkan
  25398. CheckPTHREAD
  25399. CheckHIDAPI
  25400. # Set up files for the misc library
  25401. if test x$enable_misc = xyes; then
  25402. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25403. have_misc=yes
  25404. fi
  25405. # Set up files for the locale library
  25406. if test x$enable_locale = xyes; then
  25407. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25408. have_locale=yes
  25409. fi
  25410. # Set up files for the audio library
  25411. if test x$enable_audio = xyes; then
  25412. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25413. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25414. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25415. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25416. have_audio=yes
  25417. fi
  25418. # Set up files for the joystick library
  25419. if test x$enable_joystick = xyes; then
  25420. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25421. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25422. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25423. CheckJoystickMFI
  25424. have_joystick=yes
  25425. fi
  25426. # Set up files for the haptic library
  25427. if test x$enable_haptic = xyes; then
  25428. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25429. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25430. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25431. have_haptic=yes
  25432. fi
  25433. # Set up files for the power library
  25434. if test x$enable_power = xyes; then
  25435. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25436. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25437. have_power=yes
  25438. fi
  25439. # Set up files for the filesystem library
  25440. if test x$enable_filesystem = xyes; then
  25441. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25442. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25443. have_filesystem=yes
  25444. fi
  25445. # Set up files for the timer library
  25446. if test x$enable_timers = xyes; then
  25447. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25448. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25449. have_timers=yes
  25450. fi
  25451. # Set up additional files for the file library
  25452. if test x$enable_file = xyes; then
  25453. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25454. fi
  25455. # Set up other core UNIX files
  25456. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25457. # The Mac OS X platform requires special setup.
  25458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25463. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25465. fi
  25466. ;;
  25467. *-nacl|*-pnacl)
  25468. ARCH=nacl
  25469. CheckNativeClient
  25470. CheckDummyAudio
  25471. CheckDummyVideo
  25472. CheckOffscreenVideo
  25473. CheckInputEvents
  25474. CheckPTHREAD
  25475. CheckO_CLOEXEC
  25476. # Set up files for the timer library
  25477. if test x$enable_timers = xyes; then
  25478. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25479. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25480. have_timers=yes
  25481. fi
  25482. if test x$enable_filesystem = xyes; then
  25483. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25484. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25485. have_filesystem=yes
  25486. fi
  25487. ;;
  25488. *-*-emscripten* )
  25489. if test x$enable_video = xyes; then
  25490. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25491. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25492. have_video=yes
  25493. SUMMARY_video="${SUMMARY_video} emscripten"
  25494. fi
  25495. if test x$enable_audio = xyes; then
  25496. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25497. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25498. have_audio=yes
  25499. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25500. fi
  25501. CheckVisibilityHidden
  25502. CheckWerror
  25503. CheckDeclarationAfterStatement
  25504. CheckDummyVideo
  25505. CheckOffscreenVideo
  25506. CheckDiskAudio
  25507. CheckDummyAudio
  25508. CheckPTHREAD
  25509. CheckDLOPEN
  25510. CheckClockGettime
  25511. CheckEmscriptenGLES
  25512. # Set up files for the misc library
  25513. if test x$enable_misc = xyes; then
  25514. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25515. have_misc=yes
  25516. fi
  25517. # Set up files for the power library
  25518. if test x$enable_power = xyes; then
  25519. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25520. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25521. have_power=yes
  25522. fi
  25523. # Set up files for the joystick library
  25524. if test x$enable_joystick = xyes; then
  25525. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25526. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25527. have_joystick=yes
  25528. fi
  25529. # Set up files for the filesystem library
  25530. if test x$enable_filesystem = xyes; then
  25531. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25532. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25533. have_filesystem=yes
  25534. fi
  25535. # Set up files for the timer library
  25536. if test x$enable_timers = xyes; then
  25537. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25538. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25539. have_timers=yes
  25540. fi
  25541. # Set up files for the locale library
  25542. if test x$enable_locale = xyes; then
  25543. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25544. have_locale=yes
  25545. fi
  25546. ;;
  25547. *-*-riscos*)
  25548. ARCH=riscos
  25549. CheckVisibilityHidden
  25550. CheckWerror
  25551. CheckDeclarationAfterStatement
  25552. CheckDummyVideo
  25553. CheckOffscreenVideo
  25554. CheckDiskAudio
  25555. CheckDummyAudio
  25556. CheckDLOPEN
  25557. CheckO_CLOEXEC
  25558. CheckOSS
  25559. CheckPTHREAD
  25560. CheckClockGettime
  25561. # Set up files for the misc library
  25562. if test x$enable_misc = xyes; then
  25563. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25564. have_misc=yes
  25565. fi
  25566. # Set up files for the video library
  25567. if test x$enable_video = xyes; then
  25568. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25569. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25570. have_video=yes
  25571. SUMMARY_video="${SUMMARY_video} riscos"
  25572. fi
  25573. # Set up files for the filesystem library
  25574. if test x$enable_filesystem = xyes; then
  25575. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25576. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25577. have_filesystem=yes
  25578. fi
  25579. # Set up files for the timer library
  25580. if test x$enable_timers = xyes; then
  25581. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25582. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25583. have_timers=yes
  25584. fi
  25585. ;;
  25586. *-*-os2*)
  25587. ARCH=os2
  25588. if test "$build" != "$host"; then # cross-compiling
  25589. # Default cross-compile location
  25590. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25591. else
  25592. # Look for the location of the tools and install there
  25593. if test "$BUILD_PREFIX" != ""; then
  25594. ac_default_prefix=$BUILD_PREFIX
  25595. fi
  25596. fi
  25597. enable_static=no # disable static builds
  25598. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25599. CheckOS2
  25600. CheckWerror
  25601. CheckDeclarationAfterStatement
  25602. CheckDummyVideo
  25603. CheckDiskAudio
  25604. CheckDummyAudio
  25605. CheckHIDAPI
  25606. # Set up the core platform files
  25607. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25608. if test x$enable_system_iconv = xyes; then
  25609. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25610. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25611. fi
  25612. fi
  25613. # Use the Unix locale APIs.
  25614. if test x$enable_locale = xyes; then
  25615. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25616. have_locale=yes
  25617. fi
  25618. # Set up files for the video library
  25619. if test x$enable_video = xyes; then
  25620. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25621. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25622. have_video=yes
  25623. SUMMARY_video="${SUMMARY_video} OS/2"
  25624. fi
  25625. # Set up files for the audio library
  25626. if test x$enable_audio = xyes; then
  25627. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25628. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25629. have_audio=yes
  25630. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25631. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25632. fi
  25633. # Set up files for the thread library
  25634. if test x$enable_threads = xyes; then
  25635. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25636. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25637. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25638. have_threads=yes
  25639. fi
  25640. # Set up files for the timer library
  25641. if test x$enable_timers = xyes; then
  25642. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25643. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25644. have_timers=yes
  25645. fi
  25646. # Set up files for the shared object loading library
  25647. if test x$enable_loadso = xyes; then
  25648. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25649. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25650. have_loadso=yes
  25651. fi
  25652. # Set up files for the filesystem library
  25653. if test x$enable_filesystem = xyes; then
  25654. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25655. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25656. have_filesystem=yes
  25657. fi
  25658. # Set up files for the joystick library
  25659. if test x$enable_joystick = xyes; then
  25660. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25661. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25662. have_joystick=yes
  25663. fi
  25664. ;;
  25665. *)
  25666. as_fn_error $? "
  25667. *** Unsupported host: Please add to configure.ac
  25668. " "$LINENO" 5
  25669. ;;
  25670. esac
  25671. CheckVirtualJoystick
  25672. # Check whether to install sdl2-config
  25673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25674. printf %s "checking whether to install sdl2-config... " >&6; }
  25675. # Check whether --enable-sdl2-config was given.
  25676. if test ${enable_sdl2_config+y}
  25677. then :
  25678. enableval=$enable_sdl2_config; case "${enableval}" in
  25679. yes) enable_sdl2_config="TRUE" ;;
  25680. no) enable_sdl2_config="FALSE" ;;
  25681. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25682. esac
  25683. else $as_nop
  25684. enable_sdl2_config="TRUE"
  25685. fi
  25686. if test "$enable_sdl2_config" = "TRUE"; then
  25687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25688. printf "%s\n" "yes" >&6; }
  25689. else
  25690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25691. printf "%s\n" "no" >&6; }
  25692. fi
  25693. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25694. # Check whether --enable-vendor-info was given.
  25695. if test ${enable_vendor_info+y}
  25696. then :
  25697. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25698. else $as_nop
  25699. enable_vendor_info=
  25700. fi
  25701. if test "$enable_vendor_info" = no
  25702. then :
  25703. enable_vendor_info=
  25704. fi
  25705. SDL_VENDOR_INFO=$enable_vendor_info
  25706. # Verify that we have all the platform specific files we need
  25707. if test x$have_audio != xyes; then
  25708. if test x$enable_audio = xyes; then
  25709. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25710. fi
  25711. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25712. fi
  25713. if test x$have_video != xyes; then
  25714. if test x$enable_video = xyes; then
  25715. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25716. fi
  25717. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25718. fi
  25719. if test x$have_misc != xyes; then
  25720. if test x$enable_misc = xyes; then
  25721. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25722. fi
  25723. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25724. fi
  25725. if test x$have_locale != xyes; then
  25726. if test x$enable_locale = xyes; then
  25727. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25728. fi
  25729. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25730. fi
  25731. if test x$have_joystick != xyes; then
  25732. if test x$enable_joystick = xyes; then
  25733. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25734. fi
  25735. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25736. fi
  25737. if test x$have_haptic != xyes; then
  25738. if test x$enable_haptic = xyes; then
  25739. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25740. fi
  25741. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25742. fi
  25743. if test x$have_sensor != xyes; then
  25744. if test x$enable_sensor = xyes; then
  25745. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25746. fi
  25747. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25748. fi
  25749. if test x$have_threads != xyes; then
  25750. if test x$enable_threads = xyes; then
  25751. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25752. fi
  25753. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25754. fi
  25755. if test x$have_timers != xyes; then
  25756. if test x$enable_timers = xyes; then
  25757. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25758. fi
  25759. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25760. fi
  25761. if test x$have_filesystem != xyes; then
  25762. if test x$enable_filesystem = xyes; then
  25763. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25764. fi
  25765. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25766. fi
  25767. if test x$have_loadso != xyes; then
  25768. if test x$enable_loadso = xyes; then
  25769. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25770. fi
  25771. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25772. fi
  25773. if test x$SDLMAIN_SOURCES = x; then
  25774. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25775. fi
  25776. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25777. if test x$video_wayland = xyes; then
  25778. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25779. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25780. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25781. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25782. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25783. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25784. echo ;\
  25785. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25786. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25787. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25788. echo ;\
  25789. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25790. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25791. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25792. echo ;\
  25793. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25794. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25795. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25796. done ;\
  25797. echo ;\
  25798. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25799. fi
  25800. OBJECTS=`echo $SOURCES`
  25801. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25802. for EXT in asm cc m c S; do
  25803. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25804. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25805. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25806. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25807. done
  25808. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25809. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25810. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25811. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25812. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25813. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25814. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25815. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25816. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25817. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25818. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25819. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25820. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25821. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25822. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25823. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25824. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25825. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25826. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25827. # Set runtime shared library paths as needed
  25828. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25829. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25830. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25832. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25833. have_enable_new_dtags=no
  25834. save_LDFLAGS="$LDFLAGS"
  25835. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25837. /* end confdefs.h. */
  25838. int
  25839. main (void)
  25840. {
  25841. ;
  25842. return 0;
  25843. }
  25844. _ACEOF
  25845. if ac_fn_c_try_link "$LINENO"
  25846. then :
  25847. have_enable_new_dtags=yes
  25848. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25849. fi
  25850. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25851. conftest$ac_exeext conftest.$ac_ext
  25852. LDFLAGS="$save_LDFLAGS"
  25853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25854. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25855. fi
  25856. if test $ARCH = solaris; then
  25857. SDL_RLD_FLAGS="-R\${libdir}"
  25858. fi
  25859. else
  25860. SDL_RLD_FLAGS=""
  25861. fi
  25862. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25863. pkg_cmakedir='$libdir/cmake/SDL2'
  25864. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25865. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25866. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25867. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25868. _lcl_receval="$_lcl_from"
  25869. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25870. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25871. _lcl_receval_old=''
  25872. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25873. _lcl_receval_old="$_lcl_receval"
  25874. eval _lcl_receval="\"$_lcl_receval\""
  25875. done
  25876. echo "$_lcl_receval")`
  25877. _lcl_receval="$_lcl_to"
  25878. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25879. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25880. _lcl_receval_old=''
  25881. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25882. _lcl_receval_old="$_lcl_receval"
  25883. eval _lcl_receval="\"$_lcl_receval\""
  25884. done
  25885. echo "$_lcl_receval")`
  25886. _lcl_notation="$_lcl_from$_lcl_to"
  25887. case ":$_lcl_from:" in
  25888. # change empty paths to '.'
  25889. ::) _lcl_from='.' ;;
  25890. # strip trailing slashes
  25891. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25892. :*:) ;;
  25893. esac
  25894. # squeeze repeated slashes
  25895. case '/' in
  25896. # if the path contains any backslashes, turn slashes into backslashes
  25897. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25898. # if the path contains slashes, also turn backslashes into slashes
  25899. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25900. esac
  25901. case ":$_lcl_to:" in
  25902. # change empty paths to '.'
  25903. ::) _lcl_to='.' ;;
  25904. # strip trailing slashes
  25905. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25906. :*:) ;;
  25907. esac
  25908. # squeeze repeated slashes
  25909. case '/' in
  25910. # if the path contains any backslashes, turn slashes into backslashes
  25911. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25912. # if the path contains slashes, also turn backslashes into slashes
  25913. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25914. esac
  25915. _lcl_common_prefix=''
  25916. _lcl_second_prefix_match=''
  25917. while test "$_lcl_second_prefix_match" != 0; do
  25918. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25919. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25920. if test "$_lcl_second_prefix_match" != 0; then
  25921. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25922. _lcl_common_prefix="$_lcl_first_prefix"
  25923. else
  25924. _lcl_second_prefix_match=0
  25925. fi
  25926. fi
  25927. done
  25928. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25929. _lcl_first_rel=''
  25930. _lcl_tmp='xxx'
  25931. while test "$_lcl_tmp" != ''; do
  25932. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25933. if test "$_lcl_first_suffix" != ''; then
  25934. _lcl_first_suffix="$_lcl_tmp"
  25935. _lcl_first_rel="../$_lcl_first_rel"
  25936. fi
  25937. done
  25938. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25939. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25940. case ":$_lcl_result_tmp:" in
  25941. # change empty paths to '.'
  25942. ::) _lcl_result_tmp='.' ;;
  25943. # strip trailing slashes
  25944. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25945. :*:) ;;
  25946. esac
  25947. # squeeze repeated slashes
  25948. case "$_lcl_notation" in
  25949. # if the path contains any backslashes, turn slashes into backslashes
  25950. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25951. # if the path contains slashes, also turn backslashes into slashes
  25952. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25953. esac
  25954. eval $_lcl_result_var='$_lcl_result_tmp'
  25955. done
  25956. PKGCONFIG_DEPENDS=""
  25957. if test x$enable_shared = xyes; then
  25958. PKGCONFIG_LIBS_PRIV="
  25959. Libs.private:"
  25960. ENABLE_SHARED_TRUE=
  25961. ENABLE_SHARED_FALSE="#"
  25962. else
  25963. PKGCONFIG_LIBS_PRIV=
  25964. ENABLE_SHARED_TRUE="#"
  25965. ENABLE_SHARED_FALSE=
  25966. fi
  25967. if test x$enable_static = xyes; then
  25968. ENABLE_STATIC_TRUE=
  25969. ENABLE_STATIC_FALSE="#"
  25970. else
  25971. ENABLE_STATIC_TRUE="#"
  25972. ENABLE_STATIC_FALSE=
  25973. fi
  25974. cat >Makefile.rules <<__EOF__
  25975. # Build rules for objects
  25976. -include \$(OBJECTS:.lo=.d)
  25977. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25978. $srcdir/src/SDL.c: update-revision
  25979. $DEPENDS
  25980. $VERSION_DEPENDS
  25981. $SDLMAIN_DEPENDS
  25982. $SDLTEST_DEPENDS
  25983. $WAYLAND_PROTOCOLS_DEPENDS
  25984. __EOF__
  25985. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25986. ac_config_commands="$ac_config_commands sdl2_config"
  25987. SUMMARY="SDL2 Configure Summary:\n"
  25988. if test x$enable_shared = xyes; then
  25989. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25990. fi
  25991. if test x$enable_static = xyes; then
  25992. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25993. fi
  25994. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25995. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25996. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25997. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25998. if test x$have_x = xyes; then
  25999. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  26000. fi
  26001. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  26002. if test x$have_joystick_virtual = xyes; then
  26003. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  26004. else
  26005. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  26006. fi
  26007. if test x$have_samplerate_h_hdr = xyes; then
  26008. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  26009. else
  26010. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  26011. fi
  26012. if test x$have_libudev_h_hdr = xyes; then
  26013. SUMMARY="${SUMMARY}Using libudev : YES\n"
  26014. else
  26015. SUMMARY="${SUMMARY}Using libudev : NO\n"
  26016. fi
  26017. if test x$have_dbus_dbus_h_hdr = xyes; then
  26018. SUMMARY="${SUMMARY}Using dbus : YES\n"
  26019. else
  26020. SUMMARY="${SUMMARY}Using dbus : NO\n"
  26021. fi
  26022. if test x$enable_ime = xyes; then
  26023. SUMMARY="${SUMMARY}Using ime : YES\n"
  26024. else
  26025. SUMMARY="${SUMMARY}Using ime : NO\n"
  26026. fi
  26027. if test x$have_ibus_ibus_h_hdr = xyes; then
  26028. SUMMARY="${SUMMARY}Using ibus : YES\n"
  26029. else
  26030. SUMMARY="${SUMMARY}Using ibus : NO\n"
  26031. fi
  26032. if test x$have_fcitx = xyes; then
  26033. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  26034. else
  26035. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  26036. fi
  26037. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  26038. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  26039. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26040. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26041. SUMMARY="${SUMMARY}configure script with:\n"
  26042. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26043. fi
  26044. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26045. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26046. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26047. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26048. SUMMARY="${SUMMARY}configure script with:\n"
  26049. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26050. fi
  26051. ac_config_commands="$ac_config_commands summary"
  26052. cat >confcache <<\_ACEOF
  26053. # This file is a shell script that caches the results of configure
  26054. # tests run on this system so they can be shared between configure
  26055. # scripts and configure runs, see configure's option --config-cache.
  26056. # It is not useful on other systems. If it contains results you don't
  26057. # want to keep, you may remove or edit it.
  26058. #
  26059. # config.status only pays attention to the cache file if you give it
  26060. # the --recheck option to rerun configure.
  26061. #
  26062. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26063. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26064. # following values.
  26065. _ACEOF
  26066. # The following way of writing the cache mishandles newlines in values,
  26067. # but we know of no workaround that is simple, portable, and efficient.
  26068. # So, we kill variables containing newlines.
  26069. # Ultrix sh set writes to stderr and can't be redirected directly,
  26070. # and sets the high bit in the cache file unless we assign to the vars.
  26071. (
  26072. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26073. eval ac_val=\$$ac_var
  26074. case $ac_val in #(
  26075. *${as_nl}*)
  26076. case $ac_var in #(
  26077. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26078. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26079. esac
  26080. case $ac_var in #(
  26081. _ | IFS | as_nl) ;; #(
  26082. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26083. *) { eval $ac_var=; unset $ac_var;} ;;
  26084. esac ;;
  26085. esac
  26086. done
  26087. (set) 2>&1 |
  26088. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26089. *${as_nl}ac_space=\ *)
  26090. # `set' does not quote correctly, so add quotes: double-quote
  26091. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26092. sed -n \
  26093. "s/'/'\\\\''/g;
  26094. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26095. ;; #(
  26096. *)
  26097. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26098. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26099. ;;
  26100. esac |
  26101. sort
  26102. ) |
  26103. sed '
  26104. /^ac_cv_env_/b end
  26105. t clear
  26106. :clear
  26107. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26108. t end
  26109. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26110. :end' >>confcache
  26111. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26112. if test -w "$cache_file"; then
  26113. if test "x$cache_file" != "x/dev/null"; then
  26114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26115. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26116. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26117. cat confcache >"$cache_file"
  26118. else
  26119. case $cache_file in #(
  26120. */* | ?:*)
  26121. mv -f confcache "$cache_file"$$ &&
  26122. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26123. *)
  26124. mv -f confcache "$cache_file" ;;
  26125. esac
  26126. fi
  26127. fi
  26128. else
  26129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26130. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26131. fi
  26132. fi
  26133. rm -f confcache
  26134. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26135. # Let make expand exec_prefix.
  26136. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26137. DEFS=-DHAVE_CONFIG_H
  26138. ac_libobjs=
  26139. ac_ltlibobjs=
  26140. U=
  26141. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26142. # 1. Remove the extension, and $U if already installed.
  26143. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26144. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26145. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26146. # will be set to the directory where LIBOBJS objects are built.
  26147. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26148. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26149. done
  26150. LIBOBJS=$ac_libobjs
  26151. LTLIBOBJS=$ac_ltlibobjs
  26152. : "${CONFIG_STATUS=./config.status}"
  26153. ac_write_fail=0
  26154. ac_clean_files_save=$ac_clean_files
  26155. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26157. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26158. as_write_fail=0
  26159. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26160. #! $SHELL
  26161. # Generated by $as_me.
  26162. # Run this file to recreate the current configuration.
  26163. # Compiler output produced by configure, useful for debugging
  26164. # configure, is in config.log if it exists.
  26165. debug=false
  26166. ac_cs_recheck=false
  26167. ac_cs_silent=false
  26168. SHELL=\${CONFIG_SHELL-$SHELL}
  26169. export SHELL
  26170. _ASEOF
  26171. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26172. ## -------------------- ##
  26173. ## M4sh Initialization. ##
  26174. ## -------------------- ##
  26175. # Be more Bourne compatible
  26176. DUALCASE=1; export DUALCASE # for MKS sh
  26177. as_nop=:
  26178. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26179. then :
  26180. emulate sh
  26181. NULLCMD=:
  26182. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26183. # is contrary to our usage. Disable this feature.
  26184. alias -g '${1+"$@"}'='"$@"'
  26185. setopt NO_GLOB_SUBST
  26186. else $as_nop
  26187. case `(set -o) 2>/dev/null` in #(
  26188. *posix*) :
  26189. set -o posix ;; #(
  26190. *) :
  26191. ;;
  26192. esac
  26193. fi
  26194. # Reset variables that may have inherited troublesome values from
  26195. # the environment.
  26196. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26197. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26198. # side effect of setting IFS to empty, thus disabling word splitting.)
  26199. # Quoting is to prevent editors from complaining about space-tab.
  26200. as_nl='
  26201. '
  26202. export as_nl
  26203. IFS=" "" $as_nl"
  26204. PS1='$ '
  26205. PS2='> '
  26206. PS4='+ '
  26207. # Ensure predictable behavior from utilities with locale-dependent output.
  26208. LC_ALL=C
  26209. export LC_ALL
  26210. LANGUAGE=C
  26211. export LANGUAGE
  26212. # We cannot yet rely on "unset" to work, but we need these variables
  26213. # to be unset--not just set to an empty or harmless value--now, to
  26214. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26215. # also avoids known problems related to "unset" and subshell syntax
  26216. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26217. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26218. do eval test \${$as_var+y} \
  26219. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26220. done
  26221. # Ensure that fds 0, 1, and 2 are open.
  26222. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26223. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26224. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26225. # The user is always right.
  26226. if ${PATH_SEPARATOR+false} :; then
  26227. PATH_SEPARATOR=:
  26228. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26229. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26230. PATH_SEPARATOR=';'
  26231. }
  26232. fi
  26233. # Find who we are. Look in the path if we contain no directory separator.
  26234. as_myself=
  26235. case $0 in #((
  26236. *[\\/]* ) as_myself=$0 ;;
  26237. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26238. for as_dir in $PATH
  26239. do
  26240. IFS=$as_save_IFS
  26241. case $as_dir in #(((
  26242. '') as_dir=./ ;;
  26243. */) ;;
  26244. *) as_dir=$as_dir/ ;;
  26245. esac
  26246. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26247. done
  26248. IFS=$as_save_IFS
  26249. ;;
  26250. esac
  26251. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26252. # in which case we are not to be found in the path.
  26253. if test "x$as_myself" = x; then
  26254. as_myself=$0
  26255. fi
  26256. if test ! -f "$as_myself"; then
  26257. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26258. exit 1
  26259. fi
  26260. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26261. # ----------------------------------------
  26262. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26263. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26264. # script with STATUS, using 1 if that was 0.
  26265. as_fn_error ()
  26266. {
  26267. as_status=$1; test $as_status -eq 0 && as_status=1
  26268. if test "$4"; then
  26269. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26271. fi
  26272. printf "%s\n" "$as_me: error: $2" >&2
  26273. as_fn_exit $as_status
  26274. } # as_fn_error
  26275. # as_fn_set_status STATUS
  26276. # -----------------------
  26277. # Set $? to STATUS, without forking.
  26278. as_fn_set_status ()
  26279. {
  26280. return $1
  26281. } # as_fn_set_status
  26282. # as_fn_exit STATUS
  26283. # -----------------
  26284. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26285. as_fn_exit ()
  26286. {
  26287. set +e
  26288. as_fn_set_status $1
  26289. exit $1
  26290. } # as_fn_exit
  26291. # as_fn_unset VAR
  26292. # ---------------
  26293. # Portably unset VAR.
  26294. as_fn_unset ()
  26295. {
  26296. { eval $1=; unset $1;}
  26297. }
  26298. as_unset=as_fn_unset
  26299. # as_fn_append VAR VALUE
  26300. # ----------------------
  26301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26302. # advantage of any shell optimizations that allow amortized linear growth over
  26303. # repeated appends, instead of the typical quadratic growth present in naive
  26304. # implementations.
  26305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26306. then :
  26307. eval 'as_fn_append ()
  26308. {
  26309. eval $1+=\$2
  26310. }'
  26311. else $as_nop
  26312. as_fn_append ()
  26313. {
  26314. eval $1=\$$1\$2
  26315. }
  26316. fi # as_fn_append
  26317. # as_fn_arith ARG...
  26318. # ------------------
  26319. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26320. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26321. # must be portable across $(()) and expr.
  26322. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26323. then :
  26324. eval 'as_fn_arith ()
  26325. {
  26326. as_val=$(( $* ))
  26327. }'
  26328. else $as_nop
  26329. as_fn_arith ()
  26330. {
  26331. as_val=`expr "$@" || test $? -eq 1`
  26332. }
  26333. fi # as_fn_arith
  26334. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26335. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26336. as_expr=expr
  26337. else
  26338. as_expr=false
  26339. fi
  26340. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26341. as_basename=basename
  26342. else
  26343. as_basename=false
  26344. fi
  26345. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26346. as_dirname=dirname
  26347. else
  26348. as_dirname=false
  26349. fi
  26350. as_me=`$as_basename -- "$0" ||
  26351. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26352. X"$0" : 'X\(//\)$' \| \
  26353. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26354. printf "%s\n" X/"$0" |
  26355. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26356. s//\1/
  26357. q
  26358. }
  26359. /^X\/\(\/\/\)$/{
  26360. s//\1/
  26361. q
  26362. }
  26363. /^X\/\(\/\).*/{
  26364. s//\1/
  26365. q
  26366. }
  26367. s/.*/./; q'`
  26368. # Avoid depending upon Character Ranges.
  26369. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26370. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26371. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26372. as_cr_digits='0123456789'
  26373. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26374. # Determine whether it's possible to make 'echo' print without a newline.
  26375. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26376. # for compatibility with existing Makefiles.
  26377. ECHO_C= ECHO_N= ECHO_T=
  26378. case `echo -n x` in #(((((
  26379. -n*)
  26380. case `echo 'xy\c'` in
  26381. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26382. xy) ECHO_C='\c';;
  26383. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26384. ECHO_T=' ';;
  26385. esac;;
  26386. *)
  26387. ECHO_N='-n';;
  26388. esac
  26389. # For backward compatibility with old third-party macros, we provide
  26390. # the shell variables $as_echo and $as_echo_n. New code should use
  26391. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26392. as_echo='printf %s\n'
  26393. as_echo_n='printf %s'
  26394. rm -f conf$$ conf$$.exe conf$$.file
  26395. if test -d conf$$.dir; then
  26396. rm -f conf$$.dir/conf$$.file
  26397. else
  26398. rm -f conf$$.dir
  26399. mkdir conf$$.dir 2>/dev/null
  26400. fi
  26401. if (echo >conf$$.file) 2>/dev/null; then
  26402. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26403. as_ln_s='ln -s'
  26404. # ... but there are two gotchas:
  26405. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26406. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26407. # In both cases, we have to default to `cp -pR'.
  26408. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26409. as_ln_s='cp -pR'
  26410. elif ln conf$$.file conf$$ 2>/dev/null; then
  26411. as_ln_s=ln
  26412. else
  26413. as_ln_s='cp -pR'
  26414. fi
  26415. else
  26416. as_ln_s='cp -pR'
  26417. fi
  26418. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26419. rmdir conf$$.dir 2>/dev/null
  26420. # as_fn_mkdir_p
  26421. # -------------
  26422. # Create "$as_dir" as a directory, including parents if necessary.
  26423. as_fn_mkdir_p ()
  26424. {
  26425. case $as_dir in #(
  26426. -*) as_dir=./$as_dir;;
  26427. esac
  26428. test -d "$as_dir" || eval $as_mkdir_p || {
  26429. as_dirs=
  26430. while :; do
  26431. case $as_dir in #(
  26432. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26433. *) as_qdir=$as_dir;;
  26434. esac
  26435. as_dirs="'$as_qdir' $as_dirs"
  26436. as_dir=`$as_dirname -- "$as_dir" ||
  26437. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26438. X"$as_dir" : 'X\(//\)[^/]' \| \
  26439. X"$as_dir" : 'X\(//\)$' \| \
  26440. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26441. printf "%s\n" X"$as_dir" |
  26442. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26443. s//\1/
  26444. q
  26445. }
  26446. /^X\(\/\/\)[^/].*/{
  26447. s//\1/
  26448. q
  26449. }
  26450. /^X\(\/\/\)$/{
  26451. s//\1/
  26452. q
  26453. }
  26454. /^X\(\/\).*/{
  26455. s//\1/
  26456. q
  26457. }
  26458. s/.*/./; q'`
  26459. test -d "$as_dir" && break
  26460. done
  26461. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26462. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26463. } # as_fn_mkdir_p
  26464. if mkdir -p . 2>/dev/null; then
  26465. as_mkdir_p='mkdir -p "$as_dir"'
  26466. else
  26467. test -d ./-p && rmdir ./-p
  26468. as_mkdir_p=false
  26469. fi
  26470. # as_fn_executable_p FILE
  26471. # -----------------------
  26472. # Test if FILE is an executable regular file.
  26473. as_fn_executable_p ()
  26474. {
  26475. test -f "$1" && test -x "$1"
  26476. } # as_fn_executable_p
  26477. as_test_x='test -x'
  26478. as_executable_p=as_fn_executable_p
  26479. # Sed expression to map a string onto a valid CPP name.
  26480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26481. # Sed expression to map a string onto a valid variable name.
  26482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26483. exec 6>&1
  26484. ## ----------------------------------- ##
  26485. ## Main body of $CONFIG_STATUS script. ##
  26486. ## ----------------------------------- ##
  26487. _ASEOF
  26488. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26489. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26490. # Save the log message, to keep $0 and so on meaningful, and to
  26491. # report actual input values of CONFIG_FILES etc. instead of their
  26492. # values after options handling.
  26493. ac_log="
  26494. This file was extended by $as_me, which was
  26495. generated by GNU Autoconf 2.71. Invocation command line was
  26496. CONFIG_FILES = $CONFIG_FILES
  26497. CONFIG_HEADERS = $CONFIG_HEADERS
  26498. CONFIG_LINKS = $CONFIG_LINKS
  26499. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26500. $ $0 $@
  26501. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26502. "
  26503. _ACEOF
  26504. case $ac_config_files in *"
  26505. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26506. esac
  26507. case $ac_config_headers in *"
  26508. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26509. esac
  26510. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26511. # Files that config.status was made for.
  26512. config_files="$ac_config_files"
  26513. config_headers="$ac_config_headers"
  26514. config_commands="$ac_config_commands"
  26515. _ACEOF
  26516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26517. ac_cs_usage="\
  26518. \`$as_me' instantiates files and other configuration actions
  26519. from templates according to the current configuration. Unless the files
  26520. and actions are specified as TAGs, all are instantiated by default.
  26521. Usage: $0 [OPTION]... [TAG]...
  26522. -h, --help print this help, then exit
  26523. -V, --version print version number and configuration settings, then exit
  26524. --config print configuration, then exit
  26525. -q, --quiet, --silent
  26526. do not print progress messages
  26527. -d, --debug don't remove temporary files
  26528. --recheck update $as_me by reconfiguring in the same conditions
  26529. --file=FILE[:TEMPLATE]
  26530. instantiate the configuration file FILE
  26531. --header=FILE[:TEMPLATE]
  26532. instantiate the configuration header FILE
  26533. Configuration files:
  26534. $config_files
  26535. Configuration headers:
  26536. $config_headers
  26537. Configuration commands:
  26538. $config_commands
  26539. Report bugs to the package provider."
  26540. _ACEOF
  26541. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26542. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26544. ac_cs_config='$ac_cs_config_escaped'
  26545. ac_cs_version="\\
  26546. config.status
  26547. configured by $0, generated by GNU Autoconf 2.71,
  26548. with options \\"\$ac_cs_config\\"
  26549. Copyright (C) 2021 Free Software Foundation, Inc.
  26550. This config.status script is free software; the Free Software Foundation
  26551. gives unlimited permission to copy, distribute and modify it."
  26552. ac_pwd='$ac_pwd'
  26553. srcdir='$srcdir'
  26554. INSTALL='$INSTALL'
  26555. AWK='$AWK'
  26556. test -n "\$AWK" || AWK=awk
  26557. _ACEOF
  26558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26559. # The default lists apply if the user does not specify any file.
  26560. ac_need_defaults=:
  26561. while test $# != 0
  26562. do
  26563. case $1 in
  26564. --*=?*)
  26565. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26566. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26567. ac_shift=:
  26568. ;;
  26569. --*=)
  26570. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26571. ac_optarg=
  26572. ac_shift=:
  26573. ;;
  26574. *)
  26575. ac_option=$1
  26576. ac_optarg=$2
  26577. ac_shift=shift
  26578. ;;
  26579. esac
  26580. case $ac_option in
  26581. # Handling of the options.
  26582. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26583. ac_cs_recheck=: ;;
  26584. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26585. printf "%s\n" "$ac_cs_version"; exit ;;
  26586. --config | --confi | --conf | --con | --co | --c )
  26587. printf "%s\n" "$ac_cs_config"; exit ;;
  26588. --debug | --debu | --deb | --de | --d | -d )
  26589. debug=: ;;
  26590. --file | --fil | --fi | --f )
  26591. $ac_shift
  26592. case $ac_optarg in
  26593. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26594. '') as_fn_error $? "missing file argument" ;;
  26595. esac
  26596. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26597. ac_need_defaults=false;;
  26598. --header | --heade | --head | --hea )
  26599. $ac_shift
  26600. case $ac_optarg in
  26601. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26602. esac
  26603. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26604. ac_need_defaults=false;;
  26605. --he | --h)
  26606. # Conflict between --help and --header
  26607. as_fn_error $? "ambiguous option: \`$1'
  26608. Try \`$0 --help' for more information.";;
  26609. --help | --hel | -h )
  26610. printf "%s\n" "$ac_cs_usage"; exit ;;
  26611. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26612. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26613. ac_cs_silent=: ;;
  26614. # This is an error.
  26615. -*) as_fn_error $? "unrecognized option: \`$1'
  26616. Try \`$0 --help' for more information." ;;
  26617. *) as_fn_append ac_config_targets " $1"
  26618. ac_need_defaults=false ;;
  26619. esac
  26620. shift
  26621. done
  26622. ac_configure_extra_args=
  26623. if $ac_cs_silent; then
  26624. exec 6>/dev/null
  26625. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26626. fi
  26627. _ACEOF
  26628. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26629. if \$ac_cs_recheck; then
  26630. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26631. shift
  26632. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26633. CONFIG_SHELL='$SHELL'
  26634. export CONFIG_SHELL
  26635. exec "\$@"
  26636. fi
  26637. _ACEOF
  26638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26639. exec 5>>config.log
  26640. {
  26641. echo
  26642. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26643. ## Running $as_me. ##
  26644. _ASBOX
  26645. printf "%s\n" "$ac_log"
  26646. } >&5
  26647. _ACEOF
  26648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26649. #
  26650. # INIT-COMMANDS
  26651. #
  26652. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26653. # if CDPATH is set.
  26654. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26655. sed_quote_subst='$sed_quote_subst'
  26656. double_quote_subst='$double_quote_subst'
  26657. delay_variable_subst='$delay_variable_subst'
  26658. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26659. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26660. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26661. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26662. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26663. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26664. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26665. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26666. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26667. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26668. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26669. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26670. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26671. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26672. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26673. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26674. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26675. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26676. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26677. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26678. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26679. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26680. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26681. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26682. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26683. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26684. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26685. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26686. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26687. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26688. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26689. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26690. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26691. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26692. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26693. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26694. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26695. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26696. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26697. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26698. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26699. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26700. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26701. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26702. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26703. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26704. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26705. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26706. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26707. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26708. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26709. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26710. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26711. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26712. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26713. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26714. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26715. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26716. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26717. 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"`'
  26718. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26719. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26720. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26721. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26722. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26723. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26724. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26725. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26726. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26727. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26728. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26729. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26730. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26731. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26732. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26733. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26734. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26735. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26736. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26737. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26738. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26739. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26740. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26741. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26742. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26743. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26744. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26745. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26746. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26747. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26748. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26749. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26750. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26751. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26752. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26753. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26754. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26755. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26756. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26757. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26758. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26759. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26760. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26761. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26762. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26763. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26764. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26765. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26766. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26767. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26768. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26769. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26770. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26771. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26772. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26773. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26774. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26775. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26776. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26777. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26778. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26779. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26780. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26781. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26782. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26783. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26784. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26785. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26786. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26787. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26788. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26789. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26790. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26791. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26792. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26793. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26794. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26795. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26796. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26797. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26798. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26799. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26800. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26801. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26802. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26803. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26804. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26805. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26806. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26807. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26808. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26809. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26810. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26811. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26812. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26813. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26814. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26815. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26816. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26817. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26818. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26819. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26820. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26821. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26822. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26823. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26824. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26825. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26826. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26827. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26828. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26829. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26830. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26831. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26832. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26833. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26834. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26835. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26836. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26837. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26838. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26839. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26840. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26841. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26842. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26843. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26844. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26845. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26846. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26847. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26848. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26849. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26850. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26851. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26852. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26853. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26854. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26855. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26856. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26857. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26858. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26859. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26860. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26861. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26862. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26863. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26864. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26865. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26866. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26867. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26868. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26869. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26870. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26871. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26872. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26873. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26874. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26875. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26876. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26877. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26878. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26879. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26880. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26881. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26882. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26883. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26884. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26885. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26886. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26887. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26888. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26889. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26890. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26891. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26892. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26893. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26894. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26895. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26896. LTCC='$LTCC'
  26897. LTCFLAGS='$LTCFLAGS'
  26898. compiler='$compiler_DEFAULT'
  26899. # A function that is used when there is no print builtin or printf.
  26900. func_fallback_echo ()
  26901. {
  26902. eval 'cat <<_LTECHO_EOF
  26903. \$1
  26904. _LTECHO_EOF'
  26905. }
  26906. # Quote evaled strings.
  26907. for var in AS \
  26908. DLLTOOL \
  26909. OBJDUMP \
  26910. SHELL \
  26911. ECHO \
  26912. PATH_SEPARATOR \
  26913. SED \
  26914. GREP \
  26915. EGREP \
  26916. FGREP \
  26917. LD \
  26918. NM \
  26919. LN_S \
  26920. lt_SP2NL \
  26921. lt_NL2SP \
  26922. reload_flag \
  26923. deplibs_check_method \
  26924. file_magic_cmd \
  26925. file_magic_glob \
  26926. want_nocaseglob \
  26927. sharedlib_from_linklib_cmd \
  26928. AR \
  26929. AR_FLAGS \
  26930. archiver_list_spec \
  26931. STRIP \
  26932. RANLIB \
  26933. CC \
  26934. CFLAGS \
  26935. compiler \
  26936. lt_cv_sys_global_symbol_pipe \
  26937. lt_cv_sys_global_symbol_to_cdecl \
  26938. lt_cv_sys_global_symbol_to_import \
  26939. lt_cv_sys_global_symbol_to_c_name_address \
  26940. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26941. lt_cv_nm_interface \
  26942. nm_file_list_spec \
  26943. lt_cv_truncate_bin \
  26944. lt_prog_compiler_no_builtin_flag \
  26945. lt_prog_compiler_pic \
  26946. lt_prog_compiler_wl \
  26947. lt_prog_compiler_static \
  26948. lt_cv_prog_compiler_c_o \
  26949. need_locks \
  26950. MANIFEST_TOOL \
  26951. DSYMUTIL \
  26952. NMEDIT \
  26953. LIPO \
  26954. OTOOL \
  26955. OTOOL64 \
  26956. shrext_cmds \
  26957. export_dynamic_flag_spec \
  26958. whole_archive_flag_spec \
  26959. compiler_needs_object \
  26960. with_gnu_ld \
  26961. allow_undefined_flag \
  26962. no_undefined_flag \
  26963. hardcode_libdir_flag_spec \
  26964. hardcode_libdir_separator \
  26965. exclude_expsyms \
  26966. include_expsyms \
  26967. file_list_spec \
  26968. variables_saved_for_relink \
  26969. libname_spec \
  26970. library_names_spec \
  26971. soname_spec \
  26972. install_override_mode \
  26973. finish_eval \
  26974. old_striplib \
  26975. striplib \
  26976. compiler_lib_search_dirs \
  26977. predep_objects \
  26978. postdep_objects \
  26979. predeps \
  26980. postdeps \
  26981. compiler_lib_search_path \
  26982. LD_RC \
  26983. LD_CXX \
  26984. reload_flag_RC \
  26985. reload_flag_CXX \
  26986. compiler_RC \
  26987. compiler_CXX \
  26988. lt_prog_compiler_no_builtin_flag_RC \
  26989. lt_prog_compiler_no_builtin_flag_CXX \
  26990. lt_prog_compiler_pic_RC \
  26991. lt_prog_compiler_pic_CXX \
  26992. lt_prog_compiler_wl_RC \
  26993. lt_prog_compiler_wl_CXX \
  26994. lt_prog_compiler_static_RC \
  26995. lt_prog_compiler_static_CXX \
  26996. lt_cv_prog_compiler_c_o_RC \
  26997. lt_cv_prog_compiler_c_o_CXX \
  26998. export_dynamic_flag_spec_RC \
  26999. export_dynamic_flag_spec_CXX \
  27000. whole_archive_flag_spec_RC \
  27001. whole_archive_flag_spec_CXX \
  27002. compiler_needs_object_RC \
  27003. compiler_needs_object_CXX \
  27004. with_gnu_ld_RC \
  27005. with_gnu_ld_CXX \
  27006. allow_undefined_flag_RC \
  27007. allow_undefined_flag_CXX \
  27008. no_undefined_flag_RC \
  27009. no_undefined_flag_CXX \
  27010. hardcode_libdir_flag_spec_RC \
  27011. hardcode_libdir_flag_spec_CXX \
  27012. hardcode_libdir_separator_RC \
  27013. hardcode_libdir_separator_CXX \
  27014. exclude_expsyms_RC \
  27015. exclude_expsyms_CXX \
  27016. include_expsyms_RC \
  27017. include_expsyms_CXX \
  27018. file_list_spec_RC \
  27019. file_list_spec_CXX \
  27020. compiler_lib_search_dirs_RC \
  27021. compiler_lib_search_dirs_CXX \
  27022. predep_objects_RC \
  27023. predep_objects_CXX \
  27024. postdep_objects_RC \
  27025. postdep_objects_CXX \
  27026. predeps_RC \
  27027. predeps_CXX \
  27028. postdeps_RC \
  27029. postdeps_CXX \
  27030. compiler_lib_search_path_RC \
  27031. compiler_lib_search_path_CXX; do
  27032. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27033. *[\\\\\\\`\\"\\\$]*)
  27034. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27035. ;;
  27036. *)
  27037. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27038. ;;
  27039. esac
  27040. done
  27041. # Double-quote double-evaled strings.
  27042. for var in reload_cmds \
  27043. old_postinstall_cmds \
  27044. old_postuninstall_cmds \
  27045. old_archive_cmds \
  27046. extract_expsyms_cmds \
  27047. old_archive_from_new_cmds \
  27048. old_archive_from_expsyms_cmds \
  27049. archive_cmds \
  27050. archive_expsym_cmds \
  27051. module_cmds \
  27052. module_expsym_cmds \
  27053. export_symbols_cmds \
  27054. prelink_cmds \
  27055. postlink_cmds \
  27056. postinstall_cmds \
  27057. postuninstall_cmds \
  27058. finish_cmds \
  27059. sys_lib_search_path_spec \
  27060. configure_time_dlsearch_path \
  27061. configure_time_lt_sys_library_path \
  27062. reload_cmds_RC \
  27063. reload_cmds_CXX \
  27064. old_archive_cmds_RC \
  27065. old_archive_cmds_CXX \
  27066. old_archive_from_new_cmds_RC \
  27067. old_archive_from_new_cmds_CXX \
  27068. old_archive_from_expsyms_cmds_RC \
  27069. old_archive_from_expsyms_cmds_CXX \
  27070. archive_cmds_RC \
  27071. archive_cmds_CXX \
  27072. archive_expsym_cmds_RC \
  27073. archive_expsym_cmds_CXX \
  27074. module_cmds_RC \
  27075. module_cmds_CXX \
  27076. module_expsym_cmds_RC \
  27077. module_expsym_cmds_CXX \
  27078. export_symbols_cmds_RC \
  27079. export_symbols_cmds_CXX \
  27080. prelink_cmds_RC \
  27081. prelink_cmds_CXX \
  27082. postlink_cmds_RC \
  27083. postlink_cmds_CXX; do
  27084. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27085. *[\\\\\\\`\\"\\\$]*)
  27086. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27087. ;;
  27088. *)
  27089. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27090. ;;
  27091. esac
  27092. done
  27093. ac_aux_dir='$ac_aux_dir'
  27094. # See if we are running on zsh, and set the options that allow our
  27095. # commands through without removal of \ escapes INIT.
  27096. if test -n "\${ZSH_VERSION+set}"; then
  27097. setopt NO_GLOB_SUBST
  27098. fi
  27099. PACKAGE='$PACKAGE'
  27100. VERSION='$VERSION'
  27101. RM='$RM'
  27102. ofile='$ofile'
  27103. SUMMARY="$SUMMARY"
  27104. _ACEOF
  27105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27106. # Handling of arguments.
  27107. for ac_config_target in $ac_config_targets
  27108. do
  27109. case $ac_config_target in
  27110. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27111. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27112. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27113. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27114. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27115. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27116. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27117. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27118. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27119. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27120. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27121. esac
  27122. done
  27123. # If the user did not use the arguments to specify the items to instantiate,
  27124. # then the envvar interface is used. Set only those that are not.
  27125. # We use the long form for the default assignment because of an extremely
  27126. # bizarre bug on SunOS 4.1.3.
  27127. if $ac_need_defaults; then
  27128. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27129. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27130. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27131. fi
  27132. # Have a temporary directory for convenience. Make it in the build tree
  27133. # simply because there is no reason against having it here, and in addition,
  27134. # creating and moving files from /tmp can sometimes cause problems.
  27135. # Hook for its removal unless debugging.
  27136. # Note that there is a small window in which the directory will not be cleaned:
  27137. # after its creation but before its name has been assigned to `$tmp'.
  27138. $debug ||
  27139. {
  27140. tmp= ac_tmp=
  27141. trap 'exit_status=$?
  27142. : "${ac_tmp:=$tmp}"
  27143. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27144. ' 0
  27145. trap 'as_fn_exit 1' 1 2 13 15
  27146. }
  27147. # Create a (secure) tmp directory for tmp files.
  27148. {
  27149. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27150. test -d "$tmp"
  27151. } ||
  27152. {
  27153. tmp=./conf$$-$RANDOM
  27154. (umask 077 && mkdir "$tmp")
  27155. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27156. ac_tmp=$tmp
  27157. # Set up the scripts for CONFIG_FILES section.
  27158. # No need to generate them if there are no CONFIG_FILES.
  27159. # This happens for instance with `./config.status config.h'.
  27160. if test -n "$CONFIG_FILES"; then
  27161. ac_cr=`echo X | tr X '\015'`
  27162. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27163. # But we know of no other shell where ac_cr would be empty at this
  27164. # point, so we can use a bashism as a fallback.
  27165. if test "x$ac_cr" = x; then
  27166. eval ac_cr=\$\'\\r\'
  27167. fi
  27168. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27169. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27170. ac_cs_awk_cr='\\r'
  27171. else
  27172. ac_cs_awk_cr=$ac_cr
  27173. fi
  27174. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27175. _ACEOF
  27176. {
  27177. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27178. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27179. echo "_ACEOF"
  27180. } >conf$$subs.sh ||
  27181. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27182. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27183. ac_delim='%!_!# '
  27184. for ac_last_try in false false false false false :; do
  27185. . ./conf$$subs.sh ||
  27186. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27187. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27188. if test $ac_delim_n = $ac_delim_num; then
  27189. break
  27190. elif $ac_last_try; then
  27191. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27192. else
  27193. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27194. fi
  27195. done
  27196. rm -f conf$$subs.sh
  27197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27198. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27199. _ACEOF
  27200. sed -n '
  27201. h
  27202. s/^/S["/; s/!.*/"]=/
  27203. p
  27204. g
  27205. s/^[^!]*!//
  27206. :repl
  27207. t repl
  27208. s/'"$ac_delim"'$//
  27209. t delim
  27210. :nl
  27211. h
  27212. s/\(.\{148\}\)..*/\1/
  27213. t more1
  27214. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27215. p
  27216. n
  27217. b repl
  27218. :more1
  27219. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27220. p
  27221. g
  27222. s/.\{148\}//
  27223. t nl
  27224. :delim
  27225. h
  27226. s/\(.\{148\}\)..*/\1/
  27227. t more2
  27228. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27229. p
  27230. b
  27231. :more2
  27232. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27233. p
  27234. g
  27235. s/.\{148\}//
  27236. t delim
  27237. ' <conf$$subs.awk | sed '
  27238. /^[^""]/{
  27239. N
  27240. s/\n//
  27241. }
  27242. ' >>$CONFIG_STATUS || ac_write_fail=1
  27243. rm -f conf$$subs.awk
  27244. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27245. _ACAWK
  27246. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27247. for (key in S) S_is_set[key] = 1
  27248. FS = ""
  27249. }
  27250. {
  27251. line = $ 0
  27252. nfields = split(line, field, "@")
  27253. substed = 0
  27254. len = length(field[1])
  27255. for (i = 2; i < nfields; i++) {
  27256. key = field[i]
  27257. keylen = length(key)
  27258. if (S_is_set[key]) {
  27259. value = S[key]
  27260. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27261. len += length(value) + length(field[++i])
  27262. substed = 1
  27263. } else
  27264. len += 1 + keylen
  27265. }
  27266. print line
  27267. }
  27268. _ACAWK
  27269. _ACEOF
  27270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27271. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27272. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27273. else
  27274. cat
  27275. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27276. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27277. _ACEOF
  27278. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27279. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27280. # trailing colons and then remove the whole line if VPATH becomes empty
  27281. # (actually we leave an empty line to preserve line numbers).
  27282. if test "x$srcdir" = x.; then
  27283. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27284. h
  27285. s///
  27286. s/^/:/
  27287. s/[ ]*$/:/
  27288. s/:\$(srcdir):/:/g
  27289. s/:\${srcdir}:/:/g
  27290. s/:@srcdir@:/:/g
  27291. s/^:*//
  27292. s/:*$//
  27293. x
  27294. s/\(=[ ]*\).*/\1/
  27295. G
  27296. s/\n//
  27297. s/^[^=]*=[ ]*$//
  27298. }'
  27299. fi
  27300. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27301. fi # test -n "$CONFIG_FILES"
  27302. # Set up the scripts for CONFIG_HEADERS section.
  27303. # No need to generate them if there are no CONFIG_HEADERS.
  27304. # This happens for instance with `./config.status Makefile'.
  27305. if test -n "$CONFIG_HEADERS"; then
  27306. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27307. BEGIN {
  27308. _ACEOF
  27309. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27310. # here-document in config.status, that substitutes the proper values into
  27311. # config.h.in to produce config.h.
  27312. # Create a delimiter string that does not exist in confdefs.h, to ease
  27313. # handling of long lines.
  27314. ac_delim='%!_!# '
  27315. for ac_last_try in false false :; do
  27316. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27317. if test -z "$ac_tt"; then
  27318. break
  27319. elif $ac_last_try; then
  27320. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27321. else
  27322. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27323. fi
  27324. done
  27325. # For the awk script, D is an array of macro values keyed by name,
  27326. # likewise P contains macro parameters if any. Preserve backslash
  27327. # newline sequences.
  27328. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27329. sed -n '
  27330. s/.\{148\}/&'"$ac_delim"'/g
  27331. t rset
  27332. :rset
  27333. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27334. t def
  27335. d
  27336. :def
  27337. s/\\$//
  27338. t bsnl
  27339. s/["\\]/\\&/g
  27340. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27341. D["\1"]=" \3"/p
  27342. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27343. d
  27344. :bsnl
  27345. s/["\\]/\\&/g
  27346. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27347. D["\1"]=" \3\\\\\\n"\\/p
  27348. t cont
  27349. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27350. t cont
  27351. d
  27352. :cont
  27353. n
  27354. s/.\{148\}/&'"$ac_delim"'/g
  27355. t clear
  27356. :clear
  27357. s/\\$//
  27358. t bsnlc
  27359. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27360. d
  27361. :bsnlc
  27362. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27363. b cont
  27364. ' <confdefs.h | sed '
  27365. s/'"$ac_delim"'/"\\\
  27366. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27368. for (key in D) D_is_set[key] = 1
  27369. FS = ""
  27370. }
  27371. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27372. line = \$ 0
  27373. split(line, arg, " ")
  27374. if (arg[1] == "#") {
  27375. defundef = arg[2]
  27376. mac1 = arg[3]
  27377. } else {
  27378. defundef = substr(arg[1], 2)
  27379. mac1 = arg[2]
  27380. }
  27381. split(mac1, mac2, "(") #)
  27382. macro = mac2[1]
  27383. prefix = substr(line, 1, index(line, defundef) - 1)
  27384. if (D_is_set[macro]) {
  27385. # Preserve the white space surrounding the "#".
  27386. print prefix "define", macro P[macro] D[macro]
  27387. next
  27388. } else {
  27389. # Replace #undef with comments. This is necessary, for example,
  27390. # in the case of _POSIX_SOURCE, which is predefined and required
  27391. # on some systems where configure will not decide to define it.
  27392. if (defundef == "undef") {
  27393. print "/*", prefix defundef, macro, "*/"
  27394. next
  27395. }
  27396. }
  27397. }
  27398. { print }
  27399. _ACAWK
  27400. _ACEOF
  27401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27402. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27403. fi # test -n "$CONFIG_HEADERS"
  27404. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27405. shift
  27406. for ac_tag
  27407. do
  27408. case $ac_tag in
  27409. :[FHLC]) ac_mode=$ac_tag; continue;;
  27410. esac
  27411. case $ac_mode$ac_tag in
  27412. :[FHL]*:*);;
  27413. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27414. :[FH]-) ac_tag=-:-;;
  27415. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27416. esac
  27417. ac_save_IFS=$IFS
  27418. IFS=:
  27419. set x $ac_tag
  27420. IFS=$ac_save_IFS
  27421. shift
  27422. ac_file=$1
  27423. shift
  27424. case $ac_mode in
  27425. :L) ac_source=$1;;
  27426. :[FH])
  27427. ac_file_inputs=
  27428. for ac_f
  27429. do
  27430. case $ac_f in
  27431. -) ac_f="$ac_tmp/stdin";;
  27432. *) # Look for the file first in the build tree, then in the source tree
  27433. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27434. # because $ac_f cannot contain `:'.
  27435. test -f "$ac_f" ||
  27436. case $ac_f in
  27437. [\\/$]*) false;;
  27438. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27439. esac ||
  27440. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27441. esac
  27442. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27443. as_fn_append ac_file_inputs " '$ac_f'"
  27444. done
  27445. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27446. # use $as_me), people would be surprised to read:
  27447. # /* config.h. Generated by config.status. */
  27448. configure_input='Generated from '`
  27449. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27450. `' by configure.'
  27451. if test x"$ac_file" != x-; then
  27452. configure_input="$ac_file. $configure_input"
  27453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27454. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27455. fi
  27456. # Neutralize special characters interpreted by sed in replacement strings.
  27457. case $configure_input in #(
  27458. *\&* | *\|* | *\\* )
  27459. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27460. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27461. *) ac_sed_conf_input=$configure_input;;
  27462. esac
  27463. case $ac_tag in
  27464. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27465. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27466. esac
  27467. ;;
  27468. esac
  27469. ac_dir=`$as_dirname -- "$ac_file" ||
  27470. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27471. X"$ac_file" : 'X\(//\)[^/]' \| \
  27472. X"$ac_file" : 'X\(//\)$' \| \
  27473. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27474. printf "%s\n" X"$ac_file" |
  27475. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27476. s//\1/
  27477. q
  27478. }
  27479. /^X\(\/\/\)[^/].*/{
  27480. s//\1/
  27481. q
  27482. }
  27483. /^X\(\/\/\)$/{
  27484. s//\1/
  27485. q
  27486. }
  27487. /^X\(\/\).*/{
  27488. s//\1/
  27489. q
  27490. }
  27491. s/.*/./; q'`
  27492. as_dir="$ac_dir"; as_fn_mkdir_p
  27493. ac_builddir=.
  27494. case "$ac_dir" in
  27495. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27496. *)
  27497. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27498. # A ".." for each directory in $ac_dir_suffix.
  27499. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27500. case $ac_top_builddir_sub in
  27501. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27502. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27503. esac ;;
  27504. esac
  27505. ac_abs_top_builddir=$ac_pwd
  27506. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27507. # for backward compatibility:
  27508. ac_top_builddir=$ac_top_build_prefix
  27509. case $srcdir in
  27510. .) # We are building in place.
  27511. ac_srcdir=.
  27512. ac_top_srcdir=$ac_top_builddir_sub
  27513. ac_abs_top_srcdir=$ac_pwd ;;
  27514. [\\/]* | ?:[\\/]* ) # Absolute name.
  27515. ac_srcdir=$srcdir$ac_dir_suffix;
  27516. ac_top_srcdir=$srcdir
  27517. ac_abs_top_srcdir=$srcdir ;;
  27518. *) # Relative name.
  27519. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27520. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27521. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27522. esac
  27523. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27524. case $ac_mode in
  27525. :F)
  27526. #
  27527. # CONFIG_FILE
  27528. #
  27529. case $INSTALL in
  27530. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27531. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27532. esac
  27533. _ACEOF
  27534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27535. # If the template does not know about datarootdir, expand it.
  27536. # FIXME: This hack should be removed a few years after 2.60.
  27537. ac_datarootdir_hack=; ac_datarootdir_seen=
  27538. ac_sed_dataroot='
  27539. /datarootdir/ {
  27540. p
  27541. q
  27542. }
  27543. /@datadir@/p
  27544. /@docdir@/p
  27545. /@infodir@/p
  27546. /@localedir@/p
  27547. /@mandir@/p'
  27548. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27549. *datarootdir*) ac_datarootdir_seen=yes;;
  27550. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27552. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27553. _ACEOF
  27554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27555. ac_datarootdir_hack='
  27556. s&@datadir@&$datadir&g
  27557. s&@docdir@&$docdir&g
  27558. s&@infodir@&$infodir&g
  27559. s&@localedir@&$localedir&g
  27560. s&@mandir@&$mandir&g
  27561. s&\\\${datarootdir}&$datarootdir&g' ;;
  27562. esac
  27563. _ACEOF
  27564. # Neutralize VPATH when `$srcdir' = `.'.
  27565. # Shell code in configure.ac might set extrasub.
  27566. # FIXME: do we really want to maintain this feature?
  27567. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27568. ac_sed_extra="$ac_vpsub
  27569. $extrasub
  27570. _ACEOF
  27571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27572. :t
  27573. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27574. s|@configure_input@|$ac_sed_conf_input|;t t
  27575. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27576. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27577. s&@srcdir@&$ac_srcdir&;t t
  27578. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27579. s&@top_srcdir@&$ac_top_srcdir&;t t
  27580. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27581. s&@builddir@&$ac_builddir&;t t
  27582. s&@abs_builddir@&$ac_abs_builddir&;t t
  27583. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27584. s&@INSTALL@&$ac_INSTALL&;t t
  27585. $ac_datarootdir_hack
  27586. "
  27587. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27588. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27589. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27590. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27591. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27592. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27594. which seems to be undefined. Please make sure it is defined" >&5
  27595. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27596. which seems to be undefined. Please make sure it is defined" >&2;}
  27597. rm -f "$ac_tmp/stdin"
  27598. case $ac_file in
  27599. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27600. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27601. esac \
  27602. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27603. ;;
  27604. :H)
  27605. #
  27606. # CONFIG_HEADER
  27607. #
  27608. if test x"$ac_file" != x-; then
  27609. {
  27610. printf "%s\n" "/* $configure_input */" >&1 \
  27611. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27612. } >"$ac_tmp/config.h" \
  27613. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27614. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27616. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27617. else
  27618. rm -f "$ac_file"
  27619. mv "$ac_tmp/config.h" "$ac_file" \
  27620. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27621. fi
  27622. else
  27623. printf "%s\n" "/* $configure_input */" >&1 \
  27624. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27625. || as_fn_error $? "could not create -" "$LINENO" 5
  27626. fi
  27627. ;;
  27628. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27629. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27630. ;;
  27631. esac
  27632. case $ac_file$ac_mode in
  27633. "libtool":C)
  27634. # See if we are running on zsh, and set the options that allow our
  27635. # commands through without removal of \ escapes.
  27636. if test -n "${ZSH_VERSION+set}"; then
  27637. setopt NO_GLOB_SUBST
  27638. fi
  27639. cfgfile=${ofile}T
  27640. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27641. $RM "$cfgfile"
  27642. cat <<_LT_EOF >> "$cfgfile"
  27643. #! $SHELL
  27644. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27645. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27646. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27647. # Provide generalized library-building support services.
  27648. # Written by Gordon Matzigkeit, 1996
  27649. # Copyright (C) 2014 Free Software Foundation, Inc.
  27650. # This is free software; see the source for copying conditions. There is NO
  27651. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27652. # GNU Libtool is free software; you can redistribute it and/or modify
  27653. # it under the terms of the GNU General Public License as published by
  27654. # the Free Software Foundation; either version 2 of of the License, or
  27655. # (at your option) any later version.
  27656. #
  27657. # As a special exception to the GNU General Public License, if you
  27658. # distribute this file as part of a program or library that is built
  27659. # using GNU Libtool, you may include this file under the same
  27660. # distribution terms that you use for the rest of that program.
  27661. #
  27662. # GNU Libtool is distributed in the hope that it will be useful, but
  27663. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27664. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27665. # GNU General Public License for more details.
  27666. #
  27667. # You should have received a copy of the GNU General Public License
  27668. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27669. # The names of the tagged configurations supported by this script.
  27670. available_tags='RC CXX '
  27671. # Configured defaults for sys_lib_dlsearch_path munging.
  27672. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27673. # ### BEGIN LIBTOOL CONFIG
  27674. # Which release of libtool.m4 was used?
  27675. macro_version=$macro_version
  27676. macro_revision=$macro_revision
  27677. # Assembler program.
  27678. AS=$lt_AS
  27679. # DLL creation program.
  27680. DLLTOOL=$lt_DLLTOOL
  27681. # Object dumper program.
  27682. OBJDUMP=$lt_OBJDUMP
  27683. # Whether or not to build shared libraries.
  27684. build_libtool_libs=$enable_shared
  27685. # Whether or not to build static libraries.
  27686. build_old_libs=$enable_static
  27687. # What type of objects to build.
  27688. pic_mode=$pic_mode
  27689. # Whether or not to optimize for fast installation.
  27690. fast_install=$enable_fast_install
  27691. # Shared archive member basename,for filename based shared library versioning on AIX.
  27692. shared_archive_member_spec=$shared_archive_member_spec
  27693. # Shell to use when invoking shell scripts.
  27694. SHELL=$lt_SHELL
  27695. # An echo program that protects backslashes.
  27696. ECHO=$lt_ECHO
  27697. # The PATH separator for the build system.
  27698. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27699. # The host system.
  27700. host_alias=$host_alias
  27701. host=$host
  27702. host_os=$host_os
  27703. # The build system.
  27704. build_alias=$build_alias
  27705. build=$build
  27706. build_os=$build_os
  27707. # A sed program that does not truncate output.
  27708. SED=$lt_SED
  27709. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27710. Xsed="\$SED -e 1s/^X//"
  27711. # A grep program that handles long lines.
  27712. GREP=$lt_GREP
  27713. # An ERE matcher.
  27714. EGREP=$lt_EGREP
  27715. # A literal string matcher.
  27716. FGREP=$lt_FGREP
  27717. # A BSD- or MS-compatible name lister.
  27718. NM=$lt_NM
  27719. # Whether we need soft or hard links.
  27720. LN_S=$lt_LN_S
  27721. # What is the maximum length of a command?
  27722. max_cmd_len=$max_cmd_len
  27723. # Object file suffix (normally "o").
  27724. objext=$ac_objext
  27725. # Executable file suffix (normally "").
  27726. exeext=$exeext
  27727. # whether the shell understands "unset".
  27728. lt_unset=$lt_unset
  27729. # turn spaces into newlines.
  27730. SP2NL=$lt_lt_SP2NL
  27731. # turn newlines into spaces.
  27732. NL2SP=$lt_lt_NL2SP
  27733. # convert \$build file names to \$host format.
  27734. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27735. # convert \$build files to toolchain format.
  27736. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27737. # Method to check whether dependent libraries are shared objects.
  27738. deplibs_check_method=$lt_deplibs_check_method
  27739. # Command to use when deplibs_check_method = "file_magic".
  27740. file_magic_cmd=$lt_file_magic_cmd
  27741. # How to find potential files when deplibs_check_method = "file_magic".
  27742. file_magic_glob=$lt_file_magic_glob
  27743. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27744. want_nocaseglob=$lt_want_nocaseglob
  27745. # Command to associate shared and link libraries.
  27746. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27747. # The archiver.
  27748. AR=$lt_AR
  27749. # Flags to create an archive.
  27750. AR_FLAGS=$lt_AR_FLAGS
  27751. # How to feed a file listing to the archiver.
  27752. archiver_list_spec=$lt_archiver_list_spec
  27753. # A symbol stripping program.
  27754. STRIP=$lt_STRIP
  27755. # Commands used to install an old-style archive.
  27756. RANLIB=$lt_RANLIB
  27757. old_postinstall_cmds=$lt_old_postinstall_cmds
  27758. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27759. # Whether to use a lock for old archive extraction.
  27760. lock_old_archive_extraction=$lock_old_archive_extraction
  27761. # A C compiler.
  27762. LTCC=$lt_CC
  27763. # LTCC compiler flags.
  27764. LTCFLAGS=$lt_CFLAGS
  27765. # Take the output of nm and produce a listing of raw symbols and C names.
  27766. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27767. # Transform the output of nm in a proper C declaration.
  27768. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27769. # Transform the output of nm into a list of symbols to manually relocate.
  27770. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27771. # Transform the output of nm in a C name address pair.
  27772. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27773. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27774. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27775. # The name lister interface.
  27776. nm_interface=$lt_lt_cv_nm_interface
  27777. # Specify filename containing input files for \$NM.
  27778. nm_file_list_spec=$lt_nm_file_list_spec
  27779. # The root where to search for dependent libraries,and where our libraries should be installed.
  27780. lt_sysroot=$lt_sysroot
  27781. # Command to truncate a binary pipe.
  27782. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27783. # The name of the directory that contains temporary libtool files.
  27784. objdir=$objdir
  27785. # Used to examine libraries when file_magic_cmd begins with "file".
  27786. MAGIC_CMD=$MAGIC_CMD
  27787. # Must we lock files when doing compilation?
  27788. need_locks=$lt_need_locks
  27789. # Manifest tool.
  27790. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27791. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27792. DSYMUTIL=$lt_DSYMUTIL
  27793. # Tool to change global to local symbols on Mac OS X.
  27794. NMEDIT=$lt_NMEDIT
  27795. # Tool to manipulate fat objects and archives on Mac OS X.
  27796. LIPO=$lt_LIPO
  27797. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27798. OTOOL=$lt_OTOOL
  27799. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27800. OTOOL64=$lt_OTOOL64
  27801. # Old archive suffix (normally "a").
  27802. libext=$libext
  27803. # Shared library suffix (normally ".so").
  27804. shrext_cmds=$lt_shrext_cmds
  27805. # The commands to extract the exported symbol list from a shared archive.
  27806. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27807. # Variables whose values should be saved in libtool wrapper scripts and
  27808. # restored at link time.
  27809. variables_saved_for_relink=$lt_variables_saved_for_relink
  27810. # Do we need the "lib" prefix for modules?
  27811. need_lib_prefix=$need_lib_prefix
  27812. # Do we need a version for libraries?
  27813. need_version=$need_version
  27814. # Library versioning type.
  27815. version_type=$version_type
  27816. # Shared library runtime path variable.
  27817. runpath_var=$runpath_var
  27818. # Shared library path variable.
  27819. shlibpath_var=$shlibpath_var
  27820. # Is shlibpath searched before the hard-coded library search path?
  27821. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27822. # Format of library name prefix.
  27823. libname_spec=$lt_libname_spec
  27824. # List of archive names. First name is the real one, the rest are links.
  27825. # The last name is the one that the linker finds with -lNAME
  27826. library_names_spec=$lt_library_names_spec
  27827. # The coded name of the library, if different from the real name.
  27828. soname_spec=$lt_soname_spec
  27829. # Permission mode override for installation of shared libraries.
  27830. install_override_mode=$lt_install_override_mode
  27831. # Command to use after installation of a shared archive.
  27832. postinstall_cmds=$lt_postinstall_cmds
  27833. # Command to use after uninstallation of a shared archive.
  27834. postuninstall_cmds=$lt_postuninstall_cmds
  27835. # Commands used to finish a libtool library installation in a directory.
  27836. finish_cmds=$lt_finish_cmds
  27837. # As "finish_cmds", except a single script fragment to be evaled but
  27838. # not shown.
  27839. finish_eval=$lt_finish_eval
  27840. # Whether we should hardcode library paths into libraries.
  27841. hardcode_into_libs=$hardcode_into_libs
  27842. # Compile-time system search path for libraries.
  27843. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27844. # Detected run-time system search path for libraries.
  27845. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27846. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27847. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27848. # Whether dlopen is supported.
  27849. dlopen_support=$enable_dlopen
  27850. # Whether dlopen of programs is supported.
  27851. dlopen_self=$enable_dlopen_self
  27852. # Whether dlopen of statically linked programs is supported.
  27853. dlopen_self_static=$enable_dlopen_self_static
  27854. # Commands to strip libraries.
  27855. old_striplib=$lt_old_striplib
  27856. striplib=$lt_striplib
  27857. # The linker used to build libraries.
  27858. LD=$lt_LD
  27859. # How to create reloadable object files.
  27860. reload_flag=$lt_reload_flag
  27861. reload_cmds=$lt_reload_cmds
  27862. # Commands used to build an old-style archive.
  27863. old_archive_cmds=$lt_old_archive_cmds
  27864. # A language specific compiler.
  27865. CC=$lt_compiler
  27866. # Is the compiler the GNU compiler?
  27867. with_gcc=$GCC
  27868. # Compiler flag to turn off builtin functions.
  27869. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27870. # Additional compiler flags for building library objects.
  27871. pic_flag=$lt_lt_prog_compiler_pic
  27872. # How to pass a linker flag through the compiler.
  27873. wl=$lt_lt_prog_compiler_wl
  27874. # Compiler flag to prevent dynamic linking.
  27875. link_static_flag=$lt_lt_prog_compiler_static
  27876. # Does compiler simultaneously support -c and -o options?
  27877. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27878. # Whether or not to add -lc for building shared libraries.
  27879. build_libtool_need_lc=$archive_cmds_need_lc
  27880. # Whether or not to disallow shared libs when runtime libs are static.
  27881. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27882. # Compiler flag to allow reflexive dlopens.
  27883. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27884. # Compiler flag to generate shared objects directly from archives.
  27885. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27886. # Whether the compiler copes with passing no objects directly.
  27887. compiler_needs_object=$lt_compiler_needs_object
  27888. # Create an old-style archive from a shared archive.
  27889. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27890. # Create a temporary old-style archive to link instead of a shared archive.
  27891. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27892. # Commands used to build a shared archive.
  27893. archive_cmds=$lt_archive_cmds
  27894. archive_expsym_cmds=$lt_archive_expsym_cmds
  27895. # Commands used to build a loadable module if different from building
  27896. # a shared archive.
  27897. module_cmds=$lt_module_cmds
  27898. module_expsym_cmds=$lt_module_expsym_cmds
  27899. # Whether we are building with GNU ld or not.
  27900. with_gnu_ld=$lt_with_gnu_ld
  27901. # Flag that allows shared libraries with undefined symbols to be built.
  27902. allow_undefined_flag=$lt_allow_undefined_flag
  27903. # Flag that enforces no undefined symbols.
  27904. no_undefined_flag=$lt_no_undefined_flag
  27905. # Flag to hardcode \$libdir into a binary during linking.
  27906. # This must work even if \$libdir does not exist
  27907. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27908. # Whether we need a single "-rpath" flag with a separated argument.
  27909. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27910. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27911. # DIR into the resulting binary.
  27912. hardcode_direct=$hardcode_direct
  27913. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27914. # DIR into the resulting binary and the resulting library dependency is
  27915. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27916. # library is relocated.
  27917. hardcode_direct_absolute=$hardcode_direct_absolute
  27918. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27919. # into the resulting binary.
  27920. hardcode_minus_L=$hardcode_minus_L
  27921. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27922. # into the resulting binary.
  27923. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27924. # Set to "yes" if building a shared library automatically hardcodes DIR
  27925. # into the library and all subsequent libraries and executables linked
  27926. # against it.
  27927. hardcode_automatic=$hardcode_automatic
  27928. # Set to yes if linker adds runtime paths of dependent libraries
  27929. # to runtime path list.
  27930. inherit_rpath=$inherit_rpath
  27931. # Whether libtool must link a program against all its dependency libraries.
  27932. link_all_deplibs=$link_all_deplibs
  27933. # Set to "yes" if exported symbols are required.
  27934. always_export_symbols=$always_export_symbols
  27935. # The commands to list exported symbols.
  27936. export_symbols_cmds=$lt_export_symbols_cmds
  27937. # Symbols that should not be listed in the preloaded symbols.
  27938. exclude_expsyms=$lt_exclude_expsyms
  27939. # Symbols that must always be exported.
  27940. include_expsyms=$lt_include_expsyms
  27941. # Commands necessary for linking programs (against libraries) with templates.
  27942. prelink_cmds=$lt_prelink_cmds
  27943. # Commands necessary for finishing linking programs.
  27944. postlink_cmds=$lt_postlink_cmds
  27945. # Specify filename containing input files.
  27946. file_list_spec=$lt_file_list_spec
  27947. # How to hardcode a shared library path into an executable.
  27948. hardcode_action=$hardcode_action
  27949. # The directories searched by this compiler when creating a shared library.
  27950. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27951. # Dependencies to place before and after the objects being linked to
  27952. # create a shared library.
  27953. predep_objects=$lt_predep_objects
  27954. postdep_objects=$lt_postdep_objects
  27955. predeps=$lt_predeps
  27956. postdeps=$lt_postdeps
  27957. # The library search path used internally by the compiler when linking
  27958. # a shared library.
  27959. compiler_lib_search_path=$lt_compiler_lib_search_path
  27960. # ### END LIBTOOL CONFIG
  27961. _LT_EOF
  27962. cat <<'_LT_EOF' >> "$cfgfile"
  27963. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27964. # func_munge_path_list VARIABLE PATH
  27965. # -----------------------------------
  27966. # VARIABLE is name of variable containing _space_ separated list of
  27967. # directories to be munged by the contents of PATH, which is string
  27968. # having a format:
  27969. # "DIR[:DIR]:"
  27970. # string "DIR[ DIR]" will be prepended to VARIABLE
  27971. # ":DIR[:DIR]"
  27972. # string "DIR[ DIR]" will be appended to VARIABLE
  27973. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27974. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27975. # "DIRA[ DIRA]" will be appended to VARIABLE
  27976. # "DIR[:DIR]"
  27977. # VARIABLE will be replaced by "DIR[ DIR]"
  27978. func_munge_path_list ()
  27979. {
  27980. case x$2 in
  27981. x)
  27982. ;;
  27983. *:)
  27984. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27985. ;;
  27986. x:*)
  27987. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27988. ;;
  27989. *::*)
  27990. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27991. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27992. ;;
  27993. *)
  27994. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27995. ;;
  27996. esac
  27997. }
  27998. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27999. func_cc_basename ()
  28000. {
  28001. for cc_temp in $*""; do
  28002. case $cc_temp in
  28003. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28004. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28005. \-*) ;;
  28006. *) break;;
  28007. esac
  28008. done
  28009. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28010. }
  28011. # ### END FUNCTIONS SHARED WITH CONFIGURE
  28012. _LT_EOF
  28013. case $host_os in
  28014. aix3*)
  28015. cat <<\_LT_EOF >> "$cfgfile"
  28016. # AIX sometimes has problems with the GCC collect2 program. For some
  28017. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28018. # vanish in a puff of smoke.
  28019. if test set != "${COLLECT_NAMES+set}"; then
  28020. COLLECT_NAMES=
  28021. export COLLECT_NAMES
  28022. fi
  28023. _LT_EOF
  28024. ;;
  28025. esac
  28026. ltmain=$ac_aux_dir/ltmain.sh
  28027. # We use sed instead of cat because bash on DJGPP gets confused if
  28028. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28029. # text mode, it properly converts lines to CR/LF. This bash problem
  28030. # is reportedly fixed, but why not run on old versions too?
  28031. sed '$q' "$ltmain" >> "$cfgfile" \
  28032. || (rm -f "$cfgfile"; exit 1)
  28033. mv -f "$cfgfile" "$ofile" ||
  28034. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28035. chmod +x "$ofile"
  28036. cat <<_LT_EOF >> "$ofile"
  28037. # ### BEGIN LIBTOOL TAG CONFIG: RC
  28038. # The linker used to build libraries.
  28039. LD=$lt_LD_RC
  28040. # How to create reloadable object files.
  28041. reload_flag=$lt_reload_flag_RC
  28042. reload_cmds=$lt_reload_cmds_RC
  28043. # Commands used to build an old-style archive.
  28044. old_archive_cmds=$lt_old_archive_cmds_RC
  28045. # A language specific compiler.
  28046. CC=$lt_compiler_RC
  28047. # Is the compiler the GNU compiler?
  28048. with_gcc=$GCC_RC
  28049. # Compiler flag to turn off builtin functions.
  28050. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28051. # Additional compiler flags for building library objects.
  28052. pic_flag=$lt_lt_prog_compiler_pic_RC
  28053. # How to pass a linker flag through the compiler.
  28054. wl=$lt_lt_prog_compiler_wl_RC
  28055. # Compiler flag to prevent dynamic linking.
  28056. link_static_flag=$lt_lt_prog_compiler_static_RC
  28057. # Does compiler simultaneously support -c and -o options?
  28058. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28059. # Whether or not to add -lc for building shared libraries.
  28060. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28061. # Whether or not to disallow shared libs when runtime libs are static.
  28062. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28063. # Compiler flag to allow reflexive dlopens.
  28064. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28065. # Compiler flag to generate shared objects directly from archives.
  28066. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28067. # Whether the compiler copes with passing no objects directly.
  28068. compiler_needs_object=$lt_compiler_needs_object_RC
  28069. # Create an old-style archive from a shared archive.
  28070. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28071. # Create a temporary old-style archive to link instead of a shared archive.
  28072. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28073. # Commands used to build a shared archive.
  28074. archive_cmds=$lt_archive_cmds_RC
  28075. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28076. # Commands used to build a loadable module if different from building
  28077. # a shared archive.
  28078. module_cmds=$lt_module_cmds_RC
  28079. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28080. # Whether we are building with GNU ld or not.
  28081. with_gnu_ld=$lt_with_gnu_ld_RC
  28082. # Flag that allows shared libraries with undefined symbols to be built.
  28083. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28084. # Flag that enforces no undefined symbols.
  28085. no_undefined_flag=$lt_no_undefined_flag_RC
  28086. # Flag to hardcode \$libdir into a binary during linking.
  28087. # This must work even if \$libdir does not exist
  28088. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28089. # Whether we need a single "-rpath" flag with a separated argument.
  28090. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28091. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28092. # DIR into the resulting binary.
  28093. hardcode_direct=$hardcode_direct_RC
  28094. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28095. # DIR into the resulting binary and the resulting library dependency is
  28096. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28097. # library is relocated.
  28098. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28099. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28100. # into the resulting binary.
  28101. hardcode_minus_L=$hardcode_minus_L_RC
  28102. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28103. # into the resulting binary.
  28104. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28105. # Set to "yes" if building a shared library automatically hardcodes DIR
  28106. # into the library and all subsequent libraries and executables linked
  28107. # against it.
  28108. hardcode_automatic=$hardcode_automatic_RC
  28109. # Set to yes if linker adds runtime paths of dependent libraries
  28110. # to runtime path list.
  28111. inherit_rpath=$inherit_rpath_RC
  28112. # Whether libtool must link a program against all its dependency libraries.
  28113. link_all_deplibs=$link_all_deplibs_RC
  28114. # Set to "yes" if exported symbols are required.
  28115. always_export_symbols=$always_export_symbols_RC
  28116. # The commands to list exported symbols.
  28117. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28118. # Symbols that should not be listed in the preloaded symbols.
  28119. exclude_expsyms=$lt_exclude_expsyms_RC
  28120. # Symbols that must always be exported.
  28121. include_expsyms=$lt_include_expsyms_RC
  28122. # Commands necessary for linking programs (against libraries) with templates.
  28123. prelink_cmds=$lt_prelink_cmds_RC
  28124. # Commands necessary for finishing linking programs.
  28125. postlink_cmds=$lt_postlink_cmds_RC
  28126. # Specify filename containing input files.
  28127. file_list_spec=$lt_file_list_spec_RC
  28128. # How to hardcode a shared library path into an executable.
  28129. hardcode_action=$hardcode_action_RC
  28130. # The directories searched by this compiler when creating a shared library.
  28131. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28132. # Dependencies to place before and after the objects being linked to
  28133. # create a shared library.
  28134. predep_objects=$lt_predep_objects_RC
  28135. postdep_objects=$lt_postdep_objects_RC
  28136. predeps=$lt_predeps_RC
  28137. postdeps=$lt_postdeps_RC
  28138. # The library search path used internally by the compiler when linking
  28139. # a shared library.
  28140. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28141. # ### END LIBTOOL TAG CONFIG: RC
  28142. _LT_EOF
  28143. cat <<_LT_EOF >> "$ofile"
  28144. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28145. # The linker used to build libraries.
  28146. LD=$lt_LD_CXX
  28147. # How to create reloadable object files.
  28148. reload_flag=$lt_reload_flag_CXX
  28149. reload_cmds=$lt_reload_cmds_CXX
  28150. # Commands used to build an old-style archive.
  28151. old_archive_cmds=$lt_old_archive_cmds_CXX
  28152. # A language specific compiler.
  28153. CC=$lt_compiler_CXX
  28154. # Is the compiler the GNU compiler?
  28155. with_gcc=$GCC_CXX
  28156. # Compiler flag to turn off builtin functions.
  28157. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28158. # Additional compiler flags for building library objects.
  28159. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28160. # How to pass a linker flag through the compiler.
  28161. wl=$lt_lt_prog_compiler_wl_CXX
  28162. # Compiler flag to prevent dynamic linking.
  28163. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28164. # Does compiler simultaneously support -c and -o options?
  28165. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28166. # Whether or not to add -lc for building shared libraries.
  28167. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28168. # Whether or not to disallow shared libs when runtime libs are static.
  28169. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28170. # Compiler flag to allow reflexive dlopens.
  28171. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28172. # Compiler flag to generate shared objects directly from archives.
  28173. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28174. # Whether the compiler copes with passing no objects directly.
  28175. compiler_needs_object=$lt_compiler_needs_object_CXX
  28176. # Create an old-style archive from a shared archive.
  28177. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28178. # Create a temporary old-style archive to link instead of a shared archive.
  28179. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28180. # Commands used to build a shared archive.
  28181. archive_cmds=$lt_archive_cmds_CXX
  28182. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28183. # Commands used to build a loadable module if different from building
  28184. # a shared archive.
  28185. module_cmds=$lt_module_cmds_CXX
  28186. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28187. # Whether we are building with GNU ld or not.
  28188. with_gnu_ld=$lt_with_gnu_ld_CXX
  28189. # Flag that allows shared libraries with undefined symbols to be built.
  28190. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28191. # Flag that enforces no undefined symbols.
  28192. no_undefined_flag=$lt_no_undefined_flag_CXX
  28193. # Flag to hardcode \$libdir into a binary during linking.
  28194. # This must work even if \$libdir does not exist
  28195. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28196. # Whether we need a single "-rpath" flag with a separated argument.
  28197. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28198. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28199. # DIR into the resulting binary.
  28200. hardcode_direct=$hardcode_direct_CXX
  28201. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28202. # DIR into the resulting binary and the resulting library dependency is
  28203. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28204. # library is relocated.
  28205. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28206. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28207. # into the resulting binary.
  28208. hardcode_minus_L=$hardcode_minus_L_CXX
  28209. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28210. # into the resulting binary.
  28211. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28212. # Set to "yes" if building a shared library automatically hardcodes DIR
  28213. # into the library and all subsequent libraries and executables linked
  28214. # against it.
  28215. hardcode_automatic=$hardcode_automatic_CXX
  28216. # Set to yes if linker adds runtime paths of dependent libraries
  28217. # to runtime path list.
  28218. inherit_rpath=$inherit_rpath_CXX
  28219. # Whether libtool must link a program against all its dependency libraries.
  28220. link_all_deplibs=$link_all_deplibs_CXX
  28221. # Set to "yes" if exported symbols are required.
  28222. always_export_symbols=$always_export_symbols_CXX
  28223. # The commands to list exported symbols.
  28224. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28225. # Symbols that should not be listed in the preloaded symbols.
  28226. exclude_expsyms=$lt_exclude_expsyms_CXX
  28227. # Symbols that must always be exported.
  28228. include_expsyms=$lt_include_expsyms_CXX
  28229. # Commands necessary for linking programs (against libraries) with templates.
  28230. prelink_cmds=$lt_prelink_cmds_CXX
  28231. # Commands necessary for finishing linking programs.
  28232. postlink_cmds=$lt_postlink_cmds_CXX
  28233. # Specify filename containing input files.
  28234. file_list_spec=$lt_file_list_spec_CXX
  28235. # How to hardcode a shared library path into an executable.
  28236. hardcode_action=$hardcode_action_CXX
  28237. # The directories searched by this compiler when creating a shared library.
  28238. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28239. # Dependencies to place before and after the objects being linked to
  28240. # create a shared library.
  28241. predep_objects=$lt_predep_objects_CXX
  28242. postdep_objects=$lt_postdep_objects_CXX
  28243. predeps=$lt_predeps_CXX
  28244. postdeps=$lt_postdeps_CXX
  28245. # The library search path used internally by the compiler when linking
  28246. # a shared library.
  28247. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28248. # ### END LIBTOOL TAG CONFIG: CXX
  28249. _LT_EOF
  28250. ;;
  28251. "sdl2_config":C) chmod a+x sdl2-config ;;
  28252. "summary":C) printf "$SUMMARY" ;;
  28253. esac
  28254. done # for ac_tag
  28255. as_fn_exit 0
  28256. _ACEOF
  28257. ac_clean_files=$ac_clean_files_save
  28258. test $ac_write_fail = 0 ||
  28259. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28260. # configure is writing to config.log, and then calls config.status.
  28261. # config.status does its own redirection, appending to config.log.
  28262. # Unfortunately, on DOS this fails, as config.log is still kept open
  28263. # by configure, so config.status won't be able to write to it; its
  28264. # output is simply discarded. So we exec the FD to /dev/null,
  28265. # effectively closing config.log, so it can be properly (re)opened and
  28266. # appended to by config.status. When coming back to configure, we
  28267. # need to make the FD available again.
  28268. if test "$no_create" != yes; then
  28269. ac_cs_success=:
  28270. ac_config_status_args=
  28271. test "$silent" = yes &&
  28272. ac_config_status_args="$ac_config_status_args --quiet"
  28273. exec 5>/dev/null
  28274. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28275. exec 5>>config.log
  28276. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28277. # would make configure fail if this is the last instruction.
  28278. $ac_cs_success || as_fn_exit 1
  28279. fi
  28280. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28282. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28283. fi