configure 917 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300
  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 bug-autoconf@gnu.org 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. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. SDL_VENDOR_INFO
  627. INSTALL_SDL3_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. SNDIO_LIBS
  648. SNDIO_CFLAGS
  649. PULSEAUDIO_LIBS
  650. PULSEAUDIO_CFLAGS
  651. PIPEWIRE_LIBS
  652. PIPEWIRE_CFLAGS
  653. JACK_LIBS
  654. JACK_CFLAGS
  655. ALSA_LIBS
  656. ALSA_CFLAGS
  657. ALLOCA
  658. CPP
  659. LIBTOOLLINKERTAG
  660. LINKER
  661. SORT
  662. PKG_CONFIG_LIBDIR
  663. PKG_CONFIG_PATH
  664. PKG_CONFIG
  665. SET_MAKE
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. CXXCPP
  670. ac_ct_CXX
  671. CXXFLAGS
  672. CXX
  673. LT_AGE
  674. LT_REVISION
  675. LT_CURRENT
  676. LT_RELEASE
  677. RC
  678. LT_SYS_LIBRARY_PATH
  679. OTOOL64
  680. OTOOL
  681. LIPO
  682. NMEDIT
  683. DSYMUTIL
  684. MANIFEST_TOOL
  685. AWK
  686. RANLIB
  687. STRIP
  688. ac_ct_AR
  689. AR
  690. LN_S
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. EGREP
  697. GREP
  698. SED
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CC
  702. CPPFLAGS
  703. LDFLAGS
  704. CFLAGS
  705. CC
  706. host_os
  707. host_vendor
  708. host_cpu
  709. host
  710. build_os
  711. build_vendor
  712. build_cpu
  713. build
  714. LIBTOOL
  715. OBJDUMP
  716. DLLTOOL
  717. AS
  718. SDL_VERSION
  719. SDL_BINARY_AGE
  720. SDL_INTERFACE_AGE
  721. SDL_MICRO_VERSION
  722. SDL_MINOR_VERSION
  723. SDL_MAJOR_VERSION
  724. target_alias
  725. host_alias
  726. build_alias
  727. LIBS
  728. ECHO_T
  729. ECHO_N
  730. ECHO_C
  731. DEFS
  732. mandir
  733. localedir
  734. libdir
  735. psdir
  736. pdfdir
  737. dvidir
  738. htmldir
  739. infodir
  740. docdir
  741. oldincludedir
  742. includedir
  743. runstatedir
  744. localstatedir
  745. sharedstatedir
  746. sysconfdir
  747. datadir
  748. datarootdir
  749. libexecdir
  750. sbindir
  751. bindir
  752. program_transform_name
  753. prefix
  754. exec_prefix
  755. PACKAGE_URL
  756. PACKAGE_BUGREPORT
  757. PACKAGE_STRING
  758. PACKAGE_VERSION
  759. PACKAGE_TARNAME
  760. PACKAGE_NAME
  761. PATH_SEPARATOR
  762. SHELL'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_shared
  767. enable_static
  768. with_pic
  769. enable_fast_install
  770. with_aix_soname
  771. with_gnu_ld
  772. with_sysroot
  773. enable_libtool_lock
  774. enable_largefile
  775. enable_assertions
  776. enable_dependency_tracking
  777. enable_libc
  778. enable_system_iconv
  779. enable_gcc_atomics
  780. enable_atomic
  781. enable_audio
  782. enable_video
  783. enable_render
  784. enable_events
  785. enable_joystick
  786. enable_haptic
  787. enable_hidapi
  788. enable_sensor
  789. enable_power
  790. enable_filesystem
  791. enable_timers
  792. enable_file
  793. enable_misc
  794. enable_locale
  795. enable_loadso
  796. enable_cpuinfo
  797. enable_assembly
  798. enable_ssemath
  799. enable_mmx
  800. enable_3dnow
  801. enable_sse
  802. enable_sse2
  803. enable_sse3
  804. enable_altivec
  805. enable_lsx
  806. enable_lasx
  807. enable_oss
  808. enable_alsa
  809. with_alsa_prefix
  810. with_alsa_inc_prefix
  811. enable_alsatest
  812. enable_alsa_shared
  813. enable_jack
  814. enable_jack_shared
  815. enable_pipewire
  816. enable_pipewire_shared
  817. enable_pulseaudio
  818. enable_pulseaudio_shared
  819. enable_sndio
  820. enable_sndio_shared
  821. enable_diskaudio
  822. enable_dummyaudio
  823. enable_libsamplerate
  824. enable_libsamplerate_shared
  825. enable_arm_simd
  826. enable_arm_neon
  827. enable_werror
  828. enable_video_wayland
  829. enable_video_wayland_qt_touch
  830. enable_wayland_shared
  831. enable_libdecor
  832. enable_libdecor_shared
  833. enable_video_rpi
  834. enable_video_x11
  835. with_x
  836. enable_x11_shared
  837. enable_video_x11_xcursor
  838. enable_video_x11_xdbe
  839. enable_video_x11_xinput
  840. enable_video_x11_xfixes
  841. enable_video_x11_xrandr
  842. enable_video_x11_scrnsaver
  843. enable_video_x11_xshape
  844. enable_video_vivante
  845. enable_video_cocoa
  846. enable_video_metal
  847. enable_render_metal
  848. enable_video_kmsdrm
  849. enable_kmsdrm_shared
  850. enable_video_dummy
  851. enable_video_offscreen
  852. enable_video_opengl
  853. enable_video_opengles
  854. enable_video_opengles2
  855. enable_video_vulkan
  856. enable_libudev
  857. enable_dbus
  858. enable_ime
  859. enable_ibus
  860. enable_fcitx
  861. enable_joystick_mfi
  862. enable_pthreads
  863. enable_pthread_sem
  864. enable_directx
  865. enable_xinput
  866. enable_wasapi
  867. enable_hidapi_joystick
  868. enable_hidapi_libusb
  869. enable_clock_gettime
  870. enable_rpath
  871. enable_backgrounding_signal
  872. enable_foregrounding_signal
  873. enable_joystick_virtual
  874. enable_render_d3d
  875. enable_sdl3_config
  876. enable_vendor_info
  877. '
  878. ac_precious_vars='build_alias
  879. host_alias
  880. target_alias
  881. CC
  882. CFLAGS
  883. LDFLAGS
  884. LIBS
  885. CPPFLAGS
  886. LT_SYS_LIBRARY_PATH
  887. CXX
  888. CXXFLAGS
  889. CCC
  890. CXXCPP
  891. PKG_CONFIG
  892. PKG_CONFIG_PATH
  893. PKG_CONFIG_LIBDIR
  894. CPP
  895. JACK_CFLAGS
  896. JACK_LIBS
  897. PIPEWIRE_CFLAGS
  898. PIPEWIRE_LIBS
  899. PULSEAUDIO_CFLAGS
  900. PULSEAUDIO_LIBS
  901. SNDIO_CFLAGS
  902. SNDIO_LIBS
  903. DECOR_CFLAGS
  904. DECOR_LIBS
  905. RPI_CFLAGS
  906. RPI_LIBS
  907. XMKMF
  908. LIBDRM_CFLAGS
  909. LIBDRM_LIBS
  910. LIBGBM_CFLAGS
  911. LIBGBM_LIBS
  912. DBUS_CFLAGS
  913. DBUS_LIBS
  914. IBUS_CFLAGS
  915. IBUS_LIBS
  916. LIBUSB_CFLAGS
  917. LIBUSB_LIBS'
  918. # Initialize some variables set by options.
  919. ac_init_help=
  920. ac_init_version=false
  921. ac_unrecognized_opts=
  922. ac_unrecognized_sep=
  923. # The variables have the same names as the options, with
  924. # dashes changed to underlines.
  925. cache_file=/dev/null
  926. exec_prefix=NONE
  927. no_create=
  928. no_recursion=
  929. prefix=NONE
  930. program_prefix=NONE
  931. program_suffix=NONE
  932. program_transform_name=s,x,x,
  933. silent=
  934. site=
  935. srcdir=
  936. verbose=
  937. x_includes=NONE
  938. x_libraries=NONE
  939. # Installation directory options.
  940. # These are left unexpanded so users can "make install exec_prefix=/foo"
  941. # and all the variables that are supposed to be based on exec_prefix
  942. # by default will actually change.
  943. # Use braces instead of parens because sh, perl, etc. also accept them.
  944. # (The list follows the same order as the GNU Coding Standards.)
  945. bindir='${exec_prefix}/bin'
  946. sbindir='${exec_prefix}/sbin'
  947. libexecdir='${exec_prefix}/libexec'
  948. datarootdir='${prefix}/share'
  949. datadir='${datarootdir}'
  950. sysconfdir='${prefix}/etc'
  951. sharedstatedir='${prefix}/com'
  952. localstatedir='${prefix}/var'
  953. runstatedir='${localstatedir}/run'
  954. includedir='${prefix}/include'
  955. oldincludedir='/usr/include'
  956. docdir='${datarootdir}/doc/${PACKAGE}'
  957. infodir='${datarootdir}/info'
  958. htmldir='${docdir}'
  959. dvidir='${docdir}'
  960. pdfdir='${docdir}'
  961. psdir='${docdir}'
  962. libdir='${exec_prefix}/lib'
  963. localedir='${datarootdir}/locale'
  964. mandir='${datarootdir}/man'
  965. ac_prev=
  966. ac_dashdash=
  967. for ac_option
  968. do
  969. # If the previous option needs an argument, assign it.
  970. if test -n "$ac_prev"; then
  971. eval $ac_prev=\$ac_option
  972. ac_prev=
  973. continue
  974. fi
  975. case $ac_option in
  976. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  977. *=) ac_optarg= ;;
  978. *) ac_optarg=yes ;;
  979. esac
  980. case $ac_dashdash$ac_option in
  981. --)
  982. ac_dashdash=yes ;;
  983. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  984. ac_prev=bindir ;;
  985. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  986. bindir=$ac_optarg ;;
  987. -build | --build | --buil | --bui | --bu)
  988. ac_prev=build_alias ;;
  989. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  990. build_alias=$ac_optarg ;;
  991. -cache-file | --cache-file | --cache-fil | --cache-fi \
  992. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  993. ac_prev=cache_file ;;
  994. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  995. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  996. cache_file=$ac_optarg ;;
  997. --config-cache | -C)
  998. cache_file=config.cache ;;
  999. -datadir | --datadir | --datadi | --datad)
  1000. ac_prev=datadir ;;
  1001. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1002. datadir=$ac_optarg ;;
  1003. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1004. | --dataroo | --dataro | --datar)
  1005. ac_prev=datarootdir ;;
  1006. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1007. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1008. datarootdir=$ac_optarg ;;
  1009. -disable-* | --disable-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "enable_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval enable_$ac_useropt=no ;;
  1024. -docdir | --docdir | --docdi | --doc | --do)
  1025. ac_prev=docdir ;;
  1026. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1027. docdir=$ac_optarg ;;
  1028. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1029. ac_prev=dvidir ;;
  1030. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1031. dvidir=$ac_optarg ;;
  1032. -enable-* | --enable-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "enable_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval enable_$ac_useropt=\$ac_optarg ;;
  1047. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1048. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1049. | --exec | --exe | --ex)
  1050. ac_prev=exec_prefix ;;
  1051. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1052. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1053. | --exec=* | --exe=* | --ex=*)
  1054. exec_prefix=$ac_optarg ;;
  1055. -gas | --gas | --ga | --g)
  1056. # Obsolete; use --with-gas.
  1057. with_gas=yes ;;
  1058. -help | --help | --hel | --he | -h)
  1059. ac_init_help=long ;;
  1060. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1061. ac_init_help=recursive ;;
  1062. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1063. ac_init_help=short ;;
  1064. -host | --host | --hos | --ho)
  1065. ac_prev=host_alias ;;
  1066. -host=* | --host=* | --hos=* | --ho=*)
  1067. host_alias=$ac_optarg ;;
  1068. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1069. ac_prev=htmldir ;;
  1070. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1071. | --ht=*)
  1072. htmldir=$ac_optarg ;;
  1073. -includedir | --includedir | --includedi | --included | --include \
  1074. | --includ | --inclu | --incl | --inc)
  1075. ac_prev=includedir ;;
  1076. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1077. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1078. includedir=$ac_optarg ;;
  1079. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1080. ac_prev=infodir ;;
  1081. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1082. infodir=$ac_optarg ;;
  1083. -libdir | --libdir | --libdi | --libd)
  1084. ac_prev=libdir ;;
  1085. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1086. libdir=$ac_optarg ;;
  1087. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1088. | --libexe | --libex | --libe)
  1089. ac_prev=libexecdir ;;
  1090. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1091. | --libexe=* | --libex=* | --libe=*)
  1092. libexecdir=$ac_optarg ;;
  1093. -localedir | --localedir | --localedi | --localed | --locale)
  1094. ac_prev=localedir ;;
  1095. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1096. localedir=$ac_optarg ;;
  1097. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1098. | --localstate | --localstat | --localsta | --localst | --locals)
  1099. ac_prev=localstatedir ;;
  1100. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1101. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1102. localstatedir=$ac_optarg ;;
  1103. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1104. ac_prev=mandir ;;
  1105. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1106. mandir=$ac_optarg ;;
  1107. -nfp | --nfp | --nf)
  1108. # Obsolete; use --without-fp.
  1109. with_fp=no ;;
  1110. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1111. | --no-cr | --no-c | -n)
  1112. no_create=yes ;;
  1113. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1114. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1115. no_recursion=yes ;;
  1116. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1117. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1118. | --oldin | --oldi | --old | --ol | --o)
  1119. ac_prev=oldincludedir ;;
  1120. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1121. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1122. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1123. oldincludedir=$ac_optarg ;;
  1124. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1125. ac_prev=prefix ;;
  1126. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1127. prefix=$ac_optarg ;;
  1128. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1129. | --program-pre | --program-pr | --program-p)
  1130. ac_prev=program_prefix ;;
  1131. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1132. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1133. program_prefix=$ac_optarg ;;
  1134. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1135. | --program-suf | --program-su | --program-s)
  1136. ac_prev=program_suffix ;;
  1137. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1138. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1139. program_suffix=$ac_optarg ;;
  1140. -program-transform-name | --program-transform-name \
  1141. | --program-transform-nam | --program-transform-na \
  1142. | --program-transform-n | --program-transform- \
  1143. | --program-transform | --program-transfor \
  1144. | --program-transfo | --program-transf \
  1145. | --program-trans | --program-tran \
  1146. | --progr-tra | --program-tr | --program-t)
  1147. ac_prev=program_transform_name ;;
  1148. -program-transform-name=* | --program-transform-name=* \
  1149. | --program-transform-nam=* | --program-transform-na=* \
  1150. | --program-transform-n=* | --program-transform-=* \
  1151. | --program-transform=* | --program-transfor=* \
  1152. | --program-transfo=* | --program-transf=* \
  1153. | --program-trans=* | --program-tran=* \
  1154. | --progr-tra=* | --program-tr=* | --program-t=*)
  1155. program_transform_name=$ac_optarg ;;
  1156. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1157. ac_prev=pdfdir ;;
  1158. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1159. pdfdir=$ac_optarg ;;
  1160. -psdir | --psdir | --psdi | --psd | --ps)
  1161. ac_prev=psdir ;;
  1162. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1163. psdir=$ac_optarg ;;
  1164. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1165. | -silent | --silent | --silen | --sile | --sil)
  1166. silent=yes ;;
  1167. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1168. | --runstate | --runstat | --runsta | --runst | --runs \
  1169. | --run | --ru | --r)
  1170. ac_prev=runstatedir ;;
  1171. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1172. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1173. | --run=* | --ru=* | --r=*)
  1174. runstatedir=$ac_optarg ;;
  1175. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1176. ac_prev=sbindir ;;
  1177. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1178. | --sbi=* | --sb=*)
  1179. sbindir=$ac_optarg ;;
  1180. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1181. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1182. | --sharedst | --shareds | --shared | --share | --shar \
  1183. | --sha | --sh)
  1184. ac_prev=sharedstatedir ;;
  1185. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1186. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1187. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1188. | --sha=* | --sh=*)
  1189. sharedstatedir=$ac_optarg ;;
  1190. -site | --site | --sit)
  1191. ac_prev=site ;;
  1192. -site=* | --site=* | --sit=*)
  1193. site=$ac_optarg ;;
  1194. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1195. ac_prev=srcdir ;;
  1196. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1197. srcdir=$ac_optarg ;;
  1198. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1199. | --syscon | --sysco | --sysc | --sys | --sy)
  1200. ac_prev=sysconfdir ;;
  1201. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1202. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1203. sysconfdir=$ac_optarg ;;
  1204. -target | --target | --targe | --targ | --tar | --ta | --t)
  1205. ac_prev=target_alias ;;
  1206. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1207. target_alias=$ac_optarg ;;
  1208. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1209. verbose=yes ;;
  1210. -version | --version | --versio | --versi | --vers | -V)
  1211. ac_init_version=: ;;
  1212. -with-* | --with-*)
  1213. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1214. # Reject names that are not valid shell variable names.
  1215. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1216. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1217. ac_useropt_orig=$ac_useropt
  1218. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1219. case $ac_user_opts in
  1220. *"
  1221. "with_$ac_useropt"
  1222. "*) ;;
  1223. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1224. ac_unrecognized_sep=', ';;
  1225. esac
  1226. eval with_$ac_useropt=\$ac_optarg ;;
  1227. -without-* | --without-*)
  1228. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1229. # Reject names that are not valid shell variable names.
  1230. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1231. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1232. ac_useropt_orig=$ac_useropt
  1233. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1234. case $ac_user_opts in
  1235. *"
  1236. "with_$ac_useropt"
  1237. "*) ;;
  1238. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1239. ac_unrecognized_sep=', ';;
  1240. esac
  1241. eval with_$ac_useropt=no ;;
  1242. --x)
  1243. # Obsolete; use --with-x.
  1244. with_x=yes ;;
  1245. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1246. | --x-incl | --x-inc | --x-in | --x-i)
  1247. ac_prev=x_includes ;;
  1248. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1249. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1250. x_includes=$ac_optarg ;;
  1251. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1252. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1253. ac_prev=x_libraries ;;
  1254. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1255. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1256. x_libraries=$ac_optarg ;;
  1257. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1258. Try \`$0 --help' for more information"
  1259. ;;
  1260. *=*)
  1261. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1262. # Reject names that are not valid shell variable names.
  1263. case $ac_envvar in #(
  1264. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1265. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1266. esac
  1267. eval $ac_envvar=\$ac_optarg
  1268. export $ac_envvar ;;
  1269. *)
  1270. # FIXME: should be removed in autoconf 3.0.
  1271. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1272. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1273. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1274. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1275. ;;
  1276. esac
  1277. done
  1278. if test -n "$ac_prev"; then
  1279. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1280. as_fn_error $? "missing argument to $ac_option"
  1281. fi
  1282. if test -n "$ac_unrecognized_opts"; then
  1283. case $enable_option_checking in
  1284. no) ;;
  1285. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1286. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1287. esac
  1288. fi
  1289. # Check all directory arguments for consistency.
  1290. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1291. datadir sysconfdir sharedstatedir localstatedir includedir \
  1292. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1293. libdir localedir mandir runstatedir
  1294. do
  1295. eval ac_val=\$$ac_var
  1296. # Remove trailing slashes.
  1297. case $ac_val in
  1298. */ )
  1299. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1300. eval $ac_var=\$ac_val;;
  1301. esac
  1302. # Be sure to have absolute directory names.
  1303. case $ac_val in
  1304. [\\/$]* | ?:[\\/]* ) continue;;
  1305. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1306. esac
  1307. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1308. done
  1309. # There might be people who depend on the old broken behavior: `$host'
  1310. # used to hold the argument of --host etc.
  1311. # FIXME: To remove some day.
  1312. build=$build_alias
  1313. host=$host_alias
  1314. target=$target_alias
  1315. # FIXME: To remove some day.
  1316. if test "x$host_alias" != x; then
  1317. if test "x$build_alias" = x; then
  1318. cross_compiling=maybe
  1319. elif test "x$build_alias" != "x$host_alias"; then
  1320. cross_compiling=yes
  1321. fi
  1322. fi
  1323. ac_tool_prefix=
  1324. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1325. test "$silent" = yes && exec 6>/dev/null
  1326. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1327. ac_ls_di=`ls -di .` &&
  1328. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1329. as_fn_error $? "working directory cannot be determined"
  1330. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1331. as_fn_error $? "pwd does not report name of working directory"
  1332. # Find the source files, if location was not specified.
  1333. if test -z "$srcdir"; then
  1334. ac_srcdir_defaulted=yes
  1335. # Try the directory containing this script, then the parent directory.
  1336. ac_confdir=`$as_dirname -- "$as_myself" ||
  1337. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1338. X"$as_myself" : 'X\(//\)[^/]' \| \
  1339. X"$as_myself" : 'X\(//\)$' \| \
  1340. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1341. printf "%s\n" X"$as_myself" |
  1342. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1343. s//\1/
  1344. q
  1345. }
  1346. /^X\(\/\/\)[^/].*/{
  1347. s//\1/
  1348. q
  1349. }
  1350. /^X\(\/\/\)$/{
  1351. s//\1/
  1352. q
  1353. }
  1354. /^X\(\/\).*/{
  1355. s//\1/
  1356. q
  1357. }
  1358. s/.*/./; q'`
  1359. srcdir=$ac_confdir
  1360. if test ! -r "$srcdir/$ac_unique_file"; then
  1361. srcdir=..
  1362. fi
  1363. else
  1364. ac_srcdir_defaulted=no
  1365. fi
  1366. if test ! -r "$srcdir/$ac_unique_file"; then
  1367. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1368. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1369. fi
  1370. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1371. ac_abs_confdir=`(
  1372. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1373. pwd)`
  1374. # When building in place, set srcdir=.
  1375. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1376. srcdir=.
  1377. fi
  1378. # Remove unnecessary trailing slashes from srcdir.
  1379. # Double slashes in file names in object file debugging info
  1380. # mess up M-x gdb in Emacs.
  1381. case $srcdir in
  1382. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1383. esac
  1384. for ac_var in $ac_precious_vars; do
  1385. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1386. eval ac_env_${ac_var}_value=\$${ac_var}
  1387. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1388. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1389. done
  1390. #
  1391. # Report the --help message.
  1392. #
  1393. if test "$ac_init_help" = "long"; then
  1394. # Omit some internal or obsolete options to make the list less imposing.
  1395. # This message is too long to be a string in the A/UX 3.1 sh.
  1396. cat <<_ACEOF
  1397. \`configure' configures this package to adapt to many kinds of systems.
  1398. Usage: $0 [OPTION]... [VAR=VALUE]...
  1399. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1400. VAR=VALUE. See below for descriptions of some of the useful variables.
  1401. Defaults for the options are specified in brackets.
  1402. Configuration:
  1403. -h, --help display this help and exit
  1404. --help=short display options specific to this package
  1405. --help=recursive display the short help of all the included packages
  1406. -V, --version display version information and exit
  1407. -q, --quiet, --silent do not print \`checking ...' messages
  1408. --cache-file=FILE cache test results in FILE [disabled]
  1409. -C, --config-cache alias for \`--cache-file=config.cache'
  1410. -n, --no-create do not create output files
  1411. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1412. Installation directories:
  1413. --prefix=PREFIX install architecture-independent files in PREFIX
  1414. [$ac_default_prefix]
  1415. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1416. [PREFIX]
  1417. By default, \`make install' will install all the files in
  1418. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1419. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1420. for instance \`--prefix=\$HOME'.
  1421. For better control, use the options below.
  1422. Fine tuning of the installation directories:
  1423. --bindir=DIR user executables [EPREFIX/bin]
  1424. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1425. --libexecdir=DIR program executables [EPREFIX/libexec]
  1426. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1427. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1428. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1429. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1430. --libdir=DIR object code libraries [EPREFIX/lib]
  1431. --includedir=DIR C header files [PREFIX/include]
  1432. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1433. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1434. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1435. --infodir=DIR info documentation [DATAROOTDIR/info]
  1436. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1437. --mandir=DIR man documentation [DATAROOTDIR/man]
  1438. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1439. --htmldir=DIR html documentation [DOCDIR]
  1440. --dvidir=DIR dvi documentation [DOCDIR]
  1441. --pdfdir=DIR pdf documentation [DOCDIR]
  1442. --psdir=DIR ps documentation [DOCDIR]
  1443. _ACEOF
  1444. cat <<\_ACEOF
  1445. X features:
  1446. --x-includes=DIR X include files are in DIR
  1447. --x-libraries=DIR X library files are in DIR
  1448. System types:
  1449. --build=BUILD configure for building on BUILD [guessed]
  1450. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1451. _ACEOF
  1452. fi
  1453. if test -n "$ac_init_help"; then
  1454. cat <<\_ACEOF
  1455. Optional Features:
  1456. --disable-option-checking ignore unrecognized --enable/--with options
  1457. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1458. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1459. --enable-shared[=PKGS] build shared libraries [default=yes]
  1460. --enable-static[=PKGS] build static libraries [default=yes]
  1461. --enable-fast-install[=PKGS]
  1462. optimize for fast installation [default=yes]
  1463. --disable-libtool-lock avoid locking (might break parallel builds)
  1464. --disable-largefile omit support for large files
  1465. --enable-assertions Enable internal sanity checks
  1466. (auto/disabled/release/enabled/paranoid)
  1467. [default=auto]
  1468. --enable-dependency-tracking
  1469. Use gcc -MMD -MT dependency tracking [default=yes]
  1470. --enable-libc Use the system C library [default=yes]
  1471. --enable-system-iconv Use iconv() from system-installed libraries
  1472. [default=yes]
  1473. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1474. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1475. --enable-audio Enable the audio subsystem [default=yes]
  1476. --enable-video Enable the video subsystem [default=yes]
  1477. --enable-render Enable the render subsystem [default=yes]
  1478. --enable-events Enable the events subsystem [default=yes]
  1479. --enable-joystick Enable the joystick subsystem [default=yes]
  1480. --enable-haptic Enable the haptic (force feedback) subsystem
  1481. [default=yes]
  1482. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1483. --enable-sensor Enable the sensor subsystem [default=yes]
  1484. --enable-power Enable the power subsystem [default=yes]
  1485. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1486. --enable-timers Enable the timer subsystem [default=yes]
  1487. --enable-file Enable the file subsystem [default=yes]
  1488. --enable-misc Enable the misc subsystem [default=yes]
  1489. --enable-locale Enable the locale subsystem [default=yes]
  1490. --enable-loadso Enable the shared object loading subsystem
  1491. [default=yes]
  1492. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1493. --enable-assembly Enable assembly routines [default=yes]
  1494. --enable-ssemath Allow GCC to use SSE floating point math
  1495. [default=maybe]
  1496. --enable-mmx use MMX assembly routines [default=yes]
  1497. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1498. --enable-sse use SSE assembly routines [default=yes]
  1499. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1500. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1501. --enable-altivec use Altivec assembly routines [default=yes]
  1502. --enable-lsx use LSX assembly routines [default=yes]
  1503. --enable-lasx use LASX assembly routines [default=yes]
  1504. --enable-oss support the OSS audio API [default=maybe]
  1505. --enable-alsa support the ALSA audio API [default=yes]
  1506. --disable-alsatest Do not try to compile and run a test Alsa program
  1507. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1508. --enable-jack use JACK audio [default=yes]
  1509. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1510. --enable-pipewire use Pipewire audio [default=yes]
  1511. --enable-pipewire-shared
  1512. dynamically load Pipewire support [default=yes]
  1513. --enable-pulseaudio use PulseAudio [default=yes]
  1514. --enable-pulseaudio-shared
  1515. dynamically load PulseAudio support [default=yes]
  1516. --enable-sndio support the sndio audio API [default=yes]
  1517. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1518. --enable-diskaudio support the disk writer audio driver [default=yes]
  1519. --enable-dummyaudio support the dummy audio driver [default=yes]
  1520. --enable-libsamplerate use libsamplerate for audio rate conversion
  1521. [default=yes]
  1522. --enable-libsamplerate-shared
  1523. dynamically load libsamplerate [default=yes]
  1524. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1525. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1526. --enable-werror treat warnings as errors [default=no]
  1527. --enable-video-wayland use Wayland video driver [default=yes]
  1528. --enable-video-wayland-qt-touch
  1529. QtWayland server support for Wayland video driver
  1530. [default=yes]
  1531. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1532. --enable-libdecor use libdecor for Wayland client-side decorations
  1533. [default=yes]
  1534. --enable-libdecor-shared
  1535. dynamically load libdecor [default=yes]
  1536. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1537. --enable-video-x11 use X11 video driver [default=maybe]
  1538. --enable-x11-shared dynamically load X11 support [default=maybe]
  1539. --enable-video-x11-xcursor
  1540. enable X11 Xcursor support [default=yes]
  1541. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1542. --enable-video-x11-xinput
  1543. enable X11 XInput extension for manymouse, tablets,
  1544. etc [default=yes]
  1545. --enable-video-x11-xfixes
  1546. enable X11 Xfixes support [default=yes]
  1547. --enable-video-x11-xrandr
  1548. enable X11 Xrandr extension for fullscreen
  1549. [default=yes]
  1550. --enable-video-x11-scrnsaver
  1551. enable X11 screensaver extension [default=yes]
  1552. --enable-video-x11-xshape
  1553. enable X11 XShape support [default=yes]
  1554. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1555. --enable-video-cocoa use Cocoa video driver [default=yes]
  1556. --enable-video-metal include Metal support [default=yes]
  1557. --enable-render-metal enable the Metal render driver [default=yes]
  1558. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1559. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1560. --enable-video-dummy use dummy video driver [default=yes]
  1561. --enable-video-offscreen
  1562. use offscreen video driver [default=yes]
  1563. --enable-video-opengl include OpenGL support [default=yes]
  1564. --enable-video-opengles include OpenGL ES support [default=yes]
  1565. --enable-video-opengles2
  1566. include OpenGL ES 2.0 support [default=yes]
  1567. --enable-video-vulkan include Vulkan support [default=yes]
  1568. --enable-libudev enable libudev support [default=yes]
  1569. --enable-dbus enable D-Bus support [default=yes]
  1570. --enable-ime enable IME support [default=yes]
  1571. --enable-ibus enable IBus support [default=yes]
  1572. --enable-fcitx enable fcitx support [default=yes]
  1573. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1574. --enable-pthreads use POSIX threads for multi-threading
  1575. [default=maybe]
  1576. --enable-pthread-sem use pthread semaphores [default=maybe]
  1577. --enable-directx use DirectX for Windows audio/video [default=yes]
  1578. --enable-xinput use Xinput for Windows [default=yes]
  1579. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1580. --enable-hidapi-joystick
  1581. use HIDAPI for low level joystick drivers
  1582. [default=yes]
  1583. --enable-hidapi-libusb use libusb for low level joystick drivers
  1584. [default=maybe]
  1585. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1586. UNIX [default=yes]
  1587. --enable-rpath use an rpath when linking SDL [default=yes]
  1588. --enable-backgrounding-signal
  1589. number to use for magic backgrounding signal or 'no'
  1590. [default=no]
  1591. --enable-foregrounding-signal
  1592. number to use for magic foregrounding signal or 'no'
  1593. [default=no]
  1594. --enable-joystick-virtual
  1595. enable virtual joystick APIs [default=yes]
  1596. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1597. --enable-sdl3-config Install sdl3-config [default=yes]
  1598. --enable-vendor-info=STRING
  1599. Add vendor info to SDL_REVISION
  1600. Optional Packages:
  1601. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1602. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1603. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1604. both]
  1605. --with-aix-soname=aix|svr4|both
  1606. shared library versioning (aka "SONAME") variant to
  1607. provide on AIX, [default=aix].
  1608. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1609. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1610. compiler's sysroot if not specified).
  1611. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1612. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1613. --with-x use the X Window System
  1614. Some influential environment variables:
  1615. CC C compiler command
  1616. CFLAGS C compiler flags
  1617. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1618. nonstandard directory <lib dir>
  1619. LIBS libraries to pass to the linker, e.g. -l<library>
  1620. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1621. you have headers in a nonstandard directory <include dir>
  1622. LT_SYS_LIBRARY_PATH
  1623. User-defined run-time library search path.
  1624. CXX C++ compiler command
  1625. CXXFLAGS C++ compiler flags
  1626. CXXCPP C++ preprocessor
  1627. PKG_CONFIG path to pkg-config utility
  1628. PKG_CONFIG_PATH
  1629. directories to add to pkg-config's search path
  1630. PKG_CONFIG_LIBDIR
  1631. path overriding pkg-config's built-in search path
  1632. CPP C preprocessor
  1633. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1634. JACK_LIBS linker flags for JACK, overriding pkg-config
  1635. PIPEWIRE_CFLAGS
  1636. C compiler flags for PIPEWIRE, overriding pkg-config
  1637. PIPEWIRE_LIBS
  1638. linker flags for PIPEWIRE, overriding pkg-config
  1639. PULSEAUDIO_CFLAGS
  1640. C compiler flags for PULSEAUDIO, overriding pkg-config
  1641. PULSEAUDIO_LIBS
  1642. linker flags for PULSEAUDIO, overriding pkg-config
  1643. SNDIO_CFLAGS
  1644. C compiler flags for SNDIO, overriding pkg-config
  1645. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1646. DECOR_CFLAGS
  1647. C compiler flags for DECOR, overriding pkg-config
  1648. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1649. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1650. RPI_LIBS linker flags for RPI, overriding pkg-config
  1651. XMKMF Path to xmkmf, Makefile generator for X Window System
  1652. LIBDRM_CFLAGS
  1653. C compiler flags for LIBDRM, overriding pkg-config
  1654. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1655. LIBGBM_CFLAGS
  1656. C compiler flags for LIBGBM, overriding pkg-config
  1657. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1658. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1659. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1660. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1661. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1662. LIBUSB_CFLAGS
  1663. C compiler flags for LIBUSB, overriding pkg-config
  1664. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1665. Use these variables to override the choices made by `configure' or to help
  1666. it to find libraries and programs with nonstandard names/locations.
  1667. Report bugs to the package provider.
  1668. _ACEOF
  1669. ac_status=$?
  1670. fi
  1671. if test "$ac_init_help" = "recursive"; then
  1672. # If there are subdirs, report their specific --help.
  1673. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1674. test -d "$ac_dir" ||
  1675. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1676. continue
  1677. ac_builddir=.
  1678. case "$ac_dir" in
  1679. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1680. *)
  1681. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1682. # A ".." for each directory in $ac_dir_suffix.
  1683. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1684. case $ac_top_builddir_sub in
  1685. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1686. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1687. esac ;;
  1688. esac
  1689. ac_abs_top_builddir=$ac_pwd
  1690. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1691. # for backward compatibility:
  1692. ac_top_builddir=$ac_top_build_prefix
  1693. case $srcdir in
  1694. .) # We are building in place.
  1695. ac_srcdir=.
  1696. ac_top_srcdir=$ac_top_builddir_sub
  1697. ac_abs_top_srcdir=$ac_pwd ;;
  1698. [\\/]* | ?:[\\/]* ) # Absolute name.
  1699. ac_srcdir=$srcdir$ac_dir_suffix;
  1700. ac_top_srcdir=$srcdir
  1701. ac_abs_top_srcdir=$srcdir ;;
  1702. *) # Relative name.
  1703. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1704. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1705. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1706. esac
  1707. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1708. cd "$ac_dir" || { ac_status=$?; continue; }
  1709. # Check for configure.gnu first; this name is used for a wrapper for
  1710. # Metaconfig's "Configure" on case-insensitive file systems.
  1711. if test -f "$ac_srcdir/configure.gnu"; then
  1712. echo &&
  1713. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1714. elif test -f "$ac_srcdir/configure"; then
  1715. echo &&
  1716. $SHELL "$ac_srcdir/configure" --help=recursive
  1717. else
  1718. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1719. fi || ac_status=$?
  1720. cd "$ac_pwd" || { ac_status=$?; break; }
  1721. done
  1722. fi
  1723. test -n "$ac_init_help" && exit $ac_status
  1724. if $ac_init_version; then
  1725. cat <<\_ACEOF
  1726. configure
  1727. generated by GNU Autoconf 2.71
  1728. Copyright (C) 2021 Free Software Foundation, Inc.
  1729. This configure script is free software; the Free Software Foundation
  1730. gives unlimited permission to copy, distribute and modify it.
  1731. _ACEOF
  1732. exit
  1733. fi
  1734. ## ------------------------ ##
  1735. ## Autoconf initialization. ##
  1736. ## ------------------------ ##
  1737. # ac_fn_c_try_compile LINENO
  1738. # --------------------------
  1739. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_compile ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext conftest.beam
  1744. if { { ac_try="$ac_compile"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. printf "%s\n" "$ac_try_echo"; } >&5
  1751. (eval "$ac_compile") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_c_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest.$ac_objext
  1763. then :
  1764. ac_retval=0
  1765. else $as_nop
  1766. printf "%s\n" "$as_me: failed program was:" >&5
  1767. sed 's/^/| /' conftest.$ac_ext >&5
  1768. ac_retval=1
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_compile
  1773. # ac_fn_c_try_link LINENO
  1774. # -----------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_c_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. printf "%s\n" "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_c_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. test -x conftest$ac_exeext
  1801. }
  1802. then :
  1803. ac_retval=0
  1804. else $as_nop
  1805. printf "%s\n" "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1810. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1811. # interfere with the next link command; also delete a directory that is
  1812. # left behind by Apple's compiler. We do this before executing the actions.
  1813. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_link
  1817. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1818. # -------------------------------------------------------
  1819. # Tests whether HEADER exists and can be compiled using the include files in
  1820. # INCLUDES, setting the cache variable VAR accordingly.
  1821. ac_fn_c_check_header_compile ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. printf %s "checking for $2... " >&6; }
  1826. if eval test \${$3+y}
  1827. then :
  1828. printf %s "(cached) " >&6
  1829. else $as_nop
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. #include <$2>
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"
  1836. then :
  1837. eval "$3=yes"
  1838. else $as_nop
  1839. eval "$3=no"
  1840. fi
  1841. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1842. fi
  1843. eval ac_res=\$$3
  1844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1845. printf "%s\n" "$ac_res" >&6; }
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. } # ac_fn_c_check_header_compile
  1848. # ac_fn_c_check_func LINENO FUNC VAR
  1849. # ----------------------------------
  1850. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1851. ac_fn_c_check_func ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1855. printf %s "checking for $2... " >&6; }
  1856. if eval test \${$3+y}
  1857. then :
  1858. printf %s "(cached) " >&6
  1859. else $as_nop
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1863. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1864. #define $2 innocuous_$2
  1865. /* System header to define __stub macros and hopefully few prototypes,
  1866. which can conflict with char $2 (); below. */
  1867. #include <limits.h>
  1868. #undef $2
  1869. /* Override any GCC internal prototype to avoid an error.
  1870. Use char because int might match the return type of a GCC
  1871. builtin and then its argument prototype would still apply. */
  1872. #ifdef __cplusplus
  1873. extern "C"
  1874. #endif
  1875. char $2 ();
  1876. /* The GNU C library defines this for functions which it implements
  1877. to always fail with ENOSYS. Some functions are actually named
  1878. something starting with __ and the normal name is an alias. */
  1879. #if defined __stub_$2 || defined __stub___$2
  1880. choke me
  1881. #endif
  1882. int
  1883. main (void)
  1884. {
  1885. return $2 ();
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_link "$LINENO"
  1891. then :
  1892. eval "$3=yes"
  1893. else $as_nop
  1894. eval "$3=no"
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1897. conftest$ac_exeext conftest.$ac_ext
  1898. fi
  1899. eval ac_res=\$$3
  1900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. printf "%s\n" "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } # ac_fn_c_check_func
  1904. # ac_fn_cxx_try_compile LINENO
  1905. # ----------------------------
  1906. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1907. ac_fn_cxx_try_compile ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. rm -f conftest.$ac_objext conftest.beam
  1911. if { { ac_try="$ac_compile"
  1912. case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1917. printf "%s\n" "$ac_try_echo"; } >&5
  1918. (eval "$ac_compile") 2>conftest.err
  1919. ac_status=$?
  1920. if test -s conftest.err; then
  1921. grep -v '^ *+' conftest.err >conftest.er1
  1922. cat conftest.er1 >&5
  1923. mv -f conftest.er1 conftest.err
  1924. fi
  1925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926. test $ac_status = 0; } && {
  1927. test -z "$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. } && test -s conftest.$ac_objext
  1930. then :
  1931. ac_retval=0
  1932. else $as_nop
  1933. printf "%s\n" "$as_me: failed program was:" >&5
  1934. sed 's/^/| /' conftest.$ac_ext >&5
  1935. ac_retval=1
  1936. fi
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. as_fn_set_status $ac_retval
  1939. } # ac_fn_cxx_try_compile
  1940. # ac_fn_cxx_try_cpp LINENO
  1941. # ------------------------
  1942. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1943. ac_fn_cxx_try_cpp ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1952. printf "%s\n" "$ac_try_echo"; } >&5
  1953. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1954. ac_status=$?
  1955. if test -s conftest.err; then
  1956. grep -v '^ *+' conftest.err >conftest.er1
  1957. cat conftest.er1 >&5
  1958. mv -f conftest.er1 conftest.err
  1959. fi
  1960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1961. test $ac_status = 0; } > conftest.i && {
  1962. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1963. test ! -s conftest.err
  1964. }
  1965. then :
  1966. ac_retval=0
  1967. else $as_nop
  1968. printf "%s\n" "$as_me: failed program was:" >&5
  1969. sed 's/^/| /' conftest.$ac_ext >&5
  1970. ac_retval=1
  1971. fi
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. as_fn_set_status $ac_retval
  1974. } # ac_fn_cxx_try_cpp
  1975. # ac_fn_cxx_try_link LINENO
  1976. # -------------------------
  1977. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1978. ac_fn_cxx_try_link ()
  1979. {
  1980. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1981. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1982. if { { ac_try="$ac_link"
  1983. case "(($ac_try" in
  1984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1985. *) ac_try_echo=$ac_try;;
  1986. esac
  1987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1988. printf "%s\n" "$ac_try_echo"; } >&5
  1989. (eval "$ac_link") 2>conftest.err
  1990. ac_status=$?
  1991. if test -s conftest.err; then
  1992. grep -v '^ *+' conftest.err >conftest.er1
  1993. cat conftest.er1 >&5
  1994. mv -f conftest.er1 conftest.err
  1995. fi
  1996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1997. test $ac_status = 0; } && {
  1998. test -z "$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. } && test -s conftest$ac_exeext && {
  2001. test "$cross_compiling" = yes ||
  2002. test -x conftest$ac_exeext
  2003. }
  2004. then :
  2005. ac_retval=0
  2006. else $as_nop
  2007. printf "%s\n" "$as_me: failed program was:" >&5
  2008. sed 's/^/| /' conftest.$ac_ext >&5
  2009. ac_retval=1
  2010. fi
  2011. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2012. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2013. # interfere with the next link command; also delete a directory that is
  2014. # left behind by Apple's compiler. We do this before executing the actions.
  2015. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. as_fn_set_status $ac_retval
  2018. } # ac_fn_cxx_try_link
  2019. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2020. # -------------------------------------------
  2021. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2022. # variable VAR accordingly.
  2023. ac_fn_c_check_type ()
  2024. {
  2025. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2027. printf %s "checking for $2... " >&6; }
  2028. if eval test \${$3+y}
  2029. then :
  2030. printf %s "(cached) " >&6
  2031. else $as_nop
  2032. eval "$3=no"
  2033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2034. /* end confdefs.h. */
  2035. $4
  2036. int
  2037. main (void)
  2038. {
  2039. if (sizeof ($2))
  2040. return 0;
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. if ac_fn_c_try_compile "$LINENO"
  2046. then :
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. $4
  2050. int
  2051. main (void)
  2052. {
  2053. if (sizeof (($2)))
  2054. return 0;
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. if ac_fn_c_try_compile "$LINENO"
  2060. then :
  2061. else $as_nop
  2062. eval "$3=yes"
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2065. fi
  2066. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2067. fi
  2068. eval ac_res=\$$3
  2069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070. printf "%s\n" "$ac_res" >&6; }
  2071. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2072. } # ac_fn_c_check_type
  2073. # ac_fn_c_try_cpp LINENO
  2074. # ----------------------
  2075. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2076. ac_fn_c_try_cpp ()
  2077. {
  2078. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2079. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2080. case "(($ac_try" in
  2081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2082. *) ac_try_echo=$ac_try;;
  2083. esac
  2084. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2085. printf "%s\n" "$ac_try_echo"; } >&5
  2086. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2087. ac_status=$?
  2088. if test -s conftest.err; then
  2089. grep -v '^ *+' conftest.err >conftest.er1
  2090. cat conftest.er1 >&5
  2091. mv -f conftest.er1 conftest.err
  2092. fi
  2093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2094. test $ac_status = 0; } > conftest.i && {
  2095. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2096. test ! -s conftest.err
  2097. }
  2098. then :
  2099. ac_retval=0
  2100. else $as_nop
  2101. printf "%s\n" "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. ac_retval=1
  2104. fi
  2105. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2106. as_fn_set_status $ac_retval
  2107. } # ac_fn_c_try_cpp
  2108. # ac_fn_c_try_run LINENO
  2109. # ----------------------
  2110. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2111. # executables *can* be run.
  2112. ac_fn_c_try_run ()
  2113. {
  2114. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2115. if { { ac_try="$ac_link"
  2116. case "(($ac_try" in
  2117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2118. *) ac_try_echo=$ac_try;;
  2119. esac
  2120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2121. printf "%s\n" "$ac_try_echo"; } >&5
  2122. (eval "$ac_link") 2>&5
  2123. ac_status=$?
  2124. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2125. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2126. { { case "(($ac_try" in
  2127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2128. *) ac_try_echo=$ac_try;;
  2129. esac
  2130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2131. printf "%s\n" "$ac_try_echo"; } >&5
  2132. (eval "$ac_try") 2>&5
  2133. ac_status=$?
  2134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2135. test $ac_status = 0; }; }
  2136. then :
  2137. ac_retval=0
  2138. else $as_nop
  2139. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2140. printf "%s\n" "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_retval=$ac_status
  2143. fi
  2144. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2145. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2146. as_fn_set_status $ac_retval
  2147. } # ac_fn_c_try_run
  2148. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2149. # ----------------------------------------------------
  2150. # Tries to find if the field MEMBER exists in type AGGR, after including
  2151. # INCLUDES, setting cache variable VAR accordingly.
  2152. ac_fn_c_check_member ()
  2153. {
  2154. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2156. printf %s "checking for $2.$3... " >&6; }
  2157. if eval test \${$4+y}
  2158. then :
  2159. printf %s "(cached) " >&6
  2160. else $as_nop
  2161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2162. /* end confdefs.h. */
  2163. $5
  2164. int
  2165. main (void)
  2166. {
  2167. static $2 ac_aggr;
  2168. if (ac_aggr.$3)
  2169. return 0;
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. if ac_fn_c_try_compile "$LINENO"
  2175. then :
  2176. eval "$4=yes"
  2177. else $as_nop
  2178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179. /* end confdefs.h. */
  2180. $5
  2181. int
  2182. main (void)
  2183. {
  2184. static $2 ac_aggr;
  2185. if (sizeof ac_aggr.$3)
  2186. return 0;
  2187. ;
  2188. return 0;
  2189. }
  2190. _ACEOF
  2191. if ac_fn_c_try_compile "$LINENO"
  2192. then :
  2193. eval "$4=yes"
  2194. else $as_nop
  2195. eval "$4=no"
  2196. fi
  2197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2198. fi
  2199. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2200. fi
  2201. eval ac_res=\$$4
  2202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2203. printf "%s\n" "$ac_res" >&6; }
  2204. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2205. } # ac_fn_c_check_member
  2206. ac_configure_args_raw=
  2207. for ac_arg
  2208. do
  2209. case $ac_arg in
  2210. *\'*)
  2211. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2212. esac
  2213. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2214. done
  2215. case $ac_configure_args_raw in
  2216. *$as_nl*)
  2217. ac_safe_unquote= ;;
  2218. *)
  2219. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2220. ac_unsafe_a="$ac_unsafe_z#~"
  2221. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2222. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2223. esac
  2224. cat >config.log <<_ACEOF
  2225. This file contains any messages produced by compilers while
  2226. running configure, to aid debugging if configure makes a mistake.
  2227. It was created by $as_me, which was
  2228. generated by GNU Autoconf 2.71. Invocation command line was
  2229. $ $0$ac_configure_args_raw
  2230. _ACEOF
  2231. exec 5>>config.log
  2232. {
  2233. cat <<_ASUNAME
  2234. ## --------- ##
  2235. ## Platform. ##
  2236. ## --------- ##
  2237. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2238. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2239. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2240. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2241. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2242. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2243. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2244. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2245. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2246. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2247. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2248. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2249. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2250. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2251. _ASUNAME
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. case $as_dir in #(((
  2257. '') as_dir=./ ;;
  2258. */) ;;
  2259. *) as_dir=$as_dir/ ;;
  2260. esac
  2261. printf "%s\n" "PATH: $as_dir"
  2262. done
  2263. IFS=$as_save_IFS
  2264. } >&5
  2265. cat >&5 <<_ACEOF
  2266. ## ----------- ##
  2267. ## Core tests. ##
  2268. ## ----------- ##
  2269. _ACEOF
  2270. # Keep a trace of the command line.
  2271. # Strip out --no-create and --no-recursion so they do not pile up.
  2272. # Strip out --silent because we don't want to record it for future runs.
  2273. # Also quote any args containing shell meta-characters.
  2274. # Make two passes to allow for proper duplicate-argument suppression.
  2275. ac_configure_args=
  2276. ac_configure_args0=
  2277. ac_configure_args1=
  2278. ac_must_keep_next=false
  2279. for ac_pass in 1 2
  2280. do
  2281. for ac_arg
  2282. do
  2283. case $ac_arg in
  2284. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2285. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2286. | -silent | --silent | --silen | --sile | --sil)
  2287. continue ;;
  2288. *\'*)
  2289. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2290. esac
  2291. case $ac_pass in
  2292. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2293. 2)
  2294. as_fn_append ac_configure_args1 " '$ac_arg'"
  2295. if test $ac_must_keep_next = true; then
  2296. ac_must_keep_next=false # Got value, back to normal.
  2297. else
  2298. case $ac_arg in
  2299. *=* | --config-cache | -C | -disable-* | --disable-* \
  2300. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2301. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2302. | -with-* | --with-* | -without-* | --without-* | --x)
  2303. case "$ac_configure_args0 " in
  2304. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2305. esac
  2306. ;;
  2307. -* ) ac_must_keep_next=true ;;
  2308. esac
  2309. fi
  2310. as_fn_append ac_configure_args " '$ac_arg'"
  2311. ;;
  2312. esac
  2313. done
  2314. done
  2315. { ac_configure_args0=; unset ac_configure_args0;}
  2316. { ac_configure_args1=; unset ac_configure_args1;}
  2317. # When interrupted or exit'd, cleanup temporary files, and complete
  2318. # config.log. We remove comments because anyway the quotes in there
  2319. # would cause problems or look ugly.
  2320. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2321. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2322. trap 'exit_status=$?
  2323. # Sanitize IFS.
  2324. IFS=" "" $as_nl"
  2325. # Save into config.log some information that might help in debugging.
  2326. {
  2327. echo
  2328. printf "%s\n" "## ---------------- ##
  2329. ## Cache variables. ##
  2330. ## ---------------- ##"
  2331. echo
  2332. # The following way of writing the cache mishandles newlines in values,
  2333. (
  2334. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2335. eval ac_val=\$$ac_var
  2336. case $ac_val in #(
  2337. *${as_nl}*)
  2338. case $ac_var in #(
  2339. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2340. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2341. esac
  2342. case $ac_var in #(
  2343. _ | IFS | as_nl) ;; #(
  2344. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2345. *) { eval $ac_var=; unset $ac_var;} ;;
  2346. esac ;;
  2347. esac
  2348. done
  2349. (set) 2>&1 |
  2350. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2351. *${as_nl}ac_space=\ *)
  2352. sed -n \
  2353. "s/'\''/'\''\\\\'\'''\''/g;
  2354. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2355. ;; #(
  2356. *)
  2357. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2358. ;;
  2359. esac |
  2360. sort
  2361. )
  2362. echo
  2363. printf "%s\n" "## ----------------- ##
  2364. ## Output variables. ##
  2365. ## ----------------- ##"
  2366. echo
  2367. for ac_var in $ac_subst_vars
  2368. do
  2369. eval ac_val=\$$ac_var
  2370. case $ac_val in
  2371. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2372. esac
  2373. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2374. done | sort
  2375. echo
  2376. if test -n "$ac_subst_files"; then
  2377. printf "%s\n" "## ------------------- ##
  2378. ## File substitutions. ##
  2379. ## ------------------- ##"
  2380. echo
  2381. for ac_var in $ac_subst_files
  2382. do
  2383. eval ac_val=\$$ac_var
  2384. case $ac_val in
  2385. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2386. esac
  2387. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2388. done | sort
  2389. echo
  2390. fi
  2391. if test -s confdefs.h; then
  2392. printf "%s\n" "## ----------- ##
  2393. ## confdefs.h. ##
  2394. ## ----------- ##"
  2395. echo
  2396. cat confdefs.h
  2397. echo
  2398. fi
  2399. test "$ac_signal" != 0 &&
  2400. printf "%s\n" "$as_me: caught signal $ac_signal"
  2401. printf "%s\n" "$as_me: exit $exit_status"
  2402. } >&5
  2403. rm -f core *.core core.conftest.* &&
  2404. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2405. exit $exit_status
  2406. ' 0
  2407. for ac_signal in 1 2 13 15; do
  2408. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2409. done
  2410. ac_signal=0
  2411. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2412. rm -f -r conftest* confdefs.h
  2413. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2414. # Predefined preprocessor variables.
  2415. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2416. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2417. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2418. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2419. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2420. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2421. # Let the site file select an alternate cache file if it wants to.
  2422. # Prefer an explicitly selected file to automatically selected ones.
  2423. if test -n "$CONFIG_SITE"; then
  2424. ac_site_files="$CONFIG_SITE"
  2425. elif test "x$prefix" != xNONE; then
  2426. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2427. else
  2428. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2429. fi
  2430. for ac_site_file in $ac_site_files
  2431. do
  2432. case $ac_site_file in #(
  2433. */*) :
  2434. ;; #(
  2435. *) :
  2436. ac_site_file=./$ac_site_file ;;
  2437. esac
  2438. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2440. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2441. sed 's/^/| /' "$ac_site_file" >&5
  2442. . "$ac_site_file" \
  2443. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2444. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2445. as_fn_error $? "failed to load site script $ac_site_file
  2446. See \`config.log' for more details" "$LINENO" 5; }
  2447. fi
  2448. done
  2449. if test -r "$cache_file"; then
  2450. # Some versions of bash will fail to source /dev/null (special files
  2451. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2452. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2454. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2455. case $cache_file in
  2456. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2457. *) . "./$cache_file";;
  2458. esac
  2459. fi
  2460. else
  2461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2462. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2463. >$cache_file
  2464. fi
  2465. # Test code for whether the C compiler supports C89 (global declarations)
  2466. ac_c_conftest_c89_globals='
  2467. /* Does the compiler advertise C89 conformance?
  2468. Do not test the value of __STDC__, because some compilers set it to 0
  2469. while being otherwise adequately conformant. */
  2470. #if !defined __STDC__
  2471. # error "Compiler does not advertise C89 conformance"
  2472. #endif
  2473. #include <stddef.h>
  2474. #include <stdarg.h>
  2475. struct stat;
  2476. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2477. struct buf { int x; };
  2478. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2479. static char *e (p, i)
  2480. char **p;
  2481. int i;
  2482. {
  2483. return p[i];
  2484. }
  2485. static char *f (char * (*g) (char **, int), char **p, ...)
  2486. {
  2487. char *s;
  2488. va_list v;
  2489. va_start (v,p);
  2490. s = g (p, va_arg (v,int));
  2491. va_end (v);
  2492. return s;
  2493. }
  2494. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2495. function prototypes and stuff, but not \xHH hex character constants.
  2496. These do not provoke an error unfortunately, instead are silently treated
  2497. as an "x". The following induces an error, until -std is added to get
  2498. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2499. array size at least. It is necessary to write \x00 == 0 to get something
  2500. that is true only with -std. */
  2501. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2502. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2503. inside strings and character constants. */
  2504. #define FOO(x) '\''x'\''
  2505. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2506. int test (int i, double x);
  2507. struct s1 {int (*f) (int a);};
  2508. struct s2 {int (*f) (double a);};
  2509. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2510. int, int);'
  2511. # Test code for whether the C compiler supports C89 (body of main).
  2512. ac_c_conftest_c89_main='
  2513. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2514. '
  2515. # Test code for whether the C compiler supports C99 (global declarations)
  2516. ac_c_conftest_c99_globals='
  2517. // Does the compiler advertise C99 conformance?
  2518. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2519. # error "Compiler does not advertise C99 conformance"
  2520. #endif
  2521. #include <stdbool.h>
  2522. extern int puts (const char *);
  2523. extern int printf (const char *, ...);
  2524. extern int dprintf (int, const char *, ...);
  2525. extern void *malloc (size_t);
  2526. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2527. // dprintf is used instead of fprintf to avoid needing to declare
  2528. // FILE and stderr.
  2529. #define debug(...) dprintf (2, __VA_ARGS__)
  2530. #define showlist(...) puts (#__VA_ARGS__)
  2531. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2532. static void
  2533. test_varargs_macros (void)
  2534. {
  2535. int x = 1234;
  2536. int y = 5678;
  2537. debug ("Flag");
  2538. debug ("X = %d\n", x);
  2539. showlist (The first, second, and third items.);
  2540. report (x>y, "x is %d but y is %d", x, y);
  2541. }
  2542. // Check long long types.
  2543. #define BIG64 18446744073709551615ull
  2544. #define BIG32 4294967295ul
  2545. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2546. #if !BIG_OK
  2547. #error "your preprocessor is broken"
  2548. #endif
  2549. #if BIG_OK
  2550. #else
  2551. #error "your preprocessor is broken"
  2552. #endif
  2553. static long long int bignum = -9223372036854775807LL;
  2554. static unsigned long long int ubignum = BIG64;
  2555. struct incomplete_array
  2556. {
  2557. int datasize;
  2558. double data[];
  2559. };
  2560. struct named_init {
  2561. int number;
  2562. const wchar_t *name;
  2563. double average;
  2564. };
  2565. typedef const char *ccp;
  2566. static inline int
  2567. test_restrict (ccp restrict text)
  2568. {
  2569. // See if C++-style comments work.
  2570. // Iterate through items via the restricted pointer.
  2571. // Also check for declarations in for loops.
  2572. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2573. continue;
  2574. return 0;
  2575. }
  2576. // Check varargs and va_copy.
  2577. static bool
  2578. test_varargs (const char *format, ...)
  2579. {
  2580. va_list args;
  2581. va_start (args, format);
  2582. va_list args_copy;
  2583. va_copy (args_copy, args);
  2584. const char *str = "";
  2585. int number = 0;
  2586. float fnumber = 0;
  2587. while (*format)
  2588. {
  2589. switch (*format++)
  2590. {
  2591. case '\''s'\'': // string
  2592. str = va_arg (args_copy, const char *);
  2593. break;
  2594. case '\''d'\'': // int
  2595. number = va_arg (args_copy, int);
  2596. break;
  2597. case '\''f'\'': // float
  2598. fnumber = va_arg (args_copy, double);
  2599. break;
  2600. default:
  2601. break;
  2602. }
  2603. }
  2604. va_end (args_copy);
  2605. va_end (args);
  2606. return *str && number && fnumber;
  2607. }
  2608. '
  2609. # Test code for whether the C compiler supports C99 (body of main).
  2610. ac_c_conftest_c99_main='
  2611. // Check bool.
  2612. _Bool success = false;
  2613. success |= (argc != 0);
  2614. // Check restrict.
  2615. if (test_restrict ("String literal") == 0)
  2616. success = true;
  2617. char *restrict newvar = "Another string";
  2618. // Check varargs.
  2619. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2620. test_varargs_macros ();
  2621. // Check flexible array members.
  2622. struct incomplete_array *ia =
  2623. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2624. ia->datasize = 10;
  2625. for (int i = 0; i < ia->datasize; ++i)
  2626. ia->data[i] = i * 1.234;
  2627. // Check named initializers.
  2628. struct named_init ni = {
  2629. .number = 34,
  2630. .name = L"Test wide string",
  2631. .average = 543.34343,
  2632. };
  2633. ni.number = 58;
  2634. int dynamic_array[ni.number];
  2635. dynamic_array[0] = argv[0][0];
  2636. dynamic_array[ni.number - 1] = 543;
  2637. // work around unused variable warnings
  2638. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2639. || dynamic_array[ni.number - 1] != 543);
  2640. '
  2641. # Test code for whether the C compiler supports C11 (global declarations)
  2642. ac_c_conftest_c11_globals='
  2643. // Does the compiler advertise C11 conformance?
  2644. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2645. # error "Compiler does not advertise C11 conformance"
  2646. #endif
  2647. // Check _Alignas.
  2648. char _Alignas (double) aligned_as_double;
  2649. char _Alignas (0) no_special_alignment;
  2650. extern char aligned_as_int;
  2651. char _Alignas (0) _Alignas (int) aligned_as_int;
  2652. // Check _Alignof.
  2653. enum
  2654. {
  2655. int_alignment = _Alignof (int),
  2656. int_array_alignment = _Alignof (int[100]),
  2657. char_alignment = _Alignof (char)
  2658. };
  2659. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2660. // Check _Noreturn.
  2661. int _Noreturn does_not_return (void) { for (;;) continue; }
  2662. // Check _Static_assert.
  2663. struct test_static_assert
  2664. {
  2665. int x;
  2666. _Static_assert (sizeof (int) <= sizeof (long int),
  2667. "_Static_assert does not work in struct");
  2668. long int y;
  2669. };
  2670. // Check UTF-8 literals.
  2671. #define u8 syntax error!
  2672. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2673. // Check duplicate typedefs.
  2674. typedef long *long_ptr;
  2675. typedef long int *long_ptr;
  2676. typedef long_ptr long_ptr;
  2677. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2678. struct anonymous
  2679. {
  2680. union {
  2681. struct { int i; int j; };
  2682. struct { int k; long int l; } w;
  2683. };
  2684. int m;
  2685. } v1;
  2686. '
  2687. # Test code for whether the C compiler supports C11 (body of main).
  2688. ac_c_conftest_c11_main='
  2689. _Static_assert ((offsetof (struct anonymous, i)
  2690. == offsetof (struct anonymous, w.k)),
  2691. "Anonymous union alignment botch");
  2692. v1.i = 2;
  2693. v1.w.k = 5;
  2694. ok |= v1.i != 5;
  2695. '
  2696. # Test code for whether the C compiler supports C11 (complete).
  2697. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2698. ${ac_c_conftest_c99_globals}
  2699. ${ac_c_conftest_c11_globals}
  2700. int
  2701. main (int argc, char **argv)
  2702. {
  2703. int ok = 0;
  2704. ${ac_c_conftest_c89_main}
  2705. ${ac_c_conftest_c99_main}
  2706. ${ac_c_conftest_c11_main}
  2707. return ok;
  2708. }
  2709. "
  2710. # Test code for whether the C compiler supports C99 (complete).
  2711. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2712. ${ac_c_conftest_c99_globals}
  2713. int
  2714. main (int argc, char **argv)
  2715. {
  2716. int ok = 0;
  2717. ${ac_c_conftest_c89_main}
  2718. ${ac_c_conftest_c99_main}
  2719. return ok;
  2720. }
  2721. "
  2722. # Test code for whether the C compiler supports C89 (complete).
  2723. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2724. int
  2725. main (int argc, char **argv)
  2726. {
  2727. int ok = 0;
  2728. ${ac_c_conftest_c89_main}
  2729. return ok;
  2730. }
  2731. "
  2732. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2733. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2734. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2735. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2736. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2737. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2738. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2739. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2740. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2741. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2742. ac_cxx_conftest_cxx98_globals='
  2743. // Does the compiler advertise C++98 conformance?
  2744. #if !defined __cplusplus || __cplusplus < 199711L
  2745. # error "Compiler does not advertise C++98 conformance"
  2746. #endif
  2747. // These inclusions are to reject old compilers that
  2748. // lack the unsuffixed header files.
  2749. #include <cstdlib>
  2750. #include <exception>
  2751. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2752. extern void assert (int);
  2753. namespace std {
  2754. extern int strcmp (const char *, const char *);
  2755. }
  2756. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2757. using std::exception;
  2758. using std::strcmp;
  2759. namespace {
  2760. void test_exception_syntax()
  2761. {
  2762. try {
  2763. throw "test";
  2764. } catch (const char *s) {
  2765. // Extra parentheses suppress a warning when building autoconf itself,
  2766. // due to lint rules shared with more typical C programs.
  2767. assert (!(strcmp) (s, "test"));
  2768. }
  2769. }
  2770. template <typename T> struct test_template
  2771. {
  2772. T const val;
  2773. explicit test_template(T t) : val(t) {}
  2774. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2775. };
  2776. } // anonymous namespace
  2777. '
  2778. # Test code for whether the C++ compiler supports C++98 (body of main)
  2779. ac_cxx_conftest_cxx98_main='
  2780. assert (argc);
  2781. assert (! argv[0]);
  2782. {
  2783. test_exception_syntax ();
  2784. test_template<double> tt (2.0);
  2785. assert (tt.add (4) == 6.0);
  2786. assert (true && !false);
  2787. }
  2788. '
  2789. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2790. ac_cxx_conftest_cxx11_globals='
  2791. // Does the compiler advertise C++ 2011 conformance?
  2792. #if !defined __cplusplus || __cplusplus < 201103L
  2793. # error "Compiler does not advertise C++11 conformance"
  2794. #endif
  2795. namespace cxx11test
  2796. {
  2797. constexpr int get_val() { return 20; }
  2798. struct testinit
  2799. {
  2800. int i;
  2801. double d;
  2802. };
  2803. class delegate
  2804. {
  2805. public:
  2806. delegate(int n) : n(n) {}
  2807. delegate(): delegate(2354) {}
  2808. virtual int getval() { return this->n; };
  2809. protected:
  2810. int n;
  2811. };
  2812. class overridden : public delegate
  2813. {
  2814. public:
  2815. overridden(int n): delegate(n) {}
  2816. virtual int getval() override final { return this->n * 2; }
  2817. };
  2818. class nocopy
  2819. {
  2820. public:
  2821. nocopy(int i): i(i) {}
  2822. nocopy() = default;
  2823. nocopy(const nocopy&) = delete;
  2824. nocopy & operator=(const nocopy&) = delete;
  2825. private:
  2826. int i;
  2827. };
  2828. // for testing lambda expressions
  2829. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2830. {
  2831. return f(v);
  2832. }
  2833. // for testing variadic templates and trailing return types
  2834. template <typename V> auto sum(V first) -> V
  2835. {
  2836. return first;
  2837. }
  2838. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2839. {
  2840. return first + sum(rest...);
  2841. }
  2842. }
  2843. '
  2844. # Test code for whether the C++ compiler supports C++11 (body of main)
  2845. ac_cxx_conftest_cxx11_main='
  2846. {
  2847. // Test auto and decltype
  2848. auto a1 = 6538;
  2849. auto a2 = 48573953.4;
  2850. auto a3 = "String literal";
  2851. int total = 0;
  2852. for (auto i = a3; *i; ++i) { total += *i; }
  2853. decltype(a2) a4 = 34895.034;
  2854. }
  2855. {
  2856. // Test constexpr
  2857. short sa[cxx11test::get_val()] = { 0 };
  2858. }
  2859. {
  2860. // Test initializer lists
  2861. cxx11test::testinit il = { 4323, 435234.23544 };
  2862. }
  2863. {
  2864. // Test range-based for
  2865. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2866. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2867. for (auto &x : array) { x += 23; }
  2868. }
  2869. {
  2870. // Test lambda expressions
  2871. using cxx11test::eval;
  2872. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2873. double d = 2.0;
  2874. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2875. assert (d == 5.0);
  2876. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2877. assert (d == 5.0);
  2878. }
  2879. {
  2880. // Test use of variadic templates
  2881. using cxx11test::sum;
  2882. auto a = sum(1);
  2883. auto b = sum(1, 2);
  2884. auto c = sum(1.0, 2.0, 3.0);
  2885. }
  2886. {
  2887. // Test constructor delegation
  2888. cxx11test::delegate d1;
  2889. cxx11test::delegate d2();
  2890. cxx11test::delegate d3(45);
  2891. }
  2892. {
  2893. // Test override and final
  2894. cxx11test::overridden o1(55464);
  2895. }
  2896. {
  2897. // Test nullptr
  2898. char *c = nullptr;
  2899. }
  2900. {
  2901. // Test template brackets
  2902. test_template<::test_template<int>> v(test_template<int>(12));
  2903. }
  2904. {
  2905. // Unicode literals
  2906. char const *utf8 = u8"UTF-8 string \u2500";
  2907. char16_t const *utf16 = u"UTF-8 string \u2500";
  2908. char32_t const *utf32 = U"UTF-32 string \u2500";
  2909. }
  2910. '
  2911. # Test code for whether the C compiler supports C++11 (complete).
  2912. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2913. ${ac_cxx_conftest_cxx11_globals}
  2914. int
  2915. main (int argc, char **argv)
  2916. {
  2917. int ok = 0;
  2918. ${ac_cxx_conftest_cxx98_main}
  2919. ${ac_cxx_conftest_cxx11_main}
  2920. return ok;
  2921. }
  2922. "
  2923. # Test code for whether the C compiler supports C++98 (complete).
  2924. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2925. int
  2926. main (int argc, char **argv)
  2927. {
  2928. int ok = 0;
  2929. ${ac_cxx_conftest_cxx98_main}
  2930. return ok;
  2931. }
  2932. "
  2933. # Auxiliary files required by this configure script.
  2934. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2935. # Locations in which to look for auxiliary files.
  2936. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2937. # Search for a directory containing all of the required auxiliary files,
  2938. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2939. # If we don't find one directory that contains all the files we need,
  2940. # we report the set of missing files from the *first* directory in
  2941. # $ac_aux_dir_candidates and give up.
  2942. ac_missing_aux_files=""
  2943. ac_first_candidate=:
  2944. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2946. as_found=false
  2947. for as_dir in $ac_aux_dir_candidates
  2948. do
  2949. IFS=$as_save_IFS
  2950. case $as_dir in #(((
  2951. '') as_dir=./ ;;
  2952. */) ;;
  2953. *) as_dir=$as_dir/ ;;
  2954. esac
  2955. as_found=:
  2956. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2957. ac_aux_dir_found=yes
  2958. ac_install_sh=
  2959. for ac_aux in $ac_aux_files
  2960. do
  2961. # As a special case, if "install-sh" is required, that requirement
  2962. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2963. # and $ac_install_sh is set appropriately for whichever one is found.
  2964. if test x"$ac_aux" = x"install-sh"
  2965. then
  2966. if test -f "${as_dir}install-sh"; then
  2967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2968. ac_install_sh="${as_dir}install-sh -c"
  2969. elif test -f "${as_dir}install.sh"; then
  2970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2971. ac_install_sh="${as_dir}install.sh -c"
  2972. elif test -f "${as_dir}shtool"; then
  2973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2974. ac_install_sh="${as_dir}shtool install -c"
  2975. else
  2976. ac_aux_dir_found=no
  2977. if $ac_first_candidate; then
  2978. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2979. else
  2980. break
  2981. fi
  2982. fi
  2983. else
  2984. if test -f "${as_dir}${ac_aux}"; then
  2985. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2986. else
  2987. ac_aux_dir_found=no
  2988. if $ac_first_candidate; then
  2989. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2990. else
  2991. break
  2992. fi
  2993. fi
  2994. fi
  2995. done
  2996. if test "$ac_aux_dir_found" = yes; then
  2997. ac_aux_dir="$as_dir"
  2998. break
  2999. fi
  3000. ac_first_candidate=false
  3001. as_found=false
  3002. done
  3003. IFS=$as_save_IFS
  3004. if $as_found
  3005. then :
  3006. else $as_nop
  3007. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3008. fi
  3009. # These three variables are undocumented and unsupported,
  3010. # and are intended to be withdrawn in a future Autoconf release.
  3011. # They can cause serious problems if a builder's source tree is in a directory
  3012. # whose full name contains unusual characters.
  3013. if test -f "${ac_aux_dir}config.guess"; then
  3014. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3015. fi
  3016. if test -f "${ac_aux_dir}config.sub"; then
  3017. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3018. fi
  3019. if test -f "$ac_aux_dir/configure"; then
  3020. ac_configure="$SHELL ${ac_aux_dir}configure"
  3021. fi
  3022. # Check that the precious variables saved in the cache have kept the same
  3023. # value.
  3024. ac_cache_corrupted=false
  3025. for ac_var in $ac_precious_vars; do
  3026. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3027. eval ac_new_set=\$ac_env_${ac_var}_set
  3028. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3029. eval ac_new_val=\$ac_env_${ac_var}_value
  3030. case $ac_old_set,$ac_new_set in
  3031. set,)
  3032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3033. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3034. ac_cache_corrupted=: ;;
  3035. ,set)
  3036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3037. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3038. ac_cache_corrupted=: ;;
  3039. ,);;
  3040. *)
  3041. if test "x$ac_old_val" != "x$ac_new_val"; then
  3042. # differences in whitespace do not lead to failure.
  3043. ac_old_val_w=`echo x $ac_old_val`
  3044. ac_new_val_w=`echo x $ac_new_val`
  3045. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3047. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3048. ac_cache_corrupted=:
  3049. else
  3050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3051. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3052. eval $ac_var=\$ac_old_val
  3053. fi
  3054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3055. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3057. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3058. fi;;
  3059. esac
  3060. # Pass precious variables to config.status.
  3061. if test "$ac_new_set" = set; then
  3062. case $ac_new_val in
  3063. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3064. *) ac_arg=$ac_var=$ac_new_val ;;
  3065. esac
  3066. case " $ac_configure_args " in
  3067. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3068. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3069. esac
  3070. fi
  3071. done
  3072. if $ac_cache_corrupted; then
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3074. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3076. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3077. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3078. and start over" "$LINENO" 5
  3079. fi
  3080. ## -------------------- ##
  3081. ## Main body of script. ##
  3082. ## -------------------- ##
  3083. ac_ext=c
  3084. ac_cpp='$CPP $CPPFLAGS'
  3085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3088. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3089. orig_CFLAGS="$CFLAGS"
  3090. # See docs/release_checklist.md
  3091. SDL_MAJOR_VERSION=3
  3092. SDL_MINOR_VERSION=0
  3093. SDL_MICRO_VERSION=0
  3094. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3095. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3096. case "$SDL_MINOR_VERSION" in #(
  3097. *[02468]) :
  3098. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3099. *) :
  3100. SDL_INTERFACE_AGE=0 ;; #(
  3101. *) :
  3102. ;;
  3103. esac
  3104. # libtool versioning
  3105. case `pwd` in
  3106. *\ * | *\ *)
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3108. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3109. esac
  3110. macro_version='2.4.6'
  3111. macro_revision='2.4.6'
  3112. ltmain=$ac_aux_dir/ltmain.sh
  3113. # Make sure we can run config.sub.
  3114. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3115. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3117. printf %s "checking build system type... " >&6; }
  3118. if test ${ac_cv_build+y}
  3119. then :
  3120. printf %s "(cached) " >&6
  3121. else $as_nop
  3122. ac_build_alias=$build_alias
  3123. test "x$ac_build_alias" = x &&
  3124. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3125. test "x$ac_build_alias" = x &&
  3126. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3127. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3128. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3129. fi
  3130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3131. printf "%s\n" "$ac_cv_build" >&6; }
  3132. case $ac_cv_build in
  3133. *-*-*) ;;
  3134. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3135. esac
  3136. build=$ac_cv_build
  3137. ac_save_IFS=$IFS; IFS='-'
  3138. set x $ac_cv_build
  3139. shift
  3140. build_cpu=$1
  3141. build_vendor=$2
  3142. shift; shift
  3143. # Remember, the first character of IFS is used to create $*,
  3144. # except with old shells:
  3145. build_os=$*
  3146. IFS=$ac_save_IFS
  3147. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3149. printf %s "checking host system type... " >&6; }
  3150. if test ${ac_cv_host+y}
  3151. then :
  3152. printf %s "(cached) " >&6
  3153. else $as_nop
  3154. if test "x$host_alias" = x; then
  3155. ac_cv_host=$ac_cv_build
  3156. else
  3157. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3158. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3159. fi
  3160. fi
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3162. printf "%s\n" "$ac_cv_host" >&6; }
  3163. case $ac_cv_host in
  3164. *-*-*) ;;
  3165. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3166. esac
  3167. host=$ac_cv_host
  3168. ac_save_IFS=$IFS; IFS='-'
  3169. set x $ac_cv_host
  3170. shift
  3171. host_cpu=$1
  3172. host_vendor=$2
  3173. shift; shift
  3174. # Remember, the first character of IFS is used to create $*,
  3175. # except with old shells:
  3176. host_os=$*
  3177. IFS=$ac_save_IFS
  3178. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3179. # Backslashify metacharacters that are still active within
  3180. # double-quoted strings.
  3181. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3182. # Same as above, but do not quote variable references.
  3183. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3184. # Sed substitution to delay expansion of an escaped shell variable in a
  3185. # double_quote_subst'ed string.
  3186. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3187. # Sed substitution to delay expansion of an escaped single quote.
  3188. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3189. # Sed substitution to avoid accidental globbing in evaled expressions
  3190. no_glob_subst='s/\*/\\\*/g'
  3191. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3192. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3193. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3195. printf %s "checking how to print strings... " >&6; }
  3196. # Test print first, because it will be a builtin if present.
  3197. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3198. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3199. ECHO='print -r --'
  3200. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3201. ECHO='printf %s\n'
  3202. else
  3203. # Use this function as a fallback that always works.
  3204. func_fallback_echo ()
  3205. {
  3206. eval 'cat <<_LTECHO_EOF
  3207. $1
  3208. _LTECHO_EOF'
  3209. }
  3210. ECHO='func_fallback_echo'
  3211. fi
  3212. # func_echo_all arg...
  3213. # Invoke $ECHO with all args, space-separated.
  3214. func_echo_all ()
  3215. {
  3216. $ECHO ""
  3217. }
  3218. case $ECHO in
  3219. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3220. printf "%s\n" "printf" >&6; } ;;
  3221. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3222. printf "%s\n" "print -r" >&6; } ;;
  3223. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3224. printf "%s\n" "cat" >&6; } ;;
  3225. esac
  3226. ac_ext=c
  3227. ac_cpp='$CPP $CPPFLAGS'
  3228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3231. if test -n "$ac_tool_prefix"; then
  3232. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3233. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3235. printf %s "checking for $ac_word... " >&6; }
  3236. if test ${ac_cv_prog_CC+y}
  3237. then :
  3238. printf %s "(cached) " >&6
  3239. else $as_nop
  3240. if test -n "$CC"; then
  3241. ac_cv_prog_CC="$CC" # Let the user override the test.
  3242. else
  3243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3244. for as_dir in $PATH
  3245. do
  3246. IFS=$as_save_IFS
  3247. case $as_dir in #(((
  3248. '') as_dir=./ ;;
  3249. */) ;;
  3250. *) as_dir=$as_dir/ ;;
  3251. esac
  3252. for ac_exec_ext in '' $ac_executable_extensions; do
  3253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3254. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3256. break 2
  3257. fi
  3258. done
  3259. done
  3260. IFS=$as_save_IFS
  3261. fi
  3262. fi
  3263. CC=$ac_cv_prog_CC
  3264. if test -n "$CC"; then
  3265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3266. printf "%s\n" "$CC" >&6; }
  3267. else
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3269. printf "%s\n" "no" >&6; }
  3270. fi
  3271. fi
  3272. if test -z "$ac_cv_prog_CC"; then
  3273. ac_ct_CC=$CC
  3274. # Extract the first word of "gcc", so it can be a program name with args.
  3275. set dummy gcc; ac_word=$2
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3277. printf %s "checking for $ac_word... " >&6; }
  3278. if test ${ac_cv_prog_ac_ct_CC+y}
  3279. then :
  3280. printf %s "(cached) " >&6
  3281. else $as_nop
  3282. if test -n "$ac_ct_CC"; then
  3283. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. case $as_dir in #(((
  3290. '') as_dir=./ ;;
  3291. */) ;;
  3292. *) as_dir=$as_dir/ ;;
  3293. esac
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3296. ac_cv_prog_ac_ct_CC="gcc"
  3297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3298. break 2
  3299. fi
  3300. done
  3301. done
  3302. IFS=$as_save_IFS
  3303. fi
  3304. fi
  3305. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3306. if test -n "$ac_ct_CC"; then
  3307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3308. printf "%s\n" "$ac_ct_CC" >&6; }
  3309. else
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3311. printf "%s\n" "no" >&6; }
  3312. fi
  3313. if test "x$ac_ct_CC" = x; then
  3314. CC=""
  3315. else
  3316. case $cross_compiling:$ac_tool_warned in
  3317. yes:)
  3318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3319. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3320. ac_tool_warned=yes ;;
  3321. esac
  3322. CC=$ac_ct_CC
  3323. fi
  3324. else
  3325. CC="$ac_cv_prog_CC"
  3326. fi
  3327. if test -z "$CC"; then
  3328. if test -n "$ac_tool_prefix"; then
  3329. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3330. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3332. printf %s "checking for $ac_word... " >&6; }
  3333. if test ${ac_cv_prog_CC+y}
  3334. then :
  3335. printf %s "(cached) " >&6
  3336. else $as_nop
  3337. if test -n "$CC"; then
  3338. ac_cv_prog_CC="$CC" # Let the user override the test.
  3339. else
  3340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3341. for as_dir in $PATH
  3342. do
  3343. IFS=$as_save_IFS
  3344. case $as_dir in #(((
  3345. '') as_dir=./ ;;
  3346. */) ;;
  3347. *) as_dir=$as_dir/ ;;
  3348. esac
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3351. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. CC=$ac_cv_prog_CC
  3361. if test -n "$CC"; then
  3362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3363. printf "%s\n" "$CC" >&6; }
  3364. else
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. printf "%s\n" "no" >&6; }
  3367. fi
  3368. fi
  3369. fi
  3370. if test -z "$CC"; then
  3371. # Extract the first word of "cc", so it can be a program name with args.
  3372. set dummy cc; ac_word=$2
  3373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. printf %s "checking for $ac_word... " >&6; }
  3375. if test ${ac_cv_prog_CC+y}
  3376. then :
  3377. printf %s "(cached) " >&6
  3378. else $as_nop
  3379. if test -n "$CC"; then
  3380. ac_cv_prog_CC="$CC" # Let the user override the test.
  3381. else
  3382. ac_prog_rejected=no
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. case $as_dir in #(((
  3388. '') as_dir=./ ;;
  3389. */) ;;
  3390. *) as_dir=$as_dir/ ;;
  3391. esac
  3392. for ac_exec_ext in '' $ac_executable_extensions; do
  3393. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3394. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3395. ac_prog_rejected=yes
  3396. continue
  3397. fi
  3398. ac_cv_prog_CC="cc"
  3399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3400. break 2
  3401. fi
  3402. done
  3403. done
  3404. IFS=$as_save_IFS
  3405. if test $ac_prog_rejected = yes; then
  3406. # We found a bogon in the path, so make sure we never use it.
  3407. set dummy $ac_cv_prog_CC
  3408. shift
  3409. if test $# != 0; then
  3410. # We chose a different compiler from the bogus one.
  3411. # However, it has the same basename, so the bogon will be chosen
  3412. # first if we set CC to just the basename; use the full file name.
  3413. shift
  3414. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3415. fi
  3416. fi
  3417. fi
  3418. fi
  3419. CC=$ac_cv_prog_CC
  3420. if test -n "$CC"; then
  3421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3422. printf "%s\n" "$CC" >&6; }
  3423. else
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. printf "%s\n" "no" >&6; }
  3426. fi
  3427. fi
  3428. if test -z "$CC"; then
  3429. if test -n "$ac_tool_prefix"; then
  3430. for ac_prog in cl.exe
  3431. do
  3432. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3433. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3435. printf %s "checking for $ac_word... " >&6; }
  3436. if test ${ac_cv_prog_CC+y}
  3437. then :
  3438. printf %s "(cached) " >&6
  3439. else $as_nop
  3440. if test -n "$CC"; then
  3441. ac_cv_prog_CC="$CC" # Let the user override the test.
  3442. else
  3443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3444. for as_dir in $PATH
  3445. do
  3446. IFS=$as_save_IFS
  3447. case $as_dir in #(((
  3448. '') as_dir=./ ;;
  3449. */) ;;
  3450. *) as_dir=$as_dir/ ;;
  3451. esac
  3452. for ac_exec_ext in '' $ac_executable_extensions; do
  3453. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3454. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3456. break 2
  3457. fi
  3458. done
  3459. done
  3460. IFS=$as_save_IFS
  3461. fi
  3462. fi
  3463. CC=$ac_cv_prog_CC
  3464. if test -n "$CC"; then
  3465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3466. printf "%s\n" "$CC" >&6; }
  3467. else
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3469. printf "%s\n" "no" >&6; }
  3470. fi
  3471. test -n "$CC" && break
  3472. done
  3473. fi
  3474. if test -z "$CC"; then
  3475. ac_ct_CC=$CC
  3476. for ac_prog in cl.exe
  3477. do
  3478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3479. set dummy $ac_prog; ac_word=$2
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3481. printf %s "checking for $ac_word... " >&6; }
  3482. if test ${ac_cv_prog_ac_ct_CC+y}
  3483. then :
  3484. printf %s "(cached) " >&6
  3485. else $as_nop
  3486. if test -n "$ac_ct_CC"; then
  3487. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3488. else
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492. IFS=$as_save_IFS
  3493. case $as_dir in #(((
  3494. '') as_dir=./ ;;
  3495. */) ;;
  3496. *) as_dir=$as_dir/ ;;
  3497. esac
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3500. ac_cv_prog_ac_ct_CC="$ac_prog"
  3501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. fi
  3508. fi
  3509. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3510. if test -n "$ac_ct_CC"; then
  3511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3512. printf "%s\n" "$ac_ct_CC" >&6; }
  3513. else
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3515. printf "%s\n" "no" >&6; }
  3516. fi
  3517. test -n "$ac_ct_CC" && break
  3518. done
  3519. if test "x$ac_ct_CC" = x; then
  3520. CC=""
  3521. else
  3522. case $cross_compiling:$ac_tool_warned in
  3523. yes:)
  3524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3525. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3526. ac_tool_warned=yes ;;
  3527. esac
  3528. CC=$ac_ct_CC
  3529. fi
  3530. fi
  3531. fi
  3532. if test -z "$CC"; then
  3533. if test -n "$ac_tool_prefix"; then
  3534. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3535. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3537. printf %s "checking for $ac_word... " >&6; }
  3538. if test ${ac_cv_prog_CC+y}
  3539. then :
  3540. printf %s "(cached) " >&6
  3541. else $as_nop
  3542. if test -n "$CC"; then
  3543. ac_cv_prog_CC="$CC" # Let the user override the test.
  3544. else
  3545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3546. for as_dir in $PATH
  3547. do
  3548. IFS=$as_save_IFS
  3549. case $as_dir in #(((
  3550. '') as_dir=./ ;;
  3551. */) ;;
  3552. *) as_dir=$as_dir/ ;;
  3553. esac
  3554. for ac_exec_ext in '' $ac_executable_extensions; do
  3555. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3556. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3557. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3558. break 2
  3559. fi
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. fi
  3564. fi
  3565. CC=$ac_cv_prog_CC
  3566. if test -n "$CC"; then
  3567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3568. printf "%s\n" "$CC" >&6; }
  3569. else
  3570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3571. printf "%s\n" "no" >&6; }
  3572. fi
  3573. fi
  3574. if test -z "$ac_cv_prog_CC"; then
  3575. ac_ct_CC=$CC
  3576. # Extract the first word of "clang", so it can be a program name with args.
  3577. set dummy clang; ac_word=$2
  3578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3579. printf %s "checking for $ac_word... " >&6; }
  3580. if test ${ac_cv_prog_ac_ct_CC+y}
  3581. then :
  3582. printf %s "(cached) " >&6
  3583. else $as_nop
  3584. if test -n "$ac_ct_CC"; then
  3585. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. case $as_dir in #(((
  3592. '') as_dir=./ ;;
  3593. */) ;;
  3594. *) as_dir=$as_dir/ ;;
  3595. esac
  3596. for ac_exec_ext in '' $ac_executable_extensions; do
  3597. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3598. ac_cv_prog_ac_ct_CC="clang"
  3599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3600. break 2
  3601. fi
  3602. done
  3603. done
  3604. IFS=$as_save_IFS
  3605. fi
  3606. fi
  3607. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3608. if test -n "$ac_ct_CC"; then
  3609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3610. printf "%s\n" "$ac_ct_CC" >&6; }
  3611. else
  3612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3613. printf "%s\n" "no" >&6; }
  3614. fi
  3615. if test "x$ac_ct_CC" = x; then
  3616. CC=""
  3617. else
  3618. case $cross_compiling:$ac_tool_warned in
  3619. yes:)
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3621. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3622. ac_tool_warned=yes ;;
  3623. esac
  3624. CC=$ac_ct_CC
  3625. fi
  3626. else
  3627. CC="$ac_cv_prog_CC"
  3628. fi
  3629. fi
  3630. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3631. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3632. as_fn_error $? "no acceptable C compiler found in \$PATH
  3633. See \`config.log' for more details" "$LINENO" 5; }
  3634. # Provide some information about the compiler.
  3635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3636. set X $ac_compile
  3637. ac_compiler=$2
  3638. for ac_option in --version -v -V -qversion -version; do
  3639. { { ac_try="$ac_compiler $ac_option >&5"
  3640. case "(($ac_try" in
  3641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3642. *) ac_try_echo=$ac_try;;
  3643. esac
  3644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3645. printf "%s\n" "$ac_try_echo"; } >&5
  3646. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3647. ac_status=$?
  3648. if test -s conftest.err; then
  3649. sed '10a\
  3650. ... rest of stderr output deleted ...
  3651. 10q' conftest.err >conftest.er1
  3652. cat conftest.er1 >&5
  3653. fi
  3654. rm -f conftest.er1 conftest.err
  3655. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3656. test $ac_status = 0; }
  3657. done
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. int
  3661. main (void)
  3662. {
  3663. ;
  3664. return 0;
  3665. }
  3666. _ACEOF
  3667. ac_clean_files_save=$ac_clean_files
  3668. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3669. # Try to create an executable without -o first, disregard a.out.
  3670. # It will help us diagnose broken compilers, and finding out an intuition
  3671. # of exeext.
  3672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3673. printf %s "checking whether the C compiler works... " >&6; }
  3674. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3675. # The possible output files:
  3676. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3677. ac_rmfiles=
  3678. for ac_file in $ac_files
  3679. do
  3680. case $ac_file in
  3681. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3682. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3683. esac
  3684. done
  3685. rm -f $ac_rmfiles
  3686. if { { ac_try="$ac_link_default"
  3687. case "(($ac_try" in
  3688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3689. *) ac_try_echo=$ac_try;;
  3690. esac
  3691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3692. printf "%s\n" "$ac_try_echo"; } >&5
  3693. (eval "$ac_link_default") 2>&5
  3694. ac_status=$?
  3695. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3696. test $ac_status = 0; }
  3697. then :
  3698. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3699. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3700. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3701. # so that the user can short-circuit this test for compilers unknown to
  3702. # Autoconf.
  3703. for ac_file in $ac_files ''
  3704. do
  3705. test -f "$ac_file" || continue
  3706. case $ac_file in
  3707. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3708. ;;
  3709. [ab].out )
  3710. # We found the default executable, but exeext='' is most
  3711. # certainly right.
  3712. break;;
  3713. *.* )
  3714. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3715. then :; else
  3716. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3717. fi
  3718. # We set ac_cv_exeext here because the later test for it is not
  3719. # safe: cross compilers may not add the suffix if given an `-o'
  3720. # argument, so we may need to know it at that point already.
  3721. # Even if this section looks crufty: it has the advantage of
  3722. # actually working.
  3723. break;;
  3724. * )
  3725. break;;
  3726. esac
  3727. done
  3728. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3729. else $as_nop
  3730. ac_file=''
  3731. fi
  3732. if test -z "$ac_file"
  3733. then :
  3734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3735. printf "%s\n" "no" >&6; }
  3736. printf "%s\n" "$as_me: failed program was:" >&5
  3737. sed 's/^/| /' conftest.$ac_ext >&5
  3738. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3739. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3740. as_fn_error 77 "C compiler cannot create executables
  3741. See \`config.log' for more details" "$LINENO" 5; }
  3742. else $as_nop
  3743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3744. printf "%s\n" "yes" >&6; }
  3745. fi
  3746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3747. printf %s "checking for C compiler default output file name... " >&6; }
  3748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3749. printf "%s\n" "$ac_file" >&6; }
  3750. ac_exeext=$ac_cv_exeext
  3751. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3752. ac_clean_files=$ac_clean_files_save
  3753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3754. printf %s "checking for suffix of executables... " >&6; }
  3755. if { { ac_try="$ac_link"
  3756. case "(($ac_try" in
  3757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3758. *) ac_try_echo=$ac_try;;
  3759. esac
  3760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3761. printf "%s\n" "$ac_try_echo"; } >&5
  3762. (eval "$ac_link") 2>&5
  3763. ac_status=$?
  3764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }
  3766. then :
  3767. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3768. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3769. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3770. # `rm'.
  3771. for ac_file in conftest.exe conftest conftest.*; do
  3772. test -f "$ac_file" || continue
  3773. case $ac_file in
  3774. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3775. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3776. break;;
  3777. * ) break;;
  3778. esac
  3779. done
  3780. else $as_nop
  3781. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3782. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3783. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3784. See \`config.log' for more details" "$LINENO" 5; }
  3785. fi
  3786. rm -f conftest conftest$ac_cv_exeext
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3788. printf "%s\n" "$ac_cv_exeext" >&6; }
  3789. rm -f conftest.$ac_ext
  3790. EXEEXT=$ac_cv_exeext
  3791. ac_exeext=$EXEEXT
  3792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3793. /* end confdefs.h. */
  3794. #include <stdio.h>
  3795. int
  3796. main (void)
  3797. {
  3798. FILE *f = fopen ("conftest.out", "w");
  3799. return ferror (f) || fclose (f) != 0;
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. ac_clean_files="$ac_clean_files conftest.out"
  3805. # Check that the compiler produces executables we can run. If not, either
  3806. # the compiler is broken, or we cross compile.
  3807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3808. printf %s "checking whether we are cross compiling... " >&6; }
  3809. if test "$cross_compiling" != yes; then
  3810. { { ac_try="$ac_link"
  3811. case "(($ac_try" in
  3812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3813. *) ac_try_echo=$ac_try;;
  3814. esac
  3815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3816. printf "%s\n" "$ac_try_echo"; } >&5
  3817. (eval "$ac_link") 2>&5
  3818. ac_status=$?
  3819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3820. test $ac_status = 0; }
  3821. if { ac_try='./conftest$ac_cv_exeext'
  3822. { { case "(($ac_try" in
  3823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3824. *) ac_try_echo=$ac_try;;
  3825. esac
  3826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3827. printf "%s\n" "$ac_try_echo"; } >&5
  3828. (eval "$ac_try") 2>&5
  3829. ac_status=$?
  3830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3831. test $ac_status = 0; }; }; then
  3832. cross_compiling=no
  3833. else
  3834. if test "$cross_compiling" = maybe; then
  3835. cross_compiling=yes
  3836. else
  3837. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3838. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3839. as_fn_error 77 "cannot run C compiled programs.
  3840. If you meant to cross compile, use \`--host'.
  3841. See \`config.log' for more details" "$LINENO" 5; }
  3842. fi
  3843. fi
  3844. fi
  3845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3846. printf "%s\n" "$cross_compiling" >&6; }
  3847. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3848. ac_clean_files=$ac_clean_files_save
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3850. printf %s "checking for suffix of object files... " >&6; }
  3851. if test ${ac_cv_objext+y}
  3852. then :
  3853. printf %s "(cached) " >&6
  3854. else $as_nop
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. int
  3858. main (void)
  3859. {
  3860. ;
  3861. return 0;
  3862. }
  3863. _ACEOF
  3864. rm -f conftest.o conftest.obj
  3865. if { { ac_try="$ac_compile"
  3866. case "(($ac_try" in
  3867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3868. *) ac_try_echo=$ac_try;;
  3869. esac
  3870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3871. printf "%s\n" "$ac_try_echo"; } >&5
  3872. (eval "$ac_compile") 2>&5
  3873. ac_status=$?
  3874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3875. test $ac_status = 0; }
  3876. then :
  3877. for ac_file in conftest.o conftest.obj conftest.*; do
  3878. test -f "$ac_file" || continue;
  3879. case $ac_file in
  3880. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3881. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3882. break;;
  3883. esac
  3884. done
  3885. else $as_nop
  3886. printf "%s\n" "$as_me: failed program was:" >&5
  3887. sed 's/^/| /' conftest.$ac_ext >&5
  3888. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3889. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3890. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3891. See \`config.log' for more details" "$LINENO" 5; }
  3892. fi
  3893. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3894. fi
  3895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3896. printf "%s\n" "$ac_cv_objext" >&6; }
  3897. OBJEXT=$ac_cv_objext
  3898. ac_objext=$OBJEXT
  3899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3900. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3901. if test ${ac_cv_c_compiler_gnu+y}
  3902. then :
  3903. printf %s "(cached) " >&6
  3904. else $as_nop
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. int
  3908. main (void)
  3909. {
  3910. #ifndef __GNUC__
  3911. choke me
  3912. #endif
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. if ac_fn_c_try_compile "$LINENO"
  3918. then :
  3919. ac_compiler_gnu=yes
  3920. else $as_nop
  3921. ac_compiler_gnu=no
  3922. fi
  3923. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3924. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3925. fi
  3926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3927. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3929. if test $ac_compiler_gnu = yes; then
  3930. GCC=yes
  3931. else
  3932. GCC=
  3933. fi
  3934. ac_test_CFLAGS=${CFLAGS+y}
  3935. ac_save_CFLAGS=$CFLAGS
  3936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3937. printf %s "checking whether $CC accepts -g... " >&6; }
  3938. if test ${ac_cv_prog_cc_g+y}
  3939. then :
  3940. printf %s "(cached) " >&6
  3941. else $as_nop
  3942. ac_save_c_werror_flag=$ac_c_werror_flag
  3943. ac_c_werror_flag=yes
  3944. ac_cv_prog_cc_g=no
  3945. CFLAGS="-g"
  3946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3947. /* end confdefs.h. */
  3948. int
  3949. main (void)
  3950. {
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. if ac_fn_c_try_compile "$LINENO"
  3956. then :
  3957. ac_cv_prog_cc_g=yes
  3958. else $as_nop
  3959. CFLAGS=""
  3960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3961. /* end confdefs.h. */
  3962. int
  3963. main (void)
  3964. {
  3965. ;
  3966. return 0;
  3967. }
  3968. _ACEOF
  3969. if ac_fn_c_try_compile "$LINENO"
  3970. then :
  3971. else $as_nop
  3972. ac_c_werror_flag=$ac_save_c_werror_flag
  3973. CFLAGS="-g"
  3974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3975. /* end confdefs.h. */
  3976. int
  3977. main (void)
  3978. {
  3979. ;
  3980. return 0;
  3981. }
  3982. _ACEOF
  3983. if ac_fn_c_try_compile "$LINENO"
  3984. then :
  3985. ac_cv_prog_cc_g=yes
  3986. fi
  3987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3988. fi
  3989. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3990. fi
  3991. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3992. ac_c_werror_flag=$ac_save_c_werror_flag
  3993. fi
  3994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3995. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3996. if test $ac_test_CFLAGS; then
  3997. CFLAGS=$ac_save_CFLAGS
  3998. elif test $ac_cv_prog_cc_g = yes; then
  3999. if test "$GCC" = yes; then
  4000. CFLAGS="-g -O2"
  4001. else
  4002. CFLAGS="-g"
  4003. fi
  4004. else
  4005. if test "$GCC" = yes; then
  4006. CFLAGS="-O2"
  4007. else
  4008. CFLAGS=
  4009. fi
  4010. fi
  4011. ac_prog_cc_stdc=no
  4012. if test x$ac_prog_cc_stdc = xno
  4013. then :
  4014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4015. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4016. if test ${ac_cv_prog_cc_c11+y}
  4017. then :
  4018. printf %s "(cached) " >&6
  4019. else $as_nop
  4020. ac_cv_prog_cc_c11=no
  4021. ac_save_CC=$CC
  4022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4023. /* end confdefs.h. */
  4024. $ac_c_conftest_c11_program
  4025. _ACEOF
  4026. for ac_arg in '' -std=gnu11
  4027. do
  4028. CC="$ac_save_CC $ac_arg"
  4029. if ac_fn_c_try_compile "$LINENO"
  4030. then :
  4031. ac_cv_prog_cc_c11=$ac_arg
  4032. fi
  4033. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4034. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4035. done
  4036. rm -f conftest.$ac_ext
  4037. CC=$ac_save_CC
  4038. fi
  4039. if test "x$ac_cv_prog_cc_c11" = xno
  4040. then :
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4042. printf "%s\n" "unsupported" >&6; }
  4043. else $as_nop
  4044. if test "x$ac_cv_prog_cc_c11" = x
  4045. then :
  4046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4047. printf "%s\n" "none needed" >&6; }
  4048. else $as_nop
  4049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4050. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4051. CC="$CC $ac_cv_prog_cc_c11"
  4052. fi
  4053. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4054. ac_prog_cc_stdc=c11
  4055. fi
  4056. fi
  4057. if test x$ac_prog_cc_stdc = xno
  4058. then :
  4059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4060. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4061. if test ${ac_cv_prog_cc_c99+y}
  4062. then :
  4063. printf %s "(cached) " >&6
  4064. else $as_nop
  4065. ac_cv_prog_cc_c99=no
  4066. ac_save_CC=$CC
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. $ac_c_conftest_c99_program
  4070. _ACEOF
  4071. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4072. do
  4073. CC="$ac_save_CC $ac_arg"
  4074. if ac_fn_c_try_compile "$LINENO"
  4075. then :
  4076. ac_cv_prog_cc_c99=$ac_arg
  4077. fi
  4078. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4079. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4080. done
  4081. rm -f conftest.$ac_ext
  4082. CC=$ac_save_CC
  4083. fi
  4084. if test "x$ac_cv_prog_cc_c99" = xno
  4085. then :
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4087. printf "%s\n" "unsupported" >&6; }
  4088. else $as_nop
  4089. if test "x$ac_cv_prog_cc_c99" = x
  4090. then :
  4091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4092. printf "%s\n" "none needed" >&6; }
  4093. else $as_nop
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4095. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4096. CC="$CC $ac_cv_prog_cc_c99"
  4097. fi
  4098. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4099. ac_prog_cc_stdc=c99
  4100. fi
  4101. fi
  4102. if test x$ac_prog_cc_stdc = xno
  4103. then :
  4104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4105. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4106. if test ${ac_cv_prog_cc_c89+y}
  4107. then :
  4108. printf %s "(cached) " >&6
  4109. else $as_nop
  4110. ac_cv_prog_cc_c89=no
  4111. ac_save_CC=$CC
  4112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4113. /* end confdefs.h. */
  4114. $ac_c_conftest_c89_program
  4115. _ACEOF
  4116. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4117. do
  4118. CC="$ac_save_CC $ac_arg"
  4119. if ac_fn_c_try_compile "$LINENO"
  4120. then :
  4121. ac_cv_prog_cc_c89=$ac_arg
  4122. fi
  4123. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4124. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4125. done
  4126. rm -f conftest.$ac_ext
  4127. CC=$ac_save_CC
  4128. fi
  4129. if test "x$ac_cv_prog_cc_c89" = xno
  4130. then :
  4131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4132. printf "%s\n" "unsupported" >&6; }
  4133. else $as_nop
  4134. if test "x$ac_cv_prog_cc_c89" = x
  4135. then :
  4136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4137. printf "%s\n" "none needed" >&6; }
  4138. else $as_nop
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4140. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4141. CC="$CC $ac_cv_prog_cc_c89"
  4142. fi
  4143. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4144. ac_prog_cc_stdc=c89
  4145. fi
  4146. fi
  4147. ac_ext=c
  4148. ac_cpp='$CPP $CPPFLAGS'
  4149. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4150. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4151. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4153. printf %s "checking for a sed that does not truncate output... " >&6; }
  4154. if test ${ac_cv_path_SED+y}
  4155. then :
  4156. printf %s "(cached) " >&6
  4157. else $as_nop
  4158. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4159. for ac_i in 1 2 3 4 5 6 7; do
  4160. ac_script="$ac_script$as_nl$ac_script"
  4161. done
  4162. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4163. { ac_script=; unset ac_script;}
  4164. if test -z "$SED"; then
  4165. ac_path_SED_found=false
  4166. # Loop through the user's path and test for each of PROGNAME-LIST
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH
  4169. do
  4170. IFS=$as_save_IFS
  4171. case $as_dir in #(((
  4172. '') as_dir=./ ;;
  4173. */) ;;
  4174. *) as_dir=$as_dir/ ;;
  4175. esac
  4176. for ac_prog in sed gsed
  4177. do
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4180. as_fn_executable_p "$ac_path_SED" || continue
  4181. # Check for GNU ac_path_SED and select it if it is found.
  4182. # Check for GNU $ac_path_SED
  4183. case `"$ac_path_SED" --version 2>&1` in
  4184. *GNU*)
  4185. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4186. *)
  4187. ac_count=0
  4188. printf %s 0123456789 >"conftest.in"
  4189. while :
  4190. do
  4191. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4192. mv "conftest.tmp" "conftest.in"
  4193. cp "conftest.in" "conftest.nl"
  4194. printf "%s\n" '' >> "conftest.nl"
  4195. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4196. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4197. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4198. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4199. # Best one so far, save it but keep looking for a better one
  4200. ac_cv_path_SED="$ac_path_SED"
  4201. ac_path_SED_max=$ac_count
  4202. fi
  4203. # 10*(2^10) chars as input seems more than enough
  4204. test $ac_count -gt 10 && break
  4205. done
  4206. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4207. esac
  4208. $ac_path_SED_found && break 3
  4209. done
  4210. done
  4211. done
  4212. IFS=$as_save_IFS
  4213. if test -z "$ac_cv_path_SED"; then
  4214. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4215. fi
  4216. else
  4217. ac_cv_path_SED=$SED
  4218. fi
  4219. fi
  4220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4221. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4222. SED="$ac_cv_path_SED"
  4223. rm -f conftest.sed
  4224. test -z "$SED" && SED=sed
  4225. Xsed="$SED -e 1s/^X//"
  4226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4227. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4228. if test ${ac_cv_path_GREP+y}
  4229. then :
  4230. printf %s "(cached) " >&6
  4231. else $as_nop
  4232. if test -z "$GREP"; then
  4233. ac_path_GREP_found=false
  4234. # Loop through the user's path and test for each of PROGNAME-LIST
  4235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4236. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4237. do
  4238. IFS=$as_save_IFS
  4239. case $as_dir in #(((
  4240. '') as_dir=./ ;;
  4241. */) ;;
  4242. *) as_dir=$as_dir/ ;;
  4243. esac
  4244. for ac_prog in grep ggrep
  4245. do
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4248. as_fn_executable_p "$ac_path_GREP" || continue
  4249. # Check for GNU ac_path_GREP and select it if it is found.
  4250. # Check for GNU $ac_path_GREP
  4251. case `"$ac_path_GREP" --version 2>&1` in
  4252. *GNU*)
  4253. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4254. *)
  4255. ac_count=0
  4256. printf %s 0123456789 >"conftest.in"
  4257. while :
  4258. do
  4259. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4260. mv "conftest.tmp" "conftest.in"
  4261. cp "conftest.in" "conftest.nl"
  4262. printf "%s\n" 'GREP' >> "conftest.nl"
  4263. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4264. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4265. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4266. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4267. # Best one so far, save it but keep looking for a better one
  4268. ac_cv_path_GREP="$ac_path_GREP"
  4269. ac_path_GREP_max=$ac_count
  4270. fi
  4271. # 10*(2^10) chars as input seems more than enough
  4272. test $ac_count -gt 10 && break
  4273. done
  4274. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4275. esac
  4276. $ac_path_GREP_found && break 3
  4277. done
  4278. done
  4279. done
  4280. IFS=$as_save_IFS
  4281. if test -z "$ac_cv_path_GREP"; then
  4282. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4283. fi
  4284. else
  4285. ac_cv_path_GREP=$GREP
  4286. fi
  4287. fi
  4288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4289. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4290. GREP="$ac_cv_path_GREP"
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4292. printf %s "checking for egrep... " >&6; }
  4293. if test ${ac_cv_path_EGREP+y}
  4294. then :
  4295. printf %s "(cached) " >&6
  4296. else $as_nop
  4297. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4298. then ac_cv_path_EGREP="$GREP -E"
  4299. else
  4300. if test -z "$EGREP"; then
  4301. ac_path_EGREP_found=false
  4302. # Loop through the user's path and test for each of PROGNAME-LIST
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4305. do
  4306. IFS=$as_save_IFS
  4307. case $as_dir in #(((
  4308. '') as_dir=./ ;;
  4309. */) ;;
  4310. *) as_dir=$as_dir/ ;;
  4311. esac
  4312. for ac_prog in egrep
  4313. do
  4314. for ac_exec_ext in '' $ac_executable_extensions; do
  4315. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4316. as_fn_executable_p "$ac_path_EGREP" || continue
  4317. # Check for GNU ac_path_EGREP and select it if it is found.
  4318. # Check for GNU $ac_path_EGREP
  4319. case `"$ac_path_EGREP" --version 2>&1` in
  4320. *GNU*)
  4321. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4322. *)
  4323. ac_count=0
  4324. printf %s 0123456789 >"conftest.in"
  4325. while :
  4326. do
  4327. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4328. mv "conftest.tmp" "conftest.in"
  4329. cp "conftest.in" "conftest.nl"
  4330. printf "%s\n" 'EGREP' >> "conftest.nl"
  4331. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4332. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4333. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4334. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4335. # Best one so far, save it but keep looking for a better one
  4336. ac_cv_path_EGREP="$ac_path_EGREP"
  4337. ac_path_EGREP_max=$ac_count
  4338. fi
  4339. # 10*(2^10) chars as input seems more than enough
  4340. test $ac_count -gt 10 && break
  4341. done
  4342. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4343. esac
  4344. $ac_path_EGREP_found && break 3
  4345. done
  4346. done
  4347. done
  4348. IFS=$as_save_IFS
  4349. if test -z "$ac_cv_path_EGREP"; then
  4350. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4351. fi
  4352. else
  4353. ac_cv_path_EGREP=$EGREP
  4354. fi
  4355. fi
  4356. fi
  4357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4358. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4359. EGREP="$ac_cv_path_EGREP"
  4360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4361. printf %s "checking for fgrep... " >&6; }
  4362. if test ${ac_cv_path_FGREP+y}
  4363. then :
  4364. printf %s "(cached) " >&6
  4365. else $as_nop
  4366. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4367. then ac_cv_path_FGREP="$GREP -F"
  4368. else
  4369. if test -z "$FGREP"; then
  4370. ac_path_FGREP_found=false
  4371. # Loop through the user's path and test for each of PROGNAME-LIST
  4372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4373. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4374. do
  4375. IFS=$as_save_IFS
  4376. case $as_dir in #(((
  4377. '') as_dir=./ ;;
  4378. */) ;;
  4379. *) as_dir=$as_dir/ ;;
  4380. esac
  4381. for ac_prog in fgrep
  4382. do
  4383. for ac_exec_ext in '' $ac_executable_extensions; do
  4384. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4385. as_fn_executable_p "$ac_path_FGREP" || continue
  4386. # Check for GNU ac_path_FGREP and select it if it is found.
  4387. # Check for GNU $ac_path_FGREP
  4388. case `"$ac_path_FGREP" --version 2>&1` in
  4389. *GNU*)
  4390. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4391. *)
  4392. ac_count=0
  4393. printf %s 0123456789 >"conftest.in"
  4394. while :
  4395. do
  4396. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4397. mv "conftest.tmp" "conftest.in"
  4398. cp "conftest.in" "conftest.nl"
  4399. printf "%s\n" 'FGREP' >> "conftest.nl"
  4400. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4401. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4402. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4403. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4404. # Best one so far, save it but keep looking for a better one
  4405. ac_cv_path_FGREP="$ac_path_FGREP"
  4406. ac_path_FGREP_max=$ac_count
  4407. fi
  4408. # 10*(2^10) chars as input seems more than enough
  4409. test $ac_count -gt 10 && break
  4410. done
  4411. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4412. esac
  4413. $ac_path_FGREP_found && break 3
  4414. done
  4415. done
  4416. done
  4417. IFS=$as_save_IFS
  4418. if test -z "$ac_cv_path_FGREP"; then
  4419. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4420. fi
  4421. else
  4422. ac_cv_path_FGREP=$FGREP
  4423. fi
  4424. fi
  4425. fi
  4426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4427. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4428. FGREP="$ac_cv_path_FGREP"
  4429. test -z "$GREP" && GREP=grep
  4430. # Check whether --with-gnu-ld was given.
  4431. if test ${with_gnu_ld+y}
  4432. then :
  4433. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4434. else $as_nop
  4435. with_gnu_ld=no
  4436. fi
  4437. ac_prog=ld
  4438. if test yes = "$GCC"; then
  4439. # Check if gcc -print-prog-name=ld gives a path.
  4440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4441. printf %s "checking for ld used by $CC... " >&6; }
  4442. case $host in
  4443. *-*-mingw*)
  4444. # gcc leaves a trailing carriage return, which upsets mingw
  4445. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4446. *)
  4447. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4448. esac
  4449. case $ac_prog in
  4450. # Accept absolute paths.
  4451. [\\/]* | ?:[\\/]*)
  4452. re_direlt='/[^/][^/]*/\.\./'
  4453. # Canonicalize the pathname of ld
  4454. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4455. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4456. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4457. done
  4458. test -z "$LD" && LD=$ac_prog
  4459. ;;
  4460. "")
  4461. # If it fails, then pretend we aren't using GCC.
  4462. ac_prog=ld
  4463. ;;
  4464. *)
  4465. # If it is relative, then search for the first ld in PATH.
  4466. with_gnu_ld=unknown
  4467. ;;
  4468. esac
  4469. elif test yes = "$with_gnu_ld"; then
  4470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4471. printf %s "checking for GNU ld... " >&6; }
  4472. else
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4474. printf %s "checking for non-GNU ld... " >&6; }
  4475. fi
  4476. if test ${lt_cv_path_LD+y}
  4477. then :
  4478. printf %s "(cached) " >&6
  4479. else $as_nop
  4480. if test -z "$LD"; then
  4481. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4482. for ac_dir in $PATH; do
  4483. IFS=$lt_save_ifs
  4484. test -z "$ac_dir" && ac_dir=.
  4485. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4486. lt_cv_path_LD=$ac_dir/$ac_prog
  4487. # Check to see if the program is GNU ld. I'd rather use --version,
  4488. # but apparently some variants of GNU ld only accept -v.
  4489. # Break only if it was the GNU/non-GNU ld that we prefer.
  4490. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4491. *GNU* | *'with BFD'*)
  4492. test no != "$with_gnu_ld" && break
  4493. ;;
  4494. *)
  4495. test yes != "$with_gnu_ld" && break
  4496. ;;
  4497. esac
  4498. fi
  4499. done
  4500. IFS=$lt_save_ifs
  4501. else
  4502. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4503. fi
  4504. fi
  4505. LD=$lt_cv_path_LD
  4506. if test -n "$LD"; then
  4507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4508. printf "%s\n" "$LD" >&6; }
  4509. else
  4510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4511. printf "%s\n" "no" >&6; }
  4512. fi
  4513. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4515. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4516. if test ${lt_cv_prog_gnu_ld+y}
  4517. then :
  4518. printf %s "(cached) " >&6
  4519. else $as_nop
  4520. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4521. case `$LD -v 2>&1 </dev/null` in
  4522. *GNU* | *'with BFD'*)
  4523. lt_cv_prog_gnu_ld=yes
  4524. ;;
  4525. *)
  4526. lt_cv_prog_gnu_ld=no
  4527. ;;
  4528. esac
  4529. fi
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4531. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4532. with_gnu_ld=$lt_cv_prog_gnu_ld
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4534. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4535. if test ${lt_cv_path_NM+y}
  4536. then :
  4537. printf %s "(cached) " >&6
  4538. else $as_nop
  4539. if test -n "$NM"; then
  4540. # Let the user override the test.
  4541. lt_cv_path_NM=$NM
  4542. else
  4543. lt_nm_to_check=${ac_tool_prefix}nm
  4544. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4545. lt_nm_to_check="$lt_nm_to_check nm"
  4546. fi
  4547. for lt_tmp_nm in $lt_nm_to_check; do
  4548. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4549. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4550. IFS=$lt_save_ifs
  4551. test -z "$ac_dir" && ac_dir=.
  4552. tmp_nm=$ac_dir/$lt_tmp_nm
  4553. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4554. # Check to see if the nm accepts a BSD-compat flag.
  4555. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4556. # nm: unknown option "B" ignored
  4557. # Tru64's nm complains that /dev/null is an invalid object file
  4558. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4559. case $build_os in
  4560. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4561. *) lt_bad_file=/dev/null ;;
  4562. esac
  4563. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4564. *$lt_bad_file* | *'Invalid file or object type'*)
  4565. lt_cv_path_NM="$tmp_nm -B"
  4566. break 2
  4567. ;;
  4568. *)
  4569. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4570. */dev/null*)
  4571. lt_cv_path_NM="$tmp_nm -p"
  4572. break 2
  4573. ;;
  4574. *)
  4575. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4576. continue # so that we can try to find one that supports BSD flags
  4577. ;;
  4578. esac
  4579. ;;
  4580. esac
  4581. fi
  4582. done
  4583. IFS=$lt_save_ifs
  4584. done
  4585. : ${lt_cv_path_NM=no}
  4586. fi
  4587. fi
  4588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4589. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4590. if test no != "$lt_cv_path_NM"; then
  4591. NM=$lt_cv_path_NM
  4592. else
  4593. # Didn't find any BSD compatible name lister, look for dumpbin.
  4594. if test -n "$DUMPBIN"; then :
  4595. # Let the user override the test.
  4596. else
  4597. if test -n "$ac_tool_prefix"; then
  4598. for ac_prog in dumpbin "link -dump"
  4599. do
  4600. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4601. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. printf %s "checking for $ac_word... " >&6; }
  4604. if test ${ac_cv_prog_DUMPBIN+y}
  4605. then :
  4606. printf %s "(cached) " >&6
  4607. else $as_nop
  4608. if test -n "$DUMPBIN"; then
  4609. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. case $as_dir in #(((
  4616. '') as_dir=./ ;;
  4617. */) ;;
  4618. *) as_dir=$as_dir/ ;;
  4619. esac
  4620. for ac_exec_ext in '' $ac_executable_extensions; do
  4621. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4622. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4624. break 2
  4625. fi
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. fi
  4630. fi
  4631. DUMPBIN=$ac_cv_prog_DUMPBIN
  4632. if test -n "$DUMPBIN"; then
  4633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4634. printf "%s\n" "$DUMPBIN" >&6; }
  4635. else
  4636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4637. printf "%s\n" "no" >&6; }
  4638. fi
  4639. test -n "$DUMPBIN" && break
  4640. done
  4641. fi
  4642. if test -z "$DUMPBIN"; then
  4643. ac_ct_DUMPBIN=$DUMPBIN
  4644. for ac_prog in dumpbin "link -dump"
  4645. do
  4646. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4647. set dummy $ac_prog; ac_word=$2
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4649. printf %s "checking for $ac_word... " >&6; }
  4650. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4651. then :
  4652. printf %s "(cached) " >&6
  4653. else $as_nop
  4654. if test -n "$ac_ct_DUMPBIN"; then
  4655. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. case $as_dir in #(((
  4662. '') as_dir=./ ;;
  4663. */) ;;
  4664. *) as_dir=$as_dir/ ;;
  4665. esac
  4666. for ac_exec_ext in '' $ac_executable_extensions; do
  4667. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4668. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4670. break 2
  4671. fi
  4672. done
  4673. done
  4674. IFS=$as_save_IFS
  4675. fi
  4676. fi
  4677. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4678. if test -n "$ac_ct_DUMPBIN"; then
  4679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4680. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4681. else
  4682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4683. printf "%s\n" "no" >&6; }
  4684. fi
  4685. test -n "$ac_ct_DUMPBIN" && break
  4686. done
  4687. if test "x$ac_ct_DUMPBIN" = x; then
  4688. DUMPBIN=":"
  4689. else
  4690. case $cross_compiling:$ac_tool_warned in
  4691. yes:)
  4692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4693. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4694. ac_tool_warned=yes ;;
  4695. esac
  4696. DUMPBIN=$ac_ct_DUMPBIN
  4697. fi
  4698. fi
  4699. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4700. *COFF*)
  4701. DUMPBIN="$DUMPBIN -symbols -headers"
  4702. ;;
  4703. *)
  4704. DUMPBIN=:
  4705. ;;
  4706. esac
  4707. fi
  4708. if test : != "$DUMPBIN"; then
  4709. NM=$DUMPBIN
  4710. fi
  4711. fi
  4712. test -z "$NM" && NM=nm
  4713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4714. printf %s "checking the name lister ($NM) interface... " >&6; }
  4715. if test ${lt_cv_nm_interface+y}
  4716. then :
  4717. printf %s "(cached) " >&6
  4718. else $as_nop
  4719. lt_cv_nm_interface="BSD nm"
  4720. echo "int some_variable = 0;" > conftest.$ac_ext
  4721. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4722. (eval "$ac_compile" 2>conftest.err)
  4723. cat conftest.err >&5
  4724. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4725. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4726. cat conftest.err >&5
  4727. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4728. cat conftest.out >&5
  4729. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4730. lt_cv_nm_interface="MS dumpbin"
  4731. fi
  4732. rm -f conftest*
  4733. fi
  4734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4735. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4737. printf %s "checking whether ln -s works... " >&6; }
  4738. LN_S=$as_ln_s
  4739. if test "$LN_S" = "ln -s"; then
  4740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4741. printf "%s\n" "yes" >&6; }
  4742. else
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4744. printf "%s\n" "no, using $LN_S" >&6; }
  4745. fi
  4746. # find the maximum length of command line arguments
  4747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4748. printf %s "checking the maximum length of command line arguments... " >&6; }
  4749. if test ${lt_cv_sys_max_cmd_len+y}
  4750. then :
  4751. printf %s "(cached) " >&6
  4752. else $as_nop
  4753. i=0
  4754. teststring=ABCD
  4755. case $build_os in
  4756. msdosdjgpp*)
  4757. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4758. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4759. # during glob expansion). Even if it were fixed, the result of this
  4760. # check would be larger than it should be.
  4761. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4762. ;;
  4763. gnu*)
  4764. # Under GNU Hurd, this test is not required because there is
  4765. # no limit to the length of command line arguments.
  4766. # Libtool will interpret -1 as no limit whatsoever
  4767. lt_cv_sys_max_cmd_len=-1;
  4768. ;;
  4769. cygwin* | mingw* | cegcc*)
  4770. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4771. # about 5 minutes as the teststring grows exponentially.
  4772. # Worse, since 9x/ME are not pre-emptively multitasking,
  4773. # you end up with a "frozen" computer, even though with patience
  4774. # the test eventually succeeds (with a max line length of 256k).
  4775. # Instead, let's just punt: use the minimum linelength reported by
  4776. # all of the supported platforms: 8192 (on NT/2K/XP).
  4777. lt_cv_sys_max_cmd_len=8192;
  4778. ;;
  4779. mint*)
  4780. # On MiNT this can take a long time and run out of memory.
  4781. lt_cv_sys_max_cmd_len=8192;
  4782. ;;
  4783. amigaos*)
  4784. # On AmigaOS with pdksh, this test takes hours, literally.
  4785. # So we just punt and use a minimum line length of 8192.
  4786. lt_cv_sys_max_cmd_len=8192;
  4787. ;;
  4788. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4789. # This has been around since 386BSD, at least. Likely further.
  4790. if test -x /sbin/sysctl; then
  4791. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4792. elif test -x /usr/sbin/sysctl; then
  4793. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4794. else
  4795. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4796. fi
  4797. # And add a safety zone
  4798. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4799. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4800. ;;
  4801. interix*)
  4802. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4803. lt_cv_sys_max_cmd_len=196608
  4804. ;;
  4805. os2*)
  4806. # The test takes a long time on OS/2.
  4807. lt_cv_sys_max_cmd_len=8192
  4808. ;;
  4809. osf*)
  4810. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4811. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4812. # nice to cause kernel panics so lets avoid the loop below.
  4813. # First set a reasonable default.
  4814. lt_cv_sys_max_cmd_len=16384
  4815. #
  4816. if test -x /sbin/sysconfig; then
  4817. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4818. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4819. esac
  4820. fi
  4821. ;;
  4822. sco3.2v5*)
  4823. lt_cv_sys_max_cmd_len=102400
  4824. ;;
  4825. sysv5* | sco5v6* | sysv4.2uw2*)
  4826. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4827. if test -n "$kargmax"; then
  4828. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4829. else
  4830. lt_cv_sys_max_cmd_len=32768
  4831. fi
  4832. ;;
  4833. *)
  4834. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4835. if test -n "$lt_cv_sys_max_cmd_len" && \
  4836. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4837. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4838. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4839. else
  4840. # Make teststring a little bigger before we do anything with it.
  4841. # a 1K string should be a reasonable start.
  4842. for i in 1 2 3 4 5 6 7 8; do
  4843. teststring=$teststring$teststring
  4844. done
  4845. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4846. # If test is not a shell built-in, we'll probably end up computing a
  4847. # maximum length that is only half of the actual maximum length, but
  4848. # we can't tell.
  4849. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4850. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4851. test 17 != "$i" # 1/2 MB should be enough
  4852. do
  4853. i=`expr $i + 1`
  4854. teststring=$teststring$teststring
  4855. done
  4856. # Only check the string length outside the loop.
  4857. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4858. teststring=
  4859. # Add a significant safety factor because C++ compilers can tack on
  4860. # massive amounts of additional arguments before passing them to the
  4861. # linker. It appears as though 1/2 is a usable value.
  4862. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4863. fi
  4864. ;;
  4865. esac
  4866. fi
  4867. if test -n "$lt_cv_sys_max_cmd_len"; then
  4868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4869. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4870. else
  4871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4872. printf "%s\n" "none" >&6; }
  4873. fi
  4874. max_cmd_len=$lt_cv_sys_max_cmd_len
  4875. : ${CP="cp -f"}
  4876. : ${MV="mv -f"}
  4877. : ${RM="rm -f"}
  4878. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4879. lt_unset=unset
  4880. else
  4881. lt_unset=false
  4882. fi
  4883. # test EBCDIC or ASCII
  4884. case `echo X|tr X '\101'` in
  4885. A) # ASCII based system
  4886. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4887. lt_SP2NL='tr \040 \012'
  4888. lt_NL2SP='tr \015\012 \040\040'
  4889. ;;
  4890. *) # EBCDIC based system
  4891. lt_SP2NL='tr \100 \n'
  4892. lt_NL2SP='tr \r\n \100\100'
  4893. ;;
  4894. esac
  4895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4896. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4897. if test ${lt_cv_to_host_file_cmd+y}
  4898. then :
  4899. printf %s "(cached) " >&6
  4900. else $as_nop
  4901. case $host in
  4902. *-*-mingw* )
  4903. case $build in
  4904. *-*-mingw* ) # actually msys
  4905. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4906. ;;
  4907. *-*-cygwin* )
  4908. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4909. ;;
  4910. * ) # otherwise, assume *nix
  4911. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4912. ;;
  4913. esac
  4914. ;;
  4915. *-*-cygwin* )
  4916. case $build in
  4917. *-*-mingw* ) # actually msys
  4918. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4919. ;;
  4920. *-*-cygwin* )
  4921. lt_cv_to_host_file_cmd=func_convert_file_noop
  4922. ;;
  4923. * ) # otherwise, assume *nix
  4924. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4925. ;;
  4926. esac
  4927. ;;
  4928. * ) # unhandled hosts (and "normal" native builds)
  4929. lt_cv_to_host_file_cmd=func_convert_file_noop
  4930. ;;
  4931. esac
  4932. fi
  4933. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4935. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4937. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4938. if test ${lt_cv_to_tool_file_cmd+y}
  4939. then :
  4940. printf %s "(cached) " >&6
  4941. else $as_nop
  4942. #assume ordinary cross tools, or native build.
  4943. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4944. case $host in
  4945. *-*-mingw* )
  4946. case $build in
  4947. *-*-mingw* ) # actually msys
  4948. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4949. ;;
  4950. esac
  4951. ;;
  4952. esac
  4953. fi
  4954. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4956. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4958. printf %s "checking for $LD option to reload object files... " >&6; }
  4959. if test ${lt_cv_ld_reload_flag+y}
  4960. then :
  4961. printf %s "(cached) " >&6
  4962. else $as_nop
  4963. lt_cv_ld_reload_flag='-r'
  4964. fi
  4965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4966. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4967. reload_flag=$lt_cv_ld_reload_flag
  4968. case $reload_flag in
  4969. "" | " "*) ;;
  4970. *) reload_flag=" $reload_flag" ;;
  4971. esac
  4972. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4973. case $host_os in
  4974. cygwin* | mingw* | pw32* | cegcc*)
  4975. if test yes != "$GCC"; then
  4976. reload_cmds=false
  4977. fi
  4978. ;;
  4979. darwin*)
  4980. if test yes = "$GCC"; then
  4981. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4982. else
  4983. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4984. fi
  4985. ;;
  4986. esac
  4987. if test -n "$ac_tool_prefix"; then
  4988. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4989. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4991. printf %s "checking for $ac_word... " >&6; }
  4992. if test ${ac_cv_prog_OBJDUMP+y}
  4993. then :
  4994. printf %s "(cached) " >&6
  4995. else $as_nop
  4996. if test -n "$OBJDUMP"; then
  4997. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. case $as_dir in #(((
  5004. '') as_dir=./ ;;
  5005. */) ;;
  5006. *) as_dir=$as_dir/ ;;
  5007. esac
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5010. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. OBJDUMP=$ac_cv_prog_OBJDUMP
  5020. if test -n "$OBJDUMP"; then
  5021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5022. printf "%s\n" "$OBJDUMP" >&6; }
  5023. else
  5024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. printf "%s\n" "no" >&6; }
  5026. fi
  5027. fi
  5028. if test -z "$ac_cv_prog_OBJDUMP"; then
  5029. ac_ct_OBJDUMP=$OBJDUMP
  5030. # Extract the first word of "objdump", so it can be a program name with args.
  5031. set dummy objdump; ac_word=$2
  5032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5033. printf %s "checking for $ac_word... " >&6; }
  5034. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5035. then :
  5036. printf %s "(cached) " >&6
  5037. else $as_nop
  5038. if test -n "$ac_ct_OBJDUMP"; then
  5039. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. case $as_dir in #(((
  5046. '') as_dir=./ ;;
  5047. */) ;;
  5048. *) as_dir=$as_dir/ ;;
  5049. esac
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5052. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5054. break 2
  5055. fi
  5056. done
  5057. done
  5058. IFS=$as_save_IFS
  5059. fi
  5060. fi
  5061. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5062. if test -n "$ac_ct_OBJDUMP"; then
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5064. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5065. else
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5067. printf "%s\n" "no" >&6; }
  5068. fi
  5069. if test "x$ac_ct_OBJDUMP" = x; then
  5070. OBJDUMP="false"
  5071. else
  5072. case $cross_compiling:$ac_tool_warned in
  5073. yes:)
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5075. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5076. ac_tool_warned=yes ;;
  5077. esac
  5078. OBJDUMP=$ac_ct_OBJDUMP
  5079. fi
  5080. else
  5081. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5082. fi
  5083. test -z "$OBJDUMP" && OBJDUMP=objdump
  5084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5085. printf %s "checking how to recognize dependent libraries... " >&6; }
  5086. if test ${lt_cv_deplibs_check_method+y}
  5087. then :
  5088. printf %s "(cached) " >&6
  5089. else $as_nop
  5090. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5091. lt_cv_file_magic_test_file=
  5092. lt_cv_deplibs_check_method='unknown'
  5093. # Need to set the preceding variable on all platforms that support
  5094. # interlibrary dependencies.
  5095. # 'none' -- dependencies not supported.
  5096. # 'unknown' -- same as none, but documents that we really don't know.
  5097. # 'pass_all' -- all dependencies passed with no checks.
  5098. # 'test_compile' -- check by making test program.
  5099. # 'file_magic [[regex]]' -- check by looking for files in library path
  5100. # that responds to the $file_magic_cmd with a given extended regex.
  5101. # If you have 'file' or equivalent on your system and you're not sure
  5102. # whether 'pass_all' will *always* work, you probably want this one.
  5103. case $host_os in
  5104. aix[4-9]*)
  5105. lt_cv_deplibs_check_method=pass_all
  5106. ;;
  5107. beos*)
  5108. lt_cv_deplibs_check_method=pass_all
  5109. ;;
  5110. bsdi[45]*)
  5111. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5112. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5113. lt_cv_file_magic_test_file=/shlib/libc.so
  5114. ;;
  5115. cygwin*)
  5116. # func_win32_libid is a shell function defined in ltmain.sh
  5117. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5118. lt_cv_file_magic_cmd='func_win32_libid'
  5119. lt_cv_deplibs_check_method=pass_all # SDL customization
  5120. ;;
  5121. mingw* | pw32*)
  5122. # Base MSYS/MinGW do not provide the 'file' command needed by
  5123. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5124. # unless we find 'file', for example because we are cross-compiling.
  5125. if ( file / ) >/dev/null 2>&1; then
  5126. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5127. lt_cv_file_magic_cmd='func_win32_libid'
  5128. else
  5129. # Keep this pattern in sync with the one in func_win32_libid.
  5130. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5131. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5132. fi
  5133. lt_cv_deplibs_check_method=pass_all # SDL customization
  5134. ;;
  5135. cegcc*)
  5136. # use the weaker test based on 'objdump'. See mingw*.
  5137. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5138. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5139. ;;
  5140. darwin* | rhapsody*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. freebsd* | dragonfly* | midnightbsd*)
  5144. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5145. case $host_cpu in
  5146. i*86 )
  5147. # Not sure whether the presence of OpenBSD here was a mistake.
  5148. # Let's accept both of them until this is cleared up.
  5149. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5150. lt_cv_file_magic_cmd=/usr/bin/file
  5151. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5152. ;;
  5153. esac
  5154. else
  5155. lt_cv_deplibs_check_method=pass_all
  5156. fi
  5157. ;;
  5158. haiku*)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. hpux10.20* | hpux11*)
  5162. lt_cv_file_magic_cmd=/usr/bin/file
  5163. case $host_cpu in
  5164. ia64*)
  5165. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5166. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5167. ;;
  5168. hppa*64*)
  5169. 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]'
  5170. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5171. ;;
  5172. *)
  5173. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5174. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5175. ;;
  5176. esac
  5177. ;;
  5178. interix[3-9]*)
  5179. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5180. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5181. ;;
  5182. irix5* | irix6* | nonstopux*)
  5183. case $LD in
  5184. *-32|*"-32 ") libmagic=32-bit;;
  5185. *-n32|*"-n32 ") libmagic=N32;;
  5186. *-64|*"-64 ") libmagic=64-bit;;
  5187. *) libmagic=never-match;;
  5188. esac
  5189. lt_cv_deplibs_check_method=pass_all
  5190. ;;
  5191. # This must be glibc/ELF.
  5192. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5193. lt_cv_deplibs_check_method=pass_all
  5194. ;;
  5195. netbsd*)
  5196. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5197. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5198. else
  5199. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5200. fi
  5201. ;;
  5202. newos6*)
  5203. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5204. lt_cv_file_magic_cmd=/usr/bin/file
  5205. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5206. ;;
  5207. *nto* | *qnx*)
  5208. lt_cv_deplibs_check_method=pass_all
  5209. ;;
  5210. openbsd* | bitrig*)
  5211. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5212. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5213. else
  5214. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5215. fi
  5216. ;;
  5217. osf3* | osf4* | osf5*)
  5218. lt_cv_deplibs_check_method=pass_all
  5219. ;;
  5220. rdos*)
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. solaris*)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. sysv4 | sysv4.3*)
  5230. case $host_vendor in
  5231. motorola)
  5232. 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]'
  5233. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5234. ;;
  5235. ncr)
  5236. lt_cv_deplibs_check_method=pass_all
  5237. ;;
  5238. sequent)
  5239. lt_cv_file_magic_cmd='/bin/file'
  5240. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5241. ;;
  5242. sni)
  5243. lt_cv_file_magic_cmd='/bin/file'
  5244. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5245. lt_cv_file_magic_test_file=/lib/libc.so
  5246. ;;
  5247. siemens)
  5248. lt_cv_deplibs_check_method=pass_all
  5249. ;;
  5250. pc)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. esac
  5254. ;;
  5255. tpf*)
  5256. lt_cv_deplibs_check_method=pass_all
  5257. ;;
  5258. os2*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. esac
  5262. fi
  5263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5264. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5265. file_magic_glob=
  5266. want_nocaseglob=no
  5267. if test "$build" = "$host"; then
  5268. case $host_os in
  5269. mingw* | pw32*)
  5270. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5271. want_nocaseglob=yes
  5272. else
  5273. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5274. fi
  5275. ;;
  5276. esac
  5277. fi
  5278. file_magic_cmd=$lt_cv_file_magic_cmd
  5279. deplibs_check_method=$lt_cv_deplibs_check_method
  5280. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5281. if test -n "$ac_tool_prefix"; then
  5282. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5283. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5285. printf %s "checking for $ac_word... " >&6; }
  5286. if test ${ac_cv_prog_DLLTOOL+y}
  5287. then :
  5288. printf %s "(cached) " >&6
  5289. else $as_nop
  5290. if test -n "$DLLTOOL"; then
  5291. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5292. else
  5293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5294. for as_dir in $PATH
  5295. do
  5296. IFS=$as_save_IFS
  5297. case $as_dir in #(((
  5298. '') as_dir=./ ;;
  5299. */) ;;
  5300. *) as_dir=$as_dir/ ;;
  5301. esac
  5302. for ac_exec_ext in '' $ac_executable_extensions; do
  5303. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5304. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5305. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5306. break 2
  5307. fi
  5308. done
  5309. done
  5310. IFS=$as_save_IFS
  5311. fi
  5312. fi
  5313. DLLTOOL=$ac_cv_prog_DLLTOOL
  5314. if test -n "$DLLTOOL"; then
  5315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5316. printf "%s\n" "$DLLTOOL" >&6; }
  5317. else
  5318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5319. printf "%s\n" "no" >&6; }
  5320. fi
  5321. fi
  5322. if test -z "$ac_cv_prog_DLLTOOL"; then
  5323. ac_ct_DLLTOOL=$DLLTOOL
  5324. # Extract the first word of "dlltool", so it can be a program name with args.
  5325. set dummy dlltool; ac_word=$2
  5326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5327. printf %s "checking for $ac_word... " >&6; }
  5328. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5329. then :
  5330. printf %s "(cached) " >&6
  5331. else $as_nop
  5332. if test -n "$ac_ct_DLLTOOL"; then
  5333. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5334. else
  5335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5336. for as_dir in $PATH
  5337. do
  5338. IFS=$as_save_IFS
  5339. case $as_dir in #(((
  5340. '') as_dir=./ ;;
  5341. */) ;;
  5342. *) as_dir=$as_dir/ ;;
  5343. esac
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5346. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5356. if test -n "$ac_ct_DLLTOOL"; then
  5357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5358. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5359. else
  5360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. printf "%s\n" "no" >&6; }
  5362. fi
  5363. if test "x$ac_ct_DLLTOOL" = x; then
  5364. DLLTOOL="false"
  5365. else
  5366. case $cross_compiling:$ac_tool_warned in
  5367. yes:)
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5369. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5370. ac_tool_warned=yes ;;
  5371. esac
  5372. DLLTOOL=$ac_ct_DLLTOOL
  5373. fi
  5374. else
  5375. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5376. fi
  5377. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5379. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5380. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5381. then :
  5382. printf %s "(cached) " >&6
  5383. else $as_nop
  5384. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5385. case $host_os in
  5386. cygwin* | mingw* | pw32* | cegcc*)
  5387. # two different shell functions defined in ltmain.sh;
  5388. # decide which one to use based on capabilities of $DLLTOOL
  5389. case `$DLLTOOL --help 2>&1` in
  5390. *--identify-strict*)
  5391. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5392. ;;
  5393. *)
  5394. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5395. ;;
  5396. esac
  5397. ;;
  5398. *)
  5399. # fallback: assume linklib IS sharedlib
  5400. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5401. ;;
  5402. esac
  5403. fi
  5404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5405. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5406. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5407. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5408. if test -n "$ac_tool_prefix"; then
  5409. for ac_prog in ar
  5410. do
  5411. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5412. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5414. printf %s "checking for $ac_word... " >&6; }
  5415. if test ${ac_cv_prog_AR+y}
  5416. then :
  5417. printf %s "(cached) " >&6
  5418. else $as_nop
  5419. if test -n "$AR"; then
  5420. ac_cv_prog_AR="$AR" # Let the user override the test.
  5421. else
  5422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5423. for as_dir in $PATH
  5424. do
  5425. IFS=$as_save_IFS
  5426. case $as_dir in #(((
  5427. '') as_dir=./ ;;
  5428. */) ;;
  5429. *) as_dir=$as_dir/ ;;
  5430. esac
  5431. for ac_exec_ext in '' $ac_executable_extensions; do
  5432. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5433. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5435. break 2
  5436. fi
  5437. done
  5438. done
  5439. IFS=$as_save_IFS
  5440. fi
  5441. fi
  5442. AR=$ac_cv_prog_AR
  5443. if test -n "$AR"; then
  5444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5445. printf "%s\n" "$AR" >&6; }
  5446. else
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5448. printf "%s\n" "no" >&6; }
  5449. fi
  5450. test -n "$AR" && break
  5451. done
  5452. fi
  5453. if test -z "$AR"; then
  5454. ac_ct_AR=$AR
  5455. for ac_prog in ar
  5456. do
  5457. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5458. set dummy $ac_prog; ac_word=$2
  5459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5460. printf %s "checking for $ac_word... " >&6; }
  5461. if test ${ac_cv_prog_ac_ct_AR+y}
  5462. then :
  5463. printf %s "(cached) " >&6
  5464. else $as_nop
  5465. if test -n "$ac_ct_AR"; then
  5466. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5467. else
  5468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5469. for as_dir in $PATH
  5470. do
  5471. IFS=$as_save_IFS
  5472. case $as_dir in #(((
  5473. '') as_dir=./ ;;
  5474. */) ;;
  5475. *) as_dir=$as_dir/ ;;
  5476. esac
  5477. for ac_exec_ext in '' $ac_executable_extensions; do
  5478. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5479. ac_cv_prog_ac_ct_AR="$ac_prog"
  5480. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5481. break 2
  5482. fi
  5483. done
  5484. done
  5485. IFS=$as_save_IFS
  5486. fi
  5487. fi
  5488. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5489. if test -n "$ac_ct_AR"; then
  5490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5491. printf "%s\n" "$ac_ct_AR" >&6; }
  5492. else
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5494. printf "%s\n" "no" >&6; }
  5495. fi
  5496. test -n "$ac_ct_AR" && break
  5497. done
  5498. if test "x$ac_ct_AR" = x; then
  5499. AR="false"
  5500. else
  5501. case $cross_compiling:$ac_tool_warned in
  5502. yes:)
  5503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5504. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5505. ac_tool_warned=yes ;;
  5506. esac
  5507. AR=$ac_ct_AR
  5508. fi
  5509. fi
  5510. : ${AR=ar}
  5511. : ${AR_FLAGS=cru}
  5512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5513. printf %s "checking for archiver @FILE support... " >&6; }
  5514. if test ${lt_cv_ar_at_file+y}
  5515. then :
  5516. printf %s "(cached) " >&6
  5517. else $as_nop
  5518. lt_cv_ar_at_file=no
  5519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5520. /* end confdefs.h. */
  5521. int
  5522. main (void)
  5523. {
  5524. ;
  5525. return 0;
  5526. }
  5527. _ACEOF
  5528. if ac_fn_c_try_compile "$LINENO"
  5529. then :
  5530. echo conftest.$ac_objext > conftest.lst
  5531. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5532. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5533. (eval $lt_ar_try) 2>&5
  5534. ac_status=$?
  5535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5536. test $ac_status = 0; }
  5537. if test 0 -eq "$ac_status"; then
  5538. # Ensure the archiver fails upon bogus file names.
  5539. rm -f conftest.$ac_objext libconftest.a
  5540. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5541. (eval $lt_ar_try) 2>&5
  5542. ac_status=$?
  5543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5544. test $ac_status = 0; }
  5545. if test 0 -ne "$ac_status"; then
  5546. lt_cv_ar_at_file=@
  5547. fi
  5548. fi
  5549. rm -f conftest.* libconftest.a
  5550. fi
  5551. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5552. fi
  5553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5554. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5555. if test no = "$lt_cv_ar_at_file"; then
  5556. archiver_list_spec=
  5557. else
  5558. archiver_list_spec=$lt_cv_ar_at_file
  5559. fi
  5560. if test -n "$ac_tool_prefix"; then
  5561. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5562. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. printf %s "checking for $ac_word... " >&6; }
  5565. if test ${ac_cv_prog_STRIP+y}
  5566. then :
  5567. printf %s "(cached) " >&6
  5568. else $as_nop
  5569. if test -n "$STRIP"; then
  5570. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5571. else
  5572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5573. for as_dir in $PATH
  5574. do
  5575. IFS=$as_save_IFS
  5576. case $as_dir in #(((
  5577. '') as_dir=./ ;;
  5578. */) ;;
  5579. *) as_dir=$as_dir/ ;;
  5580. esac
  5581. for ac_exec_ext in '' $ac_executable_extensions; do
  5582. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5583. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5584. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5585. break 2
  5586. fi
  5587. done
  5588. done
  5589. IFS=$as_save_IFS
  5590. fi
  5591. fi
  5592. STRIP=$ac_cv_prog_STRIP
  5593. if test -n "$STRIP"; then
  5594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5595. printf "%s\n" "$STRIP" >&6; }
  5596. else
  5597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5598. printf "%s\n" "no" >&6; }
  5599. fi
  5600. fi
  5601. if test -z "$ac_cv_prog_STRIP"; then
  5602. ac_ct_STRIP=$STRIP
  5603. # Extract the first word of "strip", so it can be a program name with args.
  5604. set dummy strip; ac_word=$2
  5605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5606. printf %s "checking for $ac_word... " >&6; }
  5607. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5608. then :
  5609. printf %s "(cached) " >&6
  5610. else $as_nop
  5611. if test -n "$ac_ct_STRIP"; then
  5612. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5613. else
  5614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5615. for as_dir in $PATH
  5616. do
  5617. IFS=$as_save_IFS
  5618. case $as_dir in #(((
  5619. '') as_dir=./ ;;
  5620. */) ;;
  5621. *) as_dir=$as_dir/ ;;
  5622. esac
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_ac_ct_STRIP="strip"
  5626. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5635. if test -n "$ac_ct_STRIP"; then
  5636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5637. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5638. else
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. printf "%s\n" "no" >&6; }
  5641. fi
  5642. if test "x$ac_ct_STRIP" = x; then
  5643. STRIP=":"
  5644. else
  5645. case $cross_compiling:$ac_tool_warned in
  5646. yes:)
  5647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5648. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5649. ac_tool_warned=yes ;;
  5650. esac
  5651. STRIP=$ac_ct_STRIP
  5652. fi
  5653. else
  5654. STRIP="$ac_cv_prog_STRIP"
  5655. fi
  5656. test -z "$STRIP" && STRIP=:
  5657. if test -n "$ac_tool_prefix"; then
  5658. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5659. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5661. printf %s "checking for $ac_word... " >&6; }
  5662. if test ${ac_cv_prog_RANLIB+y}
  5663. then :
  5664. printf %s "(cached) " >&6
  5665. else $as_nop
  5666. if test -n "$RANLIB"; then
  5667. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. case $as_dir in #(((
  5674. '') as_dir=./ ;;
  5675. */) ;;
  5676. *) as_dir=$as_dir/ ;;
  5677. esac
  5678. for ac_exec_ext in '' $ac_executable_extensions; do
  5679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5680. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5682. break 2
  5683. fi
  5684. done
  5685. done
  5686. IFS=$as_save_IFS
  5687. fi
  5688. fi
  5689. RANLIB=$ac_cv_prog_RANLIB
  5690. if test -n "$RANLIB"; then
  5691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5692. printf "%s\n" "$RANLIB" >&6; }
  5693. else
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. printf "%s\n" "no" >&6; }
  5696. fi
  5697. fi
  5698. if test -z "$ac_cv_prog_RANLIB"; then
  5699. ac_ct_RANLIB=$RANLIB
  5700. # Extract the first word of "ranlib", so it can be a program name with args.
  5701. set dummy ranlib; ac_word=$2
  5702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. printf %s "checking for $ac_word... " >&6; }
  5704. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5705. then :
  5706. printf %s "(cached) " >&6
  5707. else $as_nop
  5708. if test -n "$ac_ct_RANLIB"; then
  5709. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. case $as_dir in #(((
  5716. '') as_dir=./ ;;
  5717. */) ;;
  5718. *) as_dir=$as_dir/ ;;
  5719. esac
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5722. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5732. if test -n "$ac_ct_RANLIB"; then
  5733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5734. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5735. else
  5736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. printf "%s\n" "no" >&6; }
  5738. fi
  5739. if test "x$ac_ct_RANLIB" = x; then
  5740. RANLIB=":"
  5741. else
  5742. case $cross_compiling:$ac_tool_warned in
  5743. yes:)
  5744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5745. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5746. ac_tool_warned=yes ;;
  5747. esac
  5748. RANLIB=$ac_ct_RANLIB
  5749. fi
  5750. else
  5751. RANLIB="$ac_cv_prog_RANLIB"
  5752. fi
  5753. test -z "$RANLIB" && RANLIB=:
  5754. # Determine commands to create old-style static archives.
  5755. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5756. old_postinstall_cmds='chmod 644 $oldlib'
  5757. old_postuninstall_cmds=
  5758. if test -n "$RANLIB"; then
  5759. case $host_os in
  5760. bitrig* | openbsd*)
  5761. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5762. ;;
  5763. *)
  5764. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5765. ;;
  5766. esac
  5767. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5768. fi
  5769. case $host_os in
  5770. darwin*)
  5771. lock_old_archive_extraction=yes ;;
  5772. *)
  5773. lock_old_archive_extraction=no ;;
  5774. esac
  5775. for ac_prog in gawk mawk nawk awk
  5776. do
  5777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5778. set dummy $ac_prog; ac_word=$2
  5779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. printf %s "checking for $ac_word... " >&6; }
  5781. if test ${ac_cv_prog_AWK+y}
  5782. then :
  5783. printf %s "(cached) " >&6
  5784. else $as_nop
  5785. if test -n "$AWK"; then
  5786. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. case $as_dir in #(((
  5793. '') as_dir=./ ;;
  5794. */) ;;
  5795. *) as_dir=$as_dir/ ;;
  5796. esac
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5799. ac_cv_prog_AWK="$ac_prog"
  5800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5801. break 2
  5802. fi
  5803. done
  5804. done
  5805. IFS=$as_save_IFS
  5806. fi
  5807. fi
  5808. AWK=$ac_cv_prog_AWK
  5809. if test -n "$AWK"; then
  5810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5811. printf "%s\n" "$AWK" >&6; }
  5812. else
  5813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. printf "%s\n" "no" >&6; }
  5815. fi
  5816. test -n "$AWK" && break
  5817. done
  5818. # If no C compiler was specified, use CC.
  5819. LTCC=${LTCC-"$CC"}
  5820. # If no C compiler flags were specified, use CFLAGS.
  5821. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5822. # Allow CC to be a program name with arguments.
  5823. compiler=$CC
  5824. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5826. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5827. if test ${lt_cv_sys_global_symbol_pipe+y}
  5828. then :
  5829. printf %s "(cached) " >&6
  5830. else $as_nop
  5831. # These are sane defaults that work on at least a few old systems.
  5832. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5833. # Character class describing NM global symbol codes.
  5834. symcode='[BCDEGRST]'
  5835. # Regexp to match symbols that can be accessed directly from C.
  5836. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5837. # Define system-specific variables.
  5838. case $host_os in
  5839. aix*)
  5840. symcode='[BCDT]'
  5841. ;;
  5842. cygwin* | mingw* | pw32* | cegcc*)
  5843. symcode='[ABCDGISTW]'
  5844. ;;
  5845. hpux*)
  5846. if test ia64 = "$host_cpu"; then
  5847. symcode='[ABCDEGRST]'
  5848. fi
  5849. ;;
  5850. irix* | nonstopux*)
  5851. symcode='[BCDEGRST]'
  5852. ;;
  5853. osf*)
  5854. symcode='[BCDEGQRST]'
  5855. ;;
  5856. solaris*)
  5857. symcode='[BCDRT]'
  5858. ;;
  5859. sco3.2v5*)
  5860. symcode='[DT]'
  5861. ;;
  5862. sysv4.2uw2*)
  5863. symcode='[DT]'
  5864. ;;
  5865. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5866. symcode='[ABDT]'
  5867. ;;
  5868. sysv4)
  5869. symcode='[DFNSTU]'
  5870. ;;
  5871. esac
  5872. # If we're using GNU nm, then use its standard symbol codes.
  5873. case `$NM -V 2>&1` in
  5874. *GNU* | *'with BFD'*)
  5875. symcode='[ABCDGIRSTW]' ;;
  5876. esac
  5877. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5878. # Gets list of data symbols to import.
  5879. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5880. # Adjust the below global symbol transforms to fixup imported variables.
  5881. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5882. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5883. lt_c_name_lib_hook="\
  5884. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5885. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5886. else
  5887. # Disable hooks by default.
  5888. lt_cv_sys_global_symbol_to_import=
  5889. lt_cdecl_hook=
  5890. lt_c_name_hook=
  5891. lt_c_name_lib_hook=
  5892. fi
  5893. # Transform an extracted symbol line into a proper C declaration.
  5894. # Some systems (esp. on ia64) link data and code symbols differently,
  5895. # so use this general approach.
  5896. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5897. $lt_cdecl_hook\
  5898. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5899. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5900. # Transform an extracted symbol line into symbol name and symbol address
  5901. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5902. $lt_c_name_hook\
  5903. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5904. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5905. # Transform an extracted symbol line into symbol name with lib prefix and
  5906. # symbol address.
  5907. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5908. $lt_c_name_lib_hook\
  5909. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5910. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5911. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5912. # Handle CRLF in mingw tool chain
  5913. opt_cr=
  5914. case $build_os in
  5915. mingw*)
  5916. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5917. ;;
  5918. esac
  5919. # Try without a prefix underscore, then with it.
  5920. for ac_symprfx in "" "_"; do
  5921. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5922. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5923. # Write the raw and C identifiers.
  5924. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5925. # Fake it for dumpbin and say T for any non-static function,
  5926. # D for any global variable and I for any imported variable.
  5927. # Also find C++ and __fastcall symbols from MSVC++,
  5928. # which start with @ or ?.
  5929. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5930. " {last_section=section; section=\$ 3};"\
  5931. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5932. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5933. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5934. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5935. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5936. " \$ 0!~/External *\|/{next};"\
  5937. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5938. " {if(hide[section]) next};"\
  5939. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5940. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5941. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5942. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5943. " ' prfx=^$ac_symprfx"
  5944. else
  5945. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5946. fi
  5947. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5948. # Check to see that the pipe works correctly.
  5949. pipe_works=no
  5950. rm -f conftest*
  5951. cat > conftest.$ac_ext <<_LT_EOF
  5952. #ifdef __cplusplus
  5953. extern "C" {
  5954. #endif
  5955. char nm_test_var;
  5956. void nm_test_func(void);
  5957. void nm_test_func(void){}
  5958. #ifdef __cplusplus
  5959. }
  5960. #endif
  5961. int main(){nm_test_var='a';nm_test_func();return(0);}
  5962. _LT_EOF
  5963. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5964. (eval $ac_compile) 2>&5
  5965. ac_status=$?
  5966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5967. test $ac_status = 0; }; then
  5968. # Now try to grab the symbols.
  5969. nlist=conftest.nm
  5970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5971. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5972. ac_status=$?
  5973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5974. test $ac_status = 0; } && test -s "$nlist"; then
  5975. # Try sorting and uniquifying the output.
  5976. if sort "$nlist" | uniq > "$nlist"T; then
  5977. mv -f "$nlist"T "$nlist"
  5978. else
  5979. rm -f "$nlist"T
  5980. fi
  5981. # Make sure that we snagged all the symbols we need.
  5982. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5983. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5984. cat <<_LT_EOF > conftest.$ac_ext
  5985. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5986. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5987. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5988. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5989. # define LT_DLSYM_CONST
  5990. #elif defined __osf__
  5991. /* This system does not cope well with relocations in const data. */
  5992. # define LT_DLSYM_CONST
  5993. #else
  5994. # define LT_DLSYM_CONST const
  5995. #endif
  5996. #ifdef __cplusplus
  5997. extern "C" {
  5998. #endif
  5999. _LT_EOF
  6000. # Now generate the symbol file.
  6001. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6002. cat <<_LT_EOF >> conftest.$ac_ext
  6003. /* The mapping between symbol names and symbols. */
  6004. LT_DLSYM_CONST struct {
  6005. const char *name;
  6006. void *address;
  6007. }
  6008. lt__PROGRAM__LTX_preloaded_symbols[] =
  6009. {
  6010. { "@PROGRAM@", (void *) 0 },
  6011. _LT_EOF
  6012. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6013. cat <<\_LT_EOF >> conftest.$ac_ext
  6014. {0, (void *) 0}
  6015. };
  6016. /* This works around a problem in FreeBSD linker */
  6017. #ifdef FREEBSD_WORKAROUND
  6018. static const void *lt_preloaded_setup() {
  6019. return lt__PROGRAM__LTX_preloaded_symbols;
  6020. }
  6021. #endif
  6022. #ifdef __cplusplus
  6023. }
  6024. #endif
  6025. _LT_EOF
  6026. # Now try linking the two files.
  6027. mv conftest.$ac_objext conftstm.$ac_objext
  6028. lt_globsym_save_LIBS=$LIBS
  6029. lt_globsym_save_CFLAGS=$CFLAGS
  6030. LIBS=conftstm.$ac_objext
  6031. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6032. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6033. (eval $ac_link) 2>&5
  6034. ac_status=$?
  6035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6036. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6037. pipe_works=yes
  6038. fi
  6039. LIBS=$lt_globsym_save_LIBS
  6040. CFLAGS=$lt_globsym_save_CFLAGS
  6041. else
  6042. echo "cannot find nm_test_func in $nlist" >&5
  6043. fi
  6044. else
  6045. echo "cannot find nm_test_var in $nlist" >&5
  6046. fi
  6047. else
  6048. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6049. fi
  6050. else
  6051. echo "$progname: failed program was:" >&5
  6052. cat conftest.$ac_ext >&5
  6053. fi
  6054. rm -rf conftest* conftst*
  6055. # Do not use the global_symbol_pipe unless it works.
  6056. if test yes = "$pipe_works"; then
  6057. break
  6058. else
  6059. lt_cv_sys_global_symbol_pipe=
  6060. fi
  6061. done
  6062. fi
  6063. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6064. lt_cv_sys_global_symbol_to_cdecl=
  6065. fi
  6066. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6068. printf "%s\n" "failed" >&6; }
  6069. else
  6070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6071. printf "%s\n" "ok" >&6; }
  6072. fi
  6073. # Response file support.
  6074. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6075. nm_file_list_spec='@'
  6076. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6077. nm_file_list_spec='@'
  6078. fi
  6079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6080. printf %s "checking for sysroot... " >&6; }
  6081. # Check whether --with-sysroot was given.
  6082. if test ${with_sysroot+y}
  6083. then :
  6084. withval=$with_sysroot;
  6085. else $as_nop
  6086. with_sysroot=no
  6087. fi
  6088. lt_sysroot=
  6089. case $with_sysroot in #(
  6090. yes)
  6091. if test yes = "$GCC"; then
  6092. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6093. fi
  6094. ;; #(
  6095. /*)
  6096. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6097. ;; #(
  6098. no|'')
  6099. ;; #(
  6100. *)
  6101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6102. printf "%s\n" "$with_sysroot" >&6; }
  6103. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6104. ;;
  6105. esac
  6106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6107. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6109. printf %s "checking for a working dd... " >&6; }
  6110. if test ${ac_cv_path_lt_DD+y}
  6111. then :
  6112. printf %s "(cached) " >&6
  6113. else $as_nop
  6114. printf 0123456789abcdef0123456789abcdef >conftest.i
  6115. cat conftest.i conftest.i >conftest2.i
  6116. : ${lt_DD:=$DD}
  6117. if test -z "$lt_DD"; then
  6118. ac_path_lt_DD_found=false
  6119. # Loop through the user's path and test for each of PROGNAME-LIST
  6120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6121. for as_dir in $PATH
  6122. do
  6123. IFS=$as_save_IFS
  6124. case $as_dir in #(((
  6125. '') as_dir=./ ;;
  6126. */) ;;
  6127. *) as_dir=$as_dir/ ;;
  6128. esac
  6129. for ac_prog in dd
  6130. do
  6131. for ac_exec_ext in '' $ac_executable_extensions; do
  6132. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6133. as_fn_executable_p "$ac_path_lt_DD" || continue
  6134. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6135. cmp -s conftest.i conftest.out \
  6136. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6137. fi
  6138. $ac_path_lt_DD_found && break 3
  6139. done
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. if test -z "$ac_cv_path_lt_DD"; then
  6144. :
  6145. fi
  6146. else
  6147. ac_cv_path_lt_DD=$lt_DD
  6148. fi
  6149. rm -f conftest.i conftest2.i conftest.out
  6150. fi
  6151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6152. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6154. printf %s "checking how to truncate binary pipes... " >&6; }
  6155. if test ${lt_cv_truncate_bin+y}
  6156. then :
  6157. printf %s "(cached) " >&6
  6158. else $as_nop
  6159. printf 0123456789abcdef0123456789abcdef >conftest.i
  6160. cat conftest.i conftest.i >conftest2.i
  6161. lt_cv_truncate_bin=
  6162. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6163. cmp -s conftest.i conftest.out \
  6164. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6165. fi
  6166. rm -f conftest.i conftest2.i conftest.out
  6167. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6168. fi
  6169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6170. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6171. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6172. func_cc_basename ()
  6173. {
  6174. for cc_temp in $*""; do
  6175. case $cc_temp in
  6176. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6177. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6178. \-*) ;;
  6179. *) break;;
  6180. esac
  6181. done
  6182. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6183. }
  6184. # Check whether --enable-libtool-lock was given.
  6185. if test ${enable_libtool_lock+y}
  6186. then :
  6187. enableval=$enable_libtool_lock;
  6188. fi
  6189. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6190. # Some flags need to be propagated to the compiler or linker for good
  6191. # libtool support.
  6192. case $host in
  6193. ia64-*-hpux*)
  6194. # Find out what ABI is being produced by ac_compile, and set mode
  6195. # options accordingly.
  6196. echo 'int i;' > conftest.$ac_ext
  6197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6198. (eval $ac_compile) 2>&5
  6199. ac_status=$?
  6200. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6201. test $ac_status = 0; }; then
  6202. case `/usr/bin/file conftest.$ac_objext` in
  6203. *ELF-32*)
  6204. HPUX_IA64_MODE=32
  6205. ;;
  6206. *ELF-64*)
  6207. HPUX_IA64_MODE=64
  6208. ;;
  6209. esac
  6210. fi
  6211. rm -rf conftest*
  6212. ;;
  6213. *-*-irix6*)
  6214. # Find out what ABI is being produced by ac_compile, and set linker
  6215. # options accordingly.
  6216. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6217. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6218. (eval $ac_compile) 2>&5
  6219. ac_status=$?
  6220. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6221. test $ac_status = 0; }; then
  6222. if test yes = "$lt_cv_prog_gnu_ld"; then
  6223. case `/usr/bin/file conftest.$ac_objext` in
  6224. *32-bit*)
  6225. LD="${LD-ld} -melf32bsmip"
  6226. ;;
  6227. *N32*)
  6228. LD="${LD-ld} -melf32bmipn32"
  6229. ;;
  6230. *64-bit*)
  6231. LD="${LD-ld} -melf64bmip"
  6232. ;;
  6233. esac
  6234. else
  6235. case `/usr/bin/file conftest.$ac_objext` in
  6236. *32-bit*)
  6237. LD="${LD-ld} -32"
  6238. ;;
  6239. *N32*)
  6240. LD="${LD-ld} -n32"
  6241. ;;
  6242. *64-bit*)
  6243. LD="${LD-ld} -64"
  6244. ;;
  6245. esac
  6246. fi
  6247. fi
  6248. rm -rf conftest*
  6249. ;;
  6250. mips64*-*linux*)
  6251. # Find out what ABI is being produced by ac_compile, and set linker
  6252. # options accordingly.
  6253. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. emul=elf
  6260. case `/usr/bin/file conftest.$ac_objext` in
  6261. *32-bit*)
  6262. emul="${emul}32"
  6263. ;;
  6264. *64-bit*)
  6265. emul="${emul}64"
  6266. ;;
  6267. esac
  6268. case `/usr/bin/file conftest.$ac_objext` in
  6269. *MSB*)
  6270. emul="${emul}btsmip"
  6271. ;;
  6272. *LSB*)
  6273. emul="${emul}ltsmip"
  6274. ;;
  6275. esac
  6276. case `/usr/bin/file conftest.$ac_objext` in
  6277. *N32*)
  6278. emul="${emul}n32"
  6279. ;;
  6280. esac
  6281. LD="${LD-ld} -m $emul"
  6282. fi
  6283. rm -rf conftest*
  6284. ;;
  6285. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6286. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6287. # Find out what ABI is being produced by ac_compile, and set linker
  6288. # options accordingly. Note that the listed cases only cover the
  6289. # situations where additional linker options are needed (such as when
  6290. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6291. # vice versa); the common cases where no linker options are needed do
  6292. # not appear in the list.
  6293. echo 'int i;' > conftest.$ac_ext
  6294. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6295. (eval $ac_compile) 2>&5
  6296. ac_status=$?
  6297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6298. test $ac_status = 0; }; then
  6299. case `/usr/bin/file conftest.o` in
  6300. *32-bit*)
  6301. case $host in
  6302. x86_64-*kfreebsd*-gnu)
  6303. LD="${LD-ld} -m elf_i386_fbsd"
  6304. ;;
  6305. x86_64-*linux*)
  6306. case `/usr/bin/file conftest.o` in
  6307. *x86-64*)
  6308. LD="${LD-ld} -m elf32_x86_64"
  6309. ;;
  6310. *)
  6311. LD="${LD-ld} -m elf_i386"
  6312. ;;
  6313. esac
  6314. ;;
  6315. powerpc64le-*linux*)
  6316. LD="${LD-ld} -m elf32lppclinux"
  6317. ;;
  6318. powerpc64-*linux*)
  6319. LD="${LD-ld} -m elf32ppclinux"
  6320. ;;
  6321. s390x-*linux*)
  6322. LD="${LD-ld} -m elf_s390"
  6323. ;;
  6324. sparc64-*linux*)
  6325. LD="${LD-ld} -m elf32_sparc"
  6326. ;;
  6327. esac
  6328. ;;
  6329. *64-bit*)
  6330. case $host in
  6331. x86_64-*kfreebsd*-gnu)
  6332. LD="${LD-ld} -m elf_x86_64_fbsd"
  6333. ;;
  6334. x86_64-*linux*)
  6335. LD="${LD-ld} -m elf_x86_64"
  6336. ;;
  6337. powerpcle-*linux*|powerpc64le-*linux*)
  6338. LD="${LD-ld} -m elf64lppc"
  6339. ;;
  6340. powerpc-*linux*|powerpc64-*linux*)
  6341. LD="${LD-ld} -m elf64ppc"
  6342. ;;
  6343. s390*-*linux*|s390*-*tpf*)
  6344. LD="${LD-ld} -m elf64_s390"
  6345. ;;
  6346. sparc*-*linux*)
  6347. LD="${LD-ld} -m elf64_sparc"
  6348. ;;
  6349. esac
  6350. ;;
  6351. esac
  6352. fi
  6353. rm -rf conftest*
  6354. ;;
  6355. *-*-sco3.2v5*)
  6356. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6357. SAVE_CFLAGS=$CFLAGS
  6358. CFLAGS="$CFLAGS -belf"
  6359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6360. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6361. if test ${lt_cv_cc_needs_belf+y}
  6362. then :
  6363. printf %s "(cached) " >&6
  6364. else $as_nop
  6365. ac_ext=c
  6366. ac_cpp='$CPP $CPPFLAGS'
  6367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6371. /* end confdefs.h. */
  6372. int
  6373. main (void)
  6374. {
  6375. ;
  6376. return 0;
  6377. }
  6378. _ACEOF
  6379. if ac_fn_c_try_link "$LINENO"
  6380. then :
  6381. lt_cv_cc_needs_belf=yes
  6382. else $as_nop
  6383. lt_cv_cc_needs_belf=no
  6384. fi
  6385. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6386. conftest$ac_exeext conftest.$ac_ext
  6387. ac_ext=c
  6388. ac_cpp='$CPP $CPPFLAGS'
  6389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6392. fi
  6393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6394. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6395. if test yes != "$lt_cv_cc_needs_belf"; then
  6396. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6397. CFLAGS=$SAVE_CFLAGS
  6398. fi
  6399. ;;
  6400. *-*solaris*)
  6401. # Find out what ABI is being produced by ac_compile, and set linker
  6402. # options accordingly.
  6403. echo 'int i;' > conftest.$ac_ext
  6404. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6405. (eval $ac_compile) 2>&5
  6406. ac_status=$?
  6407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6408. test $ac_status = 0; }; then
  6409. case `/usr/bin/file conftest.o` in
  6410. *64-bit*)
  6411. case $lt_cv_prog_gnu_ld in
  6412. yes*)
  6413. case $host in
  6414. i?86-*-solaris*|x86_64-*-solaris*)
  6415. LD="${LD-ld} -m elf_x86_64"
  6416. ;;
  6417. sparc*-*-solaris*)
  6418. LD="${LD-ld} -m elf64_sparc"
  6419. ;;
  6420. esac
  6421. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6422. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6423. LD=${LD-ld}_sol2
  6424. fi
  6425. ;;
  6426. *)
  6427. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6428. LD="${LD-ld} -64"
  6429. fi
  6430. ;;
  6431. esac
  6432. ;;
  6433. esac
  6434. fi
  6435. rm -rf conftest*
  6436. ;;
  6437. esac
  6438. need_locks=$enable_libtool_lock
  6439. if test -n "$ac_tool_prefix"; then
  6440. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6441. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6443. printf %s "checking for $ac_word... " >&6; }
  6444. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6445. then :
  6446. printf %s "(cached) " >&6
  6447. else $as_nop
  6448. if test -n "$MANIFEST_TOOL"; then
  6449. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6450. else
  6451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6452. for as_dir in $PATH
  6453. do
  6454. IFS=$as_save_IFS
  6455. case $as_dir in #(((
  6456. '') as_dir=./ ;;
  6457. */) ;;
  6458. *) as_dir=$as_dir/ ;;
  6459. esac
  6460. for ac_exec_ext in '' $ac_executable_extensions; do
  6461. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6462. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6463. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6464. break 2
  6465. fi
  6466. done
  6467. done
  6468. IFS=$as_save_IFS
  6469. fi
  6470. fi
  6471. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6472. if test -n "$MANIFEST_TOOL"; then
  6473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6474. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6475. else
  6476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6477. printf "%s\n" "no" >&6; }
  6478. fi
  6479. fi
  6480. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6481. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6482. # Extract the first word of "mt", so it can be a program name with args.
  6483. set dummy mt; ac_word=$2
  6484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6485. printf %s "checking for $ac_word... " >&6; }
  6486. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6487. then :
  6488. printf %s "(cached) " >&6
  6489. else $as_nop
  6490. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6491. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6492. else
  6493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6494. for as_dir in $PATH
  6495. do
  6496. IFS=$as_save_IFS
  6497. case $as_dir in #(((
  6498. '') as_dir=./ ;;
  6499. */) ;;
  6500. *) as_dir=$as_dir/ ;;
  6501. esac
  6502. for ac_exec_ext in '' $ac_executable_extensions; do
  6503. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6504. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6506. break 2
  6507. fi
  6508. done
  6509. done
  6510. IFS=$as_save_IFS
  6511. fi
  6512. fi
  6513. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6514. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6516. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6517. else
  6518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6519. printf "%s\n" "no" >&6; }
  6520. fi
  6521. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6522. MANIFEST_TOOL=":"
  6523. else
  6524. case $cross_compiling:$ac_tool_warned in
  6525. yes:)
  6526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6527. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6528. ac_tool_warned=yes ;;
  6529. esac
  6530. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6531. fi
  6532. else
  6533. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6534. fi
  6535. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6537. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6538. if test ${lt_cv_path_mainfest_tool+y}
  6539. then :
  6540. printf %s "(cached) " >&6
  6541. else $as_nop
  6542. lt_cv_path_mainfest_tool=no
  6543. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6544. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6545. cat conftest.err >&5
  6546. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6547. lt_cv_path_mainfest_tool=yes
  6548. fi
  6549. rm -f conftest*
  6550. fi
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6552. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6553. if test yes != "$lt_cv_path_mainfest_tool"; then
  6554. MANIFEST_TOOL=:
  6555. fi
  6556. case $host_os in
  6557. rhapsody* | darwin*)
  6558. if test -n "$ac_tool_prefix"; then
  6559. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6560. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6562. printf %s "checking for $ac_word... " >&6; }
  6563. if test ${ac_cv_prog_DSYMUTIL+y}
  6564. then :
  6565. printf %s "(cached) " >&6
  6566. else $as_nop
  6567. if test -n "$DSYMUTIL"; then
  6568. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6569. else
  6570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6571. for as_dir in $PATH
  6572. do
  6573. IFS=$as_save_IFS
  6574. case $as_dir in #(((
  6575. '') as_dir=./ ;;
  6576. */) ;;
  6577. *) as_dir=$as_dir/ ;;
  6578. esac
  6579. for ac_exec_ext in '' $ac_executable_extensions; do
  6580. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6581. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6583. break 2
  6584. fi
  6585. done
  6586. done
  6587. IFS=$as_save_IFS
  6588. fi
  6589. fi
  6590. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6591. if test -n "$DSYMUTIL"; then
  6592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6593. printf "%s\n" "$DSYMUTIL" >&6; }
  6594. else
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6596. printf "%s\n" "no" >&6; }
  6597. fi
  6598. fi
  6599. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6600. ac_ct_DSYMUTIL=$DSYMUTIL
  6601. # Extract the first word of "dsymutil", so it can be a program name with args.
  6602. set dummy dsymutil; ac_word=$2
  6603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6604. printf %s "checking for $ac_word... " >&6; }
  6605. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6606. then :
  6607. printf %s "(cached) " >&6
  6608. else $as_nop
  6609. if test -n "$ac_ct_DSYMUTIL"; then
  6610. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6611. else
  6612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6613. for as_dir in $PATH
  6614. do
  6615. IFS=$as_save_IFS
  6616. case $as_dir in #(((
  6617. '') as_dir=./ ;;
  6618. */) ;;
  6619. *) as_dir=$as_dir/ ;;
  6620. esac
  6621. for ac_exec_ext in '' $ac_executable_extensions; do
  6622. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6623. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6625. break 2
  6626. fi
  6627. done
  6628. done
  6629. IFS=$as_save_IFS
  6630. fi
  6631. fi
  6632. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6633. if test -n "$ac_ct_DSYMUTIL"; then
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6635. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6636. else
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6638. printf "%s\n" "no" >&6; }
  6639. fi
  6640. if test "x$ac_ct_DSYMUTIL" = x; then
  6641. DSYMUTIL=":"
  6642. else
  6643. case $cross_compiling:$ac_tool_warned in
  6644. yes:)
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6646. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6647. ac_tool_warned=yes ;;
  6648. esac
  6649. DSYMUTIL=$ac_ct_DSYMUTIL
  6650. fi
  6651. else
  6652. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6653. fi
  6654. if test -n "$ac_tool_prefix"; then
  6655. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6656. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6658. printf %s "checking for $ac_word... " >&6; }
  6659. if test ${ac_cv_prog_NMEDIT+y}
  6660. then :
  6661. printf %s "(cached) " >&6
  6662. else $as_nop
  6663. if test -n "$NMEDIT"; then
  6664. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6665. else
  6666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6667. for as_dir in $PATH
  6668. do
  6669. IFS=$as_save_IFS
  6670. case $as_dir in #(((
  6671. '') as_dir=./ ;;
  6672. */) ;;
  6673. *) as_dir=$as_dir/ ;;
  6674. esac
  6675. for ac_exec_ext in '' $ac_executable_extensions; do
  6676. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6677. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6678. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6679. break 2
  6680. fi
  6681. done
  6682. done
  6683. IFS=$as_save_IFS
  6684. fi
  6685. fi
  6686. NMEDIT=$ac_cv_prog_NMEDIT
  6687. if test -n "$NMEDIT"; then
  6688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6689. printf "%s\n" "$NMEDIT" >&6; }
  6690. else
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6692. printf "%s\n" "no" >&6; }
  6693. fi
  6694. fi
  6695. if test -z "$ac_cv_prog_NMEDIT"; then
  6696. ac_ct_NMEDIT=$NMEDIT
  6697. # Extract the first word of "nmedit", so it can be a program name with args.
  6698. set dummy nmedit; ac_word=$2
  6699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. printf %s "checking for $ac_word... " >&6; }
  6701. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6702. then :
  6703. printf %s "(cached) " >&6
  6704. else $as_nop
  6705. if test -n "$ac_ct_NMEDIT"; then
  6706. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6707. else
  6708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6709. for as_dir in $PATH
  6710. do
  6711. IFS=$as_save_IFS
  6712. case $as_dir in #(((
  6713. '') as_dir=./ ;;
  6714. */) ;;
  6715. *) as_dir=$as_dir/ ;;
  6716. esac
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6719. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6729. if test -n "$ac_ct_NMEDIT"; then
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6731. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6732. else
  6733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. printf "%s\n" "no" >&6; }
  6735. fi
  6736. if test "x$ac_ct_NMEDIT" = x; then
  6737. NMEDIT=":"
  6738. else
  6739. case $cross_compiling:$ac_tool_warned in
  6740. yes:)
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6742. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6743. ac_tool_warned=yes ;;
  6744. esac
  6745. NMEDIT=$ac_ct_NMEDIT
  6746. fi
  6747. else
  6748. NMEDIT="$ac_cv_prog_NMEDIT"
  6749. fi
  6750. if test -n "$ac_tool_prefix"; then
  6751. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6752. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6754. printf %s "checking for $ac_word... " >&6; }
  6755. if test ${ac_cv_prog_LIPO+y}
  6756. then :
  6757. printf %s "(cached) " >&6
  6758. else $as_nop
  6759. if test -n "$LIPO"; then
  6760. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6761. else
  6762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6763. for as_dir in $PATH
  6764. do
  6765. IFS=$as_save_IFS
  6766. case $as_dir in #(((
  6767. '') as_dir=./ ;;
  6768. */) ;;
  6769. *) as_dir=$as_dir/ ;;
  6770. esac
  6771. for ac_exec_ext in '' $ac_executable_extensions; do
  6772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6773. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6775. break 2
  6776. fi
  6777. done
  6778. done
  6779. IFS=$as_save_IFS
  6780. fi
  6781. fi
  6782. LIPO=$ac_cv_prog_LIPO
  6783. if test -n "$LIPO"; then
  6784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6785. printf "%s\n" "$LIPO" >&6; }
  6786. else
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. printf "%s\n" "no" >&6; }
  6789. fi
  6790. fi
  6791. if test -z "$ac_cv_prog_LIPO"; then
  6792. ac_ct_LIPO=$LIPO
  6793. # Extract the first word of "lipo", so it can be a program name with args.
  6794. set dummy lipo; ac_word=$2
  6795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6796. printf %s "checking for $ac_word... " >&6; }
  6797. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6798. then :
  6799. printf %s "(cached) " >&6
  6800. else $as_nop
  6801. if test -n "$ac_ct_LIPO"; then
  6802. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6803. else
  6804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6805. for as_dir in $PATH
  6806. do
  6807. IFS=$as_save_IFS
  6808. case $as_dir in #(((
  6809. '') as_dir=./ ;;
  6810. */) ;;
  6811. *) as_dir=$as_dir/ ;;
  6812. esac
  6813. for ac_exec_ext in '' $ac_executable_extensions; do
  6814. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6815. ac_cv_prog_ac_ct_LIPO="lipo"
  6816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6817. break 2
  6818. fi
  6819. done
  6820. done
  6821. IFS=$as_save_IFS
  6822. fi
  6823. fi
  6824. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6825. if test -n "$ac_ct_LIPO"; then
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6827. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6828. else
  6829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6830. printf "%s\n" "no" >&6; }
  6831. fi
  6832. if test "x$ac_ct_LIPO" = x; then
  6833. LIPO=":"
  6834. else
  6835. case $cross_compiling:$ac_tool_warned in
  6836. yes:)
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6838. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6839. ac_tool_warned=yes ;;
  6840. esac
  6841. LIPO=$ac_ct_LIPO
  6842. fi
  6843. else
  6844. LIPO="$ac_cv_prog_LIPO"
  6845. fi
  6846. if test -n "$ac_tool_prefix"; then
  6847. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6848. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6850. printf %s "checking for $ac_word... " >&6; }
  6851. if test ${ac_cv_prog_OTOOL+y}
  6852. then :
  6853. printf %s "(cached) " >&6
  6854. else $as_nop
  6855. if test -n "$OTOOL"; then
  6856. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6857. else
  6858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6859. for as_dir in $PATH
  6860. do
  6861. IFS=$as_save_IFS
  6862. case $as_dir in #(((
  6863. '') as_dir=./ ;;
  6864. */) ;;
  6865. *) as_dir=$as_dir/ ;;
  6866. esac
  6867. for ac_exec_ext in '' $ac_executable_extensions; do
  6868. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6869. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6871. break 2
  6872. fi
  6873. done
  6874. done
  6875. IFS=$as_save_IFS
  6876. fi
  6877. fi
  6878. OTOOL=$ac_cv_prog_OTOOL
  6879. if test -n "$OTOOL"; then
  6880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6881. printf "%s\n" "$OTOOL" >&6; }
  6882. else
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6884. printf "%s\n" "no" >&6; }
  6885. fi
  6886. fi
  6887. if test -z "$ac_cv_prog_OTOOL"; then
  6888. ac_ct_OTOOL=$OTOOL
  6889. # Extract the first word of "otool", so it can be a program name with args.
  6890. set dummy otool; ac_word=$2
  6891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6892. printf %s "checking for $ac_word... " >&6; }
  6893. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6894. then :
  6895. printf %s "(cached) " >&6
  6896. else $as_nop
  6897. if test -n "$ac_ct_OTOOL"; then
  6898. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6899. else
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. case $as_dir in #(((
  6905. '') as_dir=./ ;;
  6906. */) ;;
  6907. *) as_dir=$as_dir/ ;;
  6908. esac
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6911. ac_cv_prog_ac_ct_OTOOL="otool"
  6912. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6913. break 2
  6914. fi
  6915. done
  6916. done
  6917. IFS=$as_save_IFS
  6918. fi
  6919. fi
  6920. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6921. if test -n "$ac_ct_OTOOL"; then
  6922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6923. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6924. else
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. printf "%s\n" "no" >&6; }
  6927. fi
  6928. if test "x$ac_ct_OTOOL" = x; then
  6929. OTOOL=":"
  6930. else
  6931. case $cross_compiling:$ac_tool_warned in
  6932. yes:)
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6934. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6935. ac_tool_warned=yes ;;
  6936. esac
  6937. OTOOL=$ac_ct_OTOOL
  6938. fi
  6939. else
  6940. OTOOL="$ac_cv_prog_OTOOL"
  6941. fi
  6942. if test -n "$ac_tool_prefix"; then
  6943. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6944. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6946. printf %s "checking for $ac_word... " >&6; }
  6947. if test ${ac_cv_prog_OTOOL64+y}
  6948. then :
  6949. printf %s "(cached) " >&6
  6950. else $as_nop
  6951. if test -n "$OTOOL64"; then
  6952. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6953. else
  6954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6955. for as_dir in $PATH
  6956. do
  6957. IFS=$as_save_IFS
  6958. case $as_dir in #(((
  6959. '') as_dir=./ ;;
  6960. */) ;;
  6961. *) as_dir=$as_dir/ ;;
  6962. esac
  6963. for ac_exec_ext in '' $ac_executable_extensions; do
  6964. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6965. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6966. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6967. break 2
  6968. fi
  6969. done
  6970. done
  6971. IFS=$as_save_IFS
  6972. fi
  6973. fi
  6974. OTOOL64=$ac_cv_prog_OTOOL64
  6975. if test -n "$OTOOL64"; then
  6976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6977. printf "%s\n" "$OTOOL64" >&6; }
  6978. else
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6980. printf "%s\n" "no" >&6; }
  6981. fi
  6982. fi
  6983. if test -z "$ac_cv_prog_OTOOL64"; then
  6984. ac_ct_OTOOL64=$OTOOL64
  6985. # Extract the first word of "otool64", so it can be a program name with args.
  6986. set dummy otool64; ac_word=$2
  6987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6988. printf %s "checking for $ac_word... " >&6; }
  6989. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6990. then :
  6991. printf %s "(cached) " >&6
  6992. else $as_nop
  6993. if test -n "$ac_ct_OTOOL64"; then
  6994. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6995. else
  6996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6997. for as_dir in $PATH
  6998. do
  6999. IFS=$as_save_IFS
  7000. case $as_dir in #(((
  7001. '') as_dir=./ ;;
  7002. */) ;;
  7003. *) as_dir=$as_dir/ ;;
  7004. esac
  7005. for ac_exec_ext in '' $ac_executable_extensions; do
  7006. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7007. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7008. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7009. break 2
  7010. fi
  7011. done
  7012. done
  7013. IFS=$as_save_IFS
  7014. fi
  7015. fi
  7016. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7017. if test -n "$ac_ct_OTOOL64"; then
  7018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7019. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7020. else
  7021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7022. printf "%s\n" "no" >&6; }
  7023. fi
  7024. if test "x$ac_ct_OTOOL64" = x; then
  7025. OTOOL64=":"
  7026. else
  7027. case $cross_compiling:$ac_tool_warned in
  7028. yes:)
  7029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7030. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7031. ac_tool_warned=yes ;;
  7032. esac
  7033. OTOOL64=$ac_ct_OTOOL64
  7034. fi
  7035. else
  7036. OTOOL64="$ac_cv_prog_OTOOL64"
  7037. fi
  7038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7039. printf %s "checking for -single_module linker flag... " >&6; }
  7040. if test ${lt_cv_apple_cc_single_mod+y}
  7041. then :
  7042. printf %s "(cached) " >&6
  7043. else $as_nop
  7044. lt_cv_apple_cc_single_mod=no
  7045. if test -z "$LT_MULTI_MODULE"; then
  7046. # By default we will add the -single_module flag. You can override
  7047. # by either setting the environment variable LT_MULTI_MODULE
  7048. # non-empty at configure time, or by adding -multi_module to the
  7049. # link flags.
  7050. rm -rf libconftest.dylib*
  7051. echo "int foo(void){return 1;}" > conftest.c
  7052. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7053. -dynamiclib -Wl,-single_module conftest.c" >&5
  7054. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7055. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7056. _lt_result=$?
  7057. # If there is a non-empty error log, and "single_module"
  7058. # appears in it, assume the flag caused a linker warning
  7059. if test -s conftest.err && $GREP single_module conftest.err; then
  7060. cat conftest.err >&5
  7061. # Otherwise, if the output was created with a 0 exit code from
  7062. # the compiler, it worked.
  7063. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7064. lt_cv_apple_cc_single_mod=yes
  7065. else
  7066. cat conftest.err >&5
  7067. fi
  7068. rm -rf libconftest.dylib*
  7069. rm -f conftest.*
  7070. fi
  7071. fi
  7072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7073. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7075. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7076. if test ${lt_cv_ld_exported_symbols_list+y}
  7077. then :
  7078. printf %s "(cached) " >&6
  7079. else $as_nop
  7080. lt_cv_ld_exported_symbols_list=no
  7081. save_LDFLAGS=$LDFLAGS
  7082. echo "_main" > conftest.sym
  7083. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7085. /* end confdefs.h. */
  7086. int
  7087. main (void)
  7088. {
  7089. ;
  7090. return 0;
  7091. }
  7092. _ACEOF
  7093. if ac_fn_c_try_link "$LINENO"
  7094. then :
  7095. lt_cv_ld_exported_symbols_list=yes
  7096. else $as_nop
  7097. lt_cv_ld_exported_symbols_list=no
  7098. fi
  7099. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7100. conftest$ac_exeext conftest.$ac_ext
  7101. LDFLAGS=$save_LDFLAGS
  7102. fi
  7103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7104. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7106. printf %s "checking for -force_load linker flag... " >&6; }
  7107. if test ${lt_cv_ld_force_load+y}
  7108. then :
  7109. printf %s "(cached) " >&6
  7110. else $as_nop
  7111. lt_cv_ld_force_load=no
  7112. cat > conftest.c << _LT_EOF
  7113. int forced_loaded() { return 2;}
  7114. _LT_EOF
  7115. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7116. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7117. echo "$AR cru libconftest.a conftest.o" >&5
  7118. $AR cru libconftest.a conftest.o 2>&5
  7119. echo "$RANLIB libconftest.a" >&5
  7120. $RANLIB libconftest.a 2>&5
  7121. cat > conftest.c << _LT_EOF
  7122. int main() { return 0;}
  7123. _LT_EOF
  7124. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7125. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7126. _lt_result=$?
  7127. if test -s conftest.err && $GREP force_load conftest.err; then
  7128. cat conftest.err >&5
  7129. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7130. lt_cv_ld_force_load=yes
  7131. else
  7132. cat conftest.err >&5
  7133. fi
  7134. rm -f conftest.err libconftest.a conftest conftest.c
  7135. rm -rf conftest.dSYM
  7136. fi
  7137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7138. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7139. case $host_os in
  7140. rhapsody* | darwin1.[012])
  7141. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7142. darwin1.*)
  7143. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7144. darwin*)
  7145. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7146. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7147. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7148. *)
  7149. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7150. esac
  7151. ;;
  7152. esac
  7153. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7154. _lt_dar_single_mod='$single_module'
  7155. fi
  7156. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7157. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7158. else
  7159. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7160. fi
  7161. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7162. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7163. else
  7164. _lt_dsymutil=
  7165. fi
  7166. ;;
  7167. esac
  7168. # func_munge_path_list VARIABLE PATH
  7169. # -----------------------------------
  7170. # VARIABLE is name of variable containing _space_ separated list of
  7171. # directories to be munged by the contents of PATH, which is string
  7172. # having a format:
  7173. # "DIR[:DIR]:"
  7174. # string "DIR[ DIR]" will be prepended to VARIABLE
  7175. # ":DIR[:DIR]"
  7176. # string "DIR[ DIR]" will be appended to VARIABLE
  7177. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7178. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7179. # "DIRA[ DIRA]" will be appended to VARIABLE
  7180. # "DIR[:DIR]"
  7181. # VARIABLE will be replaced by "DIR[ DIR]"
  7182. func_munge_path_list ()
  7183. {
  7184. case x$2 in
  7185. x)
  7186. ;;
  7187. *:)
  7188. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7189. ;;
  7190. x:*)
  7191. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7192. ;;
  7193. *::*)
  7194. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7195. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7196. ;;
  7197. *)
  7198. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7199. ;;
  7200. esac
  7201. }
  7202. ac_header= ac_cache=
  7203. for ac_item in $ac_header_c_list
  7204. do
  7205. if test $ac_cache; then
  7206. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7207. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7208. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7209. fi
  7210. ac_header= ac_cache=
  7211. elif test $ac_header; then
  7212. ac_cache=$ac_item
  7213. else
  7214. ac_header=$ac_item
  7215. fi
  7216. done
  7217. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7218. then :
  7219. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7220. fi
  7221. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7222. "
  7223. if test "x$ac_cv_header_dlfcn_h" = xyes
  7224. then :
  7225. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7226. fi
  7227. # Set options
  7228. enable_win32_dll=yes
  7229. case $host in
  7230. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7231. if test -n "$ac_tool_prefix"; then
  7232. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7233. set dummy ${ac_tool_prefix}as; ac_word=$2
  7234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7235. printf %s "checking for $ac_word... " >&6; }
  7236. if test ${ac_cv_prog_AS+y}
  7237. then :
  7238. printf %s "(cached) " >&6
  7239. else $as_nop
  7240. if test -n "$AS"; then
  7241. ac_cv_prog_AS="$AS" # Let the user override the test.
  7242. else
  7243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7244. for as_dir in $PATH
  7245. do
  7246. IFS=$as_save_IFS
  7247. case $as_dir in #(((
  7248. '') as_dir=./ ;;
  7249. */) ;;
  7250. *) as_dir=$as_dir/ ;;
  7251. esac
  7252. for ac_exec_ext in '' $ac_executable_extensions; do
  7253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7254. ac_cv_prog_AS="${ac_tool_prefix}as"
  7255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7256. break 2
  7257. fi
  7258. done
  7259. done
  7260. IFS=$as_save_IFS
  7261. fi
  7262. fi
  7263. AS=$ac_cv_prog_AS
  7264. if test -n "$AS"; then
  7265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7266. printf "%s\n" "$AS" >&6; }
  7267. else
  7268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7269. printf "%s\n" "no" >&6; }
  7270. fi
  7271. fi
  7272. if test -z "$ac_cv_prog_AS"; then
  7273. ac_ct_AS=$AS
  7274. # Extract the first word of "as", so it can be a program name with args.
  7275. set dummy as; ac_word=$2
  7276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7277. printf %s "checking for $ac_word... " >&6; }
  7278. if test ${ac_cv_prog_ac_ct_AS+y}
  7279. then :
  7280. printf %s "(cached) " >&6
  7281. else $as_nop
  7282. if test -n "$ac_ct_AS"; then
  7283. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7284. else
  7285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7286. for as_dir in $PATH
  7287. do
  7288. IFS=$as_save_IFS
  7289. case $as_dir in #(((
  7290. '') as_dir=./ ;;
  7291. */) ;;
  7292. *) as_dir=$as_dir/ ;;
  7293. esac
  7294. for ac_exec_ext in '' $ac_executable_extensions; do
  7295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7296. ac_cv_prog_ac_ct_AS="as"
  7297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7298. break 2
  7299. fi
  7300. done
  7301. done
  7302. IFS=$as_save_IFS
  7303. fi
  7304. fi
  7305. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7306. if test -n "$ac_ct_AS"; then
  7307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7308. printf "%s\n" "$ac_ct_AS" >&6; }
  7309. else
  7310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7311. printf "%s\n" "no" >&6; }
  7312. fi
  7313. if test "x$ac_ct_AS" = x; then
  7314. AS="false"
  7315. else
  7316. case $cross_compiling:$ac_tool_warned in
  7317. yes:)
  7318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7319. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7320. ac_tool_warned=yes ;;
  7321. esac
  7322. AS=$ac_ct_AS
  7323. fi
  7324. else
  7325. AS="$ac_cv_prog_AS"
  7326. fi
  7327. if test -n "$ac_tool_prefix"; then
  7328. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7329. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7331. printf %s "checking for $ac_word... " >&6; }
  7332. if test ${ac_cv_prog_DLLTOOL+y}
  7333. then :
  7334. printf %s "(cached) " >&6
  7335. else $as_nop
  7336. if test -n "$DLLTOOL"; then
  7337. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7338. else
  7339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7340. for as_dir in $PATH
  7341. do
  7342. IFS=$as_save_IFS
  7343. case $as_dir in #(((
  7344. '') as_dir=./ ;;
  7345. */) ;;
  7346. *) as_dir=$as_dir/ ;;
  7347. esac
  7348. for ac_exec_ext in '' $ac_executable_extensions; do
  7349. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7350. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7351. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7352. break 2
  7353. fi
  7354. done
  7355. done
  7356. IFS=$as_save_IFS
  7357. fi
  7358. fi
  7359. DLLTOOL=$ac_cv_prog_DLLTOOL
  7360. if test -n "$DLLTOOL"; then
  7361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7362. printf "%s\n" "$DLLTOOL" >&6; }
  7363. else
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7365. printf "%s\n" "no" >&6; }
  7366. fi
  7367. fi
  7368. if test -z "$ac_cv_prog_DLLTOOL"; then
  7369. ac_ct_DLLTOOL=$DLLTOOL
  7370. # Extract the first word of "dlltool", so it can be a program name with args.
  7371. set dummy dlltool; ac_word=$2
  7372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7373. printf %s "checking for $ac_word... " >&6; }
  7374. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7375. then :
  7376. printf %s "(cached) " >&6
  7377. else $as_nop
  7378. if test -n "$ac_ct_DLLTOOL"; then
  7379. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7380. else
  7381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7382. for as_dir in $PATH
  7383. do
  7384. IFS=$as_save_IFS
  7385. case $as_dir in #(((
  7386. '') as_dir=./ ;;
  7387. */) ;;
  7388. *) as_dir=$as_dir/ ;;
  7389. esac
  7390. for ac_exec_ext in '' $ac_executable_extensions; do
  7391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7392. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7394. break 2
  7395. fi
  7396. done
  7397. done
  7398. IFS=$as_save_IFS
  7399. fi
  7400. fi
  7401. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7402. if test -n "$ac_ct_DLLTOOL"; then
  7403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7404. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7405. else
  7406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7407. printf "%s\n" "no" >&6; }
  7408. fi
  7409. if test "x$ac_ct_DLLTOOL" = x; then
  7410. DLLTOOL="false"
  7411. else
  7412. case $cross_compiling:$ac_tool_warned in
  7413. yes:)
  7414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7415. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7416. ac_tool_warned=yes ;;
  7417. esac
  7418. DLLTOOL=$ac_ct_DLLTOOL
  7419. fi
  7420. else
  7421. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7422. fi
  7423. if test -n "$ac_tool_prefix"; then
  7424. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7425. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7427. printf %s "checking for $ac_word... " >&6; }
  7428. if test ${ac_cv_prog_OBJDUMP+y}
  7429. then :
  7430. printf %s "(cached) " >&6
  7431. else $as_nop
  7432. if test -n "$OBJDUMP"; then
  7433. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7434. else
  7435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7436. for as_dir in $PATH
  7437. do
  7438. IFS=$as_save_IFS
  7439. case $as_dir in #(((
  7440. '') as_dir=./ ;;
  7441. */) ;;
  7442. *) as_dir=$as_dir/ ;;
  7443. esac
  7444. for ac_exec_ext in '' $ac_executable_extensions; do
  7445. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7446. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7447. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7448. break 2
  7449. fi
  7450. done
  7451. done
  7452. IFS=$as_save_IFS
  7453. fi
  7454. fi
  7455. OBJDUMP=$ac_cv_prog_OBJDUMP
  7456. if test -n "$OBJDUMP"; then
  7457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7458. printf "%s\n" "$OBJDUMP" >&6; }
  7459. else
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7461. printf "%s\n" "no" >&6; }
  7462. fi
  7463. fi
  7464. if test -z "$ac_cv_prog_OBJDUMP"; then
  7465. ac_ct_OBJDUMP=$OBJDUMP
  7466. # Extract the first word of "objdump", so it can be a program name with args.
  7467. set dummy objdump; ac_word=$2
  7468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7469. printf %s "checking for $ac_word... " >&6; }
  7470. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7471. then :
  7472. printf %s "(cached) " >&6
  7473. else $as_nop
  7474. if test -n "$ac_ct_OBJDUMP"; then
  7475. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7476. else
  7477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7478. for as_dir in $PATH
  7479. do
  7480. IFS=$as_save_IFS
  7481. case $as_dir in #(((
  7482. '') as_dir=./ ;;
  7483. */) ;;
  7484. *) as_dir=$as_dir/ ;;
  7485. esac
  7486. for ac_exec_ext in '' $ac_executable_extensions; do
  7487. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7488. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7490. break 2
  7491. fi
  7492. done
  7493. done
  7494. IFS=$as_save_IFS
  7495. fi
  7496. fi
  7497. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7498. if test -n "$ac_ct_OBJDUMP"; then
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7500. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7501. else
  7502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7503. printf "%s\n" "no" >&6; }
  7504. fi
  7505. if test "x$ac_ct_OBJDUMP" = x; then
  7506. OBJDUMP="false"
  7507. else
  7508. case $cross_compiling:$ac_tool_warned in
  7509. yes:)
  7510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7511. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7512. ac_tool_warned=yes ;;
  7513. esac
  7514. OBJDUMP=$ac_ct_OBJDUMP
  7515. fi
  7516. else
  7517. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7518. fi
  7519. ;;
  7520. esac
  7521. test -z "$AS" && AS=as
  7522. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7523. test -z "$OBJDUMP" && OBJDUMP=objdump
  7524. enable_dlopen=no
  7525. # Check whether --enable-shared was given.
  7526. if test ${enable_shared+y}
  7527. then :
  7528. enableval=$enable_shared; p=${PACKAGE-default}
  7529. case $enableval in
  7530. yes) enable_shared=yes ;;
  7531. no) enable_shared=no ;;
  7532. *)
  7533. enable_shared=no
  7534. # Look at the argument we got. We use all the common list separators.
  7535. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7536. for pkg in $enableval; do
  7537. IFS=$lt_save_ifs
  7538. if test "X$pkg" = "X$p"; then
  7539. enable_shared=yes
  7540. fi
  7541. done
  7542. IFS=$lt_save_ifs
  7543. ;;
  7544. esac
  7545. else $as_nop
  7546. enable_shared=yes
  7547. fi
  7548. # Check whether --enable-static was given.
  7549. if test ${enable_static+y}
  7550. then :
  7551. enableval=$enable_static; p=${PACKAGE-default}
  7552. case $enableval in
  7553. yes) enable_static=yes ;;
  7554. no) enable_static=no ;;
  7555. *)
  7556. enable_static=no
  7557. # Look at the argument we got. We use all the common list separators.
  7558. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7559. for pkg in $enableval; do
  7560. IFS=$lt_save_ifs
  7561. if test "X$pkg" = "X$p"; then
  7562. enable_static=yes
  7563. fi
  7564. done
  7565. IFS=$lt_save_ifs
  7566. ;;
  7567. esac
  7568. else $as_nop
  7569. enable_static=yes
  7570. fi
  7571. # Check whether --with-pic was given.
  7572. if test ${with_pic+y}
  7573. then :
  7574. withval=$with_pic; lt_p=${PACKAGE-default}
  7575. case $withval in
  7576. yes|no) pic_mode=$withval ;;
  7577. *)
  7578. pic_mode=default
  7579. # Look at the argument we got. We use all the common list separators.
  7580. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7581. for lt_pkg in $withval; do
  7582. IFS=$lt_save_ifs
  7583. if test "X$lt_pkg" = "X$lt_p"; then
  7584. pic_mode=yes
  7585. fi
  7586. done
  7587. IFS=$lt_save_ifs
  7588. ;;
  7589. esac
  7590. else $as_nop
  7591. pic_mode=default
  7592. fi
  7593. # Check whether --enable-fast-install was given.
  7594. if test ${enable_fast_install+y}
  7595. then :
  7596. enableval=$enable_fast_install; p=${PACKAGE-default}
  7597. case $enableval in
  7598. yes) enable_fast_install=yes ;;
  7599. no) enable_fast_install=no ;;
  7600. *)
  7601. enable_fast_install=no
  7602. # Look at the argument we got. We use all the common list separators.
  7603. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7604. for pkg in $enableval; do
  7605. IFS=$lt_save_ifs
  7606. if test "X$pkg" = "X$p"; then
  7607. enable_fast_install=yes
  7608. fi
  7609. done
  7610. IFS=$lt_save_ifs
  7611. ;;
  7612. esac
  7613. else $as_nop
  7614. enable_fast_install=yes
  7615. fi
  7616. shared_archive_member_spec=
  7617. case $host,$enable_shared in
  7618. power*-*-aix[5-9]*,yes)
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7620. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7621. # Check whether --with-aix-soname was given.
  7622. if test ${with_aix_soname+y}
  7623. then :
  7624. withval=$with_aix_soname; case $withval in
  7625. aix|svr4|both)
  7626. ;;
  7627. *)
  7628. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7629. ;;
  7630. esac
  7631. lt_cv_with_aix_soname=$with_aix_soname
  7632. else $as_nop
  7633. if test ${lt_cv_with_aix_soname+y}
  7634. then :
  7635. printf %s "(cached) " >&6
  7636. else $as_nop
  7637. lt_cv_with_aix_soname=aix
  7638. fi
  7639. with_aix_soname=$lt_cv_with_aix_soname
  7640. fi
  7641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7642. printf "%s\n" "$with_aix_soname" >&6; }
  7643. if test aix != "$with_aix_soname"; then
  7644. # For the AIX way of multilib, we name the shared archive member
  7645. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7646. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7647. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7648. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7649. if test 64 = "${OBJECT_MODE-32}"; then
  7650. shared_archive_member_spec=shr_64
  7651. else
  7652. shared_archive_member_spec=shr
  7653. fi
  7654. fi
  7655. ;;
  7656. *)
  7657. with_aix_soname=aix
  7658. ;;
  7659. esac
  7660. # This can be used to rebuild libtool when needed
  7661. LIBTOOL_DEPS=$ltmain
  7662. # Always use our own libtool.
  7663. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7664. test -z "$LN_S" && LN_S="ln -s"
  7665. if test -n "${ZSH_VERSION+set}"; then
  7666. setopt NO_GLOB_SUBST
  7667. fi
  7668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7669. printf %s "checking for objdir... " >&6; }
  7670. if test ${lt_cv_objdir+y}
  7671. then :
  7672. printf %s "(cached) " >&6
  7673. else $as_nop
  7674. rm -f .libs 2>/dev/null
  7675. mkdir .libs 2>/dev/null
  7676. if test -d .libs; then
  7677. lt_cv_objdir=.libs
  7678. else
  7679. # MS-DOS does not allow filenames that begin with a dot.
  7680. lt_cv_objdir=_libs
  7681. fi
  7682. rmdir .libs 2>/dev/null
  7683. fi
  7684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7685. printf "%s\n" "$lt_cv_objdir" >&6; }
  7686. objdir=$lt_cv_objdir
  7687. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7688. case $host_os in
  7689. aix3*)
  7690. # AIX sometimes has problems with the GCC collect2 program. For some
  7691. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7692. # vanish in a puff of smoke.
  7693. if test set != "${COLLECT_NAMES+set}"; then
  7694. COLLECT_NAMES=
  7695. export COLLECT_NAMES
  7696. fi
  7697. ;;
  7698. esac
  7699. # Global variables:
  7700. ofile=libtool
  7701. can_build_shared=yes
  7702. # All known linkers require a '.a' archive for static linking (except MSVC,
  7703. # which needs '.lib').
  7704. libext=a
  7705. with_gnu_ld=$lt_cv_prog_gnu_ld
  7706. old_CC=$CC
  7707. old_CFLAGS=$CFLAGS
  7708. # Set sane defaults for various variables
  7709. test -z "$CC" && CC=cc
  7710. test -z "$LTCC" && LTCC=$CC
  7711. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7712. test -z "$LD" && LD=ld
  7713. test -z "$ac_objext" && ac_objext=o
  7714. func_cc_basename $compiler
  7715. cc_basename=$func_cc_basename_result
  7716. # Only perform the check for file, if the check method requires it
  7717. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7718. case $deplibs_check_method in
  7719. file_magic*)
  7720. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7722. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7723. if test ${lt_cv_path_MAGIC_CMD+y}
  7724. then :
  7725. printf %s "(cached) " >&6
  7726. else $as_nop
  7727. case $MAGIC_CMD in
  7728. [\\/*] | ?:[\\/]*)
  7729. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7730. ;;
  7731. *)
  7732. lt_save_MAGIC_CMD=$MAGIC_CMD
  7733. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7734. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7735. for ac_dir in $ac_dummy; do
  7736. IFS=$lt_save_ifs
  7737. test -z "$ac_dir" && ac_dir=.
  7738. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7739. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7740. if test -n "$file_magic_test_file"; then
  7741. case $deplibs_check_method in
  7742. "file_magic "*)
  7743. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7744. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7745. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7746. $EGREP "$file_magic_regex" > /dev/null; then
  7747. :
  7748. else
  7749. cat <<_LT_EOF 1>&2
  7750. *** Warning: the command libtool uses to detect shared libraries,
  7751. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7752. *** The result is that libtool may fail to recognize shared libraries
  7753. *** as such. This will affect the creation of libtool libraries that
  7754. *** depend on shared libraries, but programs linked with such libtool
  7755. *** libraries will work regardless of this problem. Nevertheless, you
  7756. *** may want to report the problem to your system manager and/or to
  7757. *** bug-libtool@gnu.org
  7758. _LT_EOF
  7759. fi ;;
  7760. esac
  7761. fi
  7762. break
  7763. fi
  7764. done
  7765. IFS=$lt_save_ifs
  7766. MAGIC_CMD=$lt_save_MAGIC_CMD
  7767. ;;
  7768. esac
  7769. fi
  7770. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7771. if test -n "$MAGIC_CMD"; then
  7772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7773. printf "%s\n" "$MAGIC_CMD" >&6; }
  7774. else
  7775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7776. printf "%s\n" "no" >&6; }
  7777. fi
  7778. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7779. if test -n "$ac_tool_prefix"; then
  7780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7781. printf %s "checking for file... " >&6; }
  7782. if test ${lt_cv_path_MAGIC_CMD+y}
  7783. then :
  7784. printf %s "(cached) " >&6
  7785. else $as_nop
  7786. case $MAGIC_CMD in
  7787. [\\/*] | ?:[\\/]*)
  7788. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7789. ;;
  7790. *)
  7791. lt_save_MAGIC_CMD=$MAGIC_CMD
  7792. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7793. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7794. for ac_dir in $ac_dummy; do
  7795. IFS=$lt_save_ifs
  7796. test -z "$ac_dir" && ac_dir=.
  7797. if test -f "$ac_dir/file"; then
  7798. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7799. if test -n "$file_magic_test_file"; then
  7800. case $deplibs_check_method in
  7801. "file_magic "*)
  7802. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7803. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7804. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7805. $EGREP "$file_magic_regex" > /dev/null; then
  7806. :
  7807. else
  7808. cat <<_LT_EOF 1>&2
  7809. *** Warning: the command libtool uses to detect shared libraries,
  7810. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7811. *** The result is that libtool may fail to recognize shared libraries
  7812. *** as such. This will affect the creation of libtool libraries that
  7813. *** depend on shared libraries, but programs linked with such libtool
  7814. *** libraries will work regardless of this problem. Nevertheless, you
  7815. *** may want to report the problem to your system manager and/or to
  7816. *** bug-libtool@gnu.org
  7817. _LT_EOF
  7818. fi ;;
  7819. esac
  7820. fi
  7821. break
  7822. fi
  7823. done
  7824. IFS=$lt_save_ifs
  7825. MAGIC_CMD=$lt_save_MAGIC_CMD
  7826. ;;
  7827. esac
  7828. fi
  7829. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7830. if test -n "$MAGIC_CMD"; then
  7831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7832. printf "%s\n" "$MAGIC_CMD" >&6; }
  7833. else
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7835. printf "%s\n" "no" >&6; }
  7836. fi
  7837. else
  7838. MAGIC_CMD=:
  7839. fi
  7840. fi
  7841. fi
  7842. ;;
  7843. esac
  7844. # Use C for the default configuration in the libtool script
  7845. lt_save_CC=$CC
  7846. ac_ext=c
  7847. ac_cpp='$CPP $CPPFLAGS'
  7848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7851. # Source file extension for C test sources.
  7852. ac_ext=c
  7853. # Object file extension for compiled C test sources.
  7854. objext=o
  7855. objext=$objext
  7856. # Code to be used in simple compile tests
  7857. lt_simple_compile_test_code="int some_variable = 0;"
  7858. # Code to be used in simple link tests
  7859. lt_simple_link_test_code='int main(){return(0);}'
  7860. # If no C compiler was specified, use CC.
  7861. LTCC=${LTCC-"$CC"}
  7862. # If no C compiler flags were specified, use CFLAGS.
  7863. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7864. # Allow CC to be a program name with arguments.
  7865. compiler=$CC
  7866. # Save the default compiler, since it gets overwritten when the other
  7867. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7868. compiler_DEFAULT=$CC
  7869. # save warnings/boilerplate of simple test code
  7870. ac_outfile=conftest.$ac_objext
  7871. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7872. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7873. _lt_compiler_boilerplate=`cat conftest.err`
  7874. $RM conftest*
  7875. ac_outfile=conftest.$ac_objext
  7876. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7877. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7878. _lt_linker_boilerplate=`cat conftest.err`
  7879. $RM -r conftest*
  7880. ## CAVEAT EMPTOR:
  7881. ## There is no encapsulation within the following macros, do not change
  7882. ## the running order or otherwise move them around unless you know exactly
  7883. ## what you are doing...
  7884. if test -n "$compiler"; then
  7885. lt_prog_compiler_no_builtin_flag=
  7886. if test yes = "$GCC"; then
  7887. case $cc_basename in
  7888. nvcc*)
  7889. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7890. *)
  7891. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7892. esac
  7893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7894. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7895. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7896. then :
  7897. printf %s "(cached) " >&6
  7898. else $as_nop
  7899. lt_cv_prog_compiler_rtti_exceptions=no
  7900. ac_outfile=conftest.$ac_objext
  7901. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7902. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7903. # Insert the option either (1) after the last *FLAGS variable, or
  7904. # (2) before a word containing "conftest.", or (3) at the end.
  7905. # Note that $ac_compile itself does not contain backslashes and begins
  7906. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7907. # The option is referenced via a variable to avoid confusing sed.
  7908. lt_compile=`echo "$ac_compile" | $SED \
  7909. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7910. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7911. -e 's:$: $lt_compiler_flag:'`
  7912. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7913. (eval "$lt_compile" 2>conftest.err)
  7914. ac_status=$?
  7915. cat conftest.err >&5
  7916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7917. if (exit $ac_status) && test -s "$ac_outfile"; then
  7918. # The compiler can only warn and ignore the option if not recognized
  7919. # So say no if there are warnings other than the usual output.
  7920. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7921. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7922. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7923. lt_cv_prog_compiler_rtti_exceptions=yes
  7924. fi
  7925. fi
  7926. $RM conftest*
  7927. fi
  7928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7929. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7930. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7931. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7932. else
  7933. :
  7934. fi
  7935. fi
  7936. lt_prog_compiler_wl=
  7937. lt_prog_compiler_pic=
  7938. lt_prog_compiler_static=
  7939. if test yes = "$GCC"; then
  7940. lt_prog_compiler_wl='-Wl,'
  7941. lt_prog_compiler_static='-static'
  7942. case $host_os in
  7943. aix*)
  7944. # All AIX code is PIC.
  7945. if test ia64 = "$host_cpu"; then
  7946. # AIX 5 now supports IA64 processor
  7947. lt_prog_compiler_static='-Bstatic'
  7948. fi
  7949. lt_prog_compiler_pic='-fPIC'
  7950. ;;
  7951. amigaos*)
  7952. case $host_cpu in
  7953. powerpc)
  7954. # see comment about AmigaOS4 .so support
  7955. lt_prog_compiler_pic='-fPIC'
  7956. ;;
  7957. m68k)
  7958. # FIXME: we need at least 68020 code to build shared libraries, but
  7959. # adding the '-m68020' flag to GCC prevents building anything better,
  7960. # like '-m68040'.
  7961. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7962. ;;
  7963. esac
  7964. ;;
  7965. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7966. # PIC is the default for these OSes.
  7967. ;;
  7968. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7969. # This hack is so that the source file can tell whether it is being
  7970. # built for inclusion in a dll (and should export symbols for example).
  7971. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7972. # (--disable-auto-import) libraries
  7973. lt_prog_compiler_pic='-DDLL_EXPORT'
  7974. case $host_os in
  7975. os2*)
  7976. lt_prog_compiler_static='$wl-static'
  7977. ;;
  7978. esac
  7979. ;;
  7980. darwin* | rhapsody*)
  7981. # PIC is the default on this platform
  7982. # Common symbols not allowed in MH_DYLIB files
  7983. lt_prog_compiler_pic='-fno-common'
  7984. ;;
  7985. haiku*)
  7986. # PIC is the default for Haiku.
  7987. # The "-static" flag exists, but is broken.
  7988. lt_prog_compiler_static=
  7989. ;;
  7990. hpux*)
  7991. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7992. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7993. # sets the default TLS model and affects inlining.
  7994. case $host_cpu in
  7995. hppa*64*)
  7996. # +Z the default
  7997. ;;
  7998. *)
  7999. lt_prog_compiler_pic='-fPIC'
  8000. ;;
  8001. esac
  8002. ;;
  8003. interix[3-9]*)
  8004. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8005. # Instead, we relocate shared libraries at runtime.
  8006. ;;
  8007. msdosdjgpp*)
  8008. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8009. # on systems that don't support them.
  8010. lt_prog_compiler_can_build_shared=no
  8011. enable_shared=no
  8012. ;;
  8013. *nto* | *qnx*)
  8014. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8015. # it will coredump.
  8016. lt_prog_compiler_pic='-fPIC -shared'
  8017. ;;
  8018. sysv4*MP*)
  8019. if test -d /usr/nec; then
  8020. lt_prog_compiler_pic=-Kconform_pic
  8021. fi
  8022. ;;
  8023. *)
  8024. lt_prog_compiler_pic='-fPIC'
  8025. ;;
  8026. esac
  8027. case $cc_basename in
  8028. nvcc*) # Cuda Compiler Driver 2.2
  8029. lt_prog_compiler_wl='-Xlinker '
  8030. if test -n "$lt_prog_compiler_pic"; then
  8031. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8032. fi
  8033. ;;
  8034. esac
  8035. else
  8036. # PORTME Check for flag to pass linker flags through the system compiler.
  8037. case $host_os in
  8038. aix*)
  8039. lt_prog_compiler_wl='-Wl,'
  8040. if test ia64 = "$host_cpu"; then
  8041. # AIX 5 now supports IA64 processor
  8042. lt_prog_compiler_static='-Bstatic'
  8043. else
  8044. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8045. fi
  8046. ;;
  8047. darwin* | rhapsody*)
  8048. # PIC is the default on this platform
  8049. # Common symbols not allowed in MH_DYLIB files
  8050. lt_prog_compiler_pic='-fno-common'
  8051. case $cc_basename in
  8052. nagfor*)
  8053. # NAG Fortran compiler
  8054. lt_prog_compiler_wl='-Wl,-Wl,,'
  8055. lt_prog_compiler_pic='-PIC'
  8056. lt_prog_compiler_static='-Bstatic'
  8057. ;;
  8058. esac
  8059. ;;
  8060. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8061. # This hack is so that the source file can tell whether it is being
  8062. # built for inclusion in a dll (and should export symbols for example).
  8063. lt_prog_compiler_pic='-DDLL_EXPORT'
  8064. case $host_os in
  8065. os2*)
  8066. lt_prog_compiler_static='$wl-static'
  8067. ;;
  8068. esac
  8069. ;;
  8070. hpux9* | hpux10* | hpux11*)
  8071. lt_prog_compiler_wl='-Wl,'
  8072. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8073. # not for PA HP-UX.
  8074. case $host_cpu in
  8075. hppa*64*|ia64*)
  8076. # +Z the default
  8077. ;;
  8078. *)
  8079. lt_prog_compiler_pic='+Z'
  8080. ;;
  8081. esac
  8082. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8083. lt_prog_compiler_static='$wl-a ${wl}archive'
  8084. ;;
  8085. irix5* | irix6* | nonstopux*)
  8086. lt_prog_compiler_wl='-Wl,'
  8087. # PIC (with -KPIC) is the default.
  8088. lt_prog_compiler_static='-non_shared'
  8089. ;;
  8090. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8091. case $cc_basename in
  8092. # old Intel for x86_64, which still supported -KPIC.
  8093. ecc*)
  8094. lt_prog_compiler_wl='-Wl,'
  8095. lt_prog_compiler_pic='-KPIC'
  8096. lt_prog_compiler_static='-static'
  8097. ;;
  8098. # icc used to be incompatible with GCC.
  8099. # ICC 10 doesn't accept -KPIC any more.
  8100. icc* | ifort*)
  8101. lt_prog_compiler_wl='-Wl,'
  8102. lt_prog_compiler_pic='-fPIC'
  8103. lt_prog_compiler_static='-static'
  8104. ;;
  8105. # Lahey Fortran 8.1.
  8106. lf95*)
  8107. lt_prog_compiler_wl='-Wl,'
  8108. lt_prog_compiler_pic='--shared'
  8109. lt_prog_compiler_static='--static'
  8110. ;;
  8111. nagfor*)
  8112. # NAG Fortran compiler
  8113. lt_prog_compiler_wl='-Wl,-Wl,,'
  8114. lt_prog_compiler_pic='-PIC'
  8115. lt_prog_compiler_static='-Bstatic'
  8116. ;;
  8117. tcc*)
  8118. # Fabrice Bellard et al's Tiny C Compiler
  8119. lt_prog_compiler_wl='-Wl,'
  8120. lt_prog_compiler_pic='-fPIC'
  8121. lt_prog_compiler_static='-static'
  8122. ;;
  8123. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8124. # Portland Group compilers (*not* the Pentium gcc compiler,
  8125. # which looks to be a dead project)
  8126. lt_prog_compiler_wl='-Wl,'
  8127. lt_prog_compiler_pic='-fpic'
  8128. lt_prog_compiler_static='-Bstatic'
  8129. ;;
  8130. ccc*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. # All Alpha code is PIC.
  8133. lt_prog_compiler_static='-non_shared'
  8134. ;;
  8135. xl* | bgxl* | bgf* | mpixl*)
  8136. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8137. lt_prog_compiler_wl='-Wl,'
  8138. lt_prog_compiler_pic='-qpic'
  8139. lt_prog_compiler_static='-qstaticlink'
  8140. ;;
  8141. *)
  8142. case `$CC -V 2>&1 | sed 5q` in
  8143. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8144. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8145. lt_prog_compiler_pic='-KPIC'
  8146. lt_prog_compiler_static='-Bstatic'
  8147. lt_prog_compiler_wl=''
  8148. ;;
  8149. *Sun\ F* | *Sun*Fortran*)
  8150. lt_prog_compiler_pic='-KPIC'
  8151. lt_prog_compiler_static='-Bstatic'
  8152. lt_prog_compiler_wl='-Qoption ld '
  8153. ;;
  8154. *Sun\ C*)
  8155. # Sun C 5.9
  8156. lt_prog_compiler_pic='-KPIC'
  8157. lt_prog_compiler_static='-Bstatic'
  8158. lt_prog_compiler_wl='-Wl,'
  8159. ;;
  8160. *Intel*\ [CF]*Compiler*)
  8161. lt_prog_compiler_wl='-Wl,'
  8162. lt_prog_compiler_pic='-fPIC'
  8163. lt_prog_compiler_static='-static'
  8164. ;;
  8165. *Portland\ Group*)
  8166. lt_prog_compiler_wl='-Wl,'
  8167. lt_prog_compiler_pic='-fpic'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. esac
  8171. ;;
  8172. esac
  8173. ;;
  8174. newsos6)
  8175. lt_prog_compiler_pic='-KPIC'
  8176. lt_prog_compiler_static='-Bstatic'
  8177. ;;
  8178. *nto* | *qnx*)
  8179. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8180. # it will coredump.
  8181. lt_prog_compiler_pic='-fPIC -shared'
  8182. ;;
  8183. osf3* | osf4* | osf5*)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. # All OSF/1 code is PIC.
  8186. lt_prog_compiler_static='-non_shared'
  8187. ;;
  8188. rdos*)
  8189. lt_prog_compiler_static='-non_shared'
  8190. ;;
  8191. solaris*)
  8192. lt_prog_compiler_pic='-KPIC'
  8193. lt_prog_compiler_static='-Bstatic'
  8194. case $cc_basename in
  8195. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8196. lt_prog_compiler_wl='-Qoption ld ';;
  8197. *)
  8198. lt_prog_compiler_wl='-Wl,';;
  8199. esac
  8200. ;;
  8201. sunos4*)
  8202. lt_prog_compiler_wl='-Qoption ld '
  8203. lt_prog_compiler_pic='-PIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. ;;
  8206. sysv4 | sysv4.2uw2* | sysv4.3*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. lt_prog_compiler_pic='-KPIC'
  8209. lt_prog_compiler_static='-Bstatic'
  8210. ;;
  8211. sysv4*MP*)
  8212. if test -d /usr/nec; then
  8213. lt_prog_compiler_pic='-Kconform_pic'
  8214. lt_prog_compiler_static='-Bstatic'
  8215. fi
  8216. ;;
  8217. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8218. lt_prog_compiler_wl='-Wl,'
  8219. lt_prog_compiler_pic='-KPIC'
  8220. lt_prog_compiler_static='-Bstatic'
  8221. ;;
  8222. unicos*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_can_build_shared=no
  8225. ;;
  8226. uts4*)
  8227. lt_prog_compiler_pic='-pic'
  8228. lt_prog_compiler_static='-Bstatic'
  8229. ;;
  8230. *)
  8231. lt_prog_compiler_can_build_shared=no
  8232. ;;
  8233. esac
  8234. fi
  8235. case $host_os in
  8236. # For platforms that do not support PIC, -DPIC is meaningless:
  8237. *djgpp*)
  8238. lt_prog_compiler_pic=
  8239. ;;
  8240. *)
  8241. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8242. ;;
  8243. esac
  8244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8245. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8246. if test ${lt_cv_prog_compiler_pic+y}
  8247. then :
  8248. printf %s "(cached) " >&6
  8249. else $as_nop
  8250. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8251. fi
  8252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8253. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8254. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8255. #
  8256. # Check to make sure the PIC flag actually works.
  8257. #
  8258. if test -n "$lt_prog_compiler_pic"; then
  8259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8260. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8261. if test ${lt_cv_prog_compiler_pic_works+y}
  8262. then :
  8263. printf %s "(cached) " >&6
  8264. else $as_nop
  8265. lt_cv_prog_compiler_pic_works=no
  8266. ac_outfile=conftest.$ac_objext
  8267. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8268. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8269. # Insert the option either (1) after the last *FLAGS variable, or
  8270. # (2) before a word containing "conftest.", or (3) at the end.
  8271. # Note that $ac_compile itself does not contain backslashes and begins
  8272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8273. # The option is referenced via a variable to avoid confusing sed.
  8274. lt_compile=`echo "$ac_compile" | $SED \
  8275. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8276. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8277. -e 's:$: $lt_compiler_flag:'`
  8278. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8279. (eval "$lt_compile" 2>conftest.err)
  8280. ac_status=$?
  8281. cat conftest.err >&5
  8282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8283. if (exit $ac_status) && test -s "$ac_outfile"; then
  8284. # The compiler can only warn and ignore the option if not recognized
  8285. # So say no if there are warnings other than the usual output.
  8286. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8287. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8288. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8289. lt_cv_prog_compiler_pic_works=yes
  8290. fi
  8291. fi
  8292. $RM conftest*
  8293. fi
  8294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8295. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8296. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8297. case $lt_prog_compiler_pic in
  8298. "" | " "*) ;;
  8299. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8300. esac
  8301. else
  8302. lt_prog_compiler_pic=
  8303. lt_prog_compiler_can_build_shared=no
  8304. fi
  8305. fi
  8306. #
  8307. # Check to make sure the static flag actually works.
  8308. #
  8309. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8311. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8312. if test ${lt_cv_prog_compiler_static_works+y}
  8313. then :
  8314. printf %s "(cached) " >&6
  8315. else $as_nop
  8316. lt_cv_prog_compiler_static_works=no
  8317. save_LDFLAGS=$LDFLAGS
  8318. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8319. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8320. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8321. # The linker can only warn and ignore the option if not recognized
  8322. # So say no if there are warnings
  8323. if test -s conftest.err; then
  8324. # Append any errors to the config.log.
  8325. cat conftest.err 1>&5
  8326. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8327. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8328. if diff conftest.exp conftest.er2 >/dev/null; then
  8329. lt_cv_prog_compiler_static_works=yes
  8330. fi
  8331. else
  8332. lt_cv_prog_compiler_static_works=yes
  8333. fi
  8334. fi
  8335. $RM -r conftest*
  8336. LDFLAGS=$save_LDFLAGS
  8337. fi
  8338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8339. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8340. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8341. :
  8342. else
  8343. lt_prog_compiler_static=
  8344. fi
  8345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8346. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8347. if test ${lt_cv_prog_compiler_c_o+y}
  8348. then :
  8349. printf %s "(cached) " >&6
  8350. else $as_nop
  8351. lt_cv_prog_compiler_c_o=no
  8352. $RM -r conftest 2>/dev/null
  8353. mkdir conftest
  8354. cd conftest
  8355. mkdir out
  8356. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8357. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8358. # Insert the option either (1) after the last *FLAGS variable, or
  8359. # (2) before a word containing "conftest.", or (3) at the end.
  8360. # Note that $ac_compile itself does not contain backslashes and begins
  8361. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8362. lt_compile=`echo "$ac_compile" | $SED \
  8363. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8364. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8365. -e 's:$: $lt_compiler_flag:'`
  8366. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8367. (eval "$lt_compile" 2>out/conftest.err)
  8368. ac_status=$?
  8369. cat out/conftest.err >&5
  8370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8371. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8372. then
  8373. # The compiler can only warn and ignore the option if not recognized
  8374. # So say no if there are warnings
  8375. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8376. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8377. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8378. lt_cv_prog_compiler_c_o=yes
  8379. fi
  8380. fi
  8381. chmod u+w . 2>&5
  8382. $RM conftest*
  8383. # SGI C++ compiler will create directory out/ii_files/ for
  8384. # template instantiation
  8385. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8386. $RM out/* && rmdir out
  8387. cd ..
  8388. $RM -r conftest
  8389. $RM conftest*
  8390. fi
  8391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8392. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8394. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8395. if test ${lt_cv_prog_compiler_c_o+y}
  8396. then :
  8397. printf %s "(cached) " >&6
  8398. else $as_nop
  8399. lt_cv_prog_compiler_c_o=no
  8400. $RM -r conftest 2>/dev/null
  8401. mkdir conftest
  8402. cd conftest
  8403. mkdir out
  8404. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8405. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8406. # Insert the option either (1) after the last *FLAGS variable, or
  8407. # (2) before a word containing "conftest.", or (3) at the end.
  8408. # Note that $ac_compile itself does not contain backslashes and begins
  8409. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8410. lt_compile=`echo "$ac_compile" | $SED \
  8411. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8412. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8413. -e 's:$: $lt_compiler_flag:'`
  8414. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8415. (eval "$lt_compile" 2>out/conftest.err)
  8416. ac_status=$?
  8417. cat out/conftest.err >&5
  8418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8419. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8420. then
  8421. # The compiler can only warn and ignore the option if not recognized
  8422. # So say no if there are warnings
  8423. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8424. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8425. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8426. lt_cv_prog_compiler_c_o=yes
  8427. fi
  8428. fi
  8429. chmod u+w . 2>&5
  8430. $RM conftest*
  8431. # SGI C++ compiler will create directory out/ii_files/ for
  8432. # template instantiation
  8433. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8434. $RM out/* && rmdir out
  8435. cd ..
  8436. $RM -r conftest
  8437. $RM conftest*
  8438. fi
  8439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8440. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8441. hard_links=nottested
  8442. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8443. # do not overwrite the value of need_locks provided by the user
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8445. printf %s "checking if we can lock with hard links... " >&6; }
  8446. hard_links=yes
  8447. $RM conftest*
  8448. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8449. touch conftest.a
  8450. ln conftest.a conftest.b 2>&5 || hard_links=no
  8451. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8453. printf "%s\n" "$hard_links" >&6; }
  8454. if test no = "$hard_links"; then
  8455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8456. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8457. need_locks=warn
  8458. fi
  8459. else
  8460. need_locks=no
  8461. fi
  8462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8463. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8464. runpath_var=
  8465. allow_undefined_flag=
  8466. always_export_symbols=no
  8467. archive_cmds=
  8468. archive_expsym_cmds=
  8469. compiler_needs_object=no
  8470. enable_shared_with_static_runtimes=no
  8471. export_dynamic_flag_spec=
  8472. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8473. hardcode_automatic=no
  8474. hardcode_direct=no
  8475. hardcode_direct_absolute=no
  8476. hardcode_libdir_flag_spec=
  8477. hardcode_libdir_separator=
  8478. hardcode_minus_L=no
  8479. hardcode_shlibpath_var=unsupported
  8480. inherit_rpath=no
  8481. link_all_deplibs=unknown
  8482. module_cmds=
  8483. module_expsym_cmds=
  8484. old_archive_from_new_cmds=
  8485. old_archive_from_expsyms_cmds=
  8486. thread_safe_flag_spec=
  8487. whole_archive_flag_spec=
  8488. # include_expsyms should be a list of space-separated symbols to be *always*
  8489. # included in the symbol list
  8490. include_expsyms=
  8491. # exclude_expsyms can be an extended regexp of symbols to exclude
  8492. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8493. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8494. # as well as any symbol that contains 'd'.
  8495. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8496. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8497. # platforms (ab)use it in PIC code, but their linkers get confused if
  8498. # the symbol is explicitly referenced. Since portable code cannot
  8499. # rely on this symbol name, it's probably fine to never include it in
  8500. # preloaded symbol tables.
  8501. # Exclude shared library initialization/finalization symbols.
  8502. extract_expsyms_cmds=
  8503. case $host_os in
  8504. cygwin* | mingw* | pw32* | cegcc*)
  8505. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8506. # When not using gcc, we currently assume that we are using
  8507. # Microsoft Visual C++.
  8508. if test yes != "$GCC"; then
  8509. with_gnu_ld=no
  8510. fi
  8511. ;;
  8512. interix*)
  8513. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8514. with_gnu_ld=yes
  8515. ;;
  8516. openbsd* | bitrig*)
  8517. with_gnu_ld=no
  8518. ;;
  8519. esac
  8520. ld_shlibs=yes
  8521. # On some targets, GNU ld is compatible enough with the native linker
  8522. # that we're better off using the native interface for both.
  8523. lt_use_gnu_ld_interface=no
  8524. if test yes = "$with_gnu_ld"; then
  8525. case $host_os in
  8526. aix*)
  8527. # The AIX port of GNU ld has always aspired to compatibility
  8528. # with the native linker. However, as the warning in the GNU ld
  8529. # block says, versions before 2.19.5* couldn't really create working
  8530. # shared libraries, regardless of the interface used.
  8531. case `$LD -v 2>&1` in
  8532. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8533. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8534. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8535. *)
  8536. lt_use_gnu_ld_interface=yes
  8537. ;;
  8538. esac
  8539. ;;
  8540. *)
  8541. lt_use_gnu_ld_interface=yes
  8542. ;;
  8543. esac
  8544. fi
  8545. if test yes = "$lt_use_gnu_ld_interface"; then
  8546. # If archive_cmds runs LD, not CC, wlarc should be empty
  8547. wlarc='$wl'
  8548. # Set some defaults for GNU ld with shared library support. These
  8549. # are reset later if shared libraries are not supported. Putting them
  8550. # here allows them to be overridden if necessary.
  8551. runpath_var=LD_RUN_PATH
  8552. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8553. export_dynamic_flag_spec='$wl--export-dynamic'
  8554. # ancient GNU ld didn't support --whole-archive et. al.
  8555. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8556. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8557. else
  8558. whole_archive_flag_spec=
  8559. fi
  8560. supports_anon_versioning=no
  8561. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8562. *GNU\ gold*) supports_anon_versioning=yes ;;
  8563. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8564. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8565. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8566. *\ 2.11.*) ;; # other 2.11 versions
  8567. *) supports_anon_versioning=yes ;;
  8568. esac
  8569. # See if GNU ld supports shared libraries.
  8570. case $host_os in
  8571. aix[3-9]*)
  8572. # On AIX/PPC, the GNU linker is very broken
  8573. if test ia64 != "$host_cpu"; then
  8574. ld_shlibs=no
  8575. cat <<_LT_EOF 1>&2
  8576. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8577. *** to be unable to reliably create shared libraries on AIX.
  8578. *** Therefore, libtool is disabling shared libraries support. If you
  8579. *** really care for shared libraries, you may want to install binutils
  8580. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8581. *** You will then need to restart the configuration process.
  8582. _LT_EOF
  8583. fi
  8584. ;;
  8585. amigaos*)
  8586. case $host_cpu in
  8587. powerpc)
  8588. # see comment about AmigaOS4 .so support
  8589. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8590. archive_expsym_cmds=''
  8591. ;;
  8592. m68k)
  8593. 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)'
  8594. hardcode_libdir_flag_spec='-L$libdir'
  8595. hardcode_minus_L=yes
  8596. ;;
  8597. esac
  8598. ;;
  8599. beos*)
  8600. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8601. allow_undefined_flag=unsupported
  8602. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8603. # support --undefined. This deserves some investigation. FIXME
  8604. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8605. else
  8606. ld_shlibs=no
  8607. fi
  8608. ;;
  8609. cygwin* | mingw* | pw32* | cegcc*)
  8610. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8611. # as there is no search path for DLLs.
  8612. hardcode_libdir_flag_spec='-L$libdir'
  8613. export_dynamic_flag_spec='$wl--export-all-symbols'
  8614. allow_undefined_flag=unsupported
  8615. always_export_symbols=no
  8616. enable_shared_with_static_runtimes=yes
  8617. 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'
  8618. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8619. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8620. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8621. # If the export-symbols file already is a .def file, use it as
  8622. # is; otherwise, prepend EXPORTS...
  8623. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8624. cp $export_symbols $output_objdir/$soname.def;
  8625. else
  8626. echo EXPORTS > $output_objdir/$soname.def;
  8627. cat $export_symbols >> $output_objdir/$soname.def;
  8628. fi~
  8629. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8630. else
  8631. ld_shlibs=no
  8632. fi
  8633. ;;
  8634. haiku*)
  8635. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8636. link_all_deplibs=yes
  8637. ;;
  8638. os2*)
  8639. hardcode_libdir_flag_spec='-L$libdir'
  8640. hardcode_minus_L=yes
  8641. allow_undefined_flag=unsupported
  8642. shrext_cmds=.dll
  8643. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8644. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8645. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8646. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8647. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8648. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8649. emximp -o $lib $output_objdir/$libname.def'
  8650. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8651. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8652. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8653. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8654. prefix_cmds="$SED"~
  8655. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8656. prefix_cmds="$prefix_cmds -e 1d";
  8657. fi~
  8658. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8659. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8660. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8661. emximp -o $lib $output_objdir/$libname.def'
  8662. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8663. enable_shared_with_static_runtimes=yes
  8664. file_list_spec='@'
  8665. ;;
  8666. interix[3-9]*)
  8667. hardcode_direct=no
  8668. hardcode_shlibpath_var=no
  8669. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8670. export_dynamic_flag_spec='$wl-E'
  8671. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8672. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8673. # default) and relocated if they conflict, which is a slow very memory
  8674. # consuming and fragmenting process. To avoid this, we pick a random,
  8675. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8676. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8677. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8678. 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'
  8679. ;;
  8680. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8681. tmp_diet=no
  8682. if test linux-dietlibc = "$host_os"; then
  8683. case $cc_basename in
  8684. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8685. esac
  8686. fi
  8687. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8688. && test no = "$tmp_diet"
  8689. then
  8690. tmp_addflag=' $pic_flag'
  8691. tmp_sharedflag='-shared'
  8692. case $cc_basename,$host_cpu in
  8693. pgcc*) # Portland Group C compiler
  8694. 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'
  8695. tmp_addflag=' $pic_flag'
  8696. ;;
  8697. pgf77* | pgf90* | pgf95* | pgfortran*)
  8698. # Portland Group f77 and f90 compilers
  8699. 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'
  8700. tmp_addflag=' $pic_flag -Mnomain' ;;
  8701. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8702. tmp_addflag=' -i_dynamic' ;;
  8703. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8704. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8705. ifc* | ifort*) # Intel Fortran compiler
  8706. tmp_addflag=' -nofor_main' ;;
  8707. lf95*) # Lahey Fortran 8.1
  8708. whole_archive_flag_spec=
  8709. tmp_sharedflag='--shared' ;;
  8710. nagfor*) # NAGFOR 5.3
  8711. tmp_sharedflag='-Wl,-shared' ;;
  8712. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8713. tmp_sharedflag='-qmkshrobj'
  8714. tmp_addflag= ;;
  8715. nvcc*) # Cuda Compiler Driver 2.2
  8716. 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'
  8717. compiler_needs_object=yes
  8718. ;;
  8719. esac
  8720. case `$CC -V 2>&1 | sed 5q` in
  8721. *Sun\ C*) # Sun C 5.9
  8722. 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'
  8723. compiler_needs_object=yes
  8724. tmp_sharedflag='-G' ;;
  8725. *Sun\ F*) # Sun Fortran 8.3
  8726. tmp_sharedflag='-G' ;;
  8727. esac
  8728. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8729. if test yes = "$supports_anon_versioning"; then
  8730. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8731. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8732. echo "local: *; };" >> $output_objdir/$libname.ver~
  8733. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8734. fi
  8735. case $cc_basename in
  8736. tcc*)
  8737. export_dynamic_flag_spec='-rdynamic'
  8738. ;;
  8739. xlf* | bgf* | bgxlf* | mpixlf*)
  8740. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8741. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8743. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8744. if test yes = "$supports_anon_versioning"; then
  8745. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8746. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8747. echo "local: *; };" >> $output_objdir/$libname.ver~
  8748. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8749. fi
  8750. ;;
  8751. esac
  8752. else
  8753. ld_shlibs=no
  8754. fi
  8755. ;;
  8756. netbsd*)
  8757. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8758. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8759. wlarc=
  8760. else
  8761. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8762. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8763. fi
  8764. ;;
  8765. solaris*)
  8766. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8767. ld_shlibs=no
  8768. cat <<_LT_EOF 1>&2
  8769. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8770. *** create shared libraries on Solaris systems. Therefore, libtool
  8771. *** is disabling shared libraries support. We urge you to upgrade GNU
  8772. *** binutils to release 2.9.1 or newer. Another option is to modify
  8773. *** your PATH or compiler configuration so that the native linker is
  8774. *** used, and then restart.
  8775. _LT_EOF
  8776. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8777. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8778. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8779. else
  8780. ld_shlibs=no
  8781. fi
  8782. ;;
  8783. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8784. case `$LD -v 2>&1` in
  8785. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8786. ld_shlibs=no
  8787. cat <<_LT_EOF 1>&2
  8788. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8789. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8790. *** is disabling shared libraries support. We urge you to upgrade GNU
  8791. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8792. *** your PATH or compiler configuration so that the native linker is
  8793. *** used, and then restart.
  8794. _LT_EOF
  8795. ;;
  8796. *)
  8797. # For security reasons, it is highly recommended that you always
  8798. # use absolute paths for naming shared libraries, and exclude the
  8799. # DT_RUNPATH tag from executables and libraries. But doing so
  8800. # requires that you compile everything twice, which is a pain.
  8801. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8802. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8803. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8804. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8805. else
  8806. ld_shlibs=no
  8807. fi
  8808. ;;
  8809. esac
  8810. ;;
  8811. sunos4*)
  8812. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8813. wlarc=
  8814. hardcode_direct=yes
  8815. hardcode_shlibpath_var=no
  8816. ;;
  8817. *)
  8818. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8821. else
  8822. ld_shlibs=no
  8823. fi
  8824. ;;
  8825. esac
  8826. if test no = "$ld_shlibs"; then
  8827. runpath_var=
  8828. hardcode_libdir_flag_spec=
  8829. export_dynamic_flag_spec=
  8830. whole_archive_flag_spec=
  8831. fi
  8832. else
  8833. # PORTME fill in a description of your system's linker (not GNU ld)
  8834. case $host_os in
  8835. aix3*)
  8836. allow_undefined_flag=unsupported
  8837. always_export_symbols=yes
  8838. 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'
  8839. # Note: this linker hardcodes the directories in LIBPATH if there
  8840. # are no directories specified by -L.
  8841. hardcode_minus_L=yes
  8842. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8843. # Neither direct hardcoding nor static linking is supported with a
  8844. # broken collect2.
  8845. hardcode_direct=unsupported
  8846. fi
  8847. ;;
  8848. aix[4-9]*)
  8849. if test ia64 = "$host_cpu"; then
  8850. # On IA64, the linker does run time linking by default, so we don't
  8851. # have to do anything special.
  8852. aix_use_runtimelinking=no
  8853. exp_sym_flag='-Bexport'
  8854. no_entry_flag=
  8855. else
  8856. # If we're using GNU nm, then we don't want the "-C" option.
  8857. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8858. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8859. # weak defined symbols like other global defined symbols, whereas
  8860. # GNU nm marks them as "W".
  8861. # While the 'weak' keyword is ignored in the Export File, we need
  8862. # it in the Import File for the 'aix-soname' feature, so we have
  8863. # to replace the "-B" option with "-P" for AIX nm.
  8864. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8865. 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'
  8866. else
  8867. 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'
  8868. fi
  8869. aix_use_runtimelinking=no
  8870. # Test if we are trying to use run time linking or normal
  8871. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8872. # have runtime linking enabled, and use it for executables.
  8873. # For shared libraries, we enable/disable runtime linking
  8874. # depending on the kind of the shared library created -
  8875. # when "with_aix_soname,aix_use_runtimelinking" is:
  8876. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8877. # "aix,yes" lib.so shared, rtl:yes, for executables
  8878. # lib.a static archive
  8879. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8880. # lib.a(lib.so.V) shared, rtl:no, for executables
  8881. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8882. # lib.a(lib.so.V) shared, rtl:no
  8883. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8884. # lib.a static archive
  8885. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8886. for ld_flag in $LDFLAGS; do
  8887. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8888. aix_use_runtimelinking=yes
  8889. break
  8890. fi
  8891. done
  8892. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8893. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8894. # so we don't have lib.a shared libs to link our executables.
  8895. # We have to force runtime linking in this case.
  8896. aix_use_runtimelinking=yes
  8897. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8898. fi
  8899. ;;
  8900. esac
  8901. exp_sym_flag='-bexport'
  8902. no_entry_flag='-bnoentry'
  8903. fi
  8904. # When large executables or shared objects are built, AIX ld can
  8905. # have problems creating the table of contents. If linking a library
  8906. # or program results in "error TOC overflow" add -mminimal-toc to
  8907. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8908. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8909. archive_cmds=''
  8910. hardcode_direct=yes
  8911. hardcode_direct_absolute=yes
  8912. hardcode_libdir_separator=':'
  8913. link_all_deplibs=yes
  8914. file_list_spec='$wl-f,'
  8915. case $with_aix_soname,$aix_use_runtimelinking in
  8916. aix,*) ;; # traditional, no import file
  8917. svr4,* | *,yes) # use import file
  8918. # The Import File defines what to hardcode.
  8919. hardcode_direct=no
  8920. hardcode_direct_absolute=no
  8921. ;;
  8922. esac
  8923. if test yes = "$GCC"; then
  8924. case $host_os in aix4.[012]|aix4.[012].*)
  8925. # We only want to do this on AIX 4.2 and lower, the check
  8926. # below for broken collect2 doesn't work under 4.3+
  8927. collect2name=`$CC -print-prog-name=collect2`
  8928. if test -f "$collect2name" &&
  8929. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8930. then
  8931. # We have reworked collect2
  8932. :
  8933. else
  8934. # We have old collect2
  8935. hardcode_direct=unsupported
  8936. # It fails to find uninstalled libraries when the uninstalled
  8937. # path is not listed in the libpath. Setting hardcode_minus_L
  8938. # to unsupported forces relinking
  8939. hardcode_minus_L=yes
  8940. hardcode_libdir_flag_spec='-L$libdir'
  8941. hardcode_libdir_separator=
  8942. fi
  8943. ;;
  8944. esac
  8945. shared_flag='-shared'
  8946. if test yes = "$aix_use_runtimelinking"; then
  8947. shared_flag="$shared_flag "'$wl-G'
  8948. fi
  8949. # Need to ensure runtime linking is disabled for the traditional
  8950. # shared library, or the linker may eventually find shared libraries
  8951. # /with/ Import File - we do not want to mix them.
  8952. shared_flag_aix='-shared'
  8953. shared_flag_svr4='-shared $wl-G'
  8954. else
  8955. # not using gcc
  8956. if test ia64 = "$host_cpu"; then
  8957. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8958. # chokes on -Wl,-G. The following line is correct:
  8959. shared_flag='-G'
  8960. else
  8961. if test yes = "$aix_use_runtimelinking"; then
  8962. shared_flag='$wl-G'
  8963. else
  8964. shared_flag='$wl-bM:SRE'
  8965. fi
  8966. shared_flag_aix='$wl-bM:SRE'
  8967. shared_flag_svr4='$wl-G'
  8968. fi
  8969. fi
  8970. export_dynamic_flag_spec='$wl-bexpall'
  8971. # It seems that -bexpall does not export symbols beginning with
  8972. # underscore (_), so it is better to generate a list of symbols to export.
  8973. always_export_symbols=yes
  8974. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8975. # Warning - without using the other runtime loading flags (-brtl),
  8976. # -berok will link without error, but may produce a broken library.
  8977. allow_undefined_flag='-berok'
  8978. # Determine the default libpath from the value encoded in an
  8979. # empty executable.
  8980. if test set = "${lt_cv_aix_libpath+set}"; then
  8981. aix_libpath=$lt_cv_aix_libpath
  8982. else
  8983. if test ${lt_cv_aix_libpath_+y}
  8984. then :
  8985. printf %s "(cached) " >&6
  8986. else $as_nop
  8987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8988. /* end confdefs.h. */
  8989. int
  8990. main (void)
  8991. {
  8992. ;
  8993. return 0;
  8994. }
  8995. _ACEOF
  8996. if ac_fn_c_try_link "$LINENO"
  8997. then :
  8998. lt_aix_libpath_sed='
  8999. /Import File Strings/,/^$/ {
  9000. /^0/ {
  9001. s/^0 *\([^ ]*\) *$/\1/
  9002. p
  9003. }
  9004. }'
  9005. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9006. # Check for a 64-bit object if we didn't find anything.
  9007. if test -z "$lt_cv_aix_libpath_"; then
  9008. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9009. fi
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. if test -z "$lt_cv_aix_libpath_"; then
  9014. lt_cv_aix_libpath_=/usr/lib:/lib
  9015. fi
  9016. fi
  9017. aix_libpath=$lt_cv_aix_libpath_
  9018. fi
  9019. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9020. 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
  9021. else
  9022. if test ia64 = "$host_cpu"; then
  9023. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9024. allow_undefined_flag="-z nodefs"
  9025. 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"
  9026. else
  9027. # Determine the default libpath from the value encoded in an
  9028. # empty executable.
  9029. if test set = "${lt_cv_aix_libpath+set}"; then
  9030. aix_libpath=$lt_cv_aix_libpath
  9031. else
  9032. if test ${lt_cv_aix_libpath_+y}
  9033. then :
  9034. printf %s "(cached) " >&6
  9035. else $as_nop
  9036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9037. /* end confdefs.h. */
  9038. int
  9039. main (void)
  9040. {
  9041. ;
  9042. return 0;
  9043. }
  9044. _ACEOF
  9045. if ac_fn_c_try_link "$LINENO"
  9046. then :
  9047. lt_aix_libpath_sed='
  9048. /Import File Strings/,/^$/ {
  9049. /^0/ {
  9050. s/^0 *\([^ ]*\) *$/\1/
  9051. p
  9052. }
  9053. }'
  9054. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9055. # Check for a 64-bit object if we didn't find anything.
  9056. if test -z "$lt_cv_aix_libpath_"; then
  9057. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9058. fi
  9059. fi
  9060. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9061. conftest$ac_exeext conftest.$ac_ext
  9062. if test -z "$lt_cv_aix_libpath_"; then
  9063. lt_cv_aix_libpath_=/usr/lib:/lib
  9064. fi
  9065. fi
  9066. aix_libpath=$lt_cv_aix_libpath_
  9067. fi
  9068. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9069. # Warning - without using the other run time loading flags,
  9070. # -berok will link without error, but may produce a broken library.
  9071. no_undefined_flag=' $wl-bernotok'
  9072. allow_undefined_flag=' $wl-berok'
  9073. if test yes = "$with_gnu_ld"; then
  9074. # We only use this code for GNU lds that support --whole-archive.
  9075. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9076. else
  9077. # Exported symbols can be pulled into shared objects from archives
  9078. whole_archive_flag_spec='$convenience'
  9079. fi
  9080. archive_cmds_need_lc=yes
  9081. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9082. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9083. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9084. if test svr4 != "$with_aix_soname"; then
  9085. # This is similar to how AIX traditionally builds its shared libraries.
  9086. 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'
  9087. fi
  9088. if test aix != "$with_aix_soname"; then
  9089. 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'
  9090. else
  9091. # used by -dlpreopen to get the symbols
  9092. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9093. fi
  9094. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9095. fi
  9096. fi
  9097. ;;
  9098. amigaos*)
  9099. case $host_cpu in
  9100. powerpc)
  9101. # see comment about AmigaOS4 .so support
  9102. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9103. archive_expsym_cmds=''
  9104. ;;
  9105. m68k)
  9106. 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)'
  9107. hardcode_libdir_flag_spec='-L$libdir'
  9108. hardcode_minus_L=yes
  9109. ;;
  9110. esac
  9111. ;;
  9112. bsdi[45]*)
  9113. export_dynamic_flag_spec=-rdynamic
  9114. ;;
  9115. cygwin* | mingw* | pw32* | cegcc*)
  9116. # When not using gcc, we currently assume that we are using
  9117. # Microsoft Visual C++.
  9118. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9119. # no search path for DLLs.
  9120. case $cc_basename in
  9121. cl*)
  9122. # Native MSVC
  9123. hardcode_libdir_flag_spec=' '
  9124. allow_undefined_flag=unsupported
  9125. always_export_symbols=yes
  9126. file_list_spec='@'
  9127. # Tell ltmain to make .lib files, not .a files.
  9128. libext=lib
  9129. # Tell ltmain to make .dll files, not .so files.
  9130. shrext_cmds=.dll
  9131. # FIXME: Setting linknames here is a bad hack.
  9132. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9133. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9134. cp "$export_symbols" "$output_objdir/$soname.def";
  9135. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9136. else
  9137. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9138. fi~
  9139. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9140. linknames='
  9141. # The linker will not automatically build a static lib if we build a DLL.
  9142. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9143. enable_shared_with_static_runtimes=yes
  9144. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9145. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9146. # Don't use ranlib
  9147. old_postinstall_cmds='chmod 644 $oldlib'
  9148. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9149. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9150. case $lt_outputfile in
  9151. *.exe|*.EXE) ;;
  9152. *)
  9153. lt_outputfile=$lt_outputfile.exe
  9154. lt_tool_outputfile=$lt_tool_outputfile.exe
  9155. ;;
  9156. esac~
  9157. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9158. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9159. $RM "$lt_outputfile.manifest";
  9160. fi'
  9161. ;;
  9162. *)
  9163. # Assume MSVC wrapper
  9164. hardcode_libdir_flag_spec=' '
  9165. allow_undefined_flag=unsupported
  9166. # Tell ltmain to make .lib files, not .a files.
  9167. libext=lib
  9168. # Tell ltmain to make .dll files, not .so files.
  9169. shrext_cmds=.dll
  9170. # FIXME: Setting linknames here is a bad hack.
  9171. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9172. # The linker will automatically build a .lib file if we build a DLL.
  9173. old_archive_from_new_cmds='true'
  9174. # FIXME: Should let the user specify the lib program.
  9175. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9176. enable_shared_with_static_runtimes=yes
  9177. ;;
  9178. esac
  9179. ;;
  9180. darwin* | rhapsody*)
  9181. archive_cmds_need_lc=no
  9182. hardcode_direct=no
  9183. hardcode_automatic=yes
  9184. hardcode_shlibpath_var=unsupported
  9185. if test yes = "$lt_cv_ld_force_load"; then
  9186. 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\"`'
  9187. else
  9188. whole_archive_flag_spec=''
  9189. fi
  9190. link_all_deplibs=yes
  9191. allow_undefined_flag=$_lt_dar_allow_undefined
  9192. case $cc_basename in
  9193. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9194. *) _lt_dar_can_shared=$GCC ;;
  9195. esac
  9196. if test yes = "$_lt_dar_can_shared"; then
  9197. output_verbose_link_cmd=func_echo_all
  9198. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9199. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9200. 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"
  9201. 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"
  9202. else
  9203. ld_shlibs=no
  9204. fi
  9205. ;;
  9206. dgux*)
  9207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9208. hardcode_libdir_flag_spec='-L$libdir'
  9209. hardcode_shlibpath_var=no
  9210. ;;
  9211. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9212. # support. Future versions do this automatically, but an explicit c++rt0.o
  9213. # does not break anything, and helps significantly (at the cost of a little
  9214. # extra space).
  9215. freebsd2.2*)
  9216. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9217. hardcode_libdir_flag_spec='-R$libdir'
  9218. hardcode_direct=yes
  9219. hardcode_shlibpath_var=no
  9220. ;;
  9221. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9222. freebsd2.*)
  9223. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9224. hardcode_direct=yes
  9225. hardcode_minus_L=yes
  9226. hardcode_shlibpath_var=no
  9227. ;;
  9228. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9229. freebsd* | dragonfly* | midnightbsd*)
  9230. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9231. hardcode_libdir_flag_spec='-R$libdir'
  9232. hardcode_direct=yes
  9233. hardcode_shlibpath_var=no
  9234. ;;
  9235. hpux9*)
  9236. if test yes = "$GCC"; then
  9237. 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'
  9238. else
  9239. 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'
  9240. fi
  9241. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9242. hardcode_libdir_separator=:
  9243. hardcode_direct=yes
  9244. # hardcode_minus_L: Not really in the search PATH,
  9245. # but as the default location of the library.
  9246. hardcode_minus_L=yes
  9247. export_dynamic_flag_spec='$wl-E'
  9248. ;;
  9249. hpux10*)
  9250. if test yes,no = "$GCC,$with_gnu_ld"; then
  9251. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9252. else
  9253. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9254. fi
  9255. if test no = "$with_gnu_ld"; then
  9256. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9257. hardcode_libdir_separator=:
  9258. hardcode_direct=yes
  9259. hardcode_direct_absolute=yes
  9260. export_dynamic_flag_spec='$wl-E'
  9261. # hardcode_minus_L: Not really in the search PATH,
  9262. # but as the default location of the library.
  9263. hardcode_minus_L=yes
  9264. fi
  9265. ;;
  9266. hpux11*)
  9267. if test yes,no = "$GCC,$with_gnu_ld"; then
  9268. case $host_cpu in
  9269. hppa*64*)
  9270. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9271. ;;
  9272. ia64*)
  9273. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9274. ;;
  9275. *)
  9276. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9277. ;;
  9278. esac
  9279. else
  9280. case $host_cpu in
  9281. hppa*64*)
  9282. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9283. ;;
  9284. ia64*)
  9285. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9286. ;;
  9287. *)
  9288. # Older versions of the 11.00 compiler do not understand -b yet
  9289. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9291. printf %s "checking if $CC understands -b... " >&6; }
  9292. if test ${lt_cv_prog_compiler__b+y}
  9293. then :
  9294. printf %s "(cached) " >&6
  9295. else $as_nop
  9296. lt_cv_prog_compiler__b=no
  9297. save_LDFLAGS=$LDFLAGS
  9298. LDFLAGS="$LDFLAGS -b"
  9299. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9300. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9301. # The linker can only warn and ignore the option if not recognized
  9302. # So say no if there are warnings
  9303. if test -s conftest.err; then
  9304. # Append any errors to the config.log.
  9305. cat conftest.err 1>&5
  9306. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9308. if diff conftest.exp conftest.er2 >/dev/null; then
  9309. lt_cv_prog_compiler__b=yes
  9310. fi
  9311. else
  9312. lt_cv_prog_compiler__b=yes
  9313. fi
  9314. fi
  9315. $RM -r conftest*
  9316. LDFLAGS=$save_LDFLAGS
  9317. fi
  9318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9319. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9320. if test yes = "$lt_cv_prog_compiler__b"; then
  9321. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9322. else
  9323. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9324. fi
  9325. ;;
  9326. esac
  9327. fi
  9328. if test no = "$with_gnu_ld"; then
  9329. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9330. hardcode_libdir_separator=:
  9331. case $host_cpu in
  9332. hppa*64*|ia64*)
  9333. hardcode_direct=no
  9334. hardcode_shlibpath_var=no
  9335. ;;
  9336. *)
  9337. hardcode_direct=yes
  9338. hardcode_direct_absolute=yes
  9339. export_dynamic_flag_spec='$wl-E'
  9340. # hardcode_minus_L: Not really in the search PATH,
  9341. # but as the default location of the library.
  9342. hardcode_minus_L=yes
  9343. ;;
  9344. esac
  9345. fi
  9346. ;;
  9347. irix5* | irix6* | nonstopux*)
  9348. if test yes = "$GCC"; then
  9349. 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'
  9350. # Try to use the -exported_symbol ld option, if it does not
  9351. # work, assume that -exports_file does not work either and
  9352. # implicitly export all symbols.
  9353. # This should be the same for all languages, so no per-tag cache variable.
  9354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9355. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9356. if test ${lt_cv_irix_exported_symbol+y}
  9357. then :
  9358. printf %s "(cached) " >&6
  9359. else $as_nop
  9360. save_LDFLAGS=$LDFLAGS
  9361. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9363. /* end confdefs.h. */
  9364. int foo (void) { return 0; }
  9365. _ACEOF
  9366. if ac_fn_c_try_link "$LINENO"
  9367. then :
  9368. lt_cv_irix_exported_symbol=yes
  9369. else $as_nop
  9370. lt_cv_irix_exported_symbol=no
  9371. fi
  9372. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9373. conftest$ac_exeext conftest.$ac_ext
  9374. LDFLAGS=$save_LDFLAGS
  9375. fi
  9376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9377. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9378. if test yes = "$lt_cv_irix_exported_symbol"; then
  9379. 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'
  9380. fi
  9381. else
  9382. 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'
  9383. 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'
  9384. fi
  9385. archive_cmds_need_lc='no'
  9386. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9387. hardcode_libdir_separator=:
  9388. inherit_rpath=yes
  9389. link_all_deplibs=yes
  9390. ;;
  9391. linux*)
  9392. case $cc_basename in
  9393. tcc*)
  9394. # Fabrice Bellard et al's Tiny C Compiler
  9395. ld_shlibs=yes
  9396. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9397. ;;
  9398. esac
  9399. ;;
  9400. netbsd*)
  9401. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9402. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9403. else
  9404. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9405. fi
  9406. hardcode_libdir_flag_spec='-R$libdir'
  9407. hardcode_direct=yes
  9408. hardcode_shlibpath_var=no
  9409. ;;
  9410. newsos6)
  9411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9412. hardcode_direct=yes
  9413. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9414. hardcode_libdir_separator=:
  9415. hardcode_shlibpath_var=no
  9416. ;;
  9417. *nto* | *qnx*)
  9418. ;;
  9419. openbsd* | bitrig*)
  9420. if test -f /usr/libexec/ld.so; then
  9421. hardcode_direct=yes
  9422. hardcode_shlibpath_var=no
  9423. hardcode_direct_absolute=yes
  9424. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9425. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9426. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9427. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9428. export_dynamic_flag_spec='$wl-E'
  9429. else
  9430. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9431. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9432. fi
  9433. else
  9434. ld_shlibs=no
  9435. fi
  9436. ;;
  9437. os2*)
  9438. hardcode_libdir_flag_spec='-L$libdir'
  9439. hardcode_minus_L=yes
  9440. allow_undefined_flag=unsupported
  9441. shrext_cmds=.dll
  9442. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9443. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9444. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9445. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9446. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9447. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9448. emximp -o $lib $output_objdir/$libname.def'
  9449. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9450. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9451. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9452. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9453. prefix_cmds="$SED"~
  9454. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9455. prefix_cmds="$prefix_cmds -e 1d";
  9456. fi~
  9457. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9458. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9459. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9460. emximp -o $lib $output_objdir/$libname.def'
  9461. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9462. enable_shared_with_static_runtimes=yes
  9463. file_list_spec='@'
  9464. ;;
  9465. osf3*)
  9466. if test yes = "$GCC"; then
  9467. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9468. 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'
  9469. else
  9470. allow_undefined_flag=' -expect_unresolved \*'
  9471. 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'
  9472. fi
  9473. archive_cmds_need_lc='no'
  9474. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9475. hardcode_libdir_separator=:
  9476. ;;
  9477. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9478. if test yes = "$GCC"; then
  9479. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9480. 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'
  9481. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9482. else
  9483. allow_undefined_flag=' -expect_unresolved \*'
  9484. 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'
  9485. 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~
  9486. $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'
  9487. # Both c and cxx compiler support -rpath directly
  9488. hardcode_libdir_flag_spec='-rpath $libdir'
  9489. fi
  9490. archive_cmds_need_lc='no'
  9491. hardcode_libdir_separator=:
  9492. ;;
  9493. solaris*)
  9494. no_undefined_flag=' -z defs'
  9495. if test yes = "$GCC"; then
  9496. wlarc='$wl'
  9497. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9498. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9499. $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'
  9500. else
  9501. case `$CC -V 2>&1` in
  9502. *"Compilers 5.0"*)
  9503. wlarc=''
  9504. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9505. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9506. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9507. ;;
  9508. *)
  9509. wlarc='$wl'
  9510. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9511. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9512. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9513. ;;
  9514. esac
  9515. fi
  9516. hardcode_libdir_flag_spec='-R$libdir'
  9517. hardcode_shlibpath_var=no
  9518. case $host_os in
  9519. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9520. *)
  9521. # The compiler driver will combine and reorder linker options,
  9522. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9523. # but is careful enough not to reorder.
  9524. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9525. if test yes = "$GCC"; then
  9526. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9527. else
  9528. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9529. fi
  9530. ;;
  9531. esac
  9532. link_all_deplibs=yes
  9533. ;;
  9534. sunos4*)
  9535. if test sequent = "$host_vendor"; then
  9536. # Use $CC to link under sequent, because it throws in some extra .o
  9537. # files that make .init and .fini sections work.
  9538. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9539. else
  9540. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9541. fi
  9542. hardcode_libdir_flag_spec='-L$libdir'
  9543. hardcode_direct=yes
  9544. hardcode_minus_L=yes
  9545. hardcode_shlibpath_var=no
  9546. ;;
  9547. sysv4)
  9548. case $host_vendor in
  9549. sni)
  9550. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9551. hardcode_direct=yes # is this really true???
  9552. ;;
  9553. siemens)
  9554. ## LD is ld it makes a PLAMLIB
  9555. ## CC just makes a GrossModule.
  9556. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9557. reload_cmds='$CC -r -o $output$reload_objs'
  9558. hardcode_direct=no
  9559. ;;
  9560. motorola)
  9561. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9562. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9563. ;;
  9564. esac
  9565. runpath_var='LD_RUN_PATH'
  9566. hardcode_shlibpath_var=no
  9567. ;;
  9568. sysv4.3*)
  9569. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9570. hardcode_shlibpath_var=no
  9571. export_dynamic_flag_spec='-Bexport'
  9572. ;;
  9573. sysv4*MP*)
  9574. if test -d /usr/nec; then
  9575. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9576. hardcode_shlibpath_var=no
  9577. runpath_var=LD_RUN_PATH
  9578. hardcode_runpath_var=yes
  9579. ld_shlibs=yes
  9580. fi
  9581. ;;
  9582. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9583. no_undefined_flag='$wl-z,text'
  9584. archive_cmds_need_lc=no
  9585. hardcode_shlibpath_var=no
  9586. runpath_var='LD_RUN_PATH'
  9587. if test yes = "$GCC"; then
  9588. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9589. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9590. else
  9591. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9593. fi
  9594. ;;
  9595. sysv5* | sco3.2v5* | sco5v6*)
  9596. # Note: We CANNOT use -z defs as we might desire, because we do not
  9597. # link with -lc, and that would cause any symbols used from libc to
  9598. # always be unresolved, which means just about no library would
  9599. # ever link correctly. If we're not using GNU ld we use -z text
  9600. # though, which does catch some bad symbols but isn't as heavy-handed
  9601. # as -z defs.
  9602. no_undefined_flag='$wl-z,text'
  9603. allow_undefined_flag='$wl-z,nodefs'
  9604. archive_cmds_need_lc=no
  9605. hardcode_shlibpath_var=no
  9606. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9607. hardcode_libdir_separator=':'
  9608. link_all_deplibs=yes
  9609. export_dynamic_flag_spec='$wl-Bexport'
  9610. runpath_var='LD_RUN_PATH'
  9611. if test yes = "$GCC"; then
  9612. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9613. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9614. else
  9615. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9616. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9617. fi
  9618. ;;
  9619. uts4*)
  9620. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9621. hardcode_libdir_flag_spec='-L$libdir'
  9622. hardcode_shlibpath_var=no
  9623. ;;
  9624. *)
  9625. ld_shlibs=no
  9626. ;;
  9627. esac
  9628. if test sni = "$host_vendor"; then
  9629. case $host in
  9630. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9631. export_dynamic_flag_spec='$wl-Blargedynsym'
  9632. ;;
  9633. esac
  9634. fi
  9635. fi
  9636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9637. printf "%s\n" "$ld_shlibs" >&6; }
  9638. test no = "$ld_shlibs" && can_build_shared=no
  9639. with_gnu_ld=$with_gnu_ld
  9640. #
  9641. # Do we need to explicitly link libc?
  9642. #
  9643. case "x$archive_cmds_need_lc" in
  9644. x|xyes)
  9645. # Assume -lc should be added
  9646. archive_cmds_need_lc=yes
  9647. if test yes,yes = "$GCC,$enable_shared"; then
  9648. case $archive_cmds in
  9649. *'~'*)
  9650. # FIXME: we may have to deal with multi-command sequences.
  9651. ;;
  9652. '$CC '*)
  9653. # Test whether the compiler implicitly links with -lc since on some
  9654. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9655. # to ld, don't add -lc before -lgcc.
  9656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9657. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9658. if test ${lt_cv_archive_cmds_need_lc+y}
  9659. then :
  9660. printf %s "(cached) " >&6
  9661. else $as_nop
  9662. $RM conftest*
  9663. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9665. (eval $ac_compile) 2>&5
  9666. ac_status=$?
  9667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9668. test $ac_status = 0; } 2>conftest.err; then
  9669. soname=conftest
  9670. lib=conftest
  9671. libobjs=conftest.$ac_objext
  9672. deplibs=
  9673. wl=$lt_prog_compiler_wl
  9674. pic_flag=$lt_prog_compiler_pic
  9675. compiler_flags=-v
  9676. linker_flags=-v
  9677. verstring=
  9678. output_objdir=.
  9679. libname=conftest
  9680. lt_save_allow_undefined_flag=$allow_undefined_flag
  9681. allow_undefined_flag=
  9682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9683. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9684. ac_status=$?
  9685. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9686. test $ac_status = 0; }
  9687. then
  9688. lt_cv_archive_cmds_need_lc=no
  9689. else
  9690. lt_cv_archive_cmds_need_lc=yes
  9691. fi
  9692. allow_undefined_flag=$lt_save_allow_undefined_flag
  9693. else
  9694. cat conftest.err 1>&5
  9695. fi
  9696. $RM conftest*
  9697. fi
  9698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9699. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9700. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9701. ;;
  9702. esac
  9703. fi
  9704. ;;
  9705. esac
  9706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9707. printf %s "checking dynamic linker characteristics... " >&6; }
  9708. if test yes = "$GCC"; then
  9709. case $host_os in
  9710. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9711. *) lt_awk_arg='/^libraries:/' ;;
  9712. esac
  9713. case $host_os in
  9714. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9715. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9716. esac
  9717. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9718. case $lt_search_path_spec in
  9719. *\;*)
  9720. # if the path contains ";" then we assume it to be the separator
  9721. # otherwise default to the standard path separator (i.e. ":") - it is
  9722. # assumed that no part of a normal pathname contains ";" but that should
  9723. # okay in the real world where ";" in dirpaths is itself problematic.
  9724. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9725. ;;
  9726. *)
  9727. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9728. ;;
  9729. esac
  9730. # Ok, now we have the path, separated by spaces, we can step through it
  9731. # and add multilib dir if necessary...
  9732. lt_tmp_lt_search_path_spec=
  9733. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9734. # ...but if some path component already ends with the multilib dir we assume
  9735. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9736. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9737. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9738. lt_multi_os_dir=
  9739. ;;
  9740. esac
  9741. for lt_sys_path in $lt_search_path_spec; do
  9742. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9743. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9744. elif test -n "$lt_multi_os_dir"; then
  9745. test -d "$lt_sys_path" && \
  9746. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9747. fi
  9748. done
  9749. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9750. BEGIN {RS = " "; FS = "/|\n";} {
  9751. lt_foo = "";
  9752. lt_count = 0;
  9753. for (lt_i = NF; lt_i > 0; lt_i--) {
  9754. if ($lt_i != "" && $lt_i != ".") {
  9755. if ($lt_i == "..") {
  9756. lt_count++;
  9757. } else {
  9758. if (lt_count == 0) {
  9759. lt_foo = "/" $lt_i lt_foo;
  9760. } else {
  9761. lt_count--;
  9762. }
  9763. }
  9764. }
  9765. }
  9766. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9767. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9768. }'`
  9769. # AWK program above erroneously prepends '/' to C:/dos/paths
  9770. # for these hosts.
  9771. case $host_os in
  9772. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9773. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9774. esac
  9775. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9776. else
  9777. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9778. fi
  9779. library_names_spec=
  9780. libname_spec='lib$name'
  9781. soname_spec=
  9782. shrext_cmds=.so
  9783. postinstall_cmds=
  9784. postuninstall_cmds=
  9785. finish_cmds=
  9786. finish_eval=
  9787. shlibpath_var=
  9788. shlibpath_overrides_runpath=unknown
  9789. version_type=none
  9790. dynamic_linker="$host_os ld.so"
  9791. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9792. need_lib_prefix=unknown
  9793. hardcode_into_libs=no
  9794. # when you set need_version to no, make sure it does not cause -set_version
  9795. # flags to be left without arguments
  9796. need_version=unknown
  9797. case $host_os in
  9798. aix3*)
  9799. version_type=linux # correct to gnu/linux during the next big refactor
  9800. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9801. shlibpath_var=LIBPATH
  9802. # AIX 3 has no versioning support, so we append a major version to the name.
  9803. soname_spec='$libname$release$shared_ext$major'
  9804. ;;
  9805. aix[4-9]*)
  9806. version_type=linux # correct to gnu/linux during the next big refactor
  9807. need_lib_prefix=no
  9808. need_version=no
  9809. hardcode_into_libs=yes
  9810. if test ia64 = "$host_cpu"; then
  9811. # AIX 5 supports IA64
  9812. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9813. shlibpath_var=LD_LIBRARY_PATH
  9814. else
  9815. # With GCC up to 2.95.x, collect2 would create an import file
  9816. # for dependence libraries. The import file would start with
  9817. # the line '#! .'. This would cause the generated library to
  9818. # depend on '.', always an invalid library. This was fixed in
  9819. # development snapshots of GCC prior to 3.0.
  9820. case $host_os in
  9821. aix4 | aix4.[01] | aix4.[01].*)
  9822. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9823. echo ' yes '
  9824. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9825. :
  9826. else
  9827. can_build_shared=no
  9828. fi
  9829. ;;
  9830. esac
  9831. # Using Import Files as archive members, it is possible to support
  9832. # filename-based versioning of shared library archives on AIX. While
  9833. # this would work for both with and without runtime linking, it will
  9834. # prevent static linking of such archives. So we do filename-based
  9835. # shared library versioning with .so extension only, which is used
  9836. # when both runtime linking and shared linking is enabled.
  9837. # Unfortunately, runtime linking may impact performance, so we do
  9838. # not want this to be the default eventually. Also, we use the
  9839. # versioned .so libs for executables only if there is the -brtl
  9840. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9841. # To allow for filename-based versioning support, we need to create
  9842. # libNAME.so.V as an archive file, containing:
  9843. # *) an Import File, referring to the versioned filename of the
  9844. # archive as well as the shared archive member, telling the
  9845. # bitwidth (32 or 64) of that shared object, and providing the
  9846. # list of exported symbols of that shared object, eventually
  9847. # decorated with the 'weak' keyword
  9848. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9849. # it being seen by the linker.
  9850. # At run time we better use the real file rather than another symlink,
  9851. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9852. case $with_aix_soname,$aix_use_runtimelinking in
  9853. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9854. # soname into executable. Probably we can add versioning support to
  9855. # collect2, so additional links can be useful in future.
  9856. aix,yes) # traditional libtool
  9857. dynamic_linker='AIX unversionable lib.so'
  9858. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9859. # instead of lib<name>.a to let people know that these are not
  9860. # typical AIX shared libraries.
  9861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9862. ;;
  9863. aix,no) # traditional AIX only
  9864. dynamic_linker='AIX lib.a(lib.so.V)'
  9865. # We preserve .a as extension for shared libraries through AIX4.2
  9866. # and later when we are not doing run time linking.
  9867. library_names_spec='$libname$release.a $libname.a'
  9868. soname_spec='$libname$release$shared_ext$major'
  9869. ;;
  9870. svr4,*) # full svr4 only
  9871. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9872. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9873. # We do not specify a path in Import Files, so LIBPATH fires.
  9874. shlibpath_overrides_runpath=yes
  9875. ;;
  9876. *,yes) # both, prefer svr4
  9877. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9878. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9879. # unpreferred sharedlib libNAME.a needs extra handling
  9880. 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"'
  9881. 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"'
  9882. # We do not specify a path in Import Files, so LIBPATH fires.
  9883. shlibpath_overrides_runpath=yes
  9884. ;;
  9885. *,no) # both, prefer aix
  9886. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9887. library_names_spec='$libname$release.a $libname.a'
  9888. soname_spec='$libname$release$shared_ext$major'
  9889. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9890. 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)'
  9891. 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"'
  9892. ;;
  9893. esac
  9894. shlibpath_var=LIBPATH
  9895. fi
  9896. ;;
  9897. amigaos*)
  9898. case $host_cpu in
  9899. powerpc)
  9900. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9901. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9903. ;;
  9904. m68k)
  9905. library_names_spec='$libname.ixlibrary $libname.a'
  9906. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9907. 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'
  9908. ;;
  9909. esac
  9910. ;;
  9911. beos*)
  9912. library_names_spec='$libname$shared_ext'
  9913. dynamic_linker="$host_os ld.so"
  9914. shlibpath_var=LIBRARY_PATH
  9915. ;;
  9916. bsdi[45]*)
  9917. version_type=linux # correct to gnu/linux during the next big refactor
  9918. need_version=no
  9919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9920. soname_spec='$libname$release$shared_ext$major'
  9921. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9922. shlibpath_var=LD_LIBRARY_PATH
  9923. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9924. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9925. # the default ld.so.conf also contains /usr/contrib/lib and
  9926. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9927. # libtool to hard-code these into programs
  9928. ;;
  9929. cygwin* | mingw* | pw32* | cegcc*)
  9930. version_type=windows
  9931. shrext_cmds=.dll
  9932. need_version=no
  9933. need_lib_prefix=no
  9934. case $GCC,$cc_basename in
  9935. yes,*)
  9936. # gcc
  9937. library_names_spec='$libname.dll.a'
  9938. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9939. postinstall_cmds='base_file=`basename \$file`~
  9940. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9941. dldir=$destdir/`dirname \$dlpath`~
  9942. test -d \$dldir || mkdir -p \$dldir~
  9943. $install_prog $dir/$dlname \$dldir/$dlname~
  9944. chmod a+x \$dldir/$dlname~
  9945. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9946. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9947. fi'
  9948. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9949. dlpath=$dir/\$dldll~
  9950. $RM \$dlpath'
  9951. shlibpath_overrides_runpath=yes
  9952. case $host_os in
  9953. cygwin*)
  9954. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9955. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9956. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9957. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9958. ;;
  9959. mingw* | cegcc*)
  9960. # MinGW DLLs use traditional 'lib' prefix
  9961. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9962. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9963. ;;
  9964. pw32*)
  9965. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9966. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9967. ;;
  9968. esac
  9969. dynamic_linker='Win32 ld.exe'
  9970. ;;
  9971. *,cl*)
  9972. # Native MSVC
  9973. libname_spec='$name'
  9974. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9975. library_names_spec='$libname.dll.lib'
  9976. case $build_os in
  9977. mingw*)
  9978. sys_lib_search_path_spec=
  9979. lt_save_ifs=$IFS
  9980. IFS=';'
  9981. for lt_path in $LIB
  9982. do
  9983. IFS=$lt_save_ifs
  9984. # Let DOS variable expansion print the short 8.3 style file name.
  9985. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9986. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9987. done
  9988. IFS=$lt_save_ifs
  9989. # Convert to MSYS style.
  9990. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9991. ;;
  9992. cygwin*)
  9993. # Convert to unix form, then to dos form, then back to unix form
  9994. # but this time dos style (no spaces!) so that the unix form looks
  9995. # like /cygdrive/c/PROGRA~1:/cygdr...
  9996. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9997. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9998. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9999. ;;
  10000. *)
  10001. sys_lib_search_path_spec=$LIB
  10002. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10003. # It is most probably a Windows format PATH.
  10004. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10005. else
  10006. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10007. fi
  10008. # FIXME: find the short name or the path components, as spaces are
  10009. # common. (e.g. "Program Files" -> "PROGRA~1")
  10010. ;;
  10011. esac
  10012. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10013. postinstall_cmds='base_file=`basename \$file`~
  10014. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10015. dldir=$destdir/`dirname \$dlpath`~
  10016. test -d \$dldir || mkdir -p \$dldir~
  10017. $install_prog $dir/$dlname \$dldir/$dlname'
  10018. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10019. dlpath=$dir/\$dldll~
  10020. $RM \$dlpath'
  10021. shlibpath_overrides_runpath=yes
  10022. dynamic_linker='Win32 link.exe'
  10023. ;;
  10024. *)
  10025. # Assume MSVC wrapper
  10026. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10027. dynamic_linker='Win32 ld.exe'
  10028. ;;
  10029. esac
  10030. # FIXME: first we should search . and the directory the executable is in
  10031. shlibpath_var=PATH
  10032. ;;
  10033. darwin* | rhapsody*)
  10034. dynamic_linker="$host_os dyld"
  10035. version_type=darwin
  10036. need_lib_prefix=no
  10037. need_version=no
  10038. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10039. soname_spec='$libname$release$major$shared_ext'
  10040. shlibpath_overrides_runpath=yes
  10041. shlibpath_var=DYLD_LIBRARY_PATH
  10042. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10043. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10044. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10045. ;;
  10046. dgux*)
  10047. version_type=linux # correct to gnu/linux during the next big refactor
  10048. need_lib_prefix=no
  10049. need_version=no
  10050. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10051. soname_spec='$libname$release$shared_ext$major'
  10052. shlibpath_var=LD_LIBRARY_PATH
  10053. ;;
  10054. freebsd* | dragonfly* | midnightbsd*)
  10055. # DragonFly does not have aout. When/if they implement a new
  10056. # versioning mechanism, adjust this.
  10057. if test -x /usr/bin/objformat; then
  10058. objformat=`/usr/bin/objformat`
  10059. else
  10060. case $host_os in
  10061. freebsd[23].*) objformat=aout ;;
  10062. *) objformat=elf ;;
  10063. esac
  10064. fi
  10065. version_type=freebsd-$objformat
  10066. case $version_type in
  10067. freebsd-elf*)
  10068. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10069. soname_spec='$libname$release$shared_ext$major'
  10070. need_version=no
  10071. need_lib_prefix=no
  10072. ;;
  10073. freebsd-*)
  10074. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10075. need_version=yes
  10076. ;;
  10077. esac
  10078. shlibpath_var=LD_LIBRARY_PATH
  10079. case $host_os in
  10080. freebsd2.*)
  10081. shlibpath_overrides_runpath=yes
  10082. ;;
  10083. freebsd3.[01]* | freebsdelf3.[01]*)
  10084. shlibpath_overrides_runpath=yes
  10085. hardcode_into_libs=yes
  10086. ;;
  10087. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10088. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10089. shlibpath_overrides_runpath=no
  10090. hardcode_into_libs=yes
  10091. ;;
  10092. *) # from 4.6 on, and DragonFly
  10093. shlibpath_overrides_runpath=yes
  10094. hardcode_into_libs=yes
  10095. ;;
  10096. esac
  10097. ;;
  10098. haiku*)
  10099. version_type=linux # correct to gnu/linux during the next big refactor
  10100. need_lib_prefix=no
  10101. need_version=no
  10102. dynamic_linker="$host_os runtime_loader"
  10103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10104. soname_spec='$libname$release$shared_ext$major'
  10105. shlibpath_var=LIBRARY_PATH
  10106. shlibpath_overrides_runpath=no
  10107. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10108. hardcode_into_libs=yes
  10109. ;;
  10110. hpux9* | hpux10* | hpux11*)
  10111. # Give a soname corresponding to the major version so that dld.sl refuses to
  10112. # link against other versions.
  10113. version_type=sunos
  10114. need_lib_prefix=no
  10115. need_version=no
  10116. case $host_cpu in
  10117. ia64*)
  10118. shrext_cmds='.so'
  10119. hardcode_into_libs=yes
  10120. dynamic_linker="$host_os dld.so"
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10123. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10124. soname_spec='$libname$release$shared_ext$major'
  10125. if test 32 = "$HPUX_IA64_MODE"; then
  10126. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10127. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10128. else
  10129. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10130. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10131. fi
  10132. ;;
  10133. hppa*64*)
  10134. shrext_cmds='.sl'
  10135. hardcode_into_libs=yes
  10136. dynamic_linker="$host_os dld.sl"
  10137. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10138. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10139. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10140. soname_spec='$libname$release$shared_ext$major'
  10141. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10142. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10143. ;;
  10144. *)
  10145. shrext_cmds='.sl'
  10146. dynamic_linker="$host_os dld.sl"
  10147. shlibpath_var=SHLIB_PATH
  10148. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10149. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10150. soname_spec='$libname$release$shared_ext$major'
  10151. ;;
  10152. esac
  10153. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10154. postinstall_cmds='chmod 555 $lib'
  10155. # or fails outright, so override atomically:
  10156. install_override_mode=555
  10157. ;;
  10158. interix[3-9]*)
  10159. version_type=linux # correct to gnu/linux during the next big refactor
  10160. need_lib_prefix=no
  10161. need_version=no
  10162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10163. soname_spec='$libname$release$shared_ext$major'
  10164. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10165. shlibpath_var=LD_LIBRARY_PATH
  10166. shlibpath_overrides_runpath=no
  10167. hardcode_into_libs=yes
  10168. ;;
  10169. irix5* | irix6* | nonstopux*)
  10170. case $host_os in
  10171. nonstopux*) version_type=nonstopux ;;
  10172. *)
  10173. if test yes = "$lt_cv_prog_gnu_ld"; then
  10174. version_type=linux # correct to gnu/linux during the next big refactor
  10175. else
  10176. version_type=irix
  10177. fi ;;
  10178. esac
  10179. need_lib_prefix=no
  10180. need_version=no
  10181. soname_spec='$libname$release$shared_ext$major'
  10182. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10183. case $host_os in
  10184. irix5* | nonstopux*)
  10185. libsuff= shlibsuff=
  10186. ;;
  10187. *)
  10188. case $LD in # libtool.m4 will add one of these switches to LD
  10189. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10190. libsuff= shlibsuff= libmagic=32-bit;;
  10191. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10192. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10193. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10194. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10195. *) libsuff= shlibsuff= libmagic=never-match;;
  10196. esac
  10197. ;;
  10198. esac
  10199. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10200. shlibpath_overrides_runpath=no
  10201. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10202. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10203. hardcode_into_libs=yes
  10204. ;;
  10205. # No shared lib support for Linux oldld, aout, or coff.
  10206. linux*oldld* | linux*aout* | linux*coff*)
  10207. dynamic_linker=no
  10208. ;;
  10209. linux*android*)
  10210. version_type=none # Android doesn't support versioned libraries.
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. library_names_spec='$libname$release$shared_ext'
  10214. soname_spec='$libname$release$shared_ext'
  10215. finish_cmds=
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. shlibpath_overrides_runpath=yes
  10218. # This implies no fast_install, which is unacceptable.
  10219. # Some rework will be needed to allow for fast_install
  10220. # before this can be enabled.
  10221. hardcode_into_libs=yes
  10222. dynamic_linker='Android linker'
  10223. # Don't embed -rpath directories since the linker doesn't support them.
  10224. hardcode_libdir_flag_spec='-L$libdir'
  10225. ;;
  10226. # This must be glibc/ELF.
  10227. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10228. version_type=linux # correct to gnu/linux during the next big refactor
  10229. need_lib_prefix=no
  10230. need_version=no
  10231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10232. soname_spec='$libname$release$shared_ext$major'
  10233. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10234. shlibpath_var=LD_LIBRARY_PATH
  10235. shlibpath_overrides_runpath=no
  10236. # Some binutils ld are patched to set DT_RUNPATH
  10237. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10238. then :
  10239. printf %s "(cached) " >&6
  10240. else $as_nop
  10241. lt_cv_shlibpath_overrides_runpath=no
  10242. save_LDFLAGS=$LDFLAGS
  10243. save_libdir=$libdir
  10244. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10245. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10247. /* end confdefs.h. */
  10248. int
  10249. main (void)
  10250. {
  10251. ;
  10252. return 0;
  10253. }
  10254. _ACEOF
  10255. if ac_fn_c_try_link "$LINENO"
  10256. then :
  10257. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10258. then :
  10259. lt_cv_shlibpath_overrides_runpath=yes
  10260. fi
  10261. fi
  10262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10263. conftest$ac_exeext conftest.$ac_ext
  10264. LDFLAGS=$save_LDFLAGS
  10265. libdir=$save_libdir
  10266. fi
  10267. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10268. # This implies no fast_install, which is unacceptable.
  10269. # Some rework will be needed to allow for fast_install
  10270. # before this can be enabled.
  10271. hardcode_into_libs=yes
  10272. # Add ABI-specific directories to the system library path.
  10273. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10274. # Ideally, we could use ldconfig to report *all* directores which are
  10275. # searched for libraries, however this is still not possible. Aside from not
  10276. # being certain /sbin/ldconfig is available, command
  10277. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10278. # even though it is searched at run-time. Try to do the best guess by
  10279. # appending ld.so.conf contents (and includes) to the search path.
  10280. if test -f /etc/ld.so.conf; then
  10281. 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' ' '`
  10282. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10283. fi
  10284. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10285. # powerpc, because MkLinux only supported shared libraries with the
  10286. # GNU dynamic linker. Since this was broken with cross compilers,
  10287. # most powerpc-linux boxes support dynamic linking these days and
  10288. # people can always --disable-shared, the test was removed, and we
  10289. # assume the GNU/Linux dynamic linker is in use.
  10290. dynamic_linker='GNU/Linux ld.so'
  10291. ;;
  10292. netbsd*)
  10293. version_type=sunos
  10294. need_lib_prefix=no
  10295. need_version=no
  10296. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10297. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10298. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10299. dynamic_linker='NetBSD (a.out) ld.so'
  10300. else
  10301. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10302. soname_spec='$libname$release$shared_ext$major'
  10303. dynamic_linker='NetBSD ld.elf_so'
  10304. fi
  10305. shlibpath_var=LD_LIBRARY_PATH
  10306. shlibpath_overrides_runpath=yes
  10307. hardcode_into_libs=yes
  10308. ;;
  10309. newsos6)
  10310. version_type=linux # correct to gnu/linux during the next big refactor
  10311. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10312. shlibpath_var=LD_LIBRARY_PATH
  10313. shlibpath_overrides_runpath=yes
  10314. ;;
  10315. *nto* | *qnx*)
  10316. version_type=qnx
  10317. need_lib_prefix=no
  10318. need_version=no
  10319. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10320. soname_spec='$libname$release$shared_ext$major'
  10321. shlibpath_var=LD_LIBRARY_PATH
  10322. shlibpath_overrides_runpath=no
  10323. hardcode_into_libs=yes
  10324. dynamic_linker='ldqnx.so'
  10325. ;;
  10326. openbsd* | bitrig*)
  10327. version_type=sunos
  10328. sys_lib_dlsearch_path_spec=/usr/lib
  10329. need_lib_prefix=no
  10330. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10331. need_version=no
  10332. else
  10333. need_version=yes
  10334. fi
  10335. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10336. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10337. shlibpath_var=LD_LIBRARY_PATH
  10338. shlibpath_overrides_runpath=yes
  10339. ;;
  10340. os2*)
  10341. libname_spec='$name'
  10342. shrext_cmds=.dll
  10343. need_lib_prefix=no
  10344. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10345. # SDL customization: removed versioning support.
  10346. # version_type=windows
  10347. # need_version=no
  10348. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10349. # v=$($ECHO $release$versuffix | tr -d .-);
  10350. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10351. # $ECHO $n$v`$shared_ext'
  10352. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10353. library_names_spec='${libname}_dll.$libext'
  10354. dynamic_linker='OS/2 ld.exe'
  10355. shlibpath_var=BEGINLIBPATH
  10356. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10357. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10358. postinstall_cmds='base_file=`basename \$file`~
  10359. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10360. dldir=$destdir/`dirname \$dlpath`~
  10361. test -d \$dldir || mkdir -p \$dldir~
  10362. $install_prog $dir/$dlname \$dldir/$dlname~
  10363. chmod a+x \$dldir/$dlname~
  10364. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10365. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10366. fi'
  10367. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10368. dlpath=$dir/\$dldll~
  10369. $RM \$dlpath'
  10370. ;;
  10371. osf3* | osf4* | osf5*)
  10372. version_type=osf
  10373. need_lib_prefix=no
  10374. need_version=no
  10375. soname_spec='$libname$release$shared_ext$major'
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10377. shlibpath_var=LD_LIBRARY_PATH
  10378. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10379. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10380. ;;
  10381. rdos*)
  10382. dynamic_linker=no
  10383. ;;
  10384. solaris*)
  10385. version_type=linux # correct to gnu/linux during the next big refactor
  10386. need_lib_prefix=no
  10387. need_version=no
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10389. soname_spec='$libname$release$shared_ext$major'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. shlibpath_overrides_runpath=yes
  10392. hardcode_into_libs=yes
  10393. # ldd complains unless libraries are executable
  10394. postinstall_cmds='chmod +x $lib'
  10395. ;;
  10396. sunos4*)
  10397. version_type=sunos
  10398. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10399. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10400. shlibpath_var=LD_LIBRARY_PATH
  10401. shlibpath_overrides_runpath=yes
  10402. if test yes = "$with_gnu_ld"; then
  10403. need_lib_prefix=no
  10404. fi
  10405. need_version=yes
  10406. ;;
  10407. sysv4 | sysv4.3*)
  10408. version_type=linux # correct to gnu/linux during the next big refactor
  10409. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10410. soname_spec='$libname$release$shared_ext$major'
  10411. shlibpath_var=LD_LIBRARY_PATH
  10412. case $host_vendor in
  10413. sni)
  10414. shlibpath_overrides_runpath=no
  10415. need_lib_prefix=no
  10416. runpath_var=LD_RUN_PATH
  10417. ;;
  10418. siemens)
  10419. need_lib_prefix=no
  10420. ;;
  10421. motorola)
  10422. need_lib_prefix=no
  10423. need_version=no
  10424. shlibpath_overrides_runpath=no
  10425. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10426. ;;
  10427. esac
  10428. ;;
  10429. sysv4*MP*)
  10430. if test -d /usr/nec; then
  10431. version_type=linux # correct to gnu/linux during the next big refactor
  10432. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10433. soname_spec='$libname$shared_ext.$major'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. fi
  10436. ;;
  10437. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10438. version_type=sco
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10442. soname_spec='$libname$release$shared_ext$major'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=yes
  10445. hardcode_into_libs=yes
  10446. if test yes = "$with_gnu_ld"; then
  10447. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10448. else
  10449. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10450. case $host_os in
  10451. sco3.2v5*)
  10452. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10453. ;;
  10454. esac
  10455. fi
  10456. sys_lib_dlsearch_path_spec='/usr/lib'
  10457. ;;
  10458. tpf*)
  10459. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10460. version_type=linux # correct to gnu/linux during the next big refactor
  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. shlibpath_var=LD_LIBRARY_PATH
  10465. shlibpath_overrides_runpath=no
  10466. hardcode_into_libs=yes
  10467. ;;
  10468. uts4*)
  10469. version_type=linux # correct to gnu/linux during the next big refactor
  10470. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10471. soname_spec='$libname$release$shared_ext$major'
  10472. shlibpath_var=LD_LIBRARY_PATH
  10473. ;;
  10474. *)
  10475. dynamic_linker=no
  10476. ;;
  10477. esac
  10478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10479. printf "%s\n" "$dynamic_linker" >&6; }
  10480. test no = "$dynamic_linker" && can_build_shared=no
  10481. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10482. if test yes = "$GCC"; then
  10483. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10484. fi
  10485. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10486. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10487. fi
  10488. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10489. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10490. fi
  10491. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10492. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10493. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10494. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10495. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10496. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10498. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10499. hardcode_action=
  10500. if test -n "$hardcode_libdir_flag_spec" ||
  10501. test -n "$runpath_var" ||
  10502. test yes = "$hardcode_automatic"; then
  10503. # We can hardcode non-existent directories.
  10504. if test no != "$hardcode_direct" &&
  10505. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10506. # have to relink, otherwise we might link with an installed library
  10507. # when we should be linking with a yet-to-be-installed one
  10508. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10509. test no != "$hardcode_minus_L"; then
  10510. # Linking always hardcodes the temporary library directory.
  10511. hardcode_action=relink
  10512. else
  10513. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10514. hardcode_action=immediate
  10515. fi
  10516. else
  10517. # We cannot hardcode anything, or else we can only hardcode existing
  10518. # directories.
  10519. hardcode_action=unsupported
  10520. fi
  10521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10522. printf "%s\n" "$hardcode_action" >&6; }
  10523. if test relink = "$hardcode_action" ||
  10524. test yes = "$inherit_rpath"; then
  10525. # Fast installation is not supported
  10526. enable_fast_install=no
  10527. elif test yes = "$shlibpath_overrides_runpath" ||
  10528. test no = "$enable_shared"; then
  10529. # Fast installation is not necessary
  10530. enable_fast_install=needless
  10531. fi
  10532. if test yes != "$enable_dlopen"; then
  10533. enable_dlopen=unknown
  10534. enable_dlopen_self=unknown
  10535. enable_dlopen_self_static=unknown
  10536. else
  10537. lt_cv_dlopen=no
  10538. lt_cv_dlopen_libs=
  10539. case $host_os in
  10540. beos*)
  10541. lt_cv_dlopen=load_add_on
  10542. lt_cv_dlopen_libs=
  10543. lt_cv_dlopen_self=yes
  10544. ;;
  10545. mingw* | pw32* | cegcc*)
  10546. lt_cv_dlopen=LoadLibrary
  10547. lt_cv_dlopen_libs=
  10548. ;;
  10549. cygwin*)
  10550. lt_cv_dlopen=dlopen
  10551. lt_cv_dlopen_libs=
  10552. ;;
  10553. darwin*)
  10554. # if libdl is installed we need to link against it
  10555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10556. printf %s "checking for dlopen in -ldl... " >&6; }
  10557. if test ${ac_cv_lib_dl_dlopen+y}
  10558. then :
  10559. printf %s "(cached) " >&6
  10560. else $as_nop
  10561. ac_check_lib_save_LIBS=$LIBS
  10562. LIBS="-ldl $LIBS"
  10563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10564. /* end confdefs.h. */
  10565. /* Override any GCC internal prototype to avoid an error.
  10566. Use char because int might match the return type of a GCC
  10567. builtin and then its argument prototype would still apply. */
  10568. char dlopen ();
  10569. int
  10570. main (void)
  10571. {
  10572. return dlopen ();
  10573. ;
  10574. return 0;
  10575. }
  10576. _ACEOF
  10577. if ac_fn_c_try_link "$LINENO"
  10578. then :
  10579. ac_cv_lib_dl_dlopen=yes
  10580. else $as_nop
  10581. ac_cv_lib_dl_dlopen=no
  10582. fi
  10583. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10584. conftest$ac_exeext conftest.$ac_ext
  10585. LIBS=$ac_check_lib_save_LIBS
  10586. fi
  10587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10588. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10589. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10590. then :
  10591. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10592. else $as_nop
  10593. lt_cv_dlopen=dyld
  10594. lt_cv_dlopen_libs=
  10595. lt_cv_dlopen_self=yes
  10596. fi
  10597. ;;
  10598. tpf*)
  10599. # Don't try to run any link tests for TPF. We know it's impossible
  10600. # because TPF is a cross-compiler, and we know how we open DSOs.
  10601. lt_cv_dlopen=dlopen
  10602. lt_cv_dlopen_libs=
  10603. lt_cv_dlopen_self=no
  10604. ;;
  10605. *)
  10606. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10607. if test "x$ac_cv_func_shl_load" = xyes
  10608. then :
  10609. lt_cv_dlopen=shl_load
  10610. else $as_nop
  10611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10612. printf %s "checking for shl_load in -ldld... " >&6; }
  10613. if test ${ac_cv_lib_dld_shl_load+y}
  10614. then :
  10615. printf %s "(cached) " >&6
  10616. else $as_nop
  10617. ac_check_lib_save_LIBS=$LIBS
  10618. LIBS="-ldld $LIBS"
  10619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10620. /* end confdefs.h. */
  10621. /* Override any GCC internal prototype to avoid an error.
  10622. Use char because int might match the return type of a GCC
  10623. builtin and then its argument prototype would still apply. */
  10624. char shl_load ();
  10625. int
  10626. main (void)
  10627. {
  10628. return shl_load ();
  10629. ;
  10630. return 0;
  10631. }
  10632. _ACEOF
  10633. if ac_fn_c_try_link "$LINENO"
  10634. then :
  10635. ac_cv_lib_dld_shl_load=yes
  10636. else $as_nop
  10637. ac_cv_lib_dld_shl_load=no
  10638. fi
  10639. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10640. conftest$ac_exeext conftest.$ac_ext
  10641. LIBS=$ac_check_lib_save_LIBS
  10642. fi
  10643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10644. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10645. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10646. then :
  10647. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10648. else $as_nop
  10649. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10650. if test "x$ac_cv_func_dlopen" = xyes
  10651. then :
  10652. lt_cv_dlopen=dlopen
  10653. else $as_nop
  10654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10655. printf %s "checking for dlopen in -ldl... " >&6; }
  10656. if test ${ac_cv_lib_dl_dlopen+y}
  10657. then :
  10658. printf %s "(cached) " >&6
  10659. else $as_nop
  10660. ac_check_lib_save_LIBS=$LIBS
  10661. LIBS="-ldl $LIBS"
  10662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10663. /* end confdefs.h. */
  10664. /* Override any GCC internal prototype to avoid an error.
  10665. Use char because int might match the return type of a GCC
  10666. builtin and then its argument prototype would still apply. */
  10667. char dlopen ();
  10668. int
  10669. main (void)
  10670. {
  10671. return dlopen ();
  10672. ;
  10673. return 0;
  10674. }
  10675. _ACEOF
  10676. if ac_fn_c_try_link "$LINENO"
  10677. then :
  10678. ac_cv_lib_dl_dlopen=yes
  10679. else $as_nop
  10680. ac_cv_lib_dl_dlopen=no
  10681. fi
  10682. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10683. conftest$ac_exeext conftest.$ac_ext
  10684. LIBS=$ac_check_lib_save_LIBS
  10685. fi
  10686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10687. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10688. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10689. then :
  10690. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10691. else $as_nop
  10692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10693. printf %s "checking for dlopen in -lsvld... " >&6; }
  10694. if test ${ac_cv_lib_svld_dlopen+y}
  10695. then :
  10696. printf %s "(cached) " >&6
  10697. else $as_nop
  10698. ac_check_lib_save_LIBS=$LIBS
  10699. LIBS="-lsvld $LIBS"
  10700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10701. /* end confdefs.h. */
  10702. /* Override any GCC internal prototype to avoid an error.
  10703. Use char because int might match the return type of a GCC
  10704. builtin and then its argument prototype would still apply. */
  10705. char dlopen ();
  10706. int
  10707. main (void)
  10708. {
  10709. return dlopen ();
  10710. ;
  10711. return 0;
  10712. }
  10713. _ACEOF
  10714. if ac_fn_c_try_link "$LINENO"
  10715. then :
  10716. ac_cv_lib_svld_dlopen=yes
  10717. else $as_nop
  10718. ac_cv_lib_svld_dlopen=no
  10719. fi
  10720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. LIBS=$ac_check_lib_save_LIBS
  10723. fi
  10724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10725. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10726. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10727. then :
  10728. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10729. else $as_nop
  10730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10731. printf %s "checking for dld_link in -ldld... " >&6; }
  10732. if test ${ac_cv_lib_dld_dld_link+y}
  10733. then :
  10734. printf %s "(cached) " >&6
  10735. else $as_nop
  10736. ac_check_lib_save_LIBS=$LIBS
  10737. LIBS="-ldld $LIBS"
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. /* Override any GCC internal prototype to avoid an error.
  10741. Use char because int might match the return type of a GCC
  10742. builtin and then its argument prototype would still apply. */
  10743. char dld_link ();
  10744. int
  10745. main (void)
  10746. {
  10747. return dld_link ();
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. if ac_fn_c_try_link "$LINENO"
  10753. then :
  10754. ac_cv_lib_dld_dld_link=yes
  10755. else $as_nop
  10756. ac_cv_lib_dld_dld_link=no
  10757. fi
  10758. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10759. conftest$ac_exeext conftest.$ac_ext
  10760. LIBS=$ac_check_lib_save_LIBS
  10761. fi
  10762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10763. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10764. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10765. then :
  10766. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10767. fi
  10768. fi
  10769. fi
  10770. fi
  10771. fi
  10772. fi
  10773. ;;
  10774. esac
  10775. if test no = "$lt_cv_dlopen"; then
  10776. enable_dlopen=no
  10777. else
  10778. enable_dlopen=yes
  10779. fi
  10780. case $lt_cv_dlopen in
  10781. dlopen)
  10782. save_CPPFLAGS=$CPPFLAGS
  10783. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10784. save_LDFLAGS=$LDFLAGS
  10785. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10786. save_LIBS=$LIBS
  10787. LIBS="$lt_cv_dlopen_libs $LIBS"
  10788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10789. printf %s "checking whether a program can dlopen itself... " >&6; }
  10790. if test ${lt_cv_dlopen_self+y}
  10791. then :
  10792. printf %s "(cached) " >&6
  10793. else $as_nop
  10794. if test yes = "$cross_compiling"; then :
  10795. lt_cv_dlopen_self=cross
  10796. else
  10797. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10798. lt_status=$lt_dlunknown
  10799. cat > conftest.$ac_ext <<_LT_EOF
  10800. #line $LINENO "configure"
  10801. #include "confdefs.h"
  10802. #if HAVE_DLFCN_H
  10803. #include <dlfcn.h>
  10804. #endif
  10805. #include <stdio.h>
  10806. #ifdef RTLD_GLOBAL
  10807. # define LT_DLGLOBAL RTLD_GLOBAL
  10808. #else
  10809. # ifdef DL_GLOBAL
  10810. # define LT_DLGLOBAL DL_GLOBAL
  10811. # else
  10812. # define LT_DLGLOBAL 0
  10813. # endif
  10814. #endif
  10815. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10816. find out it does not work in some platform. */
  10817. #ifndef LT_DLLAZY_OR_NOW
  10818. # ifdef RTLD_LAZY
  10819. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10820. # else
  10821. # ifdef DL_LAZY
  10822. # define LT_DLLAZY_OR_NOW DL_LAZY
  10823. # else
  10824. # ifdef RTLD_NOW
  10825. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10826. # else
  10827. # ifdef DL_NOW
  10828. # define LT_DLLAZY_OR_NOW DL_NOW
  10829. # else
  10830. # define LT_DLLAZY_OR_NOW 0
  10831. # endif
  10832. # endif
  10833. # endif
  10834. # endif
  10835. #endif
  10836. /* When -fvisibility=hidden is used, assume the code has been annotated
  10837. correspondingly for the symbols needed. */
  10838. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10839. int fnord () __attribute__((visibility("default")));
  10840. #endif
  10841. int fnord () { return 42; }
  10842. int main ()
  10843. {
  10844. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10845. int status = $lt_dlunknown;
  10846. if (self)
  10847. {
  10848. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10849. else
  10850. {
  10851. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10852. else puts (dlerror ());
  10853. }
  10854. /* dlclose (self); */
  10855. }
  10856. else
  10857. puts (dlerror ());
  10858. return status;
  10859. }
  10860. _LT_EOF
  10861. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10862. (eval $ac_link) 2>&5
  10863. ac_status=$?
  10864. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10865. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10866. (./conftest; exit; ) >&5 2>/dev/null
  10867. lt_status=$?
  10868. case x$lt_status in
  10869. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10870. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10871. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10872. esac
  10873. else :
  10874. # compilation failed
  10875. lt_cv_dlopen_self=no
  10876. fi
  10877. fi
  10878. rm -fr conftest*
  10879. fi
  10880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10881. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10882. if test yes = "$lt_cv_dlopen_self"; then
  10883. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10885. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10886. if test ${lt_cv_dlopen_self_static+y}
  10887. then :
  10888. printf %s "(cached) " >&6
  10889. else $as_nop
  10890. if test yes = "$cross_compiling"; then :
  10891. lt_cv_dlopen_self_static=cross
  10892. else
  10893. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10894. lt_status=$lt_dlunknown
  10895. cat > conftest.$ac_ext <<_LT_EOF
  10896. #line $LINENO "configure"
  10897. #include "confdefs.h"
  10898. #if HAVE_DLFCN_H
  10899. #include <dlfcn.h>
  10900. #endif
  10901. #include <stdio.h>
  10902. #ifdef RTLD_GLOBAL
  10903. # define LT_DLGLOBAL RTLD_GLOBAL
  10904. #else
  10905. # ifdef DL_GLOBAL
  10906. # define LT_DLGLOBAL DL_GLOBAL
  10907. # else
  10908. # define LT_DLGLOBAL 0
  10909. # endif
  10910. #endif
  10911. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10912. find out it does not work in some platform. */
  10913. #ifndef LT_DLLAZY_OR_NOW
  10914. # ifdef RTLD_LAZY
  10915. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10916. # else
  10917. # ifdef DL_LAZY
  10918. # define LT_DLLAZY_OR_NOW DL_LAZY
  10919. # else
  10920. # ifdef RTLD_NOW
  10921. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10922. # else
  10923. # ifdef DL_NOW
  10924. # define LT_DLLAZY_OR_NOW DL_NOW
  10925. # else
  10926. # define LT_DLLAZY_OR_NOW 0
  10927. # endif
  10928. # endif
  10929. # endif
  10930. # endif
  10931. #endif
  10932. /* When -fvisibility=hidden is used, assume the code has been annotated
  10933. correspondingly for the symbols needed. */
  10934. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10935. int fnord () __attribute__((visibility("default")));
  10936. #endif
  10937. int fnord () { return 42; }
  10938. int main ()
  10939. {
  10940. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10941. int status = $lt_dlunknown;
  10942. if (self)
  10943. {
  10944. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10945. else
  10946. {
  10947. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10948. else puts (dlerror ());
  10949. }
  10950. /* dlclose (self); */
  10951. }
  10952. else
  10953. puts (dlerror ());
  10954. return status;
  10955. }
  10956. _LT_EOF
  10957. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10958. (eval $ac_link) 2>&5
  10959. ac_status=$?
  10960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10961. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10962. (./conftest; exit; ) >&5 2>/dev/null
  10963. lt_status=$?
  10964. case x$lt_status in
  10965. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10966. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10967. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10968. esac
  10969. else :
  10970. # compilation failed
  10971. lt_cv_dlopen_self_static=no
  10972. fi
  10973. fi
  10974. rm -fr conftest*
  10975. fi
  10976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10977. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10978. fi
  10979. CPPFLAGS=$save_CPPFLAGS
  10980. LDFLAGS=$save_LDFLAGS
  10981. LIBS=$save_LIBS
  10982. ;;
  10983. esac
  10984. case $lt_cv_dlopen_self in
  10985. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10986. *) enable_dlopen_self=unknown ;;
  10987. esac
  10988. case $lt_cv_dlopen_self_static in
  10989. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10990. *) enable_dlopen_self_static=unknown ;;
  10991. esac
  10992. fi
  10993. striplib=
  10994. old_striplib=
  10995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10996. printf %s "checking whether stripping libraries is possible... " >&6; }
  10997. if test -z "$STRIP"; then
  10998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10999. printf "%s\n" "no" >&6; }
  11000. else
  11001. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11002. old_striplib="$STRIP --strip-debug"
  11003. striplib="$STRIP --strip-unneeded"
  11004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11005. printf "%s\n" "yes" >&6; }
  11006. else
  11007. case $host_os in
  11008. darwin*)
  11009. # FIXME - insert some real tests, host_os isn't really good enough
  11010. striplib="$STRIP -x"
  11011. old_striplib="$STRIP -S"
  11012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11013. printf "%s\n" "yes" >&6; }
  11014. ;;
  11015. freebsd*)
  11016. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11017. old_striplib="$STRIP --strip-debug"
  11018. striplib="$STRIP --strip-unneeded"
  11019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11020. printf "%s\n" "yes" >&6; }
  11021. else
  11022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11023. printf "%s\n" "no" >&6; }
  11024. fi
  11025. ;;
  11026. *)
  11027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11028. printf "%s\n" "no" >&6; }
  11029. ;;
  11030. esac
  11031. fi
  11032. fi
  11033. # Report what library types will actually be built
  11034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11035. printf %s "checking if libtool supports shared libraries... " >&6; }
  11036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11037. printf "%s\n" "$can_build_shared" >&6; }
  11038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11039. printf %s "checking whether to build shared libraries... " >&6; }
  11040. test no = "$can_build_shared" && enable_shared=no
  11041. # On AIX, shared libraries and static libraries use the same namespace, and
  11042. # are all built from PIC.
  11043. case $host_os in
  11044. aix3*)
  11045. test yes = "$enable_shared" && enable_static=no
  11046. if test -n "$RANLIB"; then
  11047. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11048. postinstall_cmds='$RANLIB $lib'
  11049. fi
  11050. ;;
  11051. aix[4-9]*)
  11052. if test ia64 != "$host_cpu"; then
  11053. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11054. yes,aix,yes) ;; # shared object as lib.so file only
  11055. yes,svr4,*) ;; # shared object as lib.so archive member only
  11056. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11057. esac
  11058. fi
  11059. ;;
  11060. esac
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11062. printf "%s\n" "$enable_shared" >&6; }
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11064. printf %s "checking whether to build static libraries... " >&6; }
  11065. # Make sure either enable_shared or enable_static is yes.
  11066. test yes = "$enable_shared" || enable_static=yes
  11067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11068. printf "%s\n" "$enable_static" >&6; }
  11069. fi
  11070. ac_ext=c
  11071. ac_cpp='$CPP $CPPFLAGS'
  11072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11075. CC=$lt_save_CC
  11076. ac_config_commands="$ac_config_commands libtool"
  11077. # Only expand once:
  11078. if test -n "$ac_tool_prefix"; then
  11079. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11080. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11082. printf %s "checking for $ac_word... " >&6; }
  11083. if test ${ac_cv_prog_RC+y}
  11084. then :
  11085. printf %s "(cached) " >&6
  11086. else $as_nop
  11087. if test -n "$RC"; then
  11088. ac_cv_prog_RC="$RC" # Let the user override the test.
  11089. else
  11090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11091. for as_dir in $PATH
  11092. do
  11093. IFS=$as_save_IFS
  11094. case $as_dir in #(((
  11095. '') as_dir=./ ;;
  11096. */) ;;
  11097. *) as_dir=$as_dir/ ;;
  11098. esac
  11099. for ac_exec_ext in '' $ac_executable_extensions; do
  11100. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11101. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11103. break 2
  11104. fi
  11105. done
  11106. done
  11107. IFS=$as_save_IFS
  11108. fi
  11109. fi
  11110. RC=$ac_cv_prog_RC
  11111. if test -n "$RC"; then
  11112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11113. printf "%s\n" "$RC" >&6; }
  11114. else
  11115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11116. printf "%s\n" "no" >&6; }
  11117. fi
  11118. fi
  11119. if test -z "$ac_cv_prog_RC"; then
  11120. ac_ct_RC=$RC
  11121. # Extract the first word of "windres", so it can be a program name with args.
  11122. set dummy windres; ac_word=$2
  11123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11124. printf %s "checking for $ac_word... " >&6; }
  11125. if test ${ac_cv_prog_ac_ct_RC+y}
  11126. then :
  11127. printf %s "(cached) " >&6
  11128. else $as_nop
  11129. if test -n "$ac_ct_RC"; then
  11130. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11131. else
  11132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11133. for as_dir in $PATH
  11134. do
  11135. IFS=$as_save_IFS
  11136. case $as_dir in #(((
  11137. '') as_dir=./ ;;
  11138. */) ;;
  11139. *) as_dir=$as_dir/ ;;
  11140. esac
  11141. for ac_exec_ext in '' $ac_executable_extensions; do
  11142. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11143. ac_cv_prog_ac_ct_RC="windres"
  11144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11145. break 2
  11146. fi
  11147. done
  11148. done
  11149. IFS=$as_save_IFS
  11150. fi
  11151. fi
  11152. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11153. if test -n "$ac_ct_RC"; then
  11154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11155. printf "%s\n" "$ac_ct_RC" >&6; }
  11156. else
  11157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11158. printf "%s\n" "no" >&6; }
  11159. fi
  11160. if test "x$ac_ct_RC" = x; then
  11161. RC=""
  11162. else
  11163. case $cross_compiling:$ac_tool_warned in
  11164. yes:)
  11165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11166. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11167. ac_tool_warned=yes ;;
  11168. esac
  11169. RC=$ac_ct_RC
  11170. fi
  11171. else
  11172. RC="$ac_cv_prog_RC"
  11173. fi
  11174. # Source file extension for RC test sources.
  11175. ac_ext=rc
  11176. # Object file extension for compiled RC test sources.
  11177. objext=o
  11178. objext_RC=$objext
  11179. # Code to be used in simple compile tests
  11180. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11181. # Code to be used in simple link tests
  11182. lt_simple_link_test_code=$lt_simple_compile_test_code
  11183. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11184. # If no C compiler was specified, use CC.
  11185. LTCC=${LTCC-"$CC"}
  11186. # If no C compiler flags were specified, use CFLAGS.
  11187. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11188. # Allow CC to be a program name with arguments.
  11189. compiler=$CC
  11190. # save warnings/boilerplate of simple test code
  11191. ac_outfile=conftest.$ac_objext
  11192. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11193. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11194. _lt_compiler_boilerplate=`cat conftest.err`
  11195. $RM conftest*
  11196. ac_outfile=conftest.$ac_objext
  11197. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11198. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11199. _lt_linker_boilerplate=`cat conftest.err`
  11200. $RM -r conftest*
  11201. # Allow CC to be a program name with arguments.
  11202. lt_save_CC=$CC
  11203. lt_save_CFLAGS=$CFLAGS
  11204. lt_save_GCC=$GCC
  11205. GCC=
  11206. CC=${RC-"windres"}
  11207. CFLAGS=
  11208. compiler=$CC
  11209. compiler_RC=$CC
  11210. func_cc_basename $compiler
  11211. cc_basename=$func_cc_basename_result
  11212. lt_cv_prog_compiler_c_o_RC=yes
  11213. if test -n "$compiler"; then
  11214. :
  11215. fi
  11216. GCC=$lt_save_GCC
  11217. ac_ext=c
  11218. ac_cpp='$CPP $CPPFLAGS'
  11219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11222. CC=$lt_save_CC
  11223. CFLAGS=$lt_save_CFLAGS
  11224. # For historical reasons, the library name redundantly includes the major
  11225. # version twice: libSDL3-3.0.so.0.
  11226. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11227. LT_RELEASE=3.0
  11228. # Increment this if there is an incompatible change - but if that happens,
  11229. # we should rename the library from SDL2 to SDL3, at which point this would
  11230. # reset to 0 anyway.
  11231. LT_MAJOR=0
  11232. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11233. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11234. LT_REVISION=$SDL_INTERFACE_AGE
  11235. for ac_prog in gawk mawk nawk awk
  11236. do
  11237. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11238. set dummy $ac_prog; ac_word=$2
  11239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11240. printf %s "checking for $ac_word... " >&6; }
  11241. if test ${ac_cv_prog_AWK+y}
  11242. then :
  11243. printf %s "(cached) " >&6
  11244. else $as_nop
  11245. if test -n "$AWK"; then
  11246. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11247. else
  11248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11249. for as_dir in $PATH
  11250. do
  11251. IFS=$as_save_IFS
  11252. case $as_dir in #(((
  11253. '') as_dir=./ ;;
  11254. */) ;;
  11255. *) as_dir=$as_dir/ ;;
  11256. esac
  11257. for ac_exec_ext in '' $ac_executable_extensions; do
  11258. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11259. ac_cv_prog_AWK="$ac_prog"
  11260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11261. break 2
  11262. fi
  11263. done
  11264. done
  11265. IFS=$as_save_IFS
  11266. fi
  11267. fi
  11268. AWK=$ac_cv_prog_AWK
  11269. if test -n "$AWK"; then
  11270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11271. printf "%s\n" "$AWK" >&6; }
  11272. else
  11273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11274. printf "%s\n" "no" >&6; }
  11275. fi
  11276. test -n "$AWK" && break
  11277. done
  11278. ac_ext=c
  11279. ac_cpp='$CPP $CPPFLAGS'
  11280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11283. if test -n "$ac_tool_prefix"; then
  11284. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11285. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11287. printf %s "checking for $ac_word... " >&6; }
  11288. if test ${ac_cv_prog_CC+y}
  11289. then :
  11290. printf %s "(cached) " >&6
  11291. else $as_nop
  11292. if test -n "$CC"; then
  11293. ac_cv_prog_CC="$CC" # Let the user override the test.
  11294. else
  11295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11296. for as_dir in $PATH
  11297. do
  11298. IFS=$as_save_IFS
  11299. case $as_dir in #(((
  11300. '') as_dir=./ ;;
  11301. */) ;;
  11302. *) as_dir=$as_dir/ ;;
  11303. esac
  11304. for ac_exec_ext in '' $ac_executable_extensions; do
  11305. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11306. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11307. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11308. break 2
  11309. fi
  11310. done
  11311. done
  11312. IFS=$as_save_IFS
  11313. fi
  11314. fi
  11315. CC=$ac_cv_prog_CC
  11316. if test -n "$CC"; then
  11317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11318. printf "%s\n" "$CC" >&6; }
  11319. else
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11321. printf "%s\n" "no" >&6; }
  11322. fi
  11323. fi
  11324. if test -z "$ac_cv_prog_CC"; then
  11325. ac_ct_CC=$CC
  11326. # Extract the first word of "gcc", so it can be a program name with args.
  11327. set dummy gcc; ac_word=$2
  11328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11329. printf %s "checking for $ac_word... " >&6; }
  11330. if test ${ac_cv_prog_ac_ct_CC+y}
  11331. then :
  11332. printf %s "(cached) " >&6
  11333. else $as_nop
  11334. if test -n "$ac_ct_CC"; then
  11335. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11336. else
  11337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11338. for as_dir in $PATH
  11339. do
  11340. IFS=$as_save_IFS
  11341. case $as_dir in #(((
  11342. '') as_dir=./ ;;
  11343. */) ;;
  11344. *) as_dir=$as_dir/ ;;
  11345. esac
  11346. for ac_exec_ext in '' $ac_executable_extensions; do
  11347. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11348. ac_cv_prog_ac_ct_CC="gcc"
  11349. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11350. break 2
  11351. fi
  11352. done
  11353. done
  11354. IFS=$as_save_IFS
  11355. fi
  11356. fi
  11357. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11358. if test -n "$ac_ct_CC"; then
  11359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11360. printf "%s\n" "$ac_ct_CC" >&6; }
  11361. else
  11362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11363. printf "%s\n" "no" >&6; }
  11364. fi
  11365. if test "x$ac_ct_CC" = x; then
  11366. CC=""
  11367. else
  11368. case $cross_compiling:$ac_tool_warned in
  11369. yes:)
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11371. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11372. ac_tool_warned=yes ;;
  11373. esac
  11374. CC=$ac_ct_CC
  11375. fi
  11376. else
  11377. CC="$ac_cv_prog_CC"
  11378. fi
  11379. if test -z "$CC"; then
  11380. if test -n "$ac_tool_prefix"; then
  11381. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11382. set dummy ${ac_tool_prefix}cc; 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_CC+y}
  11386. then :
  11387. printf %s "(cached) " >&6
  11388. else $as_nop
  11389. if test -n "$CC"; then
  11390. ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
  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. CC=$ac_cv_prog_CC
  11413. if test -n "$CC"; then
  11414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11415. printf "%s\n" "$CC" >&6; }
  11416. else
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11418. printf "%s\n" "no" >&6; }
  11419. fi
  11420. fi
  11421. fi
  11422. if test -z "$CC"; then
  11423. # Extract the first word of "cc", so it can be a program name with args.
  11424. set dummy cc; ac_word=$2
  11425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11426. printf %s "checking for $ac_word... " >&6; }
  11427. if test ${ac_cv_prog_CC+y}
  11428. then :
  11429. printf %s "(cached) " >&6
  11430. else $as_nop
  11431. if test -n "$CC"; then
  11432. ac_cv_prog_CC="$CC" # Let the user override the test.
  11433. else
  11434. ac_prog_rejected=no
  11435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11436. for as_dir in $PATH
  11437. do
  11438. IFS=$as_save_IFS
  11439. case $as_dir in #(((
  11440. '') as_dir=./ ;;
  11441. */) ;;
  11442. *) as_dir=$as_dir/ ;;
  11443. esac
  11444. for ac_exec_ext in '' $ac_executable_extensions; do
  11445. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11446. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11447. ac_prog_rejected=yes
  11448. continue
  11449. fi
  11450. ac_cv_prog_CC="cc"
  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. if test $ac_prog_rejected = yes; then
  11458. # We found a bogon in the path, so make sure we never use it.
  11459. set dummy $ac_cv_prog_CC
  11460. shift
  11461. if test $# != 0; then
  11462. # We chose a different compiler from the bogus one.
  11463. # However, it has the same basename, so the bogon will be chosen
  11464. # first if we set CC to just the basename; use the full file name.
  11465. shift
  11466. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11467. fi
  11468. fi
  11469. fi
  11470. fi
  11471. CC=$ac_cv_prog_CC
  11472. if test -n "$CC"; then
  11473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11474. printf "%s\n" "$CC" >&6; }
  11475. else
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11477. printf "%s\n" "no" >&6; }
  11478. fi
  11479. fi
  11480. if test -z "$CC"; then
  11481. if test -n "$ac_tool_prefix"; then
  11482. for ac_prog in cl.exe
  11483. do
  11484. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11485. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11487. printf %s "checking for $ac_word... " >&6; }
  11488. if test ${ac_cv_prog_CC+y}
  11489. then :
  11490. printf %s "(cached) " >&6
  11491. else $as_nop
  11492. if test -n "$CC"; then
  11493. ac_cv_prog_CC="$CC" # Let the user override the test.
  11494. else
  11495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11496. for as_dir in $PATH
  11497. do
  11498. IFS=$as_save_IFS
  11499. case $as_dir in #(((
  11500. '') as_dir=./ ;;
  11501. */) ;;
  11502. *) as_dir=$as_dir/ ;;
  11503. esac
  11504. for ac_exec_ext in '' $ac_executable_extensions; do
  11505. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11506. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11508. break 2
  11509. fi
  11510. done
  11511. done
  11512. IFS=$as_save_IFS
  11513. fi
  11514. fi
  11515. CC=$ac_cv_prog_CC
  11516. if test -n "$CC"; then
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11518. printf "%s\n" "$CC" >&6; }
  11519. else
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11521. printf "%s\n" "no" >&6; }
  11522. fi
  11523. test -n "$CC" && break
  11524. done
  11525. fi
  11526. if test -z "$CC"; then
  11527. ac_ct_CC=$CC
  11528. for ac_prog in cl.exe
  11529. do
  11530. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11531. set dummy $ac_prog; ac_word=$2
  11532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11533. printf %s "checking for $ac_word... " >&6; }
  11534. if test ${ac_cv_prog_ac_ct_CC+y}
  11535. then :
  11536. printf %s "(cached) " >&6
  11537. else $as_nop
  11538. if test -n "$ac_ct_CC"; then
  11539. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11540. else
  11541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11542. for as_dir in $PATH
  11543. do
  11544. IFS=$as_save_IFS
  11545. case $as_dir in #(((
  11546. '') as_dir=./ ;;
  11547. */) ;;
  11548. *) as_dir=$as_dir/ ;;
  11549. esac
  11550. for ac_exec_ext in '' $ac_executable_extensions; do
  11551. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11552. ac_cv_prog_ac_ct_CC="$ac_prog"
  11553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11554. break 2
  11555. fi
  11556. done
  11557. done
  11558. IFS=$as_save_IFS
  11559. fi
  11560. fi
  11561. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11562. if test -n "$ac_ct_CC"; then
  11563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11564. printf "%s\n" "$ac_ct_CC" >&6; }
  11565. else
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11567. printf "%s\n" "no" >&6; }
  11568. fi
  11569. test -n "$ac_ct_CC" && break
  11570. done
  11571. if test "x$ac_ct_CC" = x; then
  11572. CC=""
  11573. else
  11574. case $cross_compiling:$ac_tool_warned in
  11575. yes:)
  11576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11577. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11578. ac_tool_warned=yes ;;
  11579. esac
  11580. CC=$ac_ct_CC
  11581. fi
  11582. fi
  11583. fi
  11584. if test -z "$CC"; then
  11585. if test -n "$ac_tool_prefix"; then
  11586. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11587. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11589. printf %s "checking for $ac_word... " >&6; }
  11590. if test ${ac_cv_prog_CC+y}
  11591. then :
  11592. printf %s "(cached) " >&6
  11593. else $as_nop
  11594. if test -n "$CC"; then
  11595. ac_cv_prog_CC="$CC" # Let the user override the test.
  11596. else
  11597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11598. for as_dir in $PATH
  11599. do
  11600. IFS=$as_save_IFS
  11601. case $as_dir in #(((
  11602. '') as_dir=./ ;;
  11603. */) ;;
  11604. *) as_dir=$as_dir/ ;;
  11605. esac
  11606. for ac_exec_ext in '' $ac_executable_extensions; do
  11607. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11608. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11609. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11610. break 2
  11611. fi
  11612. done
  11613. done
  11614. IFS=$as_save_IFS
  11615. fi
  11616. fi
  11617. CC=$ac_cv_prog_CC
  11618. if test -n "$CC"; then
  11619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11620. printf "%s\n" "$CC" >&6; }
  11621. else
  11622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11623. printf "%s\n" "no" >&6; }
  11624. fi
  11625. fi
  11626. if test -z "$ac_cv_prog_CC"; then
  11627. ac_ct_CC=$CC
  11628. # Extract the first word of "clang", so it can be a program name with args.
  11629. set dummy clang; 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_ac_ct_CC+y}
  11633. then :
  11634. printf %s "(cached) " >&6
  11635. else $as_nop
  11636. if test -n "$ac_ct_CC"; then
  11637. ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="clang"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11660. if test -n "$ac_ct_CC"; then
  11661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11662. printf "%s\n" "$ac_ct_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. if test "x$ac_ct_CC" = x; then
  11668. CC=""
  11669. else
  11670. case $cross_compiling:$ac_tool_warned in
  11671. yes:)
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11673. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11674. ac_tool_warned=yes ;;
  11675. esac
  11676. CC=$ac_ct_CC
  11677. fi
  11678. else
  11679. CC="$ac_cv_prog_CC"
  11680. fi
  11681. fi
  11682. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11683. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11684. as_fn_error $? "no acceptable C compiler found in \$PATH
  11685. See \`config.log' for more details" "$LINENO" 5; }
  11686. # Provide some information about the compiler.
  11687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11688. set X $ac_compile
  11689. ac_compiler=$2
  11690. for ac_option in --version -v -V -qversion -version; do
  11691. { { ac_try="$ac_compiler $ac_option >&5"
  11692. case "(($ac_try" in
  11693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11694. *) ac_try_echo=$ac_try;;
  11695. esac
  11696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11697. printf "%s\n" "$ac_try_echo"; } >&5
  11698. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11699. ac_status=$?
  11700. if test -s conftest.err; then
  11701. sed '10a\
  11702. ... rest of stderr output deleted ...
  11703. 10q' conftest.err >conftest.er1
  11704. cat conftest.er1 >&5
  11705. fi
  11706. rm -f conftest.er1 conftest.err
  11707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11708. test $ac_status = 0; }
  11709. done
  11710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11711. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11712. if test ${ac_cv_c_compiler_gnu+y}
  11713. then :
  11714. printf %s "(cached) " >&6
  11715. else $as_nop
  11716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11717. /* end confdefs.h. */
  11718. int
  11719. main (void)
  11720. {
  11721. #ifndef __GNUC__
  11722. choke me
  11723. #endif
  11724. ;
  11725. return 0;
  11726. }
  11727. _ACEOF
  11728. if ac_fn_c_try_compile "$LINENO"
  11729. then :
  11730. ac_compiler_gnu=yes
  11731. else $as_nop
  11732. ac_compiler_gnu=no
  11733. fi
  11734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11735. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11736. fi
  11737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11738. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11740. if test $ac_compiler_gnu = yes; then
  11741. GCC=yes
  11742. else
  11743. GCC=
  11744. fi
  11745. ac_test_CFLAGS=${CFLAGS+y}
  11746. ac_save_CFLAGS=$CFLAGS
  11747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11748. printf %s "checking whether $CC accepts -g... " >&6; }
  11749. if test ${ac_cv_prog_cc_g+y}
  11750. then :
  11751. printf %s "(cached) " >&6
  11752. else $as_nop
  11753. ac_save_c_werror_flag=$ac_c_werror_flag
  11754. ac_c_werror_flag=yes
  11755. ac_cv_prog_cc_g=no
  11756. CFLAGS="-g"
  11757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11758. /* end confdefs.h. */
  11759. int
  11760. main (void)
  11761. {
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. if ac_fn_c_try_compile "$LINENO"
  11767. then :
  11768. ac_cv_prog_cc_g=yes
  11769. else $as_nop
  11770. CFLAGS=""
  11771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11772. /* end confdefs.h. */
  11773. int
  11774. main (void)
  11775. {
  11776. ;
  11777. return 0;
  11778. }
  11779. _ACEOF
  11780. if ac_fn_c_try_compile "$LINENO"
  11781. then :
  11782. else $as_nop
  11783. ac_c_werror_flag=$ac_save_c_werror_flag
  11784. CFLAGS="-g"
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. int
  11788. main (void)
  11789. {
  11790. ;
  11791. return 0;
  11792. }
  11793. _ACEOF
  11794. if ac_fn_c_try_compile "$LINENO"
  11795. then :
  11796. ac_cv_prog_cc_g=yes
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11799. fi
  11800. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11801. fi
  11802. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11803. ac_c_werror_flag=$ac_save_c_werror_flag
  11804. fi
  11805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11806. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11807. if test $ac_test_CFLAGS; then
  11808. CFLAGS=$ac_save_CFLAGS
  11809. elif test $ac_cv_prog_cc_g = yes; then
  11810. if test "$GCC" = yes; then
  11811. CFLAGS="-g -O2"
  11812. else
  11813. CFLAGS="-g"
  11814. fi
  11815. else
  11816. if test "$GCC" = yes; then
  11817. CFLAGS="-O2"
  11818. else
  11819. CFLAGS=
  11820. fi
  11821. fi
  11822. ac_prog_cc_stdc=no
  11823. if test x$ac_prog_cc_stdc = xno
  11824. then :
  11825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11826. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11827. if test ${ac_cv_prog_cc_c11+y}
  11828. then :
  11829. printf %s "(cached) " >&6
  11830. else $as_nop
  11831. ac_cv_prog_cc_c11=no
  11832. ac_save_CC=$CC
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. $ac_c_conftest_c11_program
  11836. _ACEOF
  11837. for ac_arg in '' -std=gnu11
  11838. do
  11839. CC="$ac_save_CC $ac_arg"
  11840. if ac_fn_c_try_compile "$LINENO"
  11841. then :
  11842. ac_cv_prog_cc_c11=$ac_arg
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11845. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11846. done
  11847. rm -f conftest.$ac_ext
  11848. CC=$ac_save_CC
  11849. fi
  11850. if test "x$ac_cv_prog_cc_c11" = xno
  11851. then :
  11852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11853. printf "%s\n" "unsupported" >&6; }
  11854. else $as_nop
  11855. if test "x$ac_cv_prog_cc_c11" = x
  11856. then :
  11857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11858. printf "%s\n" "none needed" >&6; }
  11859. else $as_nop
  11860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11861. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11862. CC="$CC $ac_cv_prog_cc_c11"
  11863. fi
  11864. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11865. ac_prog_cc_stdc=c11
  11866. fi
  11867. fi
  11868. if test x$ac_prog_cc_stdc = xno
  11869. then :
  11870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11871. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11872. if test ${ac_cv_prog_cc_c99+y}
  11873. then :
  11874. printf %s "(cached) " >&6
  11875. else $as_nop
  11876. ac_cv_prog_cc_c99=no
  11877. ac_save_CC=$CC
  11878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11879. /* end confdefs.h. */
  11880. $ac_c_conftest_c99_program
  11881. _ACEOF
  11882. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11883. do
  11884. CC="$ac_save_CC $ac_arg"
  11885. if ac_fn_c_try_compile "$LINENO"
  11886. then :
  11887. ac_cv_prog_cc_c99=$ac_arg
  11888. fi
  11889. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11890. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11891. done
  11892. rm -f conftest.$ac_ext
  11893. CC=$ac_save_CC
  11894. fi
  11895. if test "x$ac_cv_prog_cc_c99" = xno
  11896. then :
  11897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11898. printf "%s\n" "unsupported" >&6; }
  11899. else $as_nop
  11900. if test "x$ac_cv_prog_cc_c99" = x
  11901. then :
  11902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11903. printf "%s\n" "none needed" >&6; }
  11904. else $as_nop
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11906. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11907. CC="$CC $ac_cv_prog_cc_c99"
  11908. fi
  11909. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11910. ac_prog_cc_stdc=c99
  11911. fi
  11912. fi
  11913. if test x$ac_prog_cc_stdc = xno
  11914. then :
  11915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11916. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11917. if test ${ac_cv_prog_cc_c89+y}
  11918. then :
  11919. printf %s "(cached) " >&6
  11920. else $as_nop
  11921. ac_cv_prog_cc_c89=no
  11922. ac_save_CC=$CC
  11923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11924. /* end confdefs.h. */
  11925. $ac_c_conftest_c89_program
  11926. _ACEOF
  11927. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11928. do
  11929. CC="$ac_save_CC $ac_arg"
  11930. if ac_fn_c_try_compile "$LINENO"
  11931. then :
  11932. ac_cv_prog_cc_c89=$ac_arg
  11933. fi
  11934. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11935. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11936. done
  11937. rm -f conftest.$ac_ext
  11938. CC=$ac_save_CC
  11939. fi
  11940. if test "x$ac_cv_prog_cc_c89" = xno
  11941. then :
  11942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11943. printf "%s\n" "unsupported" >&6; }
  11944. else $as_nop
  11945. if test "x$ac_cv_prog_cc_c89" = x
  11946. then :
  11947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11948. printf "%s\n" "none needed" >&6; }
  11949. else $as_nop
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11951. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11952. CC="$CC $ac_cv_prog_cc_c89"
  11953. fi
  11954. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11955. ac_prog_cc_stdc=c89
  11956. fi
  11957. fi
  11958. ac_ext=c
  11959. ac_cpp='$CPP $CPPFLAGS'
  11960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11963. ac_ext=cpp
  11964. ac_cpp='$CXXCPP $CPPFLAGS'
  11965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11968. if test -z "$CXX"; then
  11969. if test -n "$CCC"; then
  11970. CXX=$CCC
  11971. else
  11972. if test -n "$ac_tool_prefix"; then
  11973. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11974. do
  11975. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11976. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11978. printf %s "checking for $ac_word... " >&6; }
  11979. if test ${ac_cv_prog_CXX+y}
  11980. then :
  11981. printf %s "(cached) " >&6
  11982. else $as_nop
  11983. if test -n "$CXX"; then
  11984. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11985. else
  11986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11987. for as_dir in $PATH
  11988. do
  11989. IFS=$as_save_IFS
  11990. case $as_dir in #(((
  11991. '') as_dir=./ ;;
  11992. */) ;;
  11993. *) as_dir=$as_dir/ ;;
  11994. esac
  11995. for ac_exec_ext in '' $ac_executable_extensions; do
  11996. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11997. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11999. break 2
  12000. fi
  12001. done
  12002. done
  12003. IFS=$as_save_IFS
  12004. fi
  12005. fi
  12006. CXX=$ac_cv_prog_CXX
  12007. if test -n "$CXX"; then
  12008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12009. printf "%s\n" "$CXX" >&6; }
  12010. else
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12012. printf "%s\n" "no" >&6; }
  12013. fi
  12014. test -n "$CXX" && break
  12015. done
  12016. fi
  12017. if test -z "$CXX"; then
  12018. ac_ct_CXX=$CXX
  12019. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12020. do
  12021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12022. set dummy $ac_prog; ac_word=$2
  12023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12024. printf %s "checking for $ac_word... " >&6; }
  12025. if test ${ac_cv_prog_ac_ct_CXX+y}
  12026. then :
  12027. printf %s "(cached) " >&6
  12028. else $as_nop
  12029. if test -n "$ac_ct_CXX"; then
  12030. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12031. else
  12032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12033. for as_dir in $PATH
  12034. do
  12035. IFS=$as_save_IFS
  12036. case $as_dir in #(((
  12037. '') as_dir=./ ;;
  12038. */) ;;
  12039. *) as_dir=$as_dir/ ;;
  12040. esac
  12041. for ac_exec_ext in '' $ac_executable_extensions; do
  12042. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12043. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12045. break 2
  12046. fi
  12047. done
  12048. done
  12049. IFS=$as_save_IFS
  12050. fi
  12051. fi
  12052. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12053. if test -n "$ac_ct_CXX"; then
  12054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12055. printf "%s\n" "$ac_ct_CXX" >&6; }
  12056. else
  12057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12058. printf "%s\n" "no" >&6; }
  12059. fi
  12060. test -n "$ac_ct_CXX" && break
  12061. done
  12062. if test "x$ac_ct_CXX" = x; then
  12063. CXX="g++"
  12064. else
  12065. case $cross_compiling:$ac_tool_warned in
  12066. yes:)
  12067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12068. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12069. ac_tool_warned=yes ;;
  12070. esac
  12071. CXX=$ac_ct_CXX
  12072. fi
  12073. fi
  12074. fi
  12075. fi
  12076. # Provide some information about the compiler.
  12077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12078. set X $ac_compile
  12079. ac_compiler=$2
  12080. for ac_option in --version -v -V -qversion; do
  12081. { { ac_try="$ac_compiler $ac_option >&5"
  12082. case "(($ac_try" in
  12083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12084. *) ac_try_echo=$ac_try;;
  12085. esac
  12086. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12087. printf "%s\n" "$ac_try_echo"; } >&5
  12088. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12089. ac_status=$?
  12090. if test -s conftest.err; then
  12091. sed '10a\
  12092. ... rest of stderr output deleted ...
  12093. 10q' conftest.err >conftest.er1
  12094. cat conftest.er1 >&5
  12095. fi
  12096. rm -f conftest.er1 conftest.err
  12097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12098. test $ac_status = 0; }
  12099. done
  12100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12101. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12102. if test ${ac_cv_cxx_compiler_gnu+y}
  12103. then :
  12104. printf %s "(cached) " >&6
  12105. else $as_nop
  12106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12107. /* end confdefs.h. */
  12108. int
  12109. main (void)
  12110. {
  12111. #ifndef __GNUC__
  12112. choke me
  12113. #endif
  12114. ;
  12115. return 0;
  12116. }
  12117. _ACEOF
  12118. if ac_fn_cxx_try_compile "$LINENO"
  12119. then :
  12120. ac_compiler_gnu=yes
  12121. else $as_nop
  12122. ac_compiler_gnu=no
  12123. fi
  12124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12125. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12126. fi
  12127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12128. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12129. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12130. if test $ac_compiler_gnu = yes; then
  12131. GXX=yes
  12132. else
  12133. GXX=
  12134. fi
  12135. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12136. ac_save_CXXFLAGS=$CXXFLAGS
  12137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12138. printf %s "checking whether $CXX accepts -g... " >&6; }
  12139. if test ${ac_cv_prog_cxx_g+y}
  12140. then :
  12141. printf %s "(cached) " >&6
  12142. else $as_nop
  12143. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12144. ac_cxx_werror_flag=yes
  12145. ac_cv_prog_cxx_g=no
  12146. CXXFLAGS="-g"
  12147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12148. /* end confdefs.h. */
  12149. int
  12150. main (void)
  12151. {
  12152. ;
  12153. return 0;
  12154. }
  12155. _ACEOF
  12156. if ac_fn_cxx_try_compile "$LINENO"
  12157. then :
  12158. ac_cv_prog_cxx_g=yes
  12159. else $as_nop
  12160. CXXFLAGS=""
  12161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12162. /* end confdefs.h. */
  12163. int
  12164. main (void)
  12165. {
  12166. ;
  12167. return 0;
  12168. }
  12169. _ACEOF
  12170. if ac_fn_cxx_try_compile "$LINENO"
  12171. then :
  12172. else $as_nop
  12173. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12174. CXXFLAGS="-g"
  12175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12176. /* end confdefs.h. */
  12177. int
  12178. main (void)
  12179. {
  12180. ;
  12181. return 0;
  12182. }
  12183. _ACEOF
  12184. if ac_fn_cxx_try_compile "$LINENO"
  12185. then :
  12186. ac_cv_prog_cxx_g=yes
  12187. fi
  12188. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12189. fi
  12190. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12191. fi
  12192. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12193. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12194. fi
  12195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12196. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12197. if test $ac_test_CXXFLAGS; then
  12198. CXXFLAGS=$ac_save_CXXFLAGS
  12199. elif test $ac_cv_prog_cxx_g = yes; then
  12200. if test "$GXX" = yes; then
  12201. CXXFLAGS="-g -O2"
  12202. else
  12203. CXXFLAGS="-g"
  12204. fi
  12205. else
  12206. if test "$GXX" = yes; then
  12207. CXXFLAGS="-O2"
  12208. else
  12209. CXXFLAGS=
  12210. fi
  12211. fi
  12212. ac_prog_cxx_stdcxx=no
  12213. if test x$ac_prog_cxx_stdcxx = xno
  12214. then :
  12215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12216. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12217. if test ${ac_cv_prog_cxx_11+y}
  12218. then :
  12219. printf %s "(cached) " >&6
  12220. else $as_nop
  12221. ac_cv_prog_cxx_11=no
  12222. ac_save_CXX=$CXX
  12223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12224. /* end confdefs.h. */
  12225. $ac_cxx_conftest_cxx11_program
  12226. _ACEOF
  12227. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12228. do
  12229. CXX="$ac_save_CXX $ac_arg"
  12230. if ac_fn_cxx_try_compile "$LINENO"
  12231. then :
  12232. ac_cv_prog_cxx_cxx11=$ac_arg
  12233. fi
  12234. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12235. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12236. done
  12237. rm -f conftest.$ac_ext
  12238. CXX=$ac_save_CXX
  12239. fi
  12240. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12241. then :
  12242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12243. printf "%s\n" "unsupported" >&6; }
  12244. else $as_nop
  12245. if test "x$ac_cv_prog_cxx_cxx11" = x
  12246. then :
  12247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12248. printf "%s\n" "none needed" >&6; }
  12249. else $as_nop
  12250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12251. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12252. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12253. fi
  12254. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12255. ac_prog_cxx_stdcxx=cxx11
  12256. fi
  12257. fi
  12258. if test x$ac_prog_cxx_stdcxx = xno
  12259. then :
  12260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12261. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12262. if test ${ac_cv_prog_cxx_98+y}
  12263. then :
  12264. printf %s "(cached) " >&6
  12265. else $as_nop
  12266. ac_cv_prog_cxx_98=no
  12267. ac_save_CXX=$CXX
  12268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12269. /* end confdefs.h. */
  12270. $ac_cxx_conftest_cxx98_program
  12271. _ACEOF
  12272. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12273. do
  12274. CXX="$ac_save_CXX $ac_arg"
  12275. if ac_fn_cxx_try_compile "$LINENO"
  12276. then :
  12277. ac_cv_prog_cxx_cxx98=$ac_arg
  12278. fi
  12279. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12280. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12281. done
  12282. rm -f conftest.$ac_ext
  12283. CXX=$ac_save_CXX
  12284. fi
  12285. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12286. then :
  12287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12288. printf "%s\n" "unsupported" >&6; }
  12289. else $as_nop
  12290. if test "x$ac_cv_prog_cxx_cxx98" = x
  12291. then :
  12292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12293. printf "%s\n" "none needed" >&6; }
  12294. else $as_nop
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12296. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12297. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12298. fi
  12299. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12300. ac_prog_cxx_stdcxx=cxx98
  12301. fi
  12302. fi
  12303. ac_ext=c
  12304. ac_cpp='$CPP $CPPFLAGS'
  12305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12308. func_stripname_cnf ()
  12309. {
  12310. case $2 in
  12311. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12312. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12313. esac
  12314. } # func_stripname_cnf
  12315. if test -n "$CXX" && ( test no != "$CXX" &&
  12316. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12317. (test g++ != "$CXX"))); then
  12318. ac_ext=cpp
  12319. ac_cpp='$CXXCPP $CPPFLAGS'
  12320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12324. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12325. if test -z "$CXXCPP"; then
  12326. if test ${ac_cv_prog_CXXCPP+y}
  12327. then :
  12328. printf %s "(cached) " >&6
  12329. else $as_nop
  12330. # Double quotes because $CXX needs to be expanded
  12331. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12332. do
  12333. ac_preproc_ok=false
  12334. for ac_cxx_preproc_warn_flag in '' yes
  12335. do
  12336. # Use a header file that comes with gcc, so configuring glibc
  12337. # with a fresh cross-compiler works.
  12338. # On the NeXT, cc -E runs the code through the compiler's parser,
  12339. # not just through cpp. "Syntax error" is here to catch this case.
  12340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12341. /* end confdefs.h. */
  12342. #include <limits.h>
  12343. Syntax error
  12344. _ACEOF
  12345. if ac_fn_cxx_try_cpp "$LINENO"
  12346. then :
  12347. else $as_nop
  12348. # Broken: fails on valid input.
  12349. continue
  12350. fi
  12351. rm -f conftest.err conftest.i conftest.$ac_ext
  12352. # OK, works on sane cases. Now check whether nonexistent headers
  12353. # can be detected and how.
  12354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12355. /* end confdefs.h. */
  12356. #include <ac_nonexistent.h>
  12357. _ACEOF
  12358. if ac_fn_cxx_try_cpp "$LINENO"
  12359. then :
  12360. # Broken: success on invalid input.
  12361. continue
  12362. else $as_nop
  12363. # Passes both tests.
  12364. ac_preproc_ok=:
  12365. break
  12366. fi
  12367. rm -f conftest.err conftest.i conftest.$ac_ext
  12368. done
  12369. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12370. rm -f conftest.i conftest.err conftest.$ac_ext
  12371. if $ac_preproc_ok
  12372. then :
  12373. break
  12374. fi
  12375. done
  12376. ac_cv_prog_CXXCPP=$CXXCPP
  12377. fi
  12378. CXXCPP=$ac_cv_prog_CXXCPP
  12379. else
  12380. ac_cv_prog_CXXCPP=$CXXCPP
  12381. fi
  12382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12383. printf "%s\n" "$CXXCPP" >&6; }
  12384. ac_preproc_ok=false
  12385. for ac_cxx_preproc_warn_flag in '' yes
  12386. do
  12387. # Use a header file that comes with gcc, so configuring glibc
  12388. # with a fresh cross-compiler works.
  12389. # On the NeXT, cc -E runs the code through the compiler's parser,
  12390. # not just through cpp. "Syntax error" is here to catch this case.
  12391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12392. /* end confdefs.h. */
  12393. #include <limits.h>
  12394. Syntax error
  12395. _ACEOF
  12396. if ac_fn_cxx_try_cpp "$LINENO"
  12397. then :
  12398. else $as_nop
  12399. # Broken: fails on valid input.
  12400. continue
  12401. fi
  12402. rm -f conftest.err conftest.i conftest.$ac_ext
  12403. # OK, works on sane cases. Now check whether nonexistent headers
  12404. # can be detected and how.
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. #include <ac_nonexistent.h>
  12408. _ACEOF
  12409. if ac_fn_cxx_try_cpp "$LINENO"
  12410. then :
  12411. # Broken: success on invalid input.
  12412. continue
  12413. else $as_nop
  12414. # Passes both tests.
  12415. ac_preproc_ok=:
  12416. break
  12417. fi
  12418. rm -f conftest.err conftest.i conftest.$ac_ext
  12419. done
  12420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12421. rm -f conftest.i conftest.err conftest.$ac_ext
  12422. if $ac_preproc_ok
  12423. then :
  12424. else $as_nop
  12425. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12426. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12427. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12428. See \`config.log' for more details" "$LINENO" 5; }
  12429. fi
  12430. ac_ext=c
  12431. ac_cpp='$CPP $CPPFLAGS'
  12432. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12433. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12434. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12435. else
  12436. _lt_caught_CXX_error=yes
  12437. fi
  12438. ac_ext=cpp
  12439. ac_cpp='$CXXCPP $CPPFLAGS'
  12440. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12441. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12442. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12443. archive_cmds_need_lc_CXX=no
  12444. allow_undefined_flag_CXX=
  12445. always_export_symbols_CXX=no
  12446. archive_expsym_cmds_CXX=
  12447. compiler_needs_object_CXX=no
  12448. export_dynamic_flag_spec_CXX=
  12449. hardcode_direct_CXX=no
  12450. hardcode_direct_absolute_CXX=no
  12451. hardcode_libdir_flag_spec_CXX=
  12452. hardcode_libdir_separator_CXX=
  12453. hardcode_minus_L_CXX=no
  12454. hardcode_shlibpath_var_CXX=unsupported
  12455. hardcode_automatic_CXX=no
  12456. inherit_rpath_CXX=no
  12457. module_cmds_CXX=
  12458. module_expsym_cmds_CXX=
  12459. link_all_deplibs_CXX=unknown
  12460. old_archive_cmds_CXX=$old_archive_cmds
  12461. reload_flag_CXX=$reload_flag
  12462. reload_cmds_CXX=$reload_cmds
  12463. no_undefined_flag_CXX=
  12464. whole_archive_flag_spec_CXX=
  12465. enable_shared_with_static_runtimes_CXX=no
  12466. # Source file extension for C++ test sources.
  12467. ac_ext=cpp
  12468. # Object file extension for compiled C++ test sources.
  12469. objext=o
  12470. objext_CXX=$objext
  12471. # No sense in running all these tests if we already determined that
  12472. # the CXX compiler isn't working. Some variables (like enable_shared)
  12473. # are currently assumed to apply to all compilers on this platform,
  12474. # and will be corrupted by setting them based on a non-working compiler.
  12475. if test yes != "$_lt_caught_CXX_error"; then
  12476. # Code to be used in simple compile tests
  12477. lt_simple_compile_test_code="int some_variable = 0;"
  12478. # Code to be used in simple link tests
  12479. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12480. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12481. # If no C compiler was specified, use CC.
  12482. LTCC=${LTCC-"$CC"}
  12483. # If no C compiler flags were specified, use CFLAGS.
  12484. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12485. # Allow CC to be a program name with arguments.
  12486. compiler=$CC
  12487. # save warnings/boilerplate of simple test code
  12488. ac_outfile=conftest.$ac_objext
  12489. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12490. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12491. _lt_compiler_boilerplate=`cat conftest.err`
  12492. $RM conftest*
  12493. ac_outfile=conftest.$ac_objext
  12494. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12495. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12496. _lt_linker_boilerplate=`cat conftest.err`
  12497. $RM -r conftest*
  12498. # Allow CC to be a program name with arguments.
  12499. lt_save_CC=$CC
  12500. lt_save_CFLAGS=$CFLAGS
  12501. lt_save_LD=$LD
  12502. lt_save_GCC=$GCC
  12503. GCC=$GXX
  12504. lt_save_with_gnu_ld=$with_gnu_ld
  12505. lt_save_path_LD=$lt_cv_path_LD
  12506. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12507. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12508. else
  12509. $as_unset lt_cv_prog_gnu_ld
  12510. fi
  12511. if test -n "${lt_cv_path_LDCXX+set}"; then
  12512. lt_cv_path_LD=$lt_cv_path_LDCXX
  12513. else
  12514. $as_unset lt_cv_path_LD
  12515. fi
  12516. test -z "${LDCXX+set}" || LD=$LDCXX
  12517. CC=${CXX-"c++"}
  12518. CFLAGS=$CXXFLAGS
  12519. compiler=$CC
  12520. compiler_CXX=$CC
  12521. func_cc_basename $compiler
  12522. cc_basename=$func_cc_basename_result
  12523. if test -n "$compiler"; then
  12524. # We don't want -fno-exception when compiling C++ code, so set the
  12525. # no_builtin_flag separately
  12526. if test yes = "$GXX"; then
  12527. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12528. else
  12529. lt_prog_compiler_no_builtin_flag_CXX=
  12530. fi
  12531. if test yes = "$GXX"; then
  12532. # Set up default GNU C++ configuration
  12533. # Check whether --with-gnu-ld was given.
  12534. if test ${with_gnu_ld+y}
  12535. then :
  12536. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12537. else $as_nop
  12538. with_gnu_ld=no
  12539. fi
  12540. ac_prog=ld
  12541. if test yes = "$GCC"; then
  12542. # Check if gcc -print-prog-name=ld gives a path.
  12543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12544. printf %s "checking for ld used by $CC... " >&6; }
  12545. case $host in
  12546. *-*-mingw*)
  12547. # gcc leaves a trailing carriage return, which upsets mingw
  12548. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12549. *)
  12550. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12551. esac
  12552. case $ac_prog in
  12553. # Accept absolute paths.
  12554. [\\/]* | ?:[\\/]*)
  12555. re_direlt='/[^/][^/]*/\.\./'
  12556. # Canonicalize the pathname of ld
  12557. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12558. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12559. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12560. done
  12561. test -z "$LD" && LD=$ac_prog
  12562. ;;
  12563. "")
  12564. # If it fails, then pretend we aren't using GCC.
  12565. ac_prog=ld
  12566. ;;
  12567. *)
  12568. # If it is relative, then search for the first ld in PATH.
  12569. with_gnu_ld=unknown
  12570. ;;
  12571. esac
  12572. elif test yes = "$with_gnu_ld"; then
  12573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12574. printf %s "checking for GNU ld... " >&6; }
  12575. else
  12576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12577. printf %s "checking for non-GNU ld... " >&6; }
  12578. fi
  12579. if test ${lt_cv_path_LD+y}
  12580. then :
  12581. printf %s "(cached) " >&6
  12582. else $as_nop
  12583. if test -z "$LD"; then
  12584. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12585. for ac_dir in $PATH; do
  12586. IFS=$lt_save_ifs
  12587. test -z "$ac_dir" && ac_dir=.
  12588. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12589. lt_cv_path_LD=$ac_dir/$ac_prog
  12590. # Check to see if the program is GNU ld. I'd rather use --version,
  12591. # but apparently some variants of GNU ld only accept -v.
  12592. # Break only if it was the GNU/non-GNU ld that we prefer.
  12593. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12594. *GNU* | *'with BFD'*)
  12595. test no != "$with_gnu_ld" && break
  12596. ;;
  12597. *)
  12598. test yes != "$with_gnu_ld" && break
  12599. ;;
  12600. esac
  12601. fi
  12602. done
  12603. IFS=$lt_save_ifs
  12604. else
  12605. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12606. fi
  12607. fi
  12608. LD=$lt_cv_path_LD
  12609. if test -n "$LD"; then
  12610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12611. printf "%s\n" "$LD" >&6; }
  12612. else
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12614. printf "%s\n" "no" >&6; }
  12615. fi
  12616. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12618. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12619. if test ${lt_cv_prog_gnu_ld+y}
  12620. then :
  12621. printf %s "(cached) " >&6
  12622. else $as_nop
  12623. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12624. case `$LD -v 2>&1 </dev/null` in
  12625. *GNU* | *'with BFD'*)
  12626. lt_cv_prog_gnu_ld=yes
  12627. ;;
  12628. *)
  12629. lt_cv_prog_gnu_ld=no
  12630. ;;
  12631. esac
  12632. fi
  12633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12634. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12635. with_gnu_ld=$lt_cv_prog_gnu_ld
  12636. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12637. # archiving commands below assume that GNU ld is being used.
  12638. if test yes = "$with_gnu_ld"; then
  12639. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12640. 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'
  12641. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12642. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12643. # If archive_cmds runs LD, not CC, wlarc should be empty
  12644. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12645. # investigate it a little bit more. (MM)
  12646. wlarc='$wl'
  12647. # ancient GNU ld didn't support --whole-archive et. al.
  12648. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12649. $GREP 'no-whole-archive' > /dev/null; then
  12650. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12651. else
  12652. whole_archive_flag_spec_CXX=
  12653. fi
  12654. else
  12655. with_gnu_ld=no
  12656. wlarc=
  12657. # A generic and very simple default shared library creation
  12658. # command for GNU C++ for the case where it uses the native
  12659. # linker, instead of GNU ld. If possible, this setting should
  12660. # overridden to take advantage of the native linker features on
  12661. # the platform it is being used on.
  12662. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12663. fi
  12664. # Commands to make compiler produce verbose output that lists
  12665. # what "hidden" libraries, object files and flags are used when
  12666. # linking a shared library.
  12667. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12668. else
  12669. GXX=no
  12670. with_gnu_ld=no
  12671. wlarc=
  12672. fi
  12673. # PORTME: fill in a description of your system's C++ link characteristics
  12674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12675. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12676. ld_shlibs_CXX=yes
  12677. case $host_os in
  12678. aix3*)
  12679. # FIXME: insert proper C++ library support
  12680. ld_shlibs_CXX=no
  12681. ;;
  12682. aix[4-9]*)
  12683. if test ia64 = "$host_cpu"; then
  12684. # On IA64, the linker does run time linking by default, so we don't
  12685. # have to do anything special.
  12686. aix_use_runtimelinking=no
  12687. exp_sym_flag='-Bexport'
  12688. no_entry_flag=
  12689. else
  12690. aix_use_runtimelinking=no
  12691. # Test if we are trying to use run time linking or normal
  12692. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12693. # have runtime linking enabled, and use it for executables.
  12694. # For shared libraries, we enable/disable runtime linking
  12695. # depending on the kind of the shared library created -
  12696. # when "with_aix_soname,aix_use_runtimelinking" is:
  12697. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12698. # "aix,yes" lib.so shared, rtl:yes, for executables
  12699. # lib.a static archive
  12700. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12701. # lib.a(lib.so.V) shared, rtl:no, for executables
  12702. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12703. # lib.a(lib.so.V) shared, rtl:no
  12704. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12705. # lib.a static archive
  12706. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12707. for ld_flag in $LDFLAGS; do
  12708. case $ld_flag in
  12709. *-brtl*)
  12710. aix_use_runtimelinking=yes
  12711. break
  12712. ;;
  12713. esac
  12714. done
  12715. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12716. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12717. # so we don't have lib.a shared libs to link our executables.
  12718. # We have to force runtime linking in this case.
  12719. aix_use_runtimelinking=yes
  12720. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12721. fi
  12722. ;;
  12723. esac
  12724. exp_sym_flag='-bexport'
  12725. no_entry_flag='-bnoentry'
  12726. fi
  12727. # When large executables or shared objects are built, AIX ld can
  12728. # have problems creating the table of contents. If linking a library
  12729. # or program results in "error TOC overflow" add -mminimal-toc to
  12730. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12731. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12732. archive_cmds_CXX=''
  12733. hardcode_direct_CXX=yes
  12734. hardcode_direct_absolute_CXX=yes
  12735. hardcode_libdir_separator_CXX=':'
  12736. link_all_deplibs_CXX=yes
  12737. file_list_spec_CXX='$wl-f,'
  12738. case $with_aix_soname,$aix_use_runtimelinking in
  12739. aix,*) ;; # no import file
  12740. svr4,* | *,yes) # use import file
  12741. # The Import File defines what to hardcode.
  12742. hardcode_direct_CXX=no
  12743. hardcode_direct_absolute_CXX=no
  12744. ;;
  12745. esac
  12746. if test yes = "$GXX"; then
  12747. case $host_os in aix4.[012]|aix4.[012].*)
  12748. # We only want to do this on AIX 4.2 and lower, the check
  12749. # below for broken collect2 doesn't work under 4.3+
  12750. collect2name=`$CC -print-prog-name=collect2`
  12751. if test -f "$collect2name" &&
  12752. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12753. then
  12754. # We have reworked collect2
  12755. :
  12756. else
  12757. # We have old collect2
  12758. hardcode_direct_CXX=unsupported
  12759. # It fails to find uninstalled libraries when the uninstalled
  12760. # path is not listed in the libpath. Setting hardcode_minus_L
  12761. # to unsupported forces relinking
  12762. hardcode_minus_L_CXX=yes
  12763. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12764. hardcode_libdir_separator_CXX=
  12765. fi
  12766. esac
  12767. shared_flag='-shared'
  12768. if test yes = "$aix_use_runtimelinking"; then
  12769. shared_flag=$shared_flag' $wl-G'
  12770. fi
  12771. # Need to ensure runtime linking is disabled for the traditional
  12772. # shared library, or the linker may eventually find shared libraries
  12773. # /with/ Import File - we do not want to mix them.
  12774. shared_flag_aix='-shared'
  12775. shared_flag_svr4='-shared $wl-G'
  12776. else
  12777. # not using gcc
  12778. if test ia64 = "$host_cpu"; then
  12779. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12780. # chokes on -Wl,-G. The following line is correct:
  12781. shared_flag='-G'
  12782. else
  12783. if test yes = "$aix_use_runtimelinking"; then
  12784. shared_flag='$wl-G'
  12785. else
  12786. shared_flag='$wl-bM:SRE'
  12787. fi
  12788. shared_flag_aix='$wl-bM:SRE'
  12789. shared_flag_svr4='$wl-G'
  12790. fi
  12791. fi
  12792. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12793. # It seems that -bexpall does not export symbols beginning with
  12794. # underscore (_), so it is better to generate a list of symbols to
  12795. # export.
  12796. always_export_symbols_CXX=yes
  12797. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12798. # Warning - without using the other runtime loading flags (-brtl),
  12799. # -berok will link without error, but may produce a broken library.
  12800. # The "-G" linker flag allows undefined symbols.
  12801. no_undefined_flag_CXX='-bernotok'
  12802. # Determine the default libpath from the value encoded in an empty
  12803. # executable.
  12804. if test set = "${lt_cv_aix_libpath+set}"; then
  12805. aix_libpath=$lt_cv_aix_libpath
  12806. else
  12807. if test ${lt_cv_aix_libpath__CXX+y}
  12808. then :
  12809. printf %s "(cached) " >&6
  12810. else $as_nop
  12811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12812. /* end confdefs.h. */
  12813. int
  12814. main (void)
  12815. {
  12816. ;
  12817. return 0;
  12818. }
  12819. _ACEOF
  12820. if ac_fn_cxx_try_link "$LINENO"
  12821. then :
  12822. lt_aix_libpath_sed='
  12823. /Import File Strings/,/^$/ {
  12824. /^0/ {
  12825. s/^0 *\([^ ]*\) *$/\1/
  12826. p
  12827. }
  12828. }'
  12829. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12830. # Check for a 64-bit object if we didn't find anything.
  12831. if test -z "$lt_cv_aix_libpath__CXX"; then
  12832. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12833. fi
  12834. fi
  12835. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12836. conftest$ac_exeext conftest.$ac_ext
  12837. if test -z "$lt_cv_aix_libpath__CXX"; then
  12838. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12839. fi
  12840. fi
  12841. aix_libpath=$lt_cv_aix_libpath__CXX
  12842. fi
  12843. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12844. 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
  12845. else
  12846. if test ia64 = "$host_cpu"; then
  12847. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12848. allow_undefined_flag_CXX="-z nodefs"
  12849. 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"
  12850. else
  12851. # Determine the default libpath from the value encoded in an
  12852. # empty executable.
  12853. if test set = "${lt_cv_aix_libpath+set}"; then
  12854. aix_libpath=$lt_cv_aix_libpath
  12855. else
  12856. if test ${lt_cv_aix_libpath__CXX+y}
  12857. then :
  12858. printf %s "(cached) " >&6
  12859. else $as_nop
  12860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12861. /* end confdefs.h. */
  12862. int
  12863. main (void)
  12864. {
  12865. ;
  12866. return 0;
  12867. }
  12868. _ACEOF
  12869. if ac_fn_cxx_try_link "$LINENO"
  12870. then :
  12871. lt_aix_libpath_sed='
  12872. /Import File Strings/,/^$/ {
  12873. /^0/ {
  12874. s/^0 *\([^ ]*\) *$/\1/
  12875. p
  12876. }
  12877. }'
  12878. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12879. # Check for a 64-bit object if we didn't find anything.
  12880. if test -z "$lt_cv_aix_libpath__CXX"; then
  12881. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12882. fi
  12883. fi
  12884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12885. conftest$ac_exeext conftest.$ac_ext
  12886. if test -z "$lt_cv_aix_libpath__CXX"; then
  12887. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12888. fi
  12889. fi
  12890. aix_libpath=$lt_cv_aix_libpath__CXX
  12891. fi
  12892. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12893. # Warning - without using the other run time loading flags,
  12894. # -berok will link without error, but may produce a broken library.
  12895. no_undefined_flag_CXX=' $wl-bernotok'
  12896. allow_undefined_flag_CXX=' $wl-berok'
  12897. if test yes = "$with_gnu_ld"; then
  12898. # We only use this code for GNU lds that support --whole-archive.
  12899. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12900. else
  12901. # Exported symbols can be pulled into shared objects from archives
  12902. whole_archive_flag_spec_CXX='$convenience'
  12903. fi
  12904. archive_cmds_need_lc_CXX=yes
  12905. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12906. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12907. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12908. if test svr4 != "$with_aix_soname"; then
  12909. # This is similar to how AIX traditionally builds its shared
  12910. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12911. 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'
  12912. fi
  12913. if test aix != "$with_aix_soname"; then
  12914. 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'
  12915. else
  12916. # used by -dlpreopen to get the symbols
  12917. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12918. fi
  12919. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12920. fi
  12921. fi
  12922. ;;
  12923. beos*)
  12924. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12925. allow_undefined_flag_CXX=unsupported
  12926. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12927. # support --undefined. This deserves some investigation. FIXME
  12928. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12929. else
  12930. ld_shlibs_CXX=no
  12931. fi
  12932. ;;
  12933. chorus*)
  12934. case $cc_basename in
  12935. *)
  12936. # FIXME: insert proper C++ library support
  12937. ld_shlibs_CXX=no
  12938. ;;
  12939. esac
  12940. ;;
  12941. cygwin* | mingw* | pw32* | cegcc*)
  12942. case $GXX,$cc_basename in
  12943. ,cl* | no,cl*)
  12944. # Native MSVC
  12945. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12946. # no search path for DLLs.
  12947. hardcode_libdir_flag_spec_CXX=' '
  12948. allow_undefined_flag_CXX=unsupported
  12949. always_export_symbols_CXX=yes
  12950. file_list_spec_CXX='@'
  12951. # Tell ltmain to make .lib files, not .a files.
  12952. libext=lib
  12953. # Tell ltmain to make .dll files, not .so files.
  12954. shrext_cmds=.dll
  12955. # FIXME: Setting linknames here is a bad hack.
  12956. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12957. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12958. cp "$export_symbols" "$output_objdir/$soname.def";
  12959. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12960. else
  12961. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12962. fi~
  12963. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12964. linknames='
  12965. # The linker will not automatically build a static lib if we build a DLL.
  12966. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12967. enable_shared_with_static_runtimes_CXX=yes
  12968. # Don't use ranlib
  12969. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12970. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12971. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12972. case $lt_outputfile in
  12973. *.exe|*.EXE) ;;
  12974. *)
  12975. lt_outputfile=$lt_outputfile.exe
  12976. lt_tool_outputfile=$lt_tool_outputfile.exe
  12977. ;;
  12978. esac~
  12979. func_to_tool_file "$lt_outputfile"~
  12980. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12981. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12982. $RM "$lt_outputfile.manifest";
  12983. fi'
  12984. ;;
  12985. *)
  12986. # g++
  12987. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12988. # as there is no search path for DLLs.
  12989. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12990. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12991. allow_undefined_flag_CXX=unsupported
  12992. always_export_symbols_CXX=no
  12993. enable_shared_with_static_runtimes_CXX=yes
  12994. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12995. 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'
  12996. # If the export-symbols file already is a .def file, use it as
  12997. # is; otherwise, prepend EXPORTS...
  12998. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12999. cp $export_symbols $output_objdir/$soname.def;
  13000. else
  13001. echo EXPORTS > $output_objdir/$soname.def;
  13002. cat $export_symbols >> $output_objdir/$soname.def;
  13003. fi~
  13004. $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'
  13005. else
  13006. ld_shlibs_CXX=no
  13007. fi
  13008. ;;
  13009. esac
  13010. ;;
  13011. darwin* | rhapsody*)
  13012. archive_cmds_need_lc_CXX=no
  13013. hardcode_direct_CXX=no
  13014. hardcode_automatic_CXX=yes
  13015. hardcode_shlibpath_var_CXX=unsupported
  13016. if test yes = "$lt_cv_ld_force_load"; then
  13017. 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\"`'
  13018. else
  13019. whole_archive_flag_spec_CXX=''
  13020. fi
  13021. link_all_deplibs_CXX=yes
  13022. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13023. case $cc_basename in
  13024. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13025. *) _lt_dar_can_shared=$GCC ;;
  13026. esac
  13027. if test yes = "$_lt_dar_can_shared"; then
  13028. output_verbose_link_cmd=func_echo_all
  13029. 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"
  13030. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13031. 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"
  13032. 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"
  13033. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13034. 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"
  13035. 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"
  13036. fi
  13037. else
  13038. ld_shlibs_CXX=no
  13039. fi
  13040. ;;
  13041. os2*)
  13042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13043. hardcode_minus_L_CXX=yes
  13044. allow_undefined_flag_CXX=unsupported
  13045. shrext_cmds=.dll
  13046. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13047. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13048. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13049. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13050. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13051. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13052. emximp -o $lib $output_objdir/$libname.def'
  13053. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13054. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13055. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13056. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13057. prefix_cmds="$SED"~
  13058. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13059. prefix_cmds="$prefix_cmds -e 1d";
  13060. fi~
  13061. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13062. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13063. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13064. emximp -o $lib $output_objdir/$libname.def'
  13065. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13066. enable_shared_with_static_runtimes_CXX=yes
  13067. file_list_spec_CXX='@'
  13068. ;;
  13069. dgux*)
  13070. case $cc_basename in
  13071. ec++*)
  13072. # FIXME: insert proper C++ library support
  13073. ld_shlibs_CXX=no
  13074. ;;
  13075. ghcx*)
  13076. # Green Hills C++ Compiler
  13077. # FIXME: insert proper C++ library support
  13078. ld_shlibs_CXX=no
  13079. ;;
  13080. *)
  13081. # FIXME: insert proper C++ library support
  13082. ld_shlibs_CXX=no
  13083. ;;
  13084. esac
  13085. ;;
  13086. freebsd2.*)
  13087. # C++ shared libraries reported to be fairly broken before
  13088. # switch to ELF
  13089. ld_shlibs_CXX=no
  13090. ;;
  13091. freebsd-elf*)
  13092. archive_cmds_need_lc_CXX=no
  13093. ;;
  13094. freebsd* | dragonfly* | midnightbsd*)
  13095. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13096. # conventions
  13097. ld_shlibs_CXX=yes
  13098. ;;
  13099. haiku*)
  13100. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13101. link_all_deplibs_CXX=yes
  13102. ;;
  13103. hpux9*)
  13104. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13105. hardcode_libdir_separator_CXX=:
  13106. export_dynamic_flag_spec_CXX='$wl-E'
  13107. hardcode_direct_CXX=yes
  13108. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13109. # but as the default
  13110. # location of the library.
  13111. case $cc_basename in
  13112. CC*)
  13113. # FIXME: insert proper C++ library support
  13114. ld_shlibs_CXX=no
  13115. ;;
  13116. aCC*)
  13117. 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'
  13118. # Commands to make compiler produce verbose output that lists
  13119. # what "hidden" libraries, object files and flags are used when
  13120. # linking a shared library.
  13121. #
  13122. # There doesn't appear to be a way to prevent this compiler from
  13123. # explicitly linking system object files so we need to strip them
  13124. # from the output so that they don't get included in the library
  13125. # dependencies.
  13126. 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"'
  13127. ;;
  13128. *)
  13129. if test yes = "$GXX"; then
  13130. 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'
  13131. else
  13132. # FIXME: insert proper C++ library support
  13133. ld_shlibs_CXX=no
  13134. fi
  13135. ;;
  13136. esac
  13137. ;;
  13138. hpux10*|hpux11*)
  13139. if test no = "$with_gnu_ld"; then
  13140. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13141. hardcode_libdir_separator_CXX=:
  13142. case $host_cpu in
  13143. hppa*64*|ia64*)
  13144. ;;
  13145. *)
  13146. export_dynamic_flag_spec_CXX='$wl-E'
  13147. ;;
  13148. esac
  13149. fi
  13150. case $host_cpu in
  13151. hppa*64*|ia64*)
  13152. hardcode_direct_CXX=no
  13153. hardcode_shlibpath_var_CXX=no
  13154. ;;
  13155. *)
  13156. hardcode_direct_CXX=yes
  13157. hardcode_direct_absolute_CXX=yes
  13158. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13159. # but as the default
  13160. # location of the library.
  13161. ;;
  13162. esac
  13163. case $cc_basename in
  13164. CC*)
  13165. # FIXME: insert proper C++ library support
  13166. ld_shlibs_CXX=no
  13167. ;;
  13168. aCC*)
  13169. case $host_cpu in
  13170. hppa*64*)
  13171. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13172. ;;
  13173. ia64*)
  13174. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13175. ;;
  13176. *)
  13177. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13178. ;;
  13179. esac
  13180. # Commands to make compiler produce verbose output that lists
  13181. # what "hidden" libraries, object files and flags are used when
  13182. # linking a shared library.
  13183. #
  13184. # There doesn't appear to be a way to prevent this compiler from
  13185. # explicitly linking system object files so we need to strip them
  13186. # from the output so that they don't get included in the library
  13187. # dependencies.
  13188. 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"'
  13189. ;;
  13190. *)
  13191. if test yes = "$GXX"; then
  13192. if test no = "$with_gnu_ld"; then
  13193. case $host_cpu in
  13194. hppa*64*)
  13195. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13196. ;;
  13197. ia64*)
  13198. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13199. ;;
  13200. *)
  13201. 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'
  13202. ;;
  13203. esac
  13204. fi
  13205. else
  13206. # FIXME: insert proper C++ library support
  13207. ld_shlibs_CXX=no
  13208. fi
  13209. ;;
  13210. esac
  13211. ;;
  13212. interix[3-9]*)
  13213. hardcode_direct_CXX=no
  13214. hardcode_shlibpath_var_CXX=no
  13215. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13216. export_dynamic_flag_spec_CXX='$wl-E'
  13217. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13218. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13219. # default) and relocated if they conflict, which is a slow very memory
  13220. # consuming and fragmenting process. To avoid this, we pick a random,
  13221. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13222. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13223. 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'
  13224. 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'
  13225. ;;
  13226. irix5* | irix6*)
  13227. case $cc_basename in
  13228. CC*)
  13229. # SGI C++
  13230. 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'
  13231. # Archives containing C++ object files must be created using
  13232. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13233. # necessary to make sure instantiated templates are included
  13234. # in the archive.
  13235. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13236. ;;
  13237. *)
  13238. if test yes = "$GXX"; then
  13239. if test no = "$with_gnu_ld"; then
  13240. 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'
  13241. else
  13242. 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'
  13243. fi
  13244. fi
  13245. link_all_deplibs_CXX=yes
  13246. ;;
  13247. esac
  13248. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13249. hardcode_libdir_separator_CXX=:
  13250. inherit_rpath_CXX=yes
  13251. ;;
  13252. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13253. case $cc_basename in
  13254. KCC*)
  13255. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13256. # KCC will only create a shared library if the output file
  13257. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13258. # to its proper name (with version) after linking.
  13259. 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'
  13260. 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'
  13261. # Commands to make compiler produce verbose output that lists
  13262. # what "hidden" libraries, object files and flags are used when
  13263. # linking a shared library.
  13264. #
  13265. # There doesn't appear to be a way to prevent this compiler from
  13266. # explicitly linking system object files so we need to strip them
  13267. # from the output so that they don't get included in the library
  13268. # dependencies.
  13269. 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"'
  13270. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13271. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13272. # Archives containing C++ object files must be created using
  13273. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13274. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13275. ;;
  13276. icpc* | ecpc* )
  13277. # Intel C++
  13278. with_gnu_ld=yes
  13279. # version 8.0 and above of icpc choke on multiply defined symbols
  13280. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13281. # earlier do not add the objects themselves.
  13282. case `$CC -V 2>&1` in
  13283. *"Version 7."*)
  13284. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13285. 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'
  13286. ;;
  13287. *) # Version 8.0 or newer
  13288. tmp_idyn=
  13289. case $host_cpu in
  13290. ia64*) tmp_idyn=' -i_dynamic';;
  13291. esac
  13292. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13293. 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'
  13294. ;;
  13295. esac
  13296. archive_cmds_need_lc_CXX=no
  13297. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13298. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13299. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13300. ;;
  13301. pgCC* | pgcpp*)
  13302. # Portland Group C++ compiler
  13303. case `$CC -V` in
  13304. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13305. prelink_cmds_CXX='tpldir=Template.dir~
  13306. rm -rf $tpldir~
  13307. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13308. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13309. old_archive_cmds_CXX='tpldir=Template.dir~
  13310. rm -rf $tpldir~
  13311. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13312. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13313. $RANLIB $oldlib'
  13314. archive_cmds_CXX='tpldir=Template.dir~
  13315. rm -rf $tpldir~
  13316. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13317. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13318. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13319. rm -rf $tpldir~
  13320. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13321. $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'
  13322. ;;
  13323. *) # Version 6 and above use weak symbols
  13324. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13325. 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'
  13326. ;;
  13327. esac
  13328. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13329. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13330. 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'
  13331. ;;
  13332. cxx*)
  13333. # Compaq C++
  13334. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13335. 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'
  13336. runpath_var=LD_RUN_PATH
  13337. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13338. hardcode_libdir_separator_CXX=:
  13339. # Commands to make compiler produce verbose output that lists
  13340. # what "hidden" libraries, object files and flags are used when
  13341. # linking a shared library.
  13342. #
  13343. # There doesn't appear to be a way to prevent this compiler from
  13344. # explicitly linking system object files so we need to strip them
  13345. # from the output so that they don't get included in the library
  13346. # dependencies.
  13347. 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'
  13348. ;;
  13349. xl* | mpixl* | bgxl*)
  13350. # IBM XL 8.0 on PPC, with GNU ld
  13351. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13352. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13353. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13354. if test yes = "$supports_anon_versioning"; then
  13355. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13356. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13357. echo "local: *; };" >> $output_objdir/$libname.ver~
  13358. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13359. fi
  13360. ;;
  13361. *)
  13362. case `$CC -V 2>&1 | sed 5q` in
  13363. *Sun\ C*)
  13364. # Sun C++ 5.9
  13365. no_undefined_flag_CXX=' -zdefs'
  13366. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13367. 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'
  13368. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13369. 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'
  13370. compiler_needs_object_CXX=yes
  13371. # Not sure whether something based on
  13372. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13373. # would be better.
  13374. output_verbose_link_cmd='func_echo_all'
  13375. # Archives containing C++ object files must be created using
  13376. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13377. # necessary to make sure instantiated templates are included
  13378. # in the archive.
  13379. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13380. ;;
  13381. esac
  13382. ;;
  13383. esac
  13384. ;;
  13385. lynxos*)
  13386. # FIXME: insert proper C++ library support
  13387. ld_shlibs_CXX=no
  13388. ;;
  13389. m88k*)
  13390. # FIXME: insert proper C++ library support
  13391. ld_shlibs_CXX=no
  13392. ;;
  13393. mvs*)
  13394. case $cc_basename in
  13395. cxx*)
  13396. # FIXME: insert proper C++ library support
  13397. ld_shlibs_CXX=no
  13398. ;;
  13399. *)
  13400. # FIXME: insert proper C++ library support
  13401. ld_shlibs_CXX=no
  13402. ;;
  13403. esac
  13404. ;;
  13405. netbsd*)
  13406. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13407. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13408. wlarc=
  13409. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13410. hardcode_direct_CXX=yes
  13411. hardcode_shlibpath_var_CXX=no
  13412. fi
  13413. # Workaround some broken pre-1.5 toolchains
  13414. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13415. ;;
  13416. *nto* | *qnx*)
  13417. ld_shlibs_CXX=yes
  13418. ;;
  13419. openbsd* | bitrig*)
  13420. if test -f /usr/libexec/ld.so; then
  13421. hardcode_direct_CXX=yes
  13422. hardcode_shlibpath_var_CXX=no
  13423. hardcode_direct_absolute_CXX=yes
  13424. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13425. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13426. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13427. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13428. export_dynamic_flag_spec_CXX='$wl-E'
  13429. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13430. fi
  13431. output_verbose_link_cmd=func_echo_all
  13432. else
  13433. ld_shlibs_CXX=no
  13434. fi
  13435. ;;
  13436. osf3* | osf4* | osf5*)
  13437. case $cc_basename in
  13438. KCC*)
  13439. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13440. # KCC will only create a shared library if the output file
  13441. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13442. # to its proper name (with version) after linking.
  13443. 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'
  13444. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13445. hardcode_libdir_separator_CXX=:
  13446. # Archives containing C++ object files must be created using
  13447. # the KAI C++ compiler.
  13448. case $host in
  13449. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13450. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13451. esac
  13452. ;;
  13453. RCC*)
  13454. # Rational C++ 2.4.1
  13455. # FIXME: insert proper C++ library support
  13456. ld_shlibs_CXX=no
  13457. ;;
  13458. cxx*)
  13459. case $host in
  13460. osf3*)
  13461. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13462. 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'
  13463. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13464. ;;
  13465. *)
  13466. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13467. 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'
  13468. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13469. echo "-hidden">> $lib.exp~
  13470. $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~
  13471. $RM $lib.exp'
  13472. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13473. ;;
  13474. esac
  13475. hardcode_libdir_separator_CXX=:
  13476. # Commands to make compiler produce verbose output that lists
  13477. # what "hidden" libraries, object files and flags are used when
  13478. # linking a shared library.
  13479. #
  13480. # There doesn't appear to be a way to prevent this compiler from
  13481. # explicitly linking system object files so we need to strip them
  13482. # from the output so that they don't get included in the library
  13483. # dependencies.
  13484. 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"'
  13485. ;;
  13486. *)
  13487. if test yes,no = "$GXX,$with_gnu_ld"; then
  13488. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13489. case $host in
  13490. osf3*)
  13491. 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'
  13492. ;;
  13493. *)
  13494. 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'
  13495. ;;
  13496. esac
  13497. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13498. hardcode_libdir_separator_CXX=:
  13499. # Commands to make compiler produce verbose output that lists
  13500. # what "hidden" libraries, object files and flags are used when
  13501. # linking a shared library.
  13502. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13503. else
  13504. # FIXME: insert proper C++ library support
  13505. ld_shlibs_CXX=no
  13506. fi
  13507. ;;
  13508. esac
  13509. ;;
  13510. psos*)
  13511. # FIXME: insert proper C++ library support
  13512. ld_shlibs_CXX=no
  13513. ;;
  13514. sunos4*)
  13515. case $cc_basename in
  13516. CC*)
  13517. # Sun C++ 4.x
  13518. # FIXME: insert proper C++ library support
  13519. ld_shlibs_CXX=no
  13520. ;;
  13521. lcc*)
  13522. # Lucid
  13523. # FIXME: insert proper C++ library support
  13524. ld_shlibs_CXX=no
  13525. ;;
  13526. *)
  13527. # FIXME: insert proper C++ library support
  13528. ld_shlibs_CXX=no
  13529. ;;
  13530. esac
  13531. ;;
  13532. solaris*)
  13533. case $cc_basename in
  13534. CC* | sunCC*)
  13535. # Sun C++ 4.2, 5.x and Centerline C++
  13536. archive_cmds_need_lc_CXX=yes
  13537. no_undefined_flag_CXX=' -zdefs'
  13538. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13539. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13540. $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'
  13541. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13542. hardcode_shlibpath_var_CXX=no
  13543. case $host_os in
  13544. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13545. *)
  13546. # The compiler driver will combine and reorder linker options,
  13547. # but understands '-z linker_flag'.
  13548. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13549. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13550. ;;
  13551. esac
  13552. link_all_deplibs_CXX=yes
  13553. output_verbose_link_cmd='func_echo_all'
  13554. # Archives containing C++ object files must be created using
  13555. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13556. # necessary to make sure instantiated templates are included
  13557. # in the archive.
  13558. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13559. ;;
  13560. gcx*)
  13561. # Green Hills C++ Compiler
  13562. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13563. # The C++ compiler must be used to create the archive.
  13564. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13565. ;;
  13566. *)
  13567. # GNU C++ compiler with Solaris linker
  13568. if test yes,no = "$GXX,$with_gnu_ld"; then
  13569. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13570. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13571. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13572. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13573. $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'
  13574. # Commands to make compiler produce verbose output that lists
  13575. # what "hidden" libraries, object files and flags are used when
  13576. # linking a shared library.
  13577. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13578. else
  13579. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13580. # platform.
  13581. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13582. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13583. $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'
  13584. # Commands to make compiler produce verbose output that lists
  13585. # what "hidden" libraries, object files and flags are used when
  13586. # linking a shared library.
  13587. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13588. fi
  13589. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13590. case $host_os in
  13591. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13592. *)
  13593. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13594. ;;
  13595. esac
  13596. fi
  13597. ;;
  13598. esac
  13599. ;;
  13600. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13601. no_undefined_flag_CXX='$wl-z,text'
  13602. archive_cmds_need_lc_CXX=no
  13603. hardcode_shlibpath_var_CXX=no
  13604. runpath_var='LD_RUN_PATH'
  13605. case $cc_basename in
  13606. CC*)
  13607. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13608. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13609. ;;
  13610. *)
  13611. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13612. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13613. ;;
  13614. esac
  13615. ;;
  13616. sysv5* | sco3.2v5* | sco5v6*)
  13617. # Note: We CANNOT use -z defs as we might desire, because we do not
  13618. # link with -lc, and that would cause any symbols used from libc to
  13619. # always be unresolved, which means just about no library would
  13620. # ever link correctly. If we're not using GNU ld we use -z text
  13621. # though, which does catch some bad symbols but isn't as heavy-handed
  13622. # as -z defs.
  13623. no_undefined_flag_CXX='$wl-z,text'
  13624. allow_undefined_flag_CXX='$wl-z,nodefs'
  13625. archive_cmds_need_lc_CXX=no
  13626. hardcode_shlibpath_var_CXX=no
  13627. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13628. hardcode_libdir_separator_CXX=':'
  13629. link_all_deplibs_CXX=yes
  13630. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13631. runpath_var='LD_RUN_PATH'
  13632. case $cc_basename in
  13633. CC*)
  13634. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13635. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13636. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13637. '"$old_archive_cmds_CXX"
  13638. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13639. '"$reload_cmds_CXX"
  13640. ;;
  13641. *)
  13642. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13643. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13644. ;;
  13645. esac
  13646. ;;
  13647. tandem*)
  13648. case $cc_basename in
  13649. NCC*)
  13650. # NonStop-UX NCC 3.20
  13651. # FIXME: insert proper C++ library support
  13652. ld_shlibs_CXX=no
  13653. ;;
  13654. *)
  13655. # FIXME: insert proper C++ library support
  13656. ld_shlibs_CXX=no
  13657. ;;
  13658. esac
  13659. ;;
  13660. vxworks*)
  13661. # FIXME: insert proper C++ library support
  13662. ld_shlibs_CXX=no
  13663. ;;
  13664. *)
  13665. # FIXME: insert proper C++ library support
  13666. ld_shlibs_CXX=no
  13667. ;;
  13668. esac
  13669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13670. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13671. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13672. GCC_CXX=$GXX
  13673. LD_CXX=$LD
  13674. ## CAVEAT EMPTOR:
  13675. ## There is no encapsulation within the following macros, do not change
  13676. ## the running order or otherwise move them around unless you know exactly
  13677. ## what you are doing...
  13678. # Dependencies to place before and after the object being linked:
  13679. predep_objects_CXX=
  13680. postdep_objects_CXX=
  13681. predeps_CXX=
  13682. postdeps_CXX=
  13683. compiler_lib_search_path_CXX=
  13684. cat > conftest.$ac_ext <<_LT_EOF
  13685. class Foo
  13686. {
  13687. public:
  13688. Foo (void) { a = 0; }
  13689. private:
  13690. int a;
  13691. };
  13692. _LT_EOF
  13693. _lt_libdeps_save_CFLAGS=$CFLAGS
  13694. case "$CC $CFLAGS " in #(
  13695. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13696. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13697. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13698. esac
  13699. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13700. (eval $ac_compile) 2>&5
  13701. ac_status=$?
  13702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13703. test $ac_status = 0; }; then
  13704. # Parse the compiler output and extract the necessary
  13705. # objects, libraries and library flags.
  13706. # Sentinel used to keep track of whether or not we are before
  13707. # the conftest object file.
  13708. pre_test_object_deps_done=no
  13709. for p in `eval "$output_verbose_link_cmd"`; do
  13710. case $prev$p in
  13711. -L* | -R* | -l*)
  13712. # Some compilers place space between "-{L,R}" and the path.
  13713. # Remove the space.
  13714. if test x-L = "x$p" ||
  13715. test x-R = "x$p" ||
  13716. test x-l = "x$p"; then
  13717. prev=$p
  13718. continue
  13719. fi
  13720. # Expand the sysroot to ease extracting the directories later.
  13721. if test -z "$prev"; then
  13722. case $p in
  13723. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13724. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13725. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13726. esac
  13727. fi
  13728. case $p in
  13729. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13730. esac
  13731. if test no = "$pre_test_object_deps_done"; then
  13732. case $prev in
  13733. -L | -R)
  13734. # Internal compiler library paths should come after those
  13735. # provided the user. The postdeps already come after the
  13736. # user supplied libs so there is no need to process them.
  13737. if test -z "$compiler_lib_search_path_CXX"; then
  13738. compiler_lib_search_path_CXX=$prev$p
  13739. else
  13740. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13741. fi
  13742. ;;
  13743. # The "-l" case would never come before the object being
  13744. # linked, so don't bother handling this case.
  13745. esac
  13746. else
  13747. if test -z "$postdeps_CXX"; then
  13748. postdeps_CXX=$prev$p
  13749. else
  13750. postdeps_CXX="${postdeps_CXX} $prev$p"
  13751. fi
  13752. fi
  13753. prev=
  13754. ;;
  13755. *.lto.$objext) ;; # Ignore GCC LTO objects
  13756. *.$objext)
  13757. # This assumes that the test object file only shows up
  13758. # once in the compiler output.
  13759. if test "$p" = "conftest.$objext"; then
  13760. pre_test_object_deps_done=yes
  13761. continue
  13762. fi
  13763. if test no = "$pre_test_object_deps_done"; then
  13764. if test -z "$predep_objects_CXX"; then
  13765. predep_objects_CXX=$p
  13766. else
  13767. predep_objects_CXX="$predep_objects_CXX $p"
  13768. fi
  13769. else
  13770. if test -z "$postdep_objects_CXX"; then
  13771. postdep_objects_CXX=$p
  13772. else
  13773. postdep_objects_CXX="$postdep_objects_CXX $p"
  13774. fi
  13775. fi
  13776. ;;
  13777. *) ;; # Ignore the rest.
  13778. esac
  13779. done
  13780. # Clean up.
  13781. rm -f a.out a.exe
  13782. else
  13783. echo "libtool.m4: error: problem compiling CXX test program"
  13784. fi
  13785. $RM -f confest.$objext
  13786. CFLAGS=$_lt_libdeps_save_CFLAGS
  13787. # PORTME: override above test on systems where it is broken
  13788. case $host_os in
  13789. interix[3-9]*)
  13790. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13791. # hack all around it, let's just trust "g++" to DTRT.
  13792. predep_objects_CXX=
  13793. postdep_objects_CXX=
  13794. postdeps_CXX=
  13795. ;;
  13796. esac
  13797. case " $postdeps_CXX " in
  13798. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13799. esac
  13800. compiler_lib_search_dirs_CXX=
  13801. if test -n "${compiler_lib_search_path_CXX}"; then
  13802. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13803. fi
  13804. lt_prog_compiler_wl_CXX=
  13805. lt_prog_compiler_pic_CXX=
  13806. lt_prog_compiler_static_CXX=
  13807. # C++ specific cases for pic, static, wl, etc.
  13808. if test yes = "$GXX"; then
  13809. lt_prog_compiler_wl_CXX='-Wl,'
  13810. lt_prog_compiler_static_CXX='-static'
  13811. case $host_os in
  13812. aix*)
  13813. # All AIX code is PIC.
  13814. if test ia64 = "$host_cpu"; then
  13815. # AIX 5 now supports IA64 processor
  13816. lt_prog_compiler_static_CXX='-Bstatic'
  13817. fi
  13818. lt_prog_compiler_pic_CXX='-fPIC'
  13819. ;;
  13820. amigaos*)
  13821. case $host_cpu in
  13822. powerpc)
  13823. # see comment about AmigaOS4 .so support
  13824. lt_prog_compiler_pic_CXX='-fPIC'
  13825. ;;
  13826. m68k)
  13827. # FIXME: we need at least 68020 code to build shared libraries, but
  13828. # adding the '-m68020' flag to GCC prevents building anything better,
  13829. # like '-m68040'.
  13830. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13831. ;;
  13832. esac
  13833. ;;
  13834. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13835. # PIC is the default for these OSes.
  13836. ;;
  13837. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13838. # This hack is so that the source file can tell whether it is being
  13839. # built for inclusion in a dll (and should export symbols for example).
  13840. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13841. # (--disable-auto-import) libraries
  13842. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13843. case $host_os in
  13844. os2*)
  13845. lt_prog_compiler_static_CXX='$wl-static'
  13846. ;;
  13847. esac
  13848. ;;
  13849. darwin* | rhapsody*)
  13850. # PIC is the default on this platform
  13851. # Common symbols not allowed in MH_DYLIB files
  13852. lt_prog_compiler_pic_CXX='-fno-common'
  13853. ;;
  13854. *djgpp*)
  13855. # DJGPP does not support shared libraries at all
  13856. lt_prog_compiler_pic_CXX=
  13857. ;;
  13858. haiku*)
  13859. # PIC is the default for Haiku.
  13860. # The "-static" flag exists, but is broken.
  13861. lt_prog_compiler_static_CXX=
  13862. ;;
  13863. interix[3-9]*)
  13864. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13865. # Instead, we relocate shared libraries at runtime.
  13866. ;;
  13867. sysv4*MP*)
  13868. if test -d /usr/nec; then
  13869. lt_prog_compiler_pic_CXX=-Kconform_pic
  13870. fi
  13871. ;;
  13872. hpux*)
  13873. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13874. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13875. # sets the default TLS model and affects inlining.
  13876. case $host_cpu in
  13877. hppa*64*)
  13878. ;;
  13879. *)
  13880. lt_prog_compiler_pic_CXX='-fPIC'
  13881. ;;
  13882. esac
  13883. ;;
  13884. *qnx* | *nto*)
  13885. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13886. # it will coredump.
  13887. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13888. ;;
  13889. *)
  13890. lt_prog_compiler_pic_CXX='-fPIC'
  13891. ;;
  13892. esac
  13893. else
  13894. case $host_os in
  13895. aix[4-9]*)
  13896. # All AIX code is PIC.
  13897. if test ia64 = "$host_cpu"; then
  13898. # AIX 5 now supports IA64 processor
  13899. lt_prog_compiler_static_CXX='-Bstatic'
  13900. else
  13901. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13902. fi
  13903. ;;
  13904. chorus*)
  13905. case $cc_basename in
  13906. cxch68*)
  13907. # Green Hills C++ Compiler
  13908. # _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"
  13909. ;;
  13910. esac
  13911. ;;
  13912. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13913. # This hack is so that the source file can tell whether it is being
  13914. # built for inclusion in a dll (and should export symbols for example).
  13915. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13916. ;;
  13917. dgux*)
  13918. case $cc_basename in
  13919. ec++*)
  13920. lt_prog_compiler_pic_CXX='-KPIC'
  13921. ;;
  13922. ghcx*)
  13923. # Green Hills C++ Compiler
  13924. lt_prog_compiler_pic_CXX='-pic'
  13925. ;;
  13926. *)
  13927. ;;
  13928. esac
  13929. ;;
  13930. freebsd* | dragonfly* | midnightbsd*)
  13931. # FreeBSD uses GNU C++
  13932. ;;
  13933. hpux9* | hpux10* | hpux11*)
  13934. case $cc_basename in
  13935. CC*)
  13936. lt_prog_compiler_wl_CXX='-Wl,'
  13937. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13938. if test ia64 != "$host_cpu"; then
  13939. lt_prog_compiler_pic_CXX='+Z'
  13940. fi
  13941. ;;
  13942. aCC*)
  13943. lt_prog_compiler_wl_CXX='-Wl,'
  13944. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13945. case $host_cpu in
  13946. hppa*64*|ia64*)
  13947. # +Z the default
  13948. ;;
  13949. *)
  13950. lt_prog_compiler_pic_CXX='+Z'
  13951. ;;
  13952. esac
  13953. ;;
  13954. *)
  13955. ;;
  13956. esac
  13957. ;;
  13958. interix*)
  13959. # This is c89, which is MS Visual C++ (no shared libs)
  13960. # Anyone wants to do a port?
  13961. ;;
  13962. irix5* | irix6* | nonstopux*)
  13963. case $cc_basename in
  13964. CC*)
  13965. lt_prog_compiler_wl_CXX='-Wl,'
  13966. lt_prog_compiler_static_CXX='-non_shared'
  13967. # CC pic flag -KPIC is the default.
  13968. ;;
  13969. *)
  13970. ;;
  13971. esac
  13972. ;;
  13973. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13974. case $cc_basename in
  13975. KCC*)
  13976. # KAI C++ Compiler
  13977. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13978. lt_prog_compiler_pic_CXX='-fPIC'
  13979. ;;
  13980. ecpc* )
  13981. # old Intel C++ for x86_64, which still supported -KPIC.
  13982. lt_prog_compiler_wl_CXX='-Wl,'
  13983. lt_prog_compiler_pic_CXX='-KPIC'
  13984. lt_prog_compiler_static_CXX='-static'
  13985. ;;
  13986. icpc* )
  13987. # Intel C++, used to be incompatible with GCC.
  13988. # ICC 10 doesn't accept -KPIC any more.
  13989. lt_prog_compiler_wl_CXX='-Wl,'
  13990. lt_prog_compiler_pic_CXX='-fPIC'
  13991. lt_prog_compiler_static_CXX='-static'
  13992. ;;
  13993. pgCC* | pgcpp*)
  13994. # Portland Group C++ compiler
  13995. lt_prog_compiler_wl_CXX='-Wl,'
  13996. lt_prog_compiler_pic_CXX='-fpic'
  13997. lt_prog_compiler_static_CXX='-Bstatic'
  13998. ;;
  13999. cxx*)
  14000. # Compaq C++
  14001. # Make sure the PIC flag is empty. It appears that all Alpha
  14002. # Linux and Compaq Tru64 Unix objects are PIC.
  14003. lt_prog_compiler_pic_CXX=
  14004. lt_prog_compiler_static_CXX='-non_shared'
  14005. ;;
  14006. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14007. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14008. lt_prog_compiler_wl_CXX='-Wl,'
  14009. lt_prog_compiler_pic_CXX='-qpic'
  14010. lt_prog_compiler_static_CXX='-qstaticlink'
  14011. ;;
  14012. *)
  14013. case `$CC -V 2>&1 | sed 5q` in
  14014. *Sun\ C*)
  14015. # Sun C++ 5.9
  14016. lt_prog_compiler_pic_CXX='-KPIC'
  14017. lt_prog_compiler_static_CXX='-Bstatic'
  14018. lt_prog_compiler_wl_CXX='-Qoption ld '
  14019. ;;
  14020. esac
  14021. ;;
  14022. esac
  14023. ;;
  14024. lynxos*)
  14025. ;;
  14026. m88k*)
  14027. ;;
  14028. mvs*)
  14029. case $cc_basename in
  14030. cxx*)
  14031. lt_prog_compiler_pic_CXX='-W c,exportall'
  14032. ;;
  14033. *)
  14034. ;;
  14035. esac
  14036. ;;
  14037. netbsd*)
  14038. ;;
  14039. *qnx* | *nto*)
  14040. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14041. # it will coredump.
  14042. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14043. ;;
  14044. osf3* | osf4* | osf5*)
  14045. case $cc_basename in
  14046. KCC*)
  14047. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14048. ;;
  14049. RCC*)
  14050. # Rational C++ 2.4.1
  14051. lt_prog_compiler_pic_CXX='-pic'
  14052. ;;
  14053. cxx*)
  14054. # Digital/Compaq C++
  14055. lt_prog_compiler_wl_CXX='-Wl,'
  14056. # Make sure the PIC flag is empty. It appears that all Alpha
  14057. # Linux and Compaq Tru64 Unix objects are PIC.
  14058. lt_prog_compiler_pic_CXX=
  14059. lt_prog_compiler_static_CXX='-non_shared'
  14060. ;;
  14061. *)
  14062. ;;
  14063. esac
  14064. ;;
  14065. psos*)
  14066. ;;
  14067. solaris*)
  14068. case $cc_basename in
  14069. CC* | sunCC*)
  14070. # Sun C++ 4.2, 5.x and Centerline C++
  14071. lt_prog_compiler_pic_CXX='-KPIC'
  14072. lt_prog_compiler_static_CXX='-Bstatic'
  14073. lt_prog_compiler_wl_CXX='-Qoption ld '
  14074. ;;
  14075. gcx*)
  14076. # Green Hills C++ Compiler
  14077. lt_prog_compiler_pic_CXX='-PIC'
  14078. ;;
  14079. *)
  14080. ;;
  14081. esac
  14082. ;;
  14083. sunos4*)
  14084. case $cc_basename in
  14085. CC*)
  14086. # Sun C++ 4.x
  14087. lt_prog_compiler_pic_CXX='-pic'
  14088. lt_prog_compiler_static_CXX='-Bstatic'
  14089. ;;
  14090. lcc*)
  14091. # Lucid
  14092. lt_prog_compiler_pic_CXX='-pic'
  14093. ;;
  14094. *)
  14095. ;;
  14096. esac
  14097. ;;
  14098. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14099. case $cc_basename in
  14100. CC*)
  14101. lt_prog_compiler_wl_CXX='-Wl,'
  14102. lt_prog_compiler_pic_CXX='-KPIC'
  14103. lt_prog_compiler_static_CXX='-Bstatic'
  14104. ;;
  14105. esac
  14106. ;;
  14107. tandem*)
  14108. case $cc_basename in
  14109. NCC*)
  14110. # NonStop-UX NCC 3.20
  14111. lt_prog_compiler_pic_CXX='-KPIC'
  14112. ;;
  14113. *)
  14114. ;;
  14115. esac
  14116. ;;
  14117. vxworks*)
  14118. ;;
  14119. *)
  14120. lt_prog_compiler_can_build_shared_CXX=no
  14121. ;;
  14122. esac
  14123. fi
  14124. case $host_os in
  14125. # For platforms that do not support PIC, -DPIC is meaningless:
  14126. *djgpp*)
  14127. lt_prog_compiler_pic_CXX=
  14128. ;;
  14129. *)
  14130. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14131. ;;
  14132. esac
  14133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14134. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14135. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14136. then :
  14137. printf %s "(cached) " >&6
  14138. else $as_nop
  14139. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14140. fi
  14141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14142. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14143. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14144. #
  14145. # Check to make sure the PIC flag actually works.
  14146. #
  14147. if test -n "$lt_prog_compiler_pic_CXX"; then
  14148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14149. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14150. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14151. then :
  14152. printf %s "(cached) " >&6
  14153. else $as_nop
  14154. lt_cv_prog_compiler_pic_works_CXX=no
  14155. ac_outfile=conftest.$ac_objext
  14156. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14157. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14158. # Insert the option either (1) after the last *FLAGS variable, or
  14159. # (2) before a word containing "conftest.", or (3) at the end.
  14160. # Note that $ac_compile itself does not contain backslashes and begins
  14161. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14162. # The option is referenced via a variable to avoid confusing sed.
  14163. lt_compile=`echo "$ac_compile" | $SED \
  14164. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14165. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14166. -e 's:$: $lt_compiler_flag:'`
  14167. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14168. (eval "$lt_compile" 2>conftest.err)
  14169. ac_status=$?
  14170. cat conftest.err >&5
  14171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14172. if (exit $ac_status) && test -s "$ac_outfile"; then
  14173. # The compiler can only warn and ignore the option if not recognized
  14174. # So say no if there are warnings other than the usual output.
  14175. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14177. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14178. lt_cv_prog_compiler_pic_works_CXX=yes
  14179. fi
  14180. fi
  14181. $RM conftest*
  14182. fi
  14183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14184. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14185. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14186. case $lt_prog_compiler_pic_CXX in
  14187. "" | " "*) ;;
  14188. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14189. esac
  14190. else
  14191. lt_prog_compiler_pic_CXX=
  14192. lt_prog_compiler_can_build_shared_CXX=no
  14193. fi
  14194. fi
  14195. #
  14196. # Check to make sure the static flag actually works.
  14197. #
  14198. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14200. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14201. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14202. then :
  14203. printf %s "(cached) " >&6
  14204. else $as_nop
  14205. lt_cv_prog_compiler_static_works_CXX=no
  14206. save_LDFLAGS=$LDFLAGS
  14207. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14208. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14209. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14210. # The linker can only warn and ignore the option if not recognized
  14211. # So say no if there are warnings
  14212. if test -s conftest.err; then
  14213. # Append any errors to the config.log.
  14214. cat conftest.err 1>&5
  14215. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14216. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14217. if diff conftest.exp conftest.er2 >/dev/null; then
  14218. lt_cv_prog_compiler_static_works_CXX=yes
  14219. fi
  14220. else
  14221. lt_cv_prog_compiler_static_works_CXX=yes
  14222. fi
  14223. fi
  14224. $RM -r conftest*
  14225. LDFLAGS=$save_LDFLAGS
  14226. fi
  14227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14228. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14229. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14230. :
  14231. else
  14232. lt_prog_compiler_static_CXX=
  14233. fi
  14234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14235. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14236. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14237. then :
  14238. printf %s "(cached) " >&6
  14239. else $as_nop
  14240. lt_cv_prog_compiler_c_o_CXX=no
  14241. $RM -r conftest 2>/dev/null
  14242. mkdir conftest
  14243. cd conftest
  14244. mkdir out
  14245. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14246. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14247. # Insert the option either (1) after the last *FLAGS variable, or
  14248. # (2) before a word containing "conftest.", or (3) at the end.
  14249. # Note that $ac_compile itself does not contain backslashes and begins
  14250. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14251. lt_compile=`echo "$ac_compile" | $SED \
  14252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14254. -e 's:$: $lt_compiler_flag:'`
  14255. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14256. (eval "$lt_compile" 2>out/conftest.err)
  14257. ac_status=$?
  14258. cat out/conftest.err >&5
  14259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14260. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14261. then
  14262. # The compiler can only warn and ignore the option if not recognized
  14263. # So say no if there are warnings
  14264. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14265. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14266. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14267. lt_cv_prog_compiler_c_o_CXX=yes
  14268. fi
  14269. fi
  14270. chmod u+w . 2>&5
  14271. $RM conftest*
  14272. # SGI C++ compiler will create directory out/ii_files/ for
  14273. # template instantiation
  14274. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14275. $RM out/* && rmdir out
  14276. cd ..
  14277. $RM -r conftest
  14278. $RM conftest*
  14279. fi
  14280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14281. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14283. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14284. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14285. then :
  14286. printf %s "(cached) " >&6
  14287. else $as_nop
  14288. lt_cv_prog_compiler_c_o_CXX=no
  14289. $RM -r conftest 2>/dev/null
  14290. mkdir conftest
  14291. cd conftest
  14292. mkdir out
  14293. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14294. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14295. # Insert the option either (1) after the last *FLAGS variable, or
  14296. # (2) before a word containing "conftest.", or (3) at the end.
  14297. # Note that $ac_compile itself does not contain backslashes and begins
  14298. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14299. lt_compile=`echo "$ac_compile" | $SED \
  14300. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14301. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14302. -e 's:$: $lt_compiler_flag:'`
  14303. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14304. (eval "$lt_compile" 2>out/conftest.err)
  14305. ac_status=$?
  14306. cat out/conftest.err >&5
  14307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14308. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14309. then
  14310. # The compiler can only warn and ignore the option if not recognized
  14311. # So say no if there are warnings
  14312. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14313. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14314. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14315. lt_cv_prog_compiler_c_o_CXX=yes
  14316. fi
  14317. fi
  14318. chmod u+w . 2>&5
  14319. $RM conftest*
  14320. # SGI C++ compiler will create directory out/ii_files/ for
  14321. # template instantiation
  14322. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14323. $RM out/* && rmdir out
  14324. cd ..
  14325. $RM -r conftest
  14326. $RM conftest*
  14327. fi
  14328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14329. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14330. hard_links=nottested
  14331. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14332. # do not overwrite the value of need_locks provided by the user
  14333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14334. printf %s "checking if we can lock with hard links... " >&6; }
  14335. hard_links=yes
  14336. $RM conftest*
  14337. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14338. touch conftest.a
  14339. ln conftest.a conftest.b 2>&5 || hard_links=no
  14340. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14342. printf "%s\n" "$hard_links" >&6; }
  14343. if test no = "$hard_links"; then
  14344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14345. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14346. need_locks=warn
  14347. fi
  14348. else
  14349. need_locks=no
  14350. fi
  14351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14352. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14353. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14354. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14355. case $host_os in
  14356. aix[4-9]*)
  14357. # If we're using GNU nm, then we don't want the "-C" option.
  14358. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14359. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14360. # weak defined symbols like other global defined symbols, whereas
  14361. # GNU nm marks them as "W".
  14362. # While the 'weak' keyword is ignored in the Export File, we need
  14363. # it in the Import File for the 'aix-soname' feature, so we have
  14364. # to replace the "-B" option with "-P" for AIX nm.
  14365. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14366. 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'
  14367. else
  14368. 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'
  14369. fi
  14370. ;;
  14371. pw32*)
  14372. export_symbols_cmds_CXX=$ltdll_cmds
  14373. ;;
  14374. cygwin* | mingw* | cegcc*)
  14375. case $cc_basename in
  14376. cl*)
  14377. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14378. ;;
  14379. *)
  14380. 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'
  14381. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14382. ;;
  14383. esac
  14384. ;;
  14385. *)
  14386. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14387. ;;
  14388. esac
  14389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14390. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14391. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14392. with_gnu_ld_CXX=$with_gnu_ld
  14393. #
  14394. # Do we need to explicitly link libc?
  14395. #
  14396. case "x$archive_cmds_need_lc_CXX" in
  14397. x|xyes)
  14398. # Assume -lc should be added
  14399. archive_cmds_need_lc_CXX=yes
  14400. if test yes,yes = "$GCC,$enable_shared"; then
  14401. case $archive_cmds_CXX in
  14402. *'~'*)
  14403. # FIXME: we may have to deal with multi-command sequences.
  14404. ;;
  14405. '$CC '*)
  14406. # Test whether the compiler implicitly links with -lc since on some
  14407. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14408. # to ld, don't add -lc before -lgcc.
  14409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14410. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14411. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14412. then :
  14413. printf %s "(cached) " >&6
  14414. else $as_nop
  14415. $RM conftest*
  14416. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14418. (eval $ac_compile) 2>&5
  14419. ac_status=$?
  14420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14421. test $ac_status = 0; } 2>conftest.err; then
  14422. soname=conftest
  14423. lib=conftest
  14424. libobjs=conftest.$ac_objext
  14425. deplibs=
  14426. wl=$lt_prog_compiler_wl_CXX
  14427. pic_flag=$lt_prog_compiler_pic_CXX
  14428. compiler_flags=-v
  14429. linker_flags=-v
  14430. verstring=
  14431. output_objdir=.
  14432. libname=conftest
  14433. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14434. allow_undefined_flag_CXX=
  14435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14436. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14437. ac_status=$?
  14438. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14439. test $ac_status = 0; }
  14440. then
  14441. lt_cv_archive_cmds_need_lc_CXX=no
  14442. else
  14443. lt_cv_archive_cmds_need_lc_CXX=yes
  14444. fi
  14445. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14446. else
  14447. cat conftest.err 1>&5
  14448. fi
  14449. $RM conftest*
  14450. fi
  14451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14452. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14453. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14454. ;;
  14455. esac
  14456. fi
  14457. ;;
  14458. esac
  14459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14460. printf %s "checking dynamic linker characteristics... " >&6; }
  14461. library_names_spec=
  14462. libname_spec='lib$name'
  14463. soname_spec=
  14464. shrext_cmds=.so
  14465. postinstall_cmds=
  14466. postuninstall_cmds=
  14467. finish_cmds=
  14468. finish_eval=
  14469. shlibpath_var=
  14470. shlibpath_overrides_runpath=unknown
  14471. version_type=none
  14472. dynamic_linker="$host_os ld.so"
  14473. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14474. need_lib_prefix=unknown
  14475. hardcode_into_libs=no
  14476. # when you set need_version to no, make sure it does not cause -set_version
  14477. # flags to be left without arguments
  14478. need_version=unknown
  14479. case $host_os in
  14480. aix3*)
  14481. version_type=linux # correct to gnu/linux during the next big refactor
  14482. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14483. shlibpath_var=LIBPATH
  14484. # AIX 3 has no versioning support, so we append a major version to the name.
  14485. soname_spec='$libname$release$shared_ext$major'
  14486. ;;
  14487. aix[4-9]*)
  14488. version_type=linux # correct to gnu/linux during the next big refactor
  14489. need_lib_prefix=no
  14490. need_version=no
  14491. hardcode_into_libs=yes
  14492. if test ia64 = "$host_cpu"; then
  14493. # AIX 5 supports IA64
  14494. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14495. shlibpath_var=LD_LIBRARY_PATH
  14496. else
  14497. # With GCC up to 2.95.x, collect2 would create an import file
  14498. # for dependence libraries. The import file would start with
  14499. # the line '#! .'. This would cause the generated library to
  14500. # depend on '.', always an invalid library. This was fixed in
  14501. # development snapshots of GCC prior to 3.0.
  14502. case $host_os in
  14503. aix4 | aix4.[01] | aix4.[01].*)
  14504. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14505. echo ' yes '
  14506. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14507. :
  14508. else
  14509. can_build_shared=no
  14510. fi
  14511. ;;
  14512. esac
  14513. # Using Import Files as archive members, it is possible to support
  14514. # filename-based versioning of shared library archives on AIX. While
  14515. # this would work for both with and without runtime linking, it will
  14516. # prevent static linking of such archives. So we do filename-based
  14517. # shared library versioning with .so extension only, which is used
  14518. # when both runtime linking and shared linking is enabled.
  14519. # Unfortunately, runtime linking may impact performance, so we do
  14520. # not want this to be the default eventually. Also, we use the
  14521. # versioned .so libs for executables only if there is the -brtl
  14522. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14523. # To allow for filename-based versioning support, we need to create
  14524. # libNAME.so.V as an archive file, containing:
  14525. # *) an Import File, referring to the versioned filename of the
  14526. # archive as well as the shared archive member, telling the
  14527. # bitwidth (32 or 64) of that shared object, and providing the
  14528. # list of exported symbols of that shared object, eventually
  14529. # decorated with the 'weak' keyword
  14530. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14531. # it being seen by the linker.
  14532. # At run time we better use the real file rather than another symlink,
  14533. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14534. case $with_aix_soname,$aix_use_runtimelinking in
  14535. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14536. # soname into executable. Probably we can add versioning support to
  14537. # collect2, so additional links can be useful in future.
  14538. aix,yes) # traditional libtool
  14539. dynamic_linker='AIX unversionable lib.so'
  14540. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14541. # instead of lib<name>.a to let people know that these are not
  14542. # typical AIX shared libraries.
  14543. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14544. ;;
  14545. aix,no) # traditional AIX only
  14546. dynamic_linker='AIX lib.a(lib.so.V)'
  14547. # We preserve .a as extension for shared libraries through AIX4.2
  14548. # and later when we are not doing run time linking.
  14549. library_names_spec='$libname$release.a $libname.a'
  14550. soname_spec='$libname$release$shared_ext$major'
  14551. ;;
  14552. svr4,*) # full svr4 only
  14553. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14554. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14555. # We do not specify a path in Import Files, so LIBPATH fires.
  14556. shlibpath_overrides_runpath=yes
  14557. ;;
  14558. *,yes) # both, prefer svr4
  14559. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14560. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14561. # unpreferred sharedlib libNAME.a needs extra handling
  14562. 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"'
  14563. 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"'
  14564. # We do not specify a path in Import Files, so LIBPATH fires.
  14565. shlibpath_overrides_runpath=yes
  14566. ;;
  14567. *,no) # both, prefer aix
  14568. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14569. library_names_spec='$libname$release.a $libname.a'
  14570. soname_spec='$libname$release$shared_ext$major'
  14571. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14572. 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)'
  14573. 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"'
  14574. ;;
  14575. esac
  14576. shlibpath_var=LIBPATH
  14577. fi
  14578. ;;
  14579. amigaos*)
  14580. case $host_cpu in
  14581. powerpc)
  14582. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14583. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14585. ;;
  14586. m68k)
  14587. library_names_spec='$libname.ixlibrary $libname.a'
  14588. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14589. 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'
  14590. ;;
  14591. esac
  14592. ;;
  14593. beos*)
  14594. library_names_spec='$libname$shared_ext'
  14595. dynamic_linker="$host_os ld.so"
  14596. shlibpath_var=LIBRARY_PATH
  14597. ;;
  14598. bsdi[45]*)
  14599. version_type=linux # correct to gnu/linux during the next big refactor
  14600. need_version=no
  14601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14602. soname_spec='$libname$release$shared_ext$major'
  14603. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14604. shlibpath_var=LD_LIBRARY_PATH
  14605. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14606. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14607. # the default ld.so.conf also contains /usr/contrib/lib and
  14608. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14609. # libtool to hard-code these into programs
  14610. ;;
  14611. cygwin* | mingw* | pw32* | cegcc*)
  14612. version_type=windows
  14613. shrext_cmds=.dll
  14614. need_version=no
  14615. need_lib_prefix=no
  14616. case $GCC,$cc_basename in
  14617. yes,*)
  14618. # gcc
  14619. library_names_spec='$libname.dll.a'
  14620. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14621. postinstall_cmds='base_file=`basename \$file`~
  14622. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14623. dldir=$destdir/`dirname \$dlpath`~
  14624. test -d \$dldir || mkdir -p \$dldir~
  14625. $install_prog $dir/$dlname \$dldir/$dlname~
  14626. chmod a+x \$dldir/$dlname~
  14627. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14628. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14629. fi'
  14630. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14631. dlpath=$dir/\$dldll~
  14632. $RM \$dlpath'
  14633. shlibpath_overrides_runpath=yes
  14634. case $host_os in
  14635. cygwin*)
  14636. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14637. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14638. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14639. ;;
  14640. mingw* | cegcc*)
  14641. # MinGW DLLs use traditional 'lib' prefix
  14642. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14643. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14644. ;;
  14645. pw32*)
  14646. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14647. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14648. ;;
  14649. esac
  14650. dynamic_linker='Win32 ld.exe'
  14651. ;;
  14652. *,cl*)
  14653. # Native MSVC
  14654. libname_spec='$name'
  14655. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14656. library_names_spec='$libname.dll.lib'
  14657. case $build_os in
  14658. mingw*)
  14659. sys_lib_search_path_spec=
  14660. lt_save_ifs=$IFS
  14661. IFS=';'
  14662. for lt_path in $LIB
  14663. do
  14664. IFS=$lt_save_ifs
  14665. # Let DOS variable expansion print the short 8.3 style file name.
  14666. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14667. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14668. done
  14669. IFS=$lt_save_ifs
  14670. # Convert to MSYS style.
  14671. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14672. ;;
  14673. cygwin*)
  14674. # Convert to unix form, then to dos form, then back to unix form
  14675. # but this time dos style (no spaces!) so that the unix form looks
  14676. # like /cygdrive/c/PROGRA~1:/cygdr...
  14677. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14678. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14679. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14680. ;;
  14681. *)
  14682. sys_lib_search_path_spec=$LIB
  14683. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14684. # It is most probably a Windows format PATH.
  14685. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14686. else
  14687. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14688. fi
  14689. # FIXME: find the short name or the path components, as spaces are
  14690. # common. (e.g. "Program Files" -> "PROGRA~1")
  14691. ;;
  14692. esac
  14693. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14694. postinstall_cmds='base_file=`basename \$file`~
  14695. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14696. dldir=$destdir/`dirname \$dlpath`~
  14697. test -d \$dldir || mkdir -p \$dldir~
  14698. $install_prog $dir/$dlname \$dldir/$dlname'
  14699. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14700. dlpath=$dir/\$dldll~
  14701. $RM \$dlpath'
  14702. shlibpath_overrides_runpath=yes
  14703. dynamic_linker='Win32 link.exe'
  14704. ;;
  14705. *)
  14706. # Assume MSVC wrapper
  14707. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14708. dynamic_linker='Win32 ld.exe'
  14709. ;;
  14710. esac
  14711. # FIXME: first we should search . and the directory the executable is in
  14712. shlibpath_var=PATH
  14713. ;;
  14714. darwin* | rhapsody*)
  14715. dynamic_linker="$host_os dyld"
  14716. version_type=darwin
  14717. need_lib_prefix=no
  14718. need_version=no
  14719. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14720. soname_spec='$libname$release$major$shared_ext'
  14721. shlibpath_overrides_runpath=yes
  14722. shlibpath_var=DYLD_LIBRARY_PATH
  14723. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14724. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14725. ;;
  14726. dgux*)
  14727. version_type=linux # correct to gnu/linux during the next big refactor
  14728. need_lib_prefix=no
  14729. need_version=no
  14730. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14731. soname_spec='$libname$release$shared_ext$major'
  14732. shlibpath_var=LD_LIBRARY_PATH
  14733. ;;
  14734. freebsd* | dragonfly* | midnightbsd*)
  14735. # DragonFly does not have aout. When/if they implement a new
  14736. # versioning mechanism, adjust this.
  14737. if test -x /usr/bin/objformat; then
  14738. objformat=`/usr/bin/objformat`
  14739. else
  14740. case $host_os in
  14741. freebsd[23].*) objformat=aout ;;
  14742. *) objformat=elf ;;
  14743. esac
  14744. fi
  14745. version_type=freebsd-$objformat
  14746. case $version_type in
  14747. freebsd-elf*)
  14748. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14749. soname_spec='$libname$release$shared_ext$major'
  14750. need_version=no
  14751. need_lib_prefix=no
  14752. ;;
  14753. freebsd-*)
  14754. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14755. need_version=yes
  14756. ;;
  14757. esac
  14758. shlibpath_var=LD_LIBRARY_PATH
  14759. case $host_os in
  14760. freebsd2.*)
  14761. shlibpath_overrides_runpath=yes
  14762. ;;
  14763. freebsd3.[01]* | freebsdelf3.[01]*)
  14764. shlibpath_overrides_runpath=yes
  14765. hardcode_into_libs=yes
  14766. ;;
  14767. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14768. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14769. shlibpath_overrides_runpath=no
  14770. hardcode_into_libs=yes
  14771. ;;
  14772. *) # from 4.6 on, and DragonFly
  14773. shlibpath_overrides_runpath=yes
  14774. hardcode_into_libs=yes
  14775. ;;
  14776. esac
  14777. ;;
  14778. haiku*)
  14779. version_type=linux # correct to gnu/linux during the next big refactor
  14780. need_lib_prefix=no
  14781. need_version=no
  14782. dynamic_linker="$host_os runtime_loader"
  14783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14784. soname_spec='$libname$release$shared_ext$major'
  14785. shlibpath_var=LIBRARY_PATH
  14786. shlibpath_overrides_runpath=no
  14787. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14788. hardcode_into_libs=yes
  14789. ;;
  14790. hpux9* | hpux10* | hpux11*)
  14791. # Give a soname corresponding to the major version so that dld.sl refuses to
  14792. # link against other versions.
  14793. version_type=sunos
  14794. need_lib_prefix=no
  14795. need_version=no
  14796. case $host_cpu in
  14797. ia64*)
  14798. shrext_cmds='.so'
  14799. hardcode_into_libs=yes
  14800. dynamic_linker="$host_os dld.so"
  14801. shlibpath_var=LD_LIBRARY_PATH
  14802. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14803. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14804. soname_spec='$libname$release$shared_ext$major'
  14805. if test 32 = "$HPUX_IA64_MODE"; then
  14806. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14807. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14808. else
  14809. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14810. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14811. fi
  14812. ;;
  14813. hppa*64*)
  14814. shrext_cmds='.sl'
  14815. hardcode_into_libs=yes
  14816. dynamic_linker="$host_os dld.sl"
  14817. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14818. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14819. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14820. soname_spec='$libname$release$shared_ext$major'
  14821. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14822. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14823. ;;
  14824. *)
  14825. shrext_cmds='.sl'
  14826. dynamic_linker="$host_os dld.sl"
  14827. shlibpath_var=SHLIB_PATH
  14828. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14830. soname_spec='$libname$release$shared_ext$major'
  14831. ;;
  14832. esac
  14833. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14834. postinstall_cmds='chmod 555 $lib'
  14835. # or fails outright, so override atomically:
  14836. install_override_mode=555
  14837. ;;
  14838. interix[3-9]*)
  14839. version_type=linux # correct to gnu/linux during the next big refactor
  14840. need_lib_prefix=no
  14841. need_version=no
  14842. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14843. soname_spec='$libname$release$shared_ext$major'
  14844. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14845. shlibpath_var=LD_LIBRARY_PATH
  14846. shlibpath_overrides_runpath=no
  14847. hardcode_into_libs=yes
  14848. ;;
  14849. irix5* | irix6* | nonstopux*)
  14850. case $host_os in
  14851. nonstopux*) version_type=nonstopux ;;
  14852. *)
  14853. if test yes = "$lt_cv_prog_gnu_ld"; then
  14854. version_type=linux # correct to gnu/linux during the next big refactor
  14855. else
  14856. version_type=irix
  14857. fi ;;
  14858. esac
  14859. need_lib_prefix=no
  14860. need_version=no
  14861. soname_spec='$libname$release$shared_ext$major'
  14862. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14863. case $host_os in
  14864. irix5* | nonstopux*)
  14865. libsuff= shlibsuff=
  14866. ;;
  14867. *)
  14868. case $LD in # libtool.m4 will add one of these switches to LD
  14869. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14870. libsuff= shlibsuff= libmagic=32-bit;;
  14871. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14872. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14873. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14874. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14875. *) libsuff= shlibsuff= libmagic=never-match;;
  14876. esac
  14877. ;;
  14878. esac
  14879. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14880. shlibpath_overrides_runpath=no
  14881. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14882. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14883. hardcode_into_libs=yes
  14884. ;;
  14885. # No shared lib support for Linux oldld, aout, or coff.
  14886. linux*oldld* | linux*aout* | linux*coff*)
  14887. dynamic_linker=no
  14888. ;;
  14889. linux*android*)
  14890. version_type=none # Android doesn't support versioned libraries.
  14891. need_lib_prefix=no
  14892. need_version=no
  14893. library_names_spec='$libname$release$shared_ext'
  14894. soname_spec='$libname$release$shared_ext'
  14895. finish_cmds=
  14896. shlibpath_var=LD_LIBRARY_PATH
  14897. shlibpath_overrides_runpath=yes
  14898. # This implies no fast_install, which is unacceptable.
  14899. # Some rework will be needed to allow for fast_install
  14900. # before this can be enabled.
  14901. hardcode_into_libs=yes
  14902. dynamic_linker='Android linker'
  14903. # Don't embed -rpath directories since the linker doesn't support them.
  14904. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14905. ;;
  14906. # This must be glibc/ELF.
  14907. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14908. version_type=linux # correct to gnu/linux during the next big refactor
  14909. need_lib_prefix=no
  14910. need_version=no
  14911. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14912. soname_spec='$libname$release$shared_ext$major'
  14913. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14914. shlibpath_var=LD_LIBRARY_PATH
  14915. shlibpath_overrides_runpath=no
  14916. # Some binutils ld are patched to set DT_RUNPATH
  14917. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14918. then :
  14919. printf %s "(cached) " >&6
  14920. else $as_nop
  14921. lt_cv_shlibpath_overrides_runpath=no
  14922. save_LDFLAGS=$LDFLAGS
  14923. save_libdir=$libdir
  14924. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14925. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. int
  14929. main (void)
  14930. {
  14931. ;
  14932. return 0;
  14933. }
  14934. _ACEOF
  14935. if ac_fn_cxx_try_link "$LINENO"
  14936. then :
  14937. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14938. then :
  14939. lt_cv_shlibpath_overrides_runpath=yes
  14940. fi
  14941. fi
  14942. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14943. conftest$ac_exeext conftest.$ac_ext
  14944. LDFLAGS=$save_LDFLAGS
  14945. libdir=$save_libdir
  14946. fi
  14947. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14948. # This implies no fast_install, which is unacceptable.
  14949. # Some rework will be needed to allow for fast_install
  14950. # before this can be enabled.
  14951. hardcode_into_libs=yes
  14952. # Add ABI-specific directories to the system library path.
  14953. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14954. # Ideally, we could use ldconfig to report *all* directores which are
  14955. # searched for libraries, however this is still not possible. Aside from not
  14956. # being certain /sbin/ldconfig is available, command
  14957. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14958. # even though it is searched at run-time. Try to do the best guess by
  14959. # appending ld.so.conf contents (and includes) to the search path.
  14960. if test -f /etc/ld.so.conf; then
  14961. 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' ' '`
  14962. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14963. fi
  14964. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14965. # powerpc, because MkLinux only supported shared libraries with the
  14966. # GNU dynamic linker. Since this was broken with cross compilers,
  14967. # most powerpc-linux boxes support dynamic linking these days and
  14968. # people can always --disable-shared, the test was removed, and we
  14969. # assume the GNU/Linux dynamic linker is in use.
  14970. dynamic_linker='GNU/Linux ld.so'
  14971. ;;
  14972. netbsd*)
  14973. version_type=sunos
  14974. need_lib_prefix=no
  14975. need_version=no
  14976. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14977. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14979. dynamic_linker='NetBSD (a.out) ld.so'
  14980. else
  14981. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14982. soname_spec='$libname$release$shared_ext$major'
  14983. dynamic_linker='NetBSD ld.elf_so'
  14984. fi
  14985. shlibpath_var=LD_LIBRARY_PATH
  14986. shlibpath_overrides_runpath=yes
  14987. hardcode_into_libs=yes
  14988. ;;
  14989. newsos6)
  14990. version_type=linux # correct to gnu/linux during the next big refactor
  14991. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14992. shlibpath_var=LD_LIBRARY_PATH
  14993. shlibpath_overrides_runpath=yes
  14994. ;;
  14995. *nto* | *qnx*)
  14996. version_type=qnx
  14997. need_lib_prefix=no
  14998. need_version=no
  14999. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15000. soname_spec='$libname$release$shared_ext$major'
  15001. shlibpath_var=LD_LIBRARY_PATH
  15002. shlibpath_overrides_runpath=no
  15003. hardcode_into_libs=yes
  15004. dynamic_linker='ldqnx.so'
  15005. ;;
  15006. openbsd* | bitrig*)
  15007. version_type=sunos
  15008. sys_lib_dlsearch_path_spec=/usr/lib
  15009. need_lib_prefix=no
  15010. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15011. need_version=no
  15012. else
  15013. need_version=yes
  15014. fi
  15015. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15017. shlibpath_var=LD_LIBRARY_PATH
  15018. shlibpath_overrides_runpath=yes
  15019. ;;
  15020. os2*)
  15021. libname_spec='$name'
  15022. shrext_cmds=.dll
  15023. need_lib_prefix=no
  15024. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15025. # SDL customization: removed versioning support.
  15026. # version_type=windows
  15027. # need_version=no
  15028. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15029. # v=$($ECHO $release$versuffix | tr -d .-);
  15030. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15031. # $ECHO $n$v`$shared_ext'
  15032. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15033. library_names_spec='${libname}_dll.$libext'
  15034. dynamic_linker='OS/2 ld.exe'
  15035. shlibpath_var=BEGINLIBPATH
  15036. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15037. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15038. postinstall_cmds='base_file=`basename \$file`~
  15039. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15040. dldir=$destdir/`dirname \$dlpath`~
  15041. test -d \$dldir || mkdir -p \$dldir~
  15042. $install_prog $dir/$dlname \$dldir/$dlname~
  15043. chmod a+x \$dldir/$dlname~
  15044. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15045. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15046. fi'
  15047. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15048. dlpath=$dir/\$dldll~
  15049. $RM \$dlpath'
  15050. ;;
  15051. osf3* | osf4* | osf5*)
  15052. version_type=osf
  15053. need_lib_prefix=no
  15054. need_version=no
  15055. soname_spec='$libname$release$shared_ext$major'
  15056. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15057. shlibpath_var=LD_LIBRARY_PATH
  15058. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15059. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15060. ;;
  15061. rdos*)
  15062. dynamic_linker=no
  15063. ;;
  15064. solaris*)
  15065. version_type=linux # correct to gnu/linux during the next big refactor
  15066. need_lib_prefix=no
  15067. need_version=no
  15068. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15069. soname_spec='$libname$release$shared_ext$major'
  15070. shlibpath_var=LD_LIBRARY_PATH
  15071. shlibpath_overrides_runpath=yes
  15072. hardcode_into_libs=yes
  15073. # ldd complains unless libraries are executable
  15074. postinstall_cmds='chmod +x $lib'
  15075. ;;
  15076. sunos4*)
  15077. version_type=sunos
  15078. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15079. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15080. shlibpath_var=LD_LIBRARY_PATH
  15081. shlibpath_overrides_runpath=yes
  15082. if test yes = "$with_gnu_ld"; then
  15083. need_lib_prefix=no
  15084. fi
  15085. need_version=yes
  15086. ;;
  15087. sysv4 | sysv4.3*)
  15088. version_type=linux # correct to gnu/linux during the next big refactor
  15089. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15090. soname_spec='$libname$release$shared_ext$major'
  15091. shlibpath_var=LD_LIBRARY_PATH
  15092. case $host_vendor in
  15093. sni)
  15094. shlibpath_overrides_runpath=no
  15095. need_lib_prefix=no
  15096. runpath_var=LD_RUN_PATH
  15097. ;;
  15098. siemens)
  15099. need_lib_prefix=no
  15100. ;;
  15101. motorola)
  15102. need_lib_prefix=no
  15103. need_version=no
  15104. shlibpath_overrides_runpath=no
  15105. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15106. ;;
  15107. esac
  15108. ;;
  15109. sysv4*MP*)
  15110. if test -d /usr/nec; then
  15111. version_type=linux # correct to gnu/linux during the next big refactor
  15112. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15113. soname_spec='$libname$shared_ext.$major'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. fi
  15116. ;;
  15117. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15118. version_type=sco
  15119. need_lib_prefix=no
  15120. need_version=no
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15122. soname_spec='$libname$release$shared_ext$major'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. shlibpath_overrides_runpath=yes
  15125. hardcode_into_libs=yes
  15126. if test yes = "$with_gnu_ld"; then
  15127. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15128. else
  15129. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15130. case $host_os in
  15131. sco3.2v5*)
  15132. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15133. ;;
  15134. esac
  15135. fi
  15136. sys_lib_dlsearch_path_spec='/usr/lib'
  15137. ;;
  15138. tpf*)
  15139. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15140. version_type=linux # correct to gnu/linux during the next big refactor
  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. shlibpath_var=LD_LIBRARY_PATH
  15145. shlibpath_overrides_runpath=no
  15146. hardcode_into_libs=yes
  15147. ;;
  15148. uts4*)
  15149. version_type=linux # correct to gnu/linux during the next big refactor
  15150. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15151. soname_spec='$libname$release$shared_ext$major'
  15152. shlibpath_var=LD_LIBRARY_PATH
  15153. ;;
  15154. *)
  15155. dynamic_linker=no
  15156. ;;
  15157. esac
  15158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15159. printf "%s\n" "$dynamic_linker" >&6; }
  15160. test no = "$dynamic_linker" && can_build_shared=no
  15161. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15162. if test yes = "$GCC"; then
  15163. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15164. fi
  15165. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15166. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15167. fi
  15168. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15169. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15170. fi
  15171. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15172. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15173. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15174. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15175. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15176. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15178. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15179. hardcode_action_CXX=
  15180. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15181. test -n "$runpath_var_CXX" ||
  15182. test yes = "$hardcode_automatic_CXX"; then
  15183. # We can hardcode non-existent directories.
  15184. if test no != "$hardcode_direct_CXX" &&
  15185. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15186. # have to relink, otherwise we might link with an installed library
  15187. # when we should be linking with a yet-to-be-installed one
  15188. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15189. test no != "$hardcode_minus_L_CXX"; then
  15190. # Linking always hardcodes the temporary library directory.
  15191. hardcode_action_CXX=relink
  15192. else
  15193. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15194. hardcode_action_CXX=immediate
  15195. fi
  15196. else
  15197. # We cannot hardcode anything, or else we can only hardcode existing
  15198. # directories.
  15199. hardcode_action_CXX=unsupported
  15200. fi
  15201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15202. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15203. if test relink = "$hardcode_action_CXX" ||
  15204. test yes = "$inherit_rpath_CXX"; then
  15205. # Fast installation is not supported
  15206. enable_fast_install=no
  15207. elif test yes = "$shlibpath_overrides_runpath" ||
  15208. test no = "$enable_shared"; then
  15209. # Fast installation is not necessary
  15210. enable_fast_install=needless
  15211. fi
  15212. fi # test -n "$compiler"
  15213. CC=$lt_save_CC
  15214. CFLAGS=$lt_save_CFLAGS
  15215. LDCXX=$LD
  15216. LD=$lt_save_LD
  15217. GCC=$lt_save_GCC
  15218. with_gnu_ld=$lt_save_with_gnu_ld
  15219. lt_cv_path_LDCXX=$lt_cv_path_LD
  15220. lt_cv_path_LD=$lt_save_path_LD
  15221. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15222. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15223. fi # test yes != "$_lt_caught_CXX_error"
  15224. ac_ext=c
  15225. ac_cpp='$CPP $CPPFLAGS'
  15226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15230. printf %s "checking for egrep... " >&6; }
  15231. if test ${ac_cv_path_EGREP+y}
  15232. then :
  15233. printf %s "(cached) " >&6
  15234. else $as_nop
  15235. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15236. then ac_cv_path_EGREP="$GREP -E"
  15237. else
  15238. if test -z "$EGREP"; then
  15239. ac_path_EGREP_found=false
  15240. # Loop through the user's path and test for each of PROGNAME-LIST
  15241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15242. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15243. do
  15244. IFS=$as_save_IFS
  15245. case $as_dir in #(((
  15246. '') as_dir=./ ;;
  15247. */) ;;
  15248. *) as_dir=$as_dir/ ;;
  15249. esac
  15250. for ac_prog in egrep
  15251. do
  15252. for ac_exec_ext in '' $ac_executable_extensions; do
  15253. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15254. as_fn_executable_p "$ac_path_EGREP" || continue
  15255. # Check for GNU ac_path_EGREP and select it if it is found.
  15256. # Check for GNU $ac_path_EGREP
  15257. case `"$ac_path_EGREP" --version 2>&1` in
  15258. *GNU*)
  15259. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15260. *)
  15261. ac_count=0
  15262. printf %s 0123456789 >"conftest.in"
  15263. while :
  15264. do
  15265. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15266. mv "conftest.tmp" "conftest.in"
  15267. cp "conftest.in" "conftest.nl"
  15268. printf "%s\n" 'EGREP' >> "conftest.nl"
  15269. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15270. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15271. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15272. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15273. # Best one so far, save it but keep looking for a better one
  15274. ac_cv_path_EGREP="$ac_path_EGREP"
  15275. ac_path_EGREP_max=$ac_count
  15276. fi
  15277. # 10*(2^10) chars as input seems more than enough
  15278. test $ac_count -gt 10 && break
  15279. done
  15280. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15281. esac
  15282. $ac_path_EGREP_found && break 3
  15283. done
  15284. done
  15285. done
  15286. IFS=$as_save_IFS
  15287. if test -z "$ac_cv_path_EGREP"; then
  15288. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15289. fi
  15290. else
  15291. ac_cv_path_EGREP=$EGREP
  15292. fi
  15293. fi
  15294. fi
  15295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15296. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15297. EGREP="$ac_cv_path_EGREP"
  15298. # Find a good install program. We prefer a C program (faster),
  15299. # so one script is as good as another. But avoid the broken or
  15300. # incompatible versions:
  15301. # SysV /etc/install, /usr/sbin/install
  15302. # SunOS /usr/etc/install
  15303. # IRIX /sbin/install
  15304. # AIX /bin/install
  15305. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15306. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15307. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15308. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15309. # OS/2's system install, which has a completely different semantic
  15310. # ./install, which can be erroneously created by make from ./install.sh.
  15311. # Reject install programs that cannot install multiple files.
  15312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15313. printf %s "checking for a BSD-compatible install... " >&6; }
  15314. if test -z "$INSTALL"; then
  15315. if test ${ac_cv_path_install+y}
  15316. then :
  15317. printf %s "(cached) " >&6
  15318. else $as_nop
  15319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15320. for as_dir in $PATH
  15321. do
  15322. IFS=$as_save_IFS
  15323. case $as_dir in #(((
  15324. '') as_dir=./ ;;
  15325. */) ;;
  15326. *) as_dir=$as_dir/ ;;
  15327. esac
  15328. # Account for fact that we put trailing slashes in our PATH walk.
  15329. case $as_dir in #((
  15330. ./ | /[cC]/* | \
  15331. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15332. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15333. /usr/ucb/* ) ;;
  15334. *)
  15335. # OSF1 and SCO ODT 3.0 have their own names for install.
  15336. # Don't use installbsd from OSF since it installs stuff as root
  15337. # by default.
  15338. for ac_prog in ginstall scoinst install; do
  15339. for ac_exec_ext in '' $ac_executable_extensions; do
  15340. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15341. if test $ac_prog = install &&
  15342. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15343. # AIX install. It has an incompatible calling convention.
  15344. :
  15345. elif test $ac_prog = install &&
  15346. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15347. # program-specific install script used by HP pwplus--don't use.
  15348. :
  15349. else
  15350. rm -rf conftest.one conftest.two conftest.dir
  15351. echo one > conftest.one
  15352. echo two > conftest.two
  15353. mkdir conftest.dir
  15354. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15355. test -s conftest.one && test -s conftest.two &&
  15356. test -s conftest.dir/conftest.one &&
  15357. test -s conftest.dir/conftest.two
  15358. then
  15359. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15360. break 3
  15361. fi
  15362. fi
  15363. fi
  15364. done
  15365. done
  15366. ;;
  15367. esac
  15368. done
  15369. IFS=$as_save_IFS
  15370. rm -rf conftest.one conftest.two conftest.dir
  15371. fi
  15372. if test ${ac_cv_path_install+y}; then
  15373. INSTALL=$ac_cv_path_install
  15374. else
  15375. # As a last resort, use the slow shell script. Don't cache a
  15376. # value for INSTALL within a source directory, because that will
  15377. # break other packages using the cache if that directory is
  15378. # removed, or if the value is a relative name.
  15379. INSTALL=$ac_install_sh
  15380. fi
  15381. fi
  15382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15383. printf "%s\n" "$INSTALL" >&6; }
  15384. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15385. # It thinks the first close brace ends the variable substitution.
  15386. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15387. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15388. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15390. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15391. set x ${MAKE-make}
  15392. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15393. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15394. then :
  15395. printf %s "(cached) " >&6
  15396. else $as_nop
  15397. cat >conftest.make <<\_ACEOF
  15398. SHELL = /bin/sh
  15399. all:
  15400. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15401. _ACEOF
  15402. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15403. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15404. *@@@%%%=?*=@@@%%%*)
  15405. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15406. *)
  15407. eval ac_cv_prog_make_${ac_make}_set=no;;
  15408. esac
  15409. rm -f conftest.make
  15410. fi
  15411. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15413. printf "%s\n" "yes" >&6; }
  15414. SET_MAKE=
  15415. else
  15416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15417. printf "%s\n" "no" >&6; }
  15418. SET_MAKE="MAKE=${MAKE-make}"
  15419. fi
  15420. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15421. if test -n "$ac_tool_prefix"; then
  15422. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15423. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15425. printf %s "checking for $ac_word... " >&6; }
  15426. if test ${ac_cv_path_PKG_CONFIG+y}
  15427. then :
  15428. printf %s "(cached) " >&6
  15429. else $as_nop
  15430. case $PKG_CONFIG in
  15431. [\\/]* | ?:[\\/]*)
  15432. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15433. ;;
  15434. *)
  15435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15436. for as_dir in $PATH
  15437. do
  15438. IFS=$as_save_IFS
  15439. case $as_dir in #(((
  15440. '') as_dir=./ ;;
  15441. */) ;;
  15442. *) as_dir=$as_dir/ ;;
  15443. esac
  15444. for ac_exec_ext in '' $ac_executable_extensions; do
  15445. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15446. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15447. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15448. break 2
  15449. fi
  15450. done
  15451. done
  15452. IFS=$as_save_IFS
  15453. ;;
  15454. esac
  15455. fi
  15456. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15457. if test -n "$PKG_CONFIG"; then
  15458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15459. printf "%s\n" "$PKG_CONFIG" >&6; }
  15460. else
  15461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15462. printf "%s\n" "no" >&6; }
  15463. fi
  15464. fi
  15465. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15466. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15467. # Extract the first word of "pkg-config", so it can be a program name with args.
  15468. set dummy pkg-config; ac_word=$2
  15469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15470. printf %s "checking for $ac_word... " >&6; }
  15471. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15472. then :
  15473. printf %s "(cached) " >&6
  15474. else $as_nop
  15475. case $ac_pt_PKG_CONFIG in
  15476. [\\/]* | ?:[\\/]*)
  15477. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15478. ;;
  15479. *)
  15480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15481. for as_dir in $PATH
  15482. do
  15483. IFS=$as_save_IFS
  15484. case $as_dir in #(((
  15485. '') as_dir=./ ;;
  15486. */) ;;
  15487. *) as_dir=$as_dir/ ;;
  15488. esac
  15489. for ac_exec_ext in '' $ac_executable_extensions; do
  15490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15491. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15493. break 2
  15494. fi
  15495. done
  15496. done
  15497. IFS=$as_save_IFS
  15498. ;;
  15499. esac
  15500. fi
  15501. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15502. if test -n "$ac_pt_PKG_CONFIG"; then
  15503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15504. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15505. else
  15506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15507. printf "%s\n" "no" >&6; }
  15508. fi
  15509. if test "x$ac_pt_PKG_CONFIG" = x; then
  15510. PKG_CONFIG=""
  15511. else
  15512. case $cross_compiling:$ac_tool_warned in
  15513. yes:)
  15514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15516. ac_tool_warned=yes ;;
  15517. esac
  15518. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15519. fi
  15520. else
  15521. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15522. fi
  15523. fi
  15524. if test -n "$PKG_CONFIG"; then
  15525. _pkg_min_version=0.9.0
  15526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15527. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15528. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15530. printf "%s\n" "yes" >&6; }
  15531. else
  15532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15533. printf "%s\n" "no" >&6; }
  15534. PKG_CONFIG=""
  15535. fi
  15536. fi
  15537. if test -z "$AWK" ; then
  15538. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15539. fi
  15540. for ac_prog in gsort sort
  15541. do
  15542. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15543. set dummy $ac_prog; ac_word=$2
  15544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15545. printf %s "checking for $ac_word... " >&6; }
  15546. if test ${ac_cv_prog_SORT+y}
  15547. then :
  15548. printf %s "(cached) " >&6
  15549. else $as_nop
  15550. if test -n "$SORT"; then
  15551. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15552. else
  15553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15554. for as_dir in $PATH
  15555. do
  15556. IFS=$as_save_IFS
  15557. case $as_dir in #(((
  15558. '') as_dir=./ ;;
  15559. */) ;;
  15560. *) as_dir=$as_dir/ ;;
  15561. esac
  15562. for ac_exec_ext in '' $ac_executable_extensions; do
  15563. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15564. ac_cv_prog_SORT="$ac_prog"
  15565. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15566. break 2
  15567. fi
  15568. done
  15569. done
  15570. IFS=$as_save_IFS
  15571. fi
  15572. fi
  15573. SORT=$ac_cv_prog_SORT
  15574. if test -n "$SORT"; then
  15575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15576. printf "%s\n" "$SORT" >&6; }
  15577. else
  15578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. printf "%s\n" "no" >&6; }
  15580. fi
  15581. test -n "$SORT" && break
  15582. done
  15583. test -n "$SORT" || SORT="false"
  15584. if ! "$SORT" -V </dev/null >/dev/null
  15585. then :
  15586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15587. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15588. fi
  15589. # Check whether --enable-largefile was given.
  15590. if test ${enable_largefile+y}
  15591. then :
  15592. enableval=$enable_largefile;
  15593. fi
  15594. if test "$enable_largefile" != no; then
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15596. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15597. if test ${ac_cv_sys_largefile_CC+y}
  15598. then :
  15599. printf %s "(cached) " >&6
  15600. else $as_nop
  15601. ac_cv_sys_largefile_CC=no
  15602. if test "$GCC" != yes; then
  15603. ac_save_CC=$CC
  15604. while :; do
  15605. # IRIX 6.2 and later do not support large files by default,
  15606. # so use the C compiler's -n32 option if that helps.
  15607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15608. /* end confdefs.h. */
  15609. #include <sys/types.h>
  15610. /* Check that off_t can represent 2**63 - 1 correctly.
  15611. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15612. since some C++ compilers masquerading as C compilers
  15613. incorrectly reject 9223372036854775807. */
  15614. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15615. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15616. && LARGE_OFF_T % 2147483647 == 1)
  15617. ? 1 : -1];
  15618. int
  15619. main (void)
  15620. {
  15621. ;
  15622. return 0;
  15623. }
  15624. _ACEOF
  15625. if ac_fn_c_try_compile "$LINENO"
  15626. then :
  15627. break
  15628. fi
  15629. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15630. CC="$CC -n32"
  15631. if ac_fn_c_try_compile "$LINENO"
  15632. then :
  15633. ac_cv_sys_largefile_CC=' -n32'; break
  15634. fi
  15635. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15636. break
  15637. done
  15638. CC=$ac_save_CC
  15639. rm -f conftest.$ac_ext
  15640. fi
  15641. fi
  15642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15643. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15644. if test "$ac_cv_sys_largefile_CC" != no; then
  15645. CC=$CC$ac_cv_sys_largefile_CC
  15646. fi
  15647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15648. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15649. if test ${ac_cv_sys_file_offset_bits+y}
  15650. then :
  15651. printf %s "(cached) " >&6
  15652. else $as_nop
  15653. while :; do
  15654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15655. /* end confdefs.h. */
  15656. #include <sys/types.h>
  15657. /* Check that off_t can represent 2**63 - 1 correctly.
  15658. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15659. since some C++ compilers masquerading as C compilers
  15660. incorrectly reject 9223372036854775807. */
  15661. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15662. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15663. && LARGE_OFF_T % 2147483647 == 1)
  15664. ? 1 : -1];
  15665. int
  15666. main (void)
  15667. {
  15668. ;
  15669. return 0;
  15670. }
  15671. _ACEOF
  15672. if ac_fn_c_try_compile "$LINENO"
  15673. then :
  15674. ac_cv_sys_file_offset_bits=no; break
  15675. fi
  15676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15678. /* end confdefs.h. */
  15679. #define _FILE_OFFSET_BITS 64
  15680. #include <sys/types.h>
  15681. /* Check that off_t can represent 2**63 - 1 correctly.
  15682. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15683. since some C++ compilers masquerading as C compilers
  15684. incorrectly reject 9223372036854775807. */
  15685. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15686. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15687. && LARGE_OFF_T % 2147483647 == 1)
  15688. ? 1 : -1];
  15689. int
  15690. main (void)
  15691. {
  15692. ;
  15693. return 0;
  15694. }
  15695. _ACEOF
  15696. if ac_fn_c_try_compile "$LINENO"
  15697. then :
  15698. ac_cv_sys_file_offset_bits=64; break
  15699. fi
  15700. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15701. ac_cv_sys_file_offset_bits=unknown
  15702. break
  15703. done
  15704. fi
  15705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15706. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15707. case $ac_cv_sys_file_offset_bits in #(
  15708. no | unknown) ;;
  15709. *)
  15710. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15711. ;;
  15712. esac
  15713. rm -rf conftest*
  15714. if test $ac_cv_sys_file_offset_bits = unknown; then
  15715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15716. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15717. if test ${ac_cv_sys_large_files+y}
  15718. then :
  15719. printf %s "(cached) " >&6
  15720. else $as_nop
  15721. while :; do
  15722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15723. /* end confdefs.h. */
  15724. #include <sys/types.h>
  15725. /* Check that off_t can represent 2**63 - 1 correctly.
  15726. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15727. since some C++ compilers masquerading as C compilers
  15728. incorrectly reject 9223372036854775807. */
  15729. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15730. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15731. && LARGE_OFF_T % 2147483647 == 1)
  15732. ? 1 : -1];
  15733. int
  15734. main (void)
  15735. {
  15736. ;
  15737. return 0;
  15738. }
  15739. _ACEOF
  15740. if ac_fn_c_try_compile "$LINENO"
  15741. then :
  15742. ac_cv_sys_large_files=no; break
  15743. fi
  15744. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15746. /* end confdefs.h. */
  15747. #define _LARGE_FILES 1
  15748. #include <sys/types.h>
  15749. /* Check that off_t can represent 2**63 - 1 correctly.
  15750. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15751. since some C++ compilers masquerading as C compilers
  15752. incorrectly reject 9223372036854775807. */
  15753. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15754. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15755. && LARGE_OFF_T % 2147483647 == 1)
  15756. ? 1 : -1];
  15757. int
  15758. main (void)
  15759. {
  15760. ;
  15761. return 0;
  15762. }
  15763. _ACEOF
  15764. if ac_fn_c_try_compile "$LINENO"
  15765. then :
  15766. ac_cv_sys_large_files=1; break
  15767. fi
  15768. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15769. ac_cv_sys_large_files=unknown
  15770. break
  15771. done
  15772. fi
  15773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15774. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15775. case $ac_cv_sys_large_files in #(
  15776. no | unknown) ;;
  15777. *)
  15778. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15779. ;;
  15780. esac
  15781. rm -rf conftest*
  15782. fi
  15783. fi
  15784. case "$host" in
  15785. *-*-mingw*)
  15786. # Except on msys, where make can't handle full pathnames (bug 1972)
  15787. ;;
  15788. *)
  15789. srcdir=`cd $srcdir && pwd`
  15790. ;;
  15791. esac
  15792. INCLUDE="-I$srcdir/include"
  15793. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15794. case "$host" in
  15795. *-*-haiku*)
  15796. LINKER='$(CXX)'
  15797. LIBTOOLLINKERTAG='CXX'
  15798. ;;
  15799. *)
  15800. LINKER='$(CC)'
  15801. LIBTOOLLINKERTAG='CC'
  15802. ;;
  15803. esac
  15804. if test x$srcdir != x.; then
  15805. INCLUDE="-Iinclude $INCLUDE"
  15806. elif test -d .git; then
  15807. as_fn_error $? "
  15808. *** When building from a git clone you should configure and build in a
  15809. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15810. " "$LINENO" 5
  15811. fi
  15812. BASE_CFLAGS=""
  15813. BASE_LDFLAGS=""
  15814. case "$host" in
  15815. *-*-cygwin*)
  15816. # We build SDL on cygwin without the UNIX emulation layer
  15817. save_CFLAGS="$CFLAGS"
  15818. have_no_cygwin=no
  15819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15820. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15821. CFLAGS="$save_CFLAGS -mno-cygwin"
  15822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15823. /* end confdefs.h. */
  15824. int
  15825. main (void)
  15826. {
  15827. ;
  15828. return 0;
  15829. }
  15830. _ACEOF
  15831. if ac_fn_c_try_compile "$LINENO"
  15832. then :
  15833. have_no_cygwin=yes
  15834. fi
  15835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15837. printf "%s\n" "$have_no_cygwin" >&6; }
  15838. CFLAGS="$save_CFLAGS"
  15839. if test x$have_no_cygwin = xyes; then
  15840. BASE_CFLAGS="-mno-cygwin"
  15841. BASE_LDFLAGS="-mno-cygwin"
  15842. fi
  15843. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15844. ;;
  15845. esac
  15846. # Uncomment the following line if you want to force SDL and applications
  15847. # built with it to be compiled for a particular architecture.
  15848. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15849. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15850. # The default optimization for SDL is -O3 (Bug #31)
  15851. if test "x$orig_CFLAGS" = x; then
  15852. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15853. fi
  15854. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15855. BUILD_LDFLAGS="$LDFLAGS"
  15856. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15857. ## These are common directories to find software packages
  15858. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15859. # if test -d $path/include; then
  15860. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15861. # fi
  15862. # if test -d $path/lib; then
  15863. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15864. # fi
  15865. #done
  15866. SDL_CFLAGS="$BASE_CFLAGS"
  15867. SDL_LIBS="-lSDL3"
  15868. if test "x$BASE_LDFLAGS" != x; then
  15869. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15870. fi
  15871. if test "x$EXTRA_CFLAGS" != x; then
  15872. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15873. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15874. fi
  15875. if test "x$EXTRA_LDFLAGS" != x; then
  15876. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15877. fi
  15878. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15879. find_lib()
  15880. {
  15881. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15882. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15883. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15884. if test "$cross_compiling" = yes; then
  15885. host_lib_path=""
  15886. else
  15887. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15888. fi
  15889. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15890. 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`
  15891. if test x$lib != x; then
  15892. echo $lib
  15893. return
  15894. fi
  15895. done
  15896. }
  15897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15898. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15899. if test ${ac_cv_c_const+y}
  15900. then :
  15901. printf %s "(cached) " >&6
  15902. else $as_nop
  15903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15904. /* end confdefs.h. */
  15905. int
  15906. main (void)
  15907. {
  15908. #ifndef __cplusplus
  15909. /* Ultrix mips cc rejects this sort of thing. */
  15910. typedef int charset[2];
  15911. const charset cs = { 0, 0 };
  15912. /* SunOS 4.1.1 cc rejects this. */
  15913. char const *const *pcpcc;
  15914. char **ppc;
  15915. /* NEC SVR4.0.2 mips cc rejects this. */
  15916. struct point {int x, y;};
  15917. static struct point const zero = {0,0};
  15918. /* IBM XL C 1.02.0.0 rejects this.
  15919. It does not let you subtract one const X* pointer from another in
  15920. an arm of an if-expression whose if-part is not a constant
  15921. expression */
  15922. const char *g = "string";
  15923. pcpcc = &g + (g ? g-g : 0);
  15924. /* HPUX 7.0 cc rejects these. */
  15925. ++pcpcc;
  15926. ppc = (char**) pcpcc;
  15927. pcpcc = (char const *const *) ppc;
  15928. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15929. char tx;
  15930. char *t = &tx;
  15931. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15932. *t++ = 0;
  15933. if (s) return 0;
  15934. }
  15935. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15936. int x[] = {25, 17};
  15937. const int *foo = &x[0];
  15938. ++foo;
  15939. }
  15940. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15941. typedef const int *iptr;
  15942. iptr p = 0;
  15943. ++p;
  15944. }
  15945. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15946. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15947. struct s { int j; const int *ap[3]; } bx;
  15948. struct s *b = &bx; b->j = 5;
  15949. }
  15950. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15951. const int foo = 10;
  15952. if (!foo) return 0;
  15953. }
  15954. return !cs[0] && !zero.x;
  15955. #endif
  15956. ;
  15957. return 0;
  15958. }
  15959. _ACEOF
  15960. if ac_fn_c_try_compile "$LINENO"
  15961. then :
  15962. ac_cv_c_const=yes
  15963. else $as_nop
  15964. ac_cv_c_const=no
  15965. fi
  15966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15967. fi
  15968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15969. printf "%s\n" "$ac_cv_c_const" >&6; }
  15970. if test $ac_cv_c_const = no; then
  15971. printf "%s\n" "#define const /**/" >>confdefs.h
  15972. fi
  15973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15974. printf %s "checking for inline... " >&6; }
  15975. if test ${ac_cv_c_inline+y}
  15976. then :
  15977. printf %s "(cached) " >&6
  15978. else $as_nop
  15979. ac_cv_c_inline=no
  15980. for ac_kw in inline __inline__ __inline; do
  15981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15982. /* end confdefs.h. */
  15983. #ifndef __cplusplus
  15984. typedef int foo_t;
  15985. static $ac_kw foo_t static_foo (void) {return 0; }
  15986. $ac_kw foo_t foo (void) {return 0; }
  15987. #endif
  15988. _ACEOF
  15989. if ac_fn_c_try_compile "$LINENO"
  15990. then :
  15991. ac_cv_c_inline=$ac_kw
  15992. fi
  15993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15994. test "$ac_cv_c_inline" != no && break
  15995. done
  15996. fi
  15997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15998. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15999. case $ac_cv_c_inline in
  16000. inline | yes) ;;
  16001. *)
  16002. case $ac_cv_c_inline in
  16003. no) ac_val=;;
  16004. *) ac_val=$ac_cv_c_inline;;
  16005. esac
  16006. cat >>confdefs.h <<_ACEOF
  16007. #ifndef __cplusplus
  16008. #define inline $ac_val
  16009. #endif
  16010. _ACEOF
  16011. ;;
  16012. esac
  16013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16014. printf %s "checking for working volatile... " >&6; }
  16015. if test ${ac_cv_c_volatile+y}
  16016. then :
  16017. printf %s "(cached) " >&6
  16018. else $as_nop
  16019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16020. /* end confdefs.h. */
  16021. int
  16022. main (void)
  16023. {
  16024. volatile int x;
  16025. int * volatile y = (int *) 0;
  16026. return !x && !y;
  16027. ;
  16028. return 0;
  16029. }
  16030. _ACEOF
  16031. if ac_fn_c_try_compile "$LINENO"
  16032. then :
  16033. ac_cv_c_volatile=yes
  16034. else $as_nop
  16035. ac_cv_c_volatile=no
  16036. fi
  16037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16038. fi
  16039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16040. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16041. if test $ac_cv_c_volatile = no; then
  16042. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16043. fi
  16044. # Check whether --enable-assertions was given.
  16045. if test ${enable_assertions+y}
  16046. then :
  16047. enableval=$enable_assertions;
  16048. else $as_nop
  16049. enable_assertions=auto
  16050. fi
  16051. case "$enable_assertions" in
  16052. auto) # Use optimization settings to determine assertion level
  16053. ;;
  16054. disabled)
  16055. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16056. ;;
  16057. release)
  16058. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16059. ;;
  16060. enabled)
  16061. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16062. ;;
  16063. paranoid)
  16064. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16065. ;;
  16066. *)
  16067. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16068. ;;
  16069. esac
  16070. 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"
  16071. # Check whether --enable-dependency-tracking was given.
  16072. if test ${enable_dependency_tracking+y}
  16073. then :
  16074. enableval=$enable_dependency_tracking;
  16075. else $as_nop
  16076. enable_dependency_tracking=yes
  16077. fi
  16078. if test x$enable_dependency_tracking = xyes; then
  16079. have_gcc_mmd_mt=no
  16080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16081. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. #if !defined(__GNUC__) || __GNUC__ < 3
  16085. #error Dependency tracking requires GCC 3.0 or newer
  16086. #endif
  16087. int
  16088. main (void)
  16089. {
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_compile "$LINENO"
  16095. then :
  16096. have_gcc_mmd_mt=yes
  16097. fi
  16098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16100. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16101. if test x$have_gcc_mmd_mt = xyes; then
  16102. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16103. fi
  16104. fi
  16105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16106. printf %s "checking for linker option --no-undefined... " >&6; }
  16107. have_no_undefined=no
  16108. case "$host" in
  16109. *-*-openbsd*)
  16110. ;;
  16111. *)
  16112. save_LDFLAGS="$LDFLAGS"
  16113. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16115. /* end confdefs.h. */
  16116. int
  16117. main (void)
  16118. {
  16119. ;
  16120. return 0;
  16121. }
  16122. _ACEOF
  16123. if ac_fn_c_try_link "$LINENO"
  16124. then :
  16125. have_no_undefined=yes
  16126. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16127. fi
  16128. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16129. conftest$ac_exeext conftest.$ac_ext
  16130. LDFLAGS="$save_LDFLAGS"
  16131. ;;
  16132. esac
  16133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16134. printf "%s\n" "$have_no_undefined" >&6; }
  16135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16136. printf %s "checking for linker option --dynamicbase... " >&6; }
  16137. have_dynamicbase=no
  16138. case "$host" in
  16139. *)
  16140. save_LDFLAGS="$LDFLAGS"
  16141. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16143. /* end confdefs.h. */
  16144. int
  16145. main (void)
  16146. {
  16147. ;
  16148. return 0;
  16149. }
  16150. _ACEOF
  16151. if ac_fn_c_try_link "$LINENO"
  16152. then :
  16153. have_dynamicbase=yes
  16154. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16155. fi
  16156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16157. conftest$ac_exeext conftest.$ac_ext
  16158. LDFLAGS="$save_LDFLAGS"
  16159. ;;
  16160. esac
  16161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16162. printf "%s\n" "$have_dynamicbase" >&6; }
  16163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16164. printf %s "checking for linker option --nxcompat... " >&6; }
  16165. have_nxcompat=no
  16166. case "$host" in
  16167. *)
  16168. save_LDFLAGS="$LDFLAGS"
  16169. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16171. /* end confdefs.h. */
  16172. int
  16173. main (void)
  16174. {
  16175. ;
  16176. return 0;
  16177. }
  16178. _ACEOF
  16179. if ac_fn_c_try_link "$LINENO"
  16180. then :
  16181. have_nxcompat=yes
  16182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16183. fi
  16184. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16185. conftest$ac_exeext conftest.$ac_ext
  16186. LDFLAGS="$save_LDFLAGS"
  16187. ;;
  16188. esac
  16189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16190. printf "%s\n" "$have_nxcompat" >&6; }
  16191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16192. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16193. have_high_entropy_va=no
  16194. case "$host" in
  16195. *)
  16196. save_LDFLAGS="$LDFLAGS"
  16197. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16199. /* end confdefs.h. */
  16200. int
  16201. main (void)
  16202. {
  16203. ;
  16204. return 0;
  16205. }
  16206. _ACEOF
  16207. if ac_fn_c_try_link "$LINENO"
  16208. then :
  16209. have_high_entropy_va=yes
  16210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16213. conftest$ac_exeext conftest.$ac_ext
  16214. LDFLAGS="$save_LDFLAGS"
  16215. ;;
  16216. esac
  16217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16218. printf "%s\n" "$have_high_entropy_va" >&6; }
  16219. # Check whether --enable-libc was given.
  16220. if test ${enable_libc+y}
  16221. then :
  16222. enableval=$enable_libc;
  16223. else $as_nop
  16224. enable_libc=yes
  16225. fi
  16226. # Check whether --enable-system-iconv was given.
  16227. if test ${enable_system_iconv+y}
  16228. then :
  16229. enableval=$enable_system_iconv;
  16230. else $as_nop
  16231. enable_system_iconv=yes
  16232. fi
  16233. if test x$enable_libc = xyes; then
  16234. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16235. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16236. if test "x$ac_cv_header_sys_types_h" = xyes
  16237. then :
  16238. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16239. fi
  16240. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16241. if test "x$ac_cv_header_stdio_h" = xyes
  16242. then :
  16243. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16244. fi
  16245. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16246. if test "x$ac_cv_header_stdlib_h" = xyes
  16247. then :
  16248. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16249. fi
  16250. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16251. if test "x$ac_cv_header_stddef_h" = xyes
  16252. then :
  16253. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16254. fi
  16255. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16256. if test "x$ac_cv_header_stdarg_h" = xyes
  16257. then :
  16258. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16259. fi
  16260. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16261. if test "x$ac_cv_header_malloc_h" = xyes
  16262. then :
  16263. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16264. fi
  16265. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16266. if test "x$ac_cv_header_memory_h" = xyes
  16267. then :
  16268. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16269. fi
  16270. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_string_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_strings_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_wchar_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_inttypes_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_stdint_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_limits_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_ctype_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_math_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_float_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_iconv_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16321. if test "x$ac_cv_header_signal_h" = xyes
  16322. then :
  16323. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16324. fi
  16325. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16326. if test "x$ac_cv_header_linux_input_h" = xyes
  16327. then :
  16328. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16329. fi
  16330. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16331. if test "x$ac_cv_type_size_t" = xyes
  16332. then :
  16333. else $as_nop
  16334. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16335. fi
  16336. ac_ext=c
  16337. ac_cpp='$CPP $CPPFLAGS'
  16338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16342. printf %s "checking how to run the C preprocessor... " >&6; }
  16343. # On Suns, sometimes $CPP names a directory.
  16344. if test -n "$CPP" && test -d "$CPP"; then
  16345. CPP=
  16346. fi
  16347. if test -z "$CPP"; then
  16348. if test ${ac_cv_prog_CPP+y}
  16349. then :
  16350. printf %s "(cached) " >&6
  16351. else $as_nop
  16352. # Double quotes because $CC needs to be expanded
  16353. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16354. do
  16355. ac_preproc_ok=false
  16356. for ac_c_preproc_warn_flag in '' yes
  16357. do
  16358. # Use a header file that comes with gcc, so configuring glibc
  16359. # with a fresh cross-compiler works.
  16360. # On the NeXT, cc -E runs the code through the compiler's parser,
  16361. # not just through cpp. "Syntax error" is here to catch this case.
  16362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16363. /* end confdefs.h. */
  16364. #include <limits.h>
  16365. Syntax error
  16366. _ACEOF
  16367. if ac_fn_c_try_cpp "$LINENO"
  16368. then :
  16369. else $as_nop
  16370. # Broken: fails on valid input.
  16371. continue
  16372. fi
  16373. rm -f conftest.err conftest.i conftest.$ac_ext
  16374. # OK, works on sane cases. Now check whether nonexistent headers
  16375. # can be detected and how.
  16376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16377. /* end confdefs.h. */
  16378. #include <ac_nonexistent.h>
  16379. _ACEOF
  16380. if ac_fn_c_try_cpp "$LINENO"
  16381. then :
  16382. # Broken: success on invalid input.
  16383. continue
  16384. else $as_nop
  16385. # Passes both tests.
  16386. ac_preproc_ok=:
  16387. break
  16388. fi
  16389. rm -f conftest.err conftest.i conftest.$ac_ext
  16390. done
  16391. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16392. rm -f conftest.i conftest.err conftest.$ac_ext
  16393. if $ac_preproc_ok
  16394. then :
  16395. break
  16396. fi
  16397. done
  16398. ac_cv_prog_CPP=$CPP
  16399. fi
  16400. CPP=$ac_cv_prog_CPP
  16401. else
  16402. ac_cv_prog_CPP=$CPP
  16403. fi
  16404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16405. printf "%s\n" "$CPP" >&6; }
  16406. ac_preproc_ok=false
  16407. for ac_c_preproc_warn_flag in '' yes
  16408. do
  16409. # Use a header file that comes with gcc, so configuring glibc
  16410. # with a fresh cross-compiler works.
  16411. # On the NeXT, cc -E runs the code through the compiler's parser,
  16412. # not just through cpp. "Syntax error" is here to catch this case.
  16413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16414. /* end confdefs.h. */
  16415. #include <limits.h>
  16416. Syntax error
  16417. _ACEOF
  16418. if ac_fn_c_try_cpp "$LINENO"
  16419. then :
  16420. else $as_nop
  16421. # Broken: fails on valid input.
  16422. continue
  16423. fi
  16424. rm -f conftest.err conftest.i conftest.$ac_ext
  16425. # OK, works on sane cases. Now check whether nonexistent headers
  16426. # can be detected and how.
  16427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16428. /* end confdefs.h. */
  16429. #include <ac_nonexistent.h>
  16430. _ACEOF
  16431. if ac_fn_c_try_cpp "$LINENO"
  16432. then :
  16433. # Broken: success on invalid input.
  16434. continue
  16435. else $as_nop
  16436. # Passes both tests.
  16437. ac_preproc_ok=:
  16438. break
  16439. fi
  16440. rm -f conftest.err conftest.i conftest.$ac_ext
  16441. done
  16442. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16443. rm -f conftest.i conftest.err conftest.$ac_ext
  16444. if $ac_preproc_ok
  16445. then :
  16446. else $as_nop
  16447. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16448. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16449. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16450. See \`config.log' for more details" "$LINENO" 5; }
  16451. fi
  16452. ac_ext=c
  16453. ac_cpp='$CPP $CPPFLAGS'
  16454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16458. printf %s "checking for M_PI in math.h... " >&6; }
  16459. if test ${ac_cv_define_M_PI+y}
  16460. then :
  16461. printf %s "(cached) " >&6
  16462. else $as_nop
  16463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16464. /* end confdefs.h. */
  16465. #include <math.h>
  16466. #ifdef M_PI
  16467. YES_IS_DEFINED
  16468. #endif
  16469. _ACEOF
  16470. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16471. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16472. then :
  16473. ac_cv_define_M_PI=yes
  16474. else $as_nop
  16475. ac_cv_define_M_PI=no
  16476. fi
  16477. rm -rf conftest*
  16478. fi
  16479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16480. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16481. if test "$ac_cv_define_M_PI" = "yes" ; then
  16482. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16483. fi
  16484. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16485. # for constant arguments. Useless!
  16486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16487. printf %s "checking for working alloca.h... " >&6; }
  16488. if test ${ac_cv_working_alloca_h+y}
  16489. then :
  16490. printf %s "(cached) " >&6
  16491. else $as_nop
  16492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16493. /* end confdefs.h. */
  16494. #include <alloca.h>
  16495. int
  16496. main (void)
  16497. {
  16498. char *p = (char *) alloca (2 * sizeof (int));
  16499. if (p) return 0;
  16500. ;
  16501. return 0;
  16502. }
  16503. _ACEOF
  16504. if ac_fn_c_try_link "$LINENO"
  16505. then :
  16506. ac_cv_working_alloca_h=yes
  16507. else $as_nop
  16508. ac_cv_working_alloca_h=no
  16509. fi
  16510. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16511. conftest$ac_exeext conftest.$ac_ext
  16512. fi
  16513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16514. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16515. if test $ac_cv_working_alloca_h = yes; then
  16516. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16517. fi
  16518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16519. printf %s "checking for alloca... " >&6; }
  16520. if test ${ac_cv_func_alloca_works+y}
  16521. then :
  16522. printf %s "(cached) " >&6
  16523. else $as_nop
  16524. if test $ac_cv_working_alloca_h = yes; then
  16525. ac_cv_func_alloca_works=yes
  16526. else
  16527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16528. /* end confdefs.h. */
  16529. #include <stdlib.h>
  16530. #include <stddef.h>
  16531. #ifndef alloca
  16532. # ifdef __GNUC__
  16533. # define alloca __builtin_alloca
  16534. # elif defined _MSC_VER
  16535. # include <malloc.h>
  16536. # define alloca _alloca
  16537. # else
  16538. # ifdef __cplusplus
  16539. extern "C"
  16540. # endif
  16541. void *alloca (size_t);
  16542. # endif
  16543. #endif
  16544. int
  16545. main (void)
  16546. {
  16547. char *p = (char *) alloca (1);
  16548. if (p) return 0;
  16549. ;
  16550. return 0;
  16551. }
  16552. _ACEOF
  16553. if ac_fn_c_try_link "$LINENO"
  16554. then :
  16555. ac_cv_func_alloca_works=yes
  16556. else $as_nop
  16557. ac_cv_func_alloca_works=no
  16558. fi
  16559. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16560. conftest$ac_exeext conftest.$ac_ext
  16561. fi
  16562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16563. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16564. fi
  16565. if test $ac_cv_func_alloca_works = yes; then
  16566. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16567. else
  16568. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16569. # that cause trouble. Some versions do not even contain alloca or
  16570. # contain a buggy version. If you still want to use their alloca,
  16571. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16572. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16573. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16575. printf %s "checking stack direction for C alloca... " >&6; }
  16576. if test ${ac_cv_c_stack_direction+y}
  16577. then :
  16578. printf %s "(cached) " >&6
  16579. else $as_nop
  16580. if test "$cross_compiling" = yes
  16581. then :
  16582. ac_cv_c_stack_direction=0
  16583. else $as_nop
  16584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16585. /* end confdefs.h. */
  16586. $ac_includes_default
  16587. int
  16588. find_stack_direction (int *addr, int depth)
  16589. {
  16590. int dir, dummy = 0;
  16591. if (! addr)
  16592. addr = &dummy;
  16593. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16594. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16595. return dir + dummy;
  16596. }
  16597. int
  16598. main (int argc, char **argv)
  16599. {
  16600. return find_stack_direction (0, argc + !argv + 20) < 0;
  16601. }
  16602. _ACEOF
  16603. if ac_fn_c_try_run "$LINENO"
  16604. then :
  16605. ac_cv_c_stack_direction=1
  16606. else $as_nop
  16607. ac_cv_c_stack_direction=-1
  16608. fi
  16609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16610. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16611. fi
  16612. fi
  16613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16614. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16615. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16616. fi
  16617. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16618. if test "x$ac_cv_func_mprotect" = xyes
  16619. then :
  16620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16621. /* end confdefs.h. */
  16622. #include <sys/types.h>
  16623. #include <sys/mman.h>
  16624. int
  16625. main (void)
  16626. {
  16627. ;
  16628. return 0;
  16629. }
  16630. _ACEOF
  16631. if ac_fn_c_try_compile "$LINENO"
  16632. then :
  16633. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16634. fi
  16635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16636. fi
  16637. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16638. if test "x$ac_cv_func_malloc" = xyes
  16639. then :
  16640. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16641. fi
  16642. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16643. if test "x$ac_cv_func_calloc" = xyes
  16644. then :
  16645. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16646. fi
  16647. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16648. if test "x$ac_cv_func_realloc" = xyes
  16649. then :
  16650. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16651. fi
  16652. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16653. if test "x$ac_cv_func_free" = xyes
  16654. then :
  16655. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16656. fi
  16657. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16658. if test "x$ac_cv_func_getenv" = xyes
  16659. then :
  16660. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16661. fi
  16662. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16663. if test "x$ac_cv_func_setenv" = xyes
  16664. then :
  16665. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16666. fi
  16667. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16668. if test "x$ac_cv_func_putenv" = xyes
  16669. then :
  16670. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16671. fi
  16672. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16673. if test "x$ac_cv_func_unsetenv" = xyes
  16674. then :
  16675. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16676. fi
  16677. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16678. if test "x$ac_cv_func_bsearch" = xyes
  16679. then :
  16680. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16683. if test "x$ac_cv_func_qsort" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16688. if test "x$ac_cv_func_abs" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16693. if test "x$ac_cv_func_bcopy" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16698. if test "x$ac_cv_func_memset" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16703. if test "x$ac_cv_func_memcmp" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16708. if test "x$ac_cv_func_memcpy" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16713. if test "x$ac_cv_func_memmove" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16718. if test "x$ac_cv_func_wcslen" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16723. if test "x$ac_cv_func_wcslcpy" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16728. if test "x$ac_cv_func_wcslcat" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16733. if test "x$ac_cv_func__wcsdup" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16738. if test "x$ac_cv_func_wcsdup" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16743. if test "x$ac_cv_func_wcsstr" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16748. if test "x$ac_cv_func_wcscmp" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16753. if test "x$ac_cv_func_wcsncmp" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16758. if test "x$ac_cv_func_wcscasecmp" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16763. if test "x$ac_cv_func__wcsicmp" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16768. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16773. if test "x$ac_cv_func__wcsnicmp" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16778. if test "x$ac_cv_func_strlen" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16783. if test "x$ac_cv_func_strlcpy" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16788. if test "x$ac_cv_func_strlcat" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16793. if test "x$ac_cv_func__strrev" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16798. if test "x$ac_cv_func__strupr" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16803. if test "x$ac_cv_func__strlwr" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16808. if test "x$ac_cv_func_index" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16813. if test "x$ac_cv_func_rindex" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16818. if test "x$ac_cv_func_strchr" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16823. if test "x$ac_cv_func_strrchr" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16828. if test "x$ac_cv_func_strstr" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16833. if test "x$ac_cv_func_strtok_r" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16838. if test "x$ac_cv_func_itoa" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16843. if test "x$ac_cv_func__ltoa" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16848. if test "x$ac_cv_func__uitoa" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16853. if test "x$ac_cv_func__ultoa" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16858. if test "x$ac_cv_func_strtod" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16863. if test "x$ac_cv_func_strtol" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16868. if test "x$ac_cv_func_strtoul" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16873. if test "x$ac_cv_func__i64toa" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16878. if test "x$ac_cv_func__ui64toa" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16883. if test "x$ac_cv_func_strtoll" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16888. if test "x$ac_cv_func_strtoull" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16893. if test "x$ac_cv_func_atoi" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16898. if test "x$ac_cv_func_atof" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16903. if test "x$ac_cv_func_strcmp" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16908. if test "x$ac_cv_func_strncmp" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16913. if test "x$ac_cv_func__stricmp" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16918. if test "x$ac_cv_func_strcasecmp" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16923. if test "x$ac_cv_func__strnicmp" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16928. if test "x$ac_cv_func_strncasecmp" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16933. if test "x$ac_cv_func_strcasestr" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16938. if test "x$ac_cv_func_vsscanf" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16943. if test "x$ac_cv_func_vsnprintf" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16948. if test "x$ac_cv_func_fopen64" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16953. if test "x$ac_cv_func_fseeko" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16958. if test "x$ac_cv_func_fseeko64" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16963. if test "x$ac_cv_func_sigaction" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16968. if test "x$ac_cv_func_setjmp" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16973. if test "x$ac_cv_func_nanosleep" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16978. if test "x$ac_cv_func_sysconf" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16983. if test "x$ac_cv_func_sysctlbyname" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16988. if test "x$ac_cv_func_getauxval" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16993. if test "x$ac_cv_func_elf_aux_info" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16998. if test "x$ac_cv_func_poll" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17001. fi
  17002. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17003. if test "x$ac_cv_func__Exit" = xyes
  17004. then :
  17005. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17006. fi
  17007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17008. printf %s "checking for pow in -lm... " >&6; }
  17009. if test ${ac_cv_lib_m_pow+y}
  17010. then :
  17011. printf %s "(cached) " >&6
  17012. else $as_nop
  17013. ac_check_lib_save_LIBS=$LIBS
  17014. LIBS="-lm $LIBS"
  17015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17016. /* end confdefs.h. */
  17017. /* Override any GCC internal prototype to avoid an error.
  17018. Use char because int might match the return type of a GCC
  17019. builtin and then its argument prototype would still apply. */
  17020. char pow ();
  17021. int
  17022. main (void)
  17023. {
  17024. return pow ();
  17025. ;
  17026. return 0;
  17027. }
  17028. _ACEOF
  17029. if ac_fn_c_try_link "$LINENO"
  17030. then :
  17031. ac_cv_lib_m_pow=yes
  17032. else $as_nop
  17033. ac_cv_lib_m_pow=no
  17034. fi
  17035. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17036. conftest$ac_exeext conftest.$ac_ext
  17037. LIBS=$ac_check_lib_save_LIBS
  17038. fi
  17039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17040. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17041. if test "x$ac_cv_lib_m_pow" = xyes
  17042. then :
  17043. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17046. if test "x$ac_cv_func_acos" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17051. if test "x$ac_cv_func_acosf" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17056. if test "x$ac_cv_func_asin" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17061. if test "x$ac_cv_func_asinf" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17066. if test "x$ac_cv_func_atan" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17071. if test "x$ac_cv_func_atanf" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17076. if test "x$ac_cv_func_atan2" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17081. if test "x$ac_cv_func_atan2f" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17086. if test "x$ac_cv_func_ceil" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17091. if test "x$ac_cv_func_ceilf" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17096. if test "x$ac_cv_func_copysign" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17101. if test "x$ac_cv_func_copysignf" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17106. if test "x$ac_cv_func_cos" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17111. if test "x$ac_cv_func_cosf" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17116. if test "x$ac_cv_func_exp" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17121. if test "x$ac_cv_func_expf" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17126. if test "x$ac_cv_func_fabs" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17131. if test "x$ac_cv_func_fabsf" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17136. if test "x$ac_cv_func_floor" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17141. if test "x$ac_cv_func_floorf" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17146. if test "x$ac_cv_func_trunc" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17151. if test "x$ac_cv_func_truncf" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17156. if test "x$ac_cv_func_fmod" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17161. if test "x$ac_cv_func_fmodf" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17166. if test "x$ac_cv_func_log" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17171. if test "x$ac_cv_func_logf" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17176. if test "x$ac_cv_func_log10" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17181. if test "x$ac_cv_func_log10f" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17186. if test "x$ac_cv_func_lround" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17191. if test "x$ac_cv_func_lroundf" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17196. if test "x$ac_cv_func_pow" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17201. if test "x$ac_cv_func_powf" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17206. if test "x$ac_cv_func_round" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17211. if test "x$ac_cv_func_roundf" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17216. if test "x$ac_cv_func_scalbn" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17221. if test "x$ac_cv_func_scalbnf" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17226. if test "x$ac_cv_func_sin" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17231. if test "x$ac_cv_func_sinf" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17236. if test "x$ac_cv_func_sqrt" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17241. if test "x$ac_cv_func_sqrtf" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17246. if test "x$ac_cv_func_tan" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17249. fi
  17250. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17251. if test "x$ac_cv_func_tanf" = xyes
  17252. then :
  17253. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17254. fi
  17255. if test x$enable_system_iconv = xyes; then
  17256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17257. printf %s "checking for iconv_open in -liconv... " >&6; }
  17258. if test ${ac_cv_lib_iconv_iconv_open+y}
  17259. then :
  17260. printf %s "(cached) " >&6
  17261. else $as_nop
  17262. ac_check_lib_save_LIBS=$LIBS
  17263. LIBS="-liconv $LIBS"
  17264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17265. /* end confdefs.h. */
  17266. /* Override any GCC internal prototype to avoid an error.
  17267. Use char because int might match the return type of a GCC
  17268. builtin and then its argument prototype would still apply. */
  17269. char iconv_open ();
  17270. int
  17271. main (void)
  17272. {
  17273. return iconv_open ();
  17274. ;
  17275. return 0;
  17276. }
  17277. _ACEOF
  17278. if ac_fn_c_try_link "$LINENO"
  17279. then :
  17280. ac_cv_lib_iconv_iconv_open=yes
  17281. else $as_nop
  17282. ac_cv_lib_iconv_iconv_open=no
  17283. fi
  17284. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17285. conftest$ac_exeext conftest.$ac_ext
  17286. LIBS=$ac_check_lib_save_LIBS
  17287. fi
  17288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17289. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17290. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17291. then :
  17292. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17295. if test "x$ac_cv_func_iconv" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17298. fi
  17299. fi
  17300. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17301. "
  17302. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17303. then :
  17304. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17305. fi
  17306. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17307. if test "x$ac_cv_header_libunwind_h" = xyes
  17308. then :
  17309. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17310. fi
  17311. fi
  17312. # Check whether --enable-gcc-atomics was given.
  17313. if test ${enable_gcc_atomics+y}
  17314. then :
  17315. enableval=$enable_gcc_atomics;
  17316. else $as_nop
  17317. enable_gcc_atomics=yes
  17318. fi
  17319. if test x$enable_gcc_atomics = xyes; then
  17320. have_gcc_atomics=no
  17321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17322. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17324. /* end confdefs.h. */
  17325. int
  17326. main (void)
  17327. {
  17328. int a;
  17329. void *x, *y, *z;
  17330. __sync_lock_test_and_set(&a, 4);
  17331. __sync_lock_test_and_set(&x, y);
  17332. __sync_fetch_and_add(&a, 1);
  17333. __sync_bool_compare_and_swap(&a, 5, 10);
  17334. __sync_bool_compare_and_swap(&x, y, z);
  17335. ;
  17336. return 0;
  17337. }
  17338. _ACEOF
  17339. if ac_fn_c_try_link "$LINENO"
  17340. then :
  17341. have_gcc_atomics=yes
  17342. fi
  17343. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17344. conftest$ac_exeext conftest.$ac_ext
  17345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17346. printf "%s\n" "$have_gcc_atomics" >&6; }
  17347. if test x$have_gcc_atomics = xyes; then
  17348. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17349. else
  17350. # See if we have the minimum operation needed for GCC atomics
  17351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17352. /* end confdefs.h. */
  17353. int
  17354. main (void)
  17355. {
  17356. int a;
  17357. __sync_lock_test_and_set(&a, 1);
  17358. __sync_lock_release(&a);
  17359. ;
  17360. return 0;
  17361. }
  17362. _ACEOF
  17363. if ac_fn_c_try_link "$LINENO"
  17364. then :
  17365. have_gcc_sync_lock_test_and_set=yes
  17366. fi
  17367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17368. conftest$ac_exeext conftest.$ac_ext
  17369. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17370. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17371. fi
  17372. fi
  17373. fi
  17374. # Standard C sources
  17375. SOURCES="$SOURCES $srcdir/src/*.c"
  17376. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17377. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17378. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17380. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17381. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17382. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17383. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17384. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17385. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17386. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17387. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17388. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17389. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17390. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17391. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17392. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17393. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17394. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17395. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17396. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17397. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17398. case "$host" in
  17399. *-*-emscripten*)
  17400. default_atomic=no
  17401. ;;
  17402. *)
  17403. default_atomic=yes
  17404. ;;
  17405. esac
  17406. # Check whether --enable-atomic was given.
  17407. if test ${enable_atomic+y}
  17408. then :
  17409. enableval=$enable_atomic;
  17410. else $as_nop
  17411. enable_atomic=$default_atomic
  17412. fi
  17413. if test x$enable_atomic != xyes; then
  17414. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17415. else
  17416. SUMMARY_modules="${SUMMARY_modules} atomic"
  17417. fi
  17418. # Check whether --enable-audio was given.
  17419. if test ${enable_audio+y}
  17420. then :
  17421. enableval=$enable_audio;
  17422. else $as_nop
  17423. enable_audio=yes
  17424. fi
  17425. if test x$enable_audio != xyes; then
  17426. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17427. else
  17428. SUMMARY_modules="${SUMMARY_modules} audio"
  17429. fi
  17430. # Check whether --enable-video was given.
  17431. if test ${enable_video+y}
  17432. then :
  17433. enableval=$enable_video;
  17434. else $as_nop
  17435. enable_video=yes
  17436. fi
  17437. if test x$enable_video != xyes; then
  17438. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17439. else
  17440. SUMMARY_modules="${SUMMARY_modules} video"
  17441. fi
  17442. # Check whether --enable-render was given.
  17443. if test ${enable_render+y}
  17444. then :
  17445. enableval=$enable_render;
  17446. else $as_nop
  17447. enable_render=yes
  17448. fi
  17449. if test x$enable_render != xyes; then
  17450. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17451. else
  17452. SUMMARY_modules="${SUMMARY_modules} render"
  17453. fi
  17454. # Check whether --enable-events was given.
  17455. if test ${enable_events+y}
  17456. then :
  17457. enableval=$enable_events;
  17458. else $as_nop
  17459. enable_events=yes
  17460. fi
  17461. if test x$enable_events != xyes; then
  17462. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17463. else
  17464. SUMMARY_modules="${SUMMARY_modules} events"
  17465. fi
  17466. # Check whether --enable-joystick was given.
  17467. if test ${enable_joystick+y}
  17468. then :
  17469. enableval=$enable_joystick;
  17470. else $as_nop
  17471. enable_joystick=yes
  17472. fi
  17473. if test x$enable_joystick != xyes; then
  17474. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17475. else
  17476. SUMMARY_modules="${SUMMARY_modules} joystick"
  17477. fi
  17478. # Check whether --enable-haptic was given.
  17479. if test ${enable_haptic+y}
  17480. then :
  17481. enableval=$enable_haptic;
  17482. else $as_nop
  17483. enable_haptic=yes
  17484. fi
  17485. if test x$enable_haptic != xyes; then
  17486. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17487. else
  17488. SUMMARY_modules="${SUMMARY_modules} haptic"
  17489. fi
  17490. # Check whether --enable-hidapi was given.
  17491. if test ${enable_hidapi+y}
  17492. then :
  17493. enableval=$enable_hidapi;
  17494. else $as_nop
  17495. enable_hidapi=yes
  17496. fi
  17497. if test x$enable_hidapi != xyes; then
  17498. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17499. else
  17500. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17501. fi
  17502. # Check whether --enable-sensor was given.
  17503. if test ${enable_sensor+y}
  17504. then :
  17505. enableval=$enable_sensor;
  17506. else $as_nop
  17507. enable_sensor=yes
  17508. fi
  17509. if test x$enable_sensor != xyes; then
  17510. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17511. else
  17512. SUMMARY_modules="${SUMMARY_modules} sensor"
  17513. fi
  17514. # Check whether --enable-power was given.
  17515. if test ${enable_power+y}
  17516. then :
  17517. enableval=$enable_power;
  17518. else $as_nop
  17519. enable_power=yes
  17520. fi
  17521. if test x$enable_power != xyes; then
  17522. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17523. else
  17524. SUMMARY_modules="${SUMMARY_modules} power"
  17525. fi
  17526. # Check whether --enable-filesystem was given.
  17527. if test ${enable_filesystem+y}
  17528. then :
  17529. enableval=$enable_filesystem;
  17530. else $as_nop
  17531. enable_filesystem=yes
  17532. fi
  17533. if test x$enable_filesystem != xyes; then
  17534. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17535. else
  17536. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17537. fi
  17538. # Many subsystems depend on threads, so leave them enabled by default
  17539. #AC_ARG_ENABLE(threads,
  17540. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17541. # , enable_threads=yes)
  17542. enable_threads=yes
  17543. if test x$enable_threads != xyes; then
  17544. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17545. else
  17546. SUMMARY_modules="${SUMMARY_modules} threads"
  17547. fi
  17548. # Check whether --enable-timers was given.
  17549. if test ${enable_timers+y}
  17550. then :
  17551. enableval=$enable_timers;
  17552. else $as_nop
  17553. enable_timers=yes
  17554. fi
  17555. if test x$enable_timers != xyes; then
  17556. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17557. else
  17558. SUMMARY_modules="${SUMMARY_modules} timers"
  17559. fi
  17560. # Check whether --enable-file was given.
  17561. if test ${enable_file+y}
  17562. then :
  17563. enableval=$enable_file;
  17564. else $as_nop
  17565. enable_file=yes
  17566. fi
  17567. if test x$enable_file != xyes; then
  17568. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17569. else
  17570. SUMMARY_modules="${SUMMARY_modules} file"
  17571. fi
  17572. # Check whether --enable-misc was given.
  17573. if test ${enable_misc+y}
  17574. then :
  17575. enableval=$enable_misc;
  17576. else $as_nop
  17577. enable_misc=yes
  17578. fi
  17579. if test x$enable_misc != xyes; then
  17580. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17581. else
  17582. SUMMARY_modules="${SUMMARY_modules} misc"
  17583. fi
  17584. # Check whether --enable-locale was given.
  17585. if test ${enable_locale+y}
  17586. then :
  17587. enableval=$enable_locale;
  17588. else $as_nop
  17589. enable_locale=yes
  17590. fi
  17591. if test x$enable_locale != xyes; then
  17592. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17593. else
  17594. SUMMARY_modules="${SUMMARY_modules} locale"
  17595. fi
  17596. # Check whether --enable-loadso was given.
  17597. if test ${enable_loadso+y}
  17598. then :
  17599. enableval=$enable_loadso;
  17600. else $as_nop
  17601. enable_loadso=yes
  17602. fi
  17603. if test x$enable_loadso != xyes; then
  17604. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17605. else
  17606. SUMMARY_modules="${SUMMARY_modules} loadso"
  17607. fi
  17608. # Check whether --enable-cpuinfo was given.
  17609. if test ${enable_cpuinfo+y}
  17610. then :
  17611. enableval=$enable_cpuinfo;
  17612. else $as_nop
  17613. enable_cpuinfo=yes
  17614. fi
  17615. if test x$enable_cpuinfo != xyes; then
  17616. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17617. else
  17618. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17619. fi
  17620. # Check whether --enable-assembly was given.
  17621. if test ${enable_assembly+y}
  17622. then :
  17623. enableval=$enable_assembly;
  17624. else $as_nop
  17625. enable_assembly=yes
  17626. fi
  17627. if test x$enable_assembly = xyes; then
  17628. SUMMARY_modules="${SUMMARY_modules} assembly"
  17629. # Make sure that we don't generate floating point code that would
  17630. # cause illegal instruction exceptions on older processors
  17631. case "$host" in
  17632. *-*-darwin*)
  17633. # Don't need to worry about Apple hardware, it's all SSE capable
  17634. default_ssemath=yes
  17635. ;;
  17636. *64-*-*)
  17637. # x86 64-bit architectures all have SSE instructions
  17638. default_ssemath=yes
  17639. ;;
  17640. *)
  17641. default_ssemath=no
  17642. ;;
  17643. esac
  17644. # Check whether --enable-ssemath was given.
  17645. if test ${enable_ssemath+y}
  17646. then :
  17647. enableval=$enable_ssemath;
  17648. else $as_nop
  17649. enable_ssemath=$default_ssemath
  17650. fi
  17651. if test x$enable_ssemath = xno; then
  17652. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17653. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17654. fi
  17655. fi
  17656. # Check whether --enable-mmx was given.
  17657. if test ${enable_mmx+y}
  17658. then :
  17659. enableval=$enable_mmx;
  17660. else $as_nop
  17661. enable_mmx=yes
  17662. fi
  17663. if test x$enable_mmx = xyes; then
  17664. save_CFLAGS="$CFLAGS"
  17665. have_gcc_mmx=no
  17666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17667. printf %s "checking for GCC -mmmx option... " >&6; }
  17668. mmx_CFLAGS="-mmmx"
  17669. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17671. /* end confdefs.h. */
  17672. #ifdef __MINGW32__
  17673. #include <_mingw.h>
  17674. #ifdef __MINGW64_VERSION_MAJOR
  17675. #include <intrin.h>
  17676. #else
  17677. #include <mmintrin.h>
  17678. #endif
  17679. #else
  17680. #include <mmintrin.h>
  17681. #endif
  17682. #ifndef __MMX__
  17683. #error Assembler CPP flag not enabled
  17684. #endif
  17685. int
  17686. main (void)
  17687. {
  17688. ;
  17689. return 0;
  17690. }
  17691. _ACEOF
  17692. if ac_fn_c_try_compile "$LINENO"
  17693. then :
  17694. have_gcc_mmx=yes
  17695. fi
  17696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17698. printf "%s\n" "$have_gcc_mmx" >&6; }
  17699. CFLAGS="$save_CFLAGS"
  17700. if test x$have_gcc_mmx = xyes; then
  17701. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17702. SUMMARY_math="${SUMMARY_math} mmx"
  17703. fi
  17704. fi
  17705. # Check whether --enable-3dnow was given.
  17706. if test ${enable_3dnow+y}
  17707. then :
  17708. enableval=$enable_3dnow;
  17709. else $as_nop
  17710. enable_3dnow=yes
  17711. fi
  17712. if test x$enable_3dnow = xyes; then
  17713. save_CFLAGS="$CFLAGS"
  17714. have_gcc_3dnow=no
  17715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17716. printf %s "checking for GCC -m3dnow option... " >&6; }
  17717. amd3dnow_CFLAGS="-m3dnow"
  17718. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. #include <mm3dnow.h>
  17722. #ifndef __3dNOW__
  17723. #error Assembler CPP flag not enabled
  17724. #endif
  17725. int
  17726. main (void)
  17727. {
  17728. void *p = 0;
  17729. _m_prefetch(p);
  17730. ;
  17731. return 0;
  17732. }
  17733. _ACEOF
  17734. if ac_fn_c_try_link "$LINENO"
  17735. then :
  17736. have_gcc_3dnow=yes
  17737. fi
  17738. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17739. conftest$ac_exeext conftest.$ac_ext
  17740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17741. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17742. CFLAGS="$save_CFLAGS"
  17743. if test x$have_gcc_3dnow = xyes; then
  17744. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17745. SUMMARY_math="${SUMMARY_math} 3dnow"
  17746. fi
  17747. fi
  17748. # Check whether --enable-sse was given.
  17749. if test ${enable_sse+y}
  17750. then :
  17751. enableval=$enable_sse;
  17752. else $as_nop
  17753. enable_sse=yes
  17754. fi
  17755. if test x$enable_sse = xyes; then
  17756. save_CFLAGS="$CFLAGS"
  17757. have_gcc_sse=no
  17758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17759. printf %s "checking for GCC -msse option... " >&6; }
  17760. sse_CFLAGS="-msse"
  17761. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17763. /* end confdefs.h. */
  17764. #ifdef __MINGW32__
  17765. #include <_mingw.h>
  17766. #ifdef __MINGW64_VERSION_MAJOR
  17767. #include <intrin.h>
  17768. #else
  17769. #include <xmmintrin.h>
  17770. #endif
  17771. #else
  17772. #include <xmmintrin.h>
  17773. #endif
  17774. #ifndef __SSE__
  17775. #error Assembler CPP flag not enabled
  17776. #endif
  17777. int
  17778. main (void)
  17779. {
  17780. ;
  17781. return 0;
  17782. }
  17783. _ACEOF
  17784. if ac_fn_c_try_compile "$LINENO"
  17785. then :
  17786. have_gcc_sse=yes
  17787. fi
  17788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17790. printf "%s\n" "$have_gcc_sse" >&6; }
  17791. CFLAGS="$save_CFLAGS"
  17792. if test x$have_gcc_sse = xyes; then
  17793. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17794. SUMMARY_math="${SUMMARY_math} sse"
  17795. fi
  17796. fi
  17797. # Check whether --enable-sse2 was given.
  17798. if test ${enable_sse2+y}
  17799. then :
  17800. enableval=$enable_sse2;
  17801. else $as_nop
  17802. enable_sse2=$default_ssemath
  17803. fi
  17804. if test x$enable_sse2 = xyes; then
  17805. save_CFLAGS="$CFLAGS"
  17806. have_gcc_sse2=no
  17807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17808. printf %s "checking for GCC -msse2 option... " >&6; }
  17809. sse2_CFLAGS="-msse2"
  17810. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17812. /* end confdefs.h. */
  17813. #ifdef __MINGW32__
  17814. #include <_mingw.h>
  17815. #ifdef __MINGW64_VERSION_MAJOR
  17816. #include <intrin.h>
  17817. #else
  17818. #include <emmintrin.h>
  17819. #endif
  17820. #else
  17821. #include <emmintrin.h>
  17822. #endif
  17823. #ifndef __SSE2__
  17824. #error Assembler CPP flag not enabled
  17825. #endif
  17826. int
  17827. main (void)
  17828. {
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_compile "$LINENO"
  17834. then :
  17835. have_gcc_sse2=yes
  17836. fi
  17837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17839. printf "%s\n" "$have_gcc_sse2" >&6; }
  17840. CFLAGS="$save_CFLAGS"
  17841. if test x$have_gcc_sse2 = xyes; then
  17842. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17843. SUMMARY_math="${SUMMARY_math} sse2"
  17844. fi
  17845. fi
  17846. # Check whether --enable-sse3 was given.
  17847. if test ${enable_sse3+y}
  17848. then :
  17849. enableval=$enable_sse3;
  17850. else $as_nop
  17851. enable_sse3=$default_ssemath
  17852. fi
  17853. if test x$enable_sse3 = xyes; then
  17854. save_CFLAGS="$CFLAGS"
  17855. have_gcc_sse3=no
  17856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17857. printf %s "checking for GCC -msse3 option... " >&6; }
  17858. sse3_CFLAGS="-msse3"
  17859. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17861. /* end confdefs.h. */
  17862. #ifdef __MINGW32__
  17863. #include <_mingw.h>
  17864. #ifdef __MINGW64_VERSION_MAJOR
  17865. #include <intrin.h>
  17866. #else
  17867. #include <pmmintrin.h>
  17868. #endif
  17869. #else
  17870. #include <pmmintrin.h>
  17871. #endif
  17872. #ifndef __SSE2__
  17873. #error Assembler CPP flag not enabled
  17874. #endif
  17875. int
  17876. main (void)
  17877. {
  17878. ;
  17879. return 0;
  17880. }
  17881. _ACEOF
  17882. if ac_fn_c_try_compile "$LINENO"
  17883. then :
  17884. have_gcc_sse3=yes
  17885. fi
  17886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17888. printf "%s\n" "$have_gcc_sse3" >&6; }
  17889. CFLAGS="$save_CFLAGS"
  17890. if test x$have_gcc_sse3 = xyes; then
  17891. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17892. SUMMARY_math="${SUMMARY_math} sse3"
  17893. fi
  17894. fi
  17895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17896. printf %s "checking for immintrin.h... " >&6; }
  17897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17898. /* end confdefs.h. */
  17899. #include <immintrin.h>
  17900. int
  17901. main (void)
  17902. {
  17903. ;
  17904. return 0;
  17905. }
  17906. _ACEOF
  17907. if ac_fn_c_try_compile "$LINENO"
  17908. then :
  17909. have_immintrin_h_hdr=yes
  17910. else $as_nop
  17911. have_immintrin_h_hdr=no
  17912. fi
  17913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17915. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17916. if test x$have_immintrin_h_hdr = xyes; then
  17917. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17918. fi
  17919. # Check whether --enable-altivec was given.
  17920. if test ${enable_altivec+y}
  17921. then :
  17922. enableval=$enable_altivec;
  17923. else $as_nop
  17924. enable_altivec=yes
  17925. fi
  17926. if test x$enable_altivec = xyes; then
  17927. save_CFLAGS="$CFLAGS"
  17928. have_gcc_altivec=no
  17929. have_altivec_h_hdr=no
  17930. altivec_CFLAGS="-maltivec"
  17931. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17933. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17935. /* end confdefs.h. */
  17936. #include <altivec.h>
  17937. vector unsigned int vzero() {
  17938. return vec_splat_u32(0);
  17939. }
  17940. int
  17941. main (void)
  17942. {
  17943. ;
  17944. return 0;
  17945. }
  17946. _ACEOF
  17947. if ac_fn_c_try_compile "$LINENO"
  17948. then :
  17949. have_gcc_altivec=yes
  17950. have_altivec_h_hdr=yes
  17951. fi
  17952. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17954. printf "%s\n" "$have_gcc_altivec" >&6; }
  17955. if test x$have_gcc_altivec = xno; then
  17956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17957. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17959. /* end confdefs.h. */
  17960. vector unsigned int vzero() {
  17961. return vec_splat_u32(0);
  17962. }
  17963. int
  17964. main (void)
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"
  17971. then :
  17972. have_gcc_altivec=yes
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17976. printf "%s\n" "$have_gcc_altivec" >&6; }
  17977. fi
  17978. if test x$have_gcc_altivec = xno; then
  17979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17980. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17981. altivec_CFLAGS="-faltivec"
  17982. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. #include <altivec.h>
  17986. vector unsigned int vzero() {
  17987. return vec_splat_u32(0);
  17988. }
  17989. int
  17990. main (void)
  17991. {
  17992. ;
  17993. return 0;
  17994. }
  17995. _ACEOF
  17996. if ac_fn_c_try_compile "$LINENO"
  17997. then :
  17998. have_gcc_altivec=yes
  17999. have_altivec_h_hdr=yes
  18000. fi
  18001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18003. printf "%s\n" "$have_gcc_altivec" >&6; }
  18004. fi
  18005. if test x$have_gcc_altivec = xno; then
  18006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18007. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18009. /* end confdefs.h. */
  18010. vector unsigned int vzero() {
  18011. return vec_splat_u32(0);
  18012. }
  18013. int
  18014. main (void)
  18015. {
  18016. ;
  18017. return 0;
  18018. }
  18019. _ACEOF
  18020. if ac_fn_c_try_compile "$LINENO"
  18021. then :
  18022. have_gcc_altivec=yes
  18023. fi
  18024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18026. printf "%s\n" "$have_gcc_altivec" >&6; }
  18027. fi
  18028. CFLAGS="$save_CFLAGS"
  18029. if test x$have_gcc_altivec = xyes; then
  18030. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18031. if test x$have_altivec_h_hdr = xyes; then
  18032. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18033. fi
  18034. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18035. SUMMARY_math="${SUMMARY_math} altivec"
  18036. fi
  18037. fi
  18038. fi
  18039. # Check whether --enable-lsx was given.
  18040. if test ${enable_lsx+y}
  18041. then :
  18042. enableval=$enable_lsx;
  18043. else $as_nop
  18044. enable_lsx=yes
  18045. fi
  18046. if test x$enable_lsx = xyes; then
  18047. save_CFLAGS="$CFLAGS"
  18048. have_gcc_lsx=no
  18049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18050. printf %s "checking for GCC -mlsx option... " >&6; }
  18051. lsx_CFLAGS="-mlsx"
  18052. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18054. /* end confdefs.h. */
  18055. #ifndef __loongarch_sx
  18056. #error Assembler CPP flag not enabled
  18057. #endif
  18058. int
  18059. main (void)
  18060. {
  18061. ;
  18062. return 0;
  18063. }
  18064. _ACEOF
  18065. if ac_fn_c_try_compile "$LINENO"
  18066. then :
  18067. have_gcc_lsx=yes
  18068. fi
  18069. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18071. printf "%s\n" "$have_gcc_lsx" >&6; }
  18072. CFLAGS="$save_CFLAGS"
  18073. if test x$have_gcc_lsx = xyes; then
  18074. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18075. SUMMARY_math="${SUMMARY_math} lsx"
  18076. fi
  18077. fi
  18078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18079. printf %s "checking for lsxintrin.h... " >&6; }
  18080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18081. /* end confdefs.h. */
  18082. #include <lsxintrin.h>
  18083. int
  18084. main (void)
  18085. {
  18086. ;
  18087. return 0;
  18088. }
  18089. _ACEOF
  18090. if ac_fn_c_try_compile "$LINENO"
  18091. then :
  18092. have_lsxintrin_h_hdr=yes
  18093. else $as_nop
  18094. have_lsxintrin_h_hdr=no
  18095. fi
  18096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18098. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18099. if test x$have_lsxintrin_h_hdr = xyes; then
  18100. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18101. fi
  18102. # Check whether --enable-lasx was given.
  18103. if test ${enable_lasx+y}
  18104. then :
  18105. enableval=$enable_lasx;
  18106. else $as_nop
  18107. enable_LASX=yes
  18108. fi
  18109. if test x$enable_LASX = xyes; then
  18110. save_CFLAGS="$CFLAGS"
  18111. have_gcc_lasx=no
  18112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18113. printf %s "checking for GCC -mlasx option... " >&6; }
  18114. lasx_CFLAGS="-mlasx"
  18115. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #ifndef __loongarch_asx
  18119. #error Assembler CPP flag not enabled
  18120. #endif
  18121. int
  18122. main (void)
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"
  18129. then :
  18130. have_gcc_lasx=yes
  18131. fi
  18132. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18134. printf "%s\n" "$have_gcc_lasx" >&6; }
  18135. CFLAGS="$save_CFLAGS"
  18136. if test x$have_gcc_lasx = xyes; then
  18137. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18138. SUMMARY_math="${SUMMARY_math} lasx"
  18139. fi
  18140. fi
  18141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18142. printf %s "checking for lasxintrin.h... " >&6; }
  18143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18144. /* end confdefs.h. */
  18145. #include <lasxintrin.h>
  18146. int
  18147. main (void)
  18148. {
  18149. ;
  18150. return 0;
  18151. }
  18152. _ACEOF
  18153. if ac_fn_c_try_compile "$LINENO"
  18154. then :
  18155. have_lasxintrin_h_hdr=yes
  18156. else $as_nop
  18157. have_lasxintrin_h_hdr=no
  18158. fi
  18159. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18161. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18162. if test x$have_lasxintrin_h_hdr = xyes; then
  18163. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18164. fi
  18165. CheckOSS()
  18166. {
  18167. # Check whether --enable-oss was given.
  18168. if test ${enable_oss+y}
  18169. then :
  18170. enableval=$enable_oss;
  18171. else $as_nop
  18172. enable_oss=maybe
  18173. fi
  18174. if test x$enable_oss = xmaybe; then
  18175. enable_oss=yes
  18176. fi
  18177. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18179. printf %s "checking for OSS audio support... " >&6; }
  18180. have_oss=no
  18181. if test x$have_oss != xyes; then
  18182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18183. /* end confdefs.h. */
  18184. #include <sys/soundcard.h>
  18185. int
  18186. main (void)
  18187. {
  18188. int arg = SNDCTL_DSP_SETFRAGMENT;
  18189. ;
  18190. return 0;
  18191. }
  18192. _ACEOF
  18193. if ac_fn_c_try_compile "$LINENO"
  18194. then :
  18195. have_oss=yes
  18196. fi
  18197. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18198. fi
  18199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18200. printf "%s\n" "$have_oss" >&6; }
  18201. if test x$have_oss = xyes; then
  18202. SUMMARY_audio="${SUMMARY_audio} oss"
  18203. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18204. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18205. have_audio=yes
  18206. # We may need to link with ossaudio emulation library
  18207. case "$host" in
  18208. *-*-netbsd*)
  18209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18210. esac
  18211. fi
  18212. fi
  18213. }
  18214. CheckALSA()
  18215. {
  18216. # Check whether --enable-alsa was given.
  18217. if test ${enable_alsa+y}
  18218. then :
  18219. enableval=$enable_alsa;
  18220. else $as_nop
  18221. enable_alsa=yes
  18222. fi
  18223. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18224. alsa_save_CFLAGS="$CFLAGS"
  18225. alsa_save_LDFLAGS="$LDFLAGS"
  18226. alsa_save_LIBS="$LIBS"
  18227. alsa_found=yes
  18228. # Check whether --with-alsa-prefix was given.
  18229. if test ${with_alsa_prefix+y}
  18230. then :
  18231. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18232. else $as_nop
  18233. alsa_prefix=""
  18234. fi
  18235. # Check whether --with-alsa-inc-prefix was given.
  18236. if test ${with_alsa_inc_prefix+y}
  18237. then :
  18238. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18239. else $as_nop
  18240. alsa_inc_prefix=""
  18241. fi
  18242. # Check whether --enable-alsatest was given.
  18243. if test ${enable_alsatest+y}
  18244. then :
  18245. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18246. else $as_nop
  18247. enable_alsatest=yes
  18248. fi
  18249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18250. printf %s "checking for ALSA CFLAGS... " >&6; }
  18251. if test "$alsa_inc_prefix" != "" ; then
  18252. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18253. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18254. fi
  18255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18256. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18258. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18259. if test "$alsa_prefix" != "" ; then
  18260. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18261. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18262. fi
  18263. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18264. LIBS=`echo $LIBS | sed 's/-lm//'`
  18265. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18266. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18267. LIBS=`echo $LIBS | sed 's/ //'`
  18268. LIBS="$ALSA_LIBS $LIBS"
  18269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18270. printf "%s\n" "$ALSA_LIBS" >&6; }
  18271. min_alsa_version=1.0.11
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18273. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18274. no_alsa=""
  18275. alsa_min_major_version=`echo $min_alsa_version | \
  18276. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18277. alsa_min_minor_version=`echo $min_alsa_version | \
  18278. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18279. alsa_min_micro_version=`echo $min_alsa_version | \
  18280. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18281. ac_ext=c
  18282. ac_cpp='$CPP $CPPFLAGS'
  18283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #include <alsa/asoundlib.h>
  18289. int
  18290. main (void)
  18291. {
  18292. /* ensure backward compatibility */
  18293. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18294. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18295. #endif
  18296. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18297. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18298. #endif
  18299. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18300. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18301. #endif
  18302. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18303. exit(0);
  18304. # else
  18305. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18306. # error not present
  18307. # endif
  18308. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18309. exit(0);
  18310. # else
  18311. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18312. # error not present
  18313. # endif
  18314. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18315. # error not present
  18316. # endif
  18317. # endif
  18318. # endif
  18319. exit(0);
  18320. ;
  18321. return 0;
  18322. }
  18323. _ACEOF
  18324. if ac_fn_c_try_compile "$LINENO"
  18325. then :
  18326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18327. printf "%s\n" "found." >&6; }
  18328. else $as_nop
  18329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18330. printf "%s\n" "not present." >&6; }
  18331. alsa_found=no
  18332. fi
  18333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18334. ac_ext=c
  18335. ac_cpp='$CPP $CPPFLAGS'
  18336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18339. if test "x$enable_alsatest" = "xyes"; then
  18340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18341. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18342. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18343. then :
  18344. printf %s "(cached) " >&6
  18345. else $as_nop
  18346. ac_check_lib_save_LIBS=$LIBS
  18347. LIBS="-lasound $LIBS"
  18348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18349. /* end confdefs.h. */
  18350. /* Override any GCC internal prototype to avoid an error.
  18351. Use char because int might match the return type of a GCC
  18352. builtin and then its argument prototype would still apply. */
  18353. char snd_ctl_open ();
  18354. int
  18355. main (void)
  18356. {
  18357. return snd_ctl_open ();
  18358. ;
  18359. return 0;
  18360. }
  18361. _ACEOF
  18362. if ac_fn_c_try_link "$LINENO"
  18363. then :
  18364. ac_cv_lib_asound_snd_ctl_open=yes
  18365. else $as_nop
  18366. ac_cv_lib_asound_snd_ctl_open=no
  18367. fi
  18368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18369. conftest$ac_exeext conftest.$ac_ext
  18370. LIBS=$ac_check_lib_save_LIBS
  18371. fi
  18372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18373. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18374. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18375. then :
  18376. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18377. LIBS="-lasound $LIBS"
  18378. else $as_nop
  18379. alsa_found=no
  18380. fi
  18381. fi
  18382. if test "x$alsa_found" = "xyes" ; then
  18383. have_alsa=yes
  18384. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18385. LIBS=`echo $LIBS | sed 's/ //'`
  18386. LIBS="-lasound $LIBS"
  18387. fi
  18388. if test "x$alsa_found" = "xno" ; then
  18389. have_alsa=no
  18390. CFLAGS="$alsa_save_CFLAGS"
  18391. LDFLAGS="$alsa_save_LDFLAGS"
  18392. LIBS="$alsa_save_LIBS"
  18393. ALSA_CFLAGS=""
  18394. ALSA_LIBS=""
  18395. fi
  18396. # Restore all flags from before the ALSA detection runs
  18397. CFLAGS="$alsa_save_CFLAGS"
  18398. LDFLAGS="$alsa_save_LDFLAGS"
  18399. LIBS="$alsa_save_LIBS"
  18400. if test x$have_alsa = xyes; then
  18401. # Check whether --enable-alsa-shared was given.
  18402. if test ${enable_alsa_shared+y}
  18403. then :
  18404. enableval=$enable_alsa_shared;
  18405. else $as_nop
  18406. enable_alsa_shared=yes
  18407. fi
  18408. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18409. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18410. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18411. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18412. if test x$have_loadso != xyes && \
  18413. test x$enable_alsa_shared = xyes; then
  18414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18415. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18416. fi
  18417. if test x$have_loadso = xyes && \
  18418. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18419. echo "-- dynamic libasound -> $alsa_lib"
  18420. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18421. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18422. else
  18423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18424. SUMMARY_audio="${SUMMARY_audio} alsa"
  18425. fi
  18426. have_audio=yes
  18427. fi
  18428. fi
  18429. }
  18430. CheckJACK()
  18431. {
  18432. # Check whether --enable-jack was given.
  18433. if test ${enable_jack+y}
  18434. then :
  18435. enableval=$enable_jack;
  18436. else $as_nop
  18437. enable_jack=yes
  18438. fi
  18439. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18440. pkg_failed=no
  18441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18442. printf %s "checking for jack >= 0.125... " >&6; }
  18443. if test -n "$JACK_CFLAGS"; then
  18444. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18445. elif test -n "$PKG_CONFIG"; then
  18446. if test -n "$PKG_CONFIG" && \
  18447. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18448. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18449. ac_status=$?
  18450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18451. test $ac_status = 0; }; then
  18452. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18453. test "x$?" != "x0" && pkg_failed=yes
  18454. else
  18455. pkg_failed=yes
  18456. fi
  18457. else
  18458. pkg_failed=untried
  18459. fi
  18460. if test -n "$JACK_LIBS"; then
  18461. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18462. elif test -n "$PKG_CONFIG"; then
  18463. if test -n "$PKG_CONFIG" && \
  18464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18465. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18466. ac_status=$?
  18467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18468. test $ac_status = 0; }; then
  18469. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18470. test "x$?" != "x0" && pkg_failed=yes
  18471. else
  18472. pkg_failed=yes
  18473. fi
  18474. else
  18475. pkg_failed=untried
  18476. fi
  18477. if test $pkg_failed = yes; then
  18478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18479. printf "%s\n" "no" >&6; }
  18480. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18481. _pkg_short_errors_supported=yes
  18482. else
  18483. _pkg_short_errors_supported=no
  18484. fi
  18485. if test $_pkg_short_errors_supported = yes; then
  18486. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18487. else
  18488. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18489. fi
  18490. # Put the nasty error message in config.log where it belongs
  18491. echo "$JACK_PKG_ERRORS" >&5
  18492. audio_jack=no
  18493. elif test $pkg_failed = untried; then
  18494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18495. printf "%s\n" "no" >&6; }
  18496. audio_jack=no
  18497. else
  18498. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18499. JACK_LIBS=$pkg_cv_JACK_LIBS
  18500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18501. printf "%s\n" "yes" >&6; }
  18502. audio_jack=yes
  18503. fi
  18504. if test x$audio_jack = xyes; then
  18505. # Check whether --enable-jack-shared was given.
  18506. if test ${enable_jack_shared+y}
  18507. then :
  18508. enableval=$enable_jack_shared;
  18509. else $as_nop
  18510. enable_jack_shared=yes
  18511. fi
  18512. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18513. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18514. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18515. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18516. if test x$have_loadso != xyes && \
  18517. test x$enable_jack_shared = xyes; then
  18518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18519. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18520. fi
  18521. if test x$have_loadso = xyes && \
  18522. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18523. echo "-- dynamic libjack -> $jack_lib"
  18524. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18525. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18526. case "$host" in
  18527. # On Solaris, jack must be linked deferred explicitly
  18528. # to prevent undefined symbol failures.
  18529. *-*-solaris*)
  18530. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18532. esac
  18533. else
  18534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18535. SUMMARY_audio="${SUMMARY_audio} jack"
  18536. fi
  18537. have_audio=yes
  18538. fi
  18539. fi
  18540. }
  18541. CheckPipewire()
  18542. {
  18543. # Check whether --enable-pipewire was given.
  18544. if test ${enable_pipewire+y}
  18545. then :
  18546. enableval=$enable_pipewire;
  18547. else $as_nop
  18548. enable_pipewire=yes
  18549. fi
  18550. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18551. pkg_failed=no
  18552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18553. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18554. if test -n "$PIPEWIRE_CFLAGS"; then
  18555. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18556. elif test -n "$PKG_CONFIG"; then
  18557. if test -n "$PKG_CONFIG" && \
  18558. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18559. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18560. ac_status=$?
  18561. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18562. test $ac_status = 0; }; then
  18563. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18564. test "x$?" != "x0" && pkg_failed=yes
  18565. else
  18566. pkg_failed=yes
  18567. fi
  18568. else
  18569. pkg_failed=untried
  18570. fi
  18571. if test -n "$PIPEWIRE_LIBS"; then
  18572. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18573. elif test -n "$PKG_CONFIG"; then
  18574. if test -n "$PKG_CONFIG" && \
  18575. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18576. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18577. ac_status=$?
  18578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18579. test $ac_status = 0; }; then
  18580. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18581. test "x$?" != "x0" && pkg_failed=yes
  18582. else
  18583. pkg_failed=yes
  18584. fi
  18585. else
  18586. pkg_failed=untried
  18587. fi
  18588. if test $pkg_failed = yes; then
  18589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18590. printf "%s\n" "no" >&6; }
  18591. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18592. _pkg_short_errors_supported=yes
  18593. else
  18594. _pkg_short_errors_supported=no
  18595. fi
  18596. if test $_pkg_short_errors_supported = yes; then
  18597. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18598. else
  18599. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18600. fi
  18601. # Put the nasty error message in config.log where it belongs
  18602. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18603. audio_pipewire=no
  18604. elif test $pkg_failed = untried; then
  18605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18606. printf "%s\n" "no" >&6; }
  18607. audio_pipewire=no
  18608. else
  18609. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18610. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18612. printf "%s\n" "yes" >&6; }
  18613. audio_pipewire=yes
  18614. fi
  18615. if test x$audio_pipewire = xyes; then
  18616. # Check whether --enable-pipewire-shared was given.
  18617. if test ${enable_pipewire_shared+y}
  18618. then :
  18619. enableval=$enable_pipewire_shared;
  18620. else $as_nop
  18621. enable_pipewire_shared=yes
  18622. fi
  18623. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18624. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18625. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18626. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18627. if test x$have_loadso != xyes && \
  18628. test x$enable_pipewire_shared = xyes; then
  18629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18630. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18631. fi
  18632. if test x$have_loadso = xyes && \
  18633. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18634. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18635. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18636. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18637. else
  18638. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18639. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18640. fi
  18641. have_audio=yes
  18642. fi
  18643. fi
  18644. }
  18645. CheckPulseAudio()
  18646. {
  18647. # Check whether --enable-pulseaudio was given.
  18648. if test ${enable_pulseaudio+y}
  18649. then :
  18650. enableval=$enable_pulseaudio;
  18651. else $as_nop
  18652. enable_pulseaudio=yes
  18653. fi
  18654. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18655. pkg_failed=no
  18656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18657. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18658. if test -n "$PULSEAUDIO_CFLAGS"; then
  18659. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18660. elif test -n "$PKG_CONFIG"; then
  18661. if test -n "$PKG_CONFIG" && \
  18662. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18663. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18664. ac_status=$?
  18665. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18666. test $ac_status = 0; }; then
  18667. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18668. test "x$?" != "x0" && pkg_failed=yes
  18669. else
  18670. pkg_failed=yes
  18671. fi
  18672. else
  18673. pkg_failed=untried
  18674. fi
  18675. if test -n "$PULSEAUDIO_LIBS"; then
  18676. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18677. elif test -n "$PKG_CONFIG"; then
  18678. if test -n "$PKG_CONFIG" && \
  18679. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18680. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18681. ac_status=$?
  18682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18683. test $ac_status = 0; }; then
  18684. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18685. test "x$?" != "x0" && pkg_failed=yes
  18686. else
  18687. pkg_failed=yes
  18688. fi
  18689. else
  18690. pkg_failed=untried
  18691. fi
  18692. if test $pkg_failed = yes; then
  18693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18694. printf "%s\n" "no" >&6; }
  18695. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18696. _pkg_short_errors_supported=yes
  18697. else
  18698. _pkg_short_errors_supported=no
  18699. fi
  18700. if test $_pkg_short_errors_supported = yes; then
  18701. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18702. else
  18703. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18704. fi
  18705. # Put the nasty error message in config.log where it belongs
  18706. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18707. audio_pulseaudio=no
  18708. elif test $pkg_failed = untried; then
  18709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18710. printf "%s\n" "no" >&6; }
  18711. audio_pulseaudio=no
  18712. else
  18713. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18714. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18716. printf "%s\n" "yes" >&6; }
  18717. audio_pulseaudio=yes
  18718. fi
  18719. if test x$audio_pulseaudio = xyes; then
  18720. # Check whether --enable-pulseaudio-shared was given.
  18721. if test ${enable_pulseaudio_shared+y}
  18722. then :
  18723. enableval=$enable_pulseaudio_shared;
  18724. else $as_nop
  18725. enable_pulseaudio_shared=yes
  18726. fi
  18727. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18728. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18729. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18730. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18731. if test x$have_loadso != xyes && \
  18732. test x$enable_pulseaudio_shared = xyes; then
  18733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18734. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18735. fi
  18736. if test x$have_loadso = xyes && \
  18737. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18738. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18739. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18740. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18741. case "$host" in
  18742. # On Solaris, pulseaudio must be linked deferred explicitly
  18743. # to prevent undefined symbol failures.
  18744. *-*-solaris*)
  18745. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18747. esac
  18748. else
  18749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18750. SUMMARY_audio="${SUMMARY_audio} pulse"
  18751. fi
  18752. have_audio=yes
  18753. fi
  18754. fi
  18755. }
  18756. CheckSNDIO()
  18757. {
  18758. # Check whether --enable-sndio was given.
  18759. if test ${enable_sndio+y}
  18760. then :
  18761. enableval=$enable_sndio;
  18762. else $as_nop
  18763. enable_sndio=yes
  18764. fi
  18765. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  18766. pkg_failed=no
  18767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  18768. printf %s "checking for sndio... " >&6; }
  18769. if test -n "$SNDIO_CFLAGS"; then
  18770. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  18771. elif test -n "$PKG_CONFIG"; then
  18772. if test -n "$PKG_CONFIG" && \
  18773. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18774. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18775. ac_status=$?
  18776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18777. test $ac_status = 0; }; then
  18778. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  18779. test "x$?" != "x0" && pkg_failed=yes
  18780. else
  18781. pkg_failed=yes
  18782. fi
  18783. else
  18784. pkg_failed=untried
  18785. fi
  18786. if test -n "$SNDIO_LIBS"; then
  18787. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  18788. elif test -n "$PKG_CONFIG"; then
  18789. if test -n "$PKG_CONFIG" && \
  18790. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18791. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18792. ac_status=$?
  18793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18794. test $ac_status = 0; }; then
  18795. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  18796. test "x$?" != "x0" && pkg_failed=yes
  18797. else
  18798. pkg_failed=yes
  18799. fi
  18800. else
  18801. pkg_failed=untried
  18802. fi
  18803. if test $pkg_failed = yes; then
  18804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18805. printf "%s\n" "no" >&6; }
  18806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18807. _pkg_short_errors_supported=yes
  18808. else
  18809. _pkg_short_errors_supported=no
  18810. fi
  18811. if test $_pkg_short_errors_supported = yes; then
  18812. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  18813. else
  18814. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  18815. fi
  18816. # Put the nasty error message in config.log where it belongs
  18817. echo "$SNDIO_PKG_ERRORS" >&5
  18818. audio_sndio=no
  18819. elif test $pkg_failed = untried; then
  18820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18821. printf "%s\n" "no" >&6; }
  18822. audio_sndio=no
  18823. else
  18824. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  18825. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18827. printf "%s\n" "yes" >&6; }
  18828. audio_sndio=yes
  18829. fi
  18830. if test x$audio_sndio = xyes; then
  18831. # Check whether --enable-sndio-shared was given.
  18832. if test ${enable_sndio_shared+y}
  18833. then :
  18834. enableval=$enable_sndio_shared;
  18835. else $as_nop
  18836. enable_sndio_shared=yes
  18837. fi
  18838. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18839. if test x$have_loadso != xyes && \
  18840. test x$enable_sndio_shared = xyes; then
  18841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  18842. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  18843. fi
  18844. if test x$have_loadso = xyes && \
  18845. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  18846. echo "-- dynamic libsndio -> $sndio_lib"
  18847. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  18848. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  18849. else
  18850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  18851. SUMMARY_audio="${SUMMARY_audio} sndio"
  18852. fi
  18853. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  18854. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  18855. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  18856. have_audio=yes
  18857. fi
  18858. fi
  18859. }
  18860. CheckDiskAudio()
  18861. {
  18862. # Check whether --enable-diskaudio was given.
  18863. if test ${enable_diskaudio+y}
  18864. then :
  18865. enableval=$enable_diskaudio;
  18866. else $as_nop
  18867. enable_diskaudio=yes
  18868. fi
  18869. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18870. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18871. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18872. SUMMARY_audio="${SUMMARY_audio} disk"
  18873. have_audio=yes
  18874. fi
  18875. }
  18876. CheckDummyAudio()
  18877. {
  18878. # Check whether --enable-dummyaudio was given.
  18879. if test ${enable_dummyaudio+y}
  18880. then :
  18881. enableval=$enable_dummyaudio;
  18882. else $as_nop
  18883. enable_dummyaudio=yes
  18884. fi
  18885. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18886. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18887. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18888. SUMMARY_audio="${SUMMARY_audio} dummy"
  18889. have_audio=yes
  18890. fi
  18891. }
  18892. CheckLibSampleRate()
  18893. {
  18894. # Check whether --enable-libsamplerate was given.
  18895. if test ${enable_libsamplerate+y}
  18896. then :
  18897. enableval=$enable_libsamplerate;
  18898. else $as_nop
  18899. enable_libsamplerate=yes
  18900. fi
  18901. if test x$enable_libsamplerate = xyes; then
  18902. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18903. if test "x$ac_cv_header_samplerate_h" = xyes
  18904. then :
  18905. have_samplerate_h_hdr=yes
  18906. else $as_nop
  18907. have_samplerate_h_hdr=no
  18908. fi
  18909. if test x$have_samplerate_h_hdr = xyes; then
  18910. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18911. # Check whether --enable-libsamplerate-shared was given.
  18912. if test ${enable_libsamplerate_shared+y}
  18913. then :
  18914. enableval=$enable_libsamplerate_shared;
  18915. else $as_nop
  18916. enable_libsamplerate_shared=yes
  18917. fi
  18918. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18919. if test x$have_loadso != xyes && \
  18920. test x$enable_libsamplerate_shared = xyes; then
  18921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18922. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18923. fi
  18924. if test x$have_loadso = xyes && \
  18925. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18926. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18927. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18928. else
  18929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18930. fi
  18931. fi
  18932. fi
  18933. }
  18934. CheckARM()
  18935. {
  18936. # Check whether --enable-arm-simd was given.
  18937. if test ${enable_arm_simd+y}
  18938. then :
  18939. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18940. else $as_nop
  18941. enable_arm_simd=no
  18942. fi
  18943. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18944. save_CFLAGS="$CFLAGS"
  18945. have_arm_simd=no
  18946. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18948. printf %s "checking for ARM SIMD... " >&6; }
  18949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18950. /* end confdefs.h. */
  18951. .text
  18952. .arch armv6
  18953. .object_arch armv4
  18954. .arm
  18955. .altmacro
  18956. #ifndef __ARM_EABI__
  18957. #error EABI is required (to be sure that calling conventions are compatible)
  18958. #endif
  18959. pld [r0]
  18960. uqadd8 r0, r0, r0
  18961. _ACEOF
  18962. if ac_fn_c_try_compile "$LINENO"
  18963. then :
  18964. have_arm_simd=yes
  18965. fi
  18966. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18968. printf "%s\n" "$have_arm_simd" >&6; }
  18969. CFLAGS="$save_CFLAGS"
  18970. if test x$have_arm_simd = xyes; then
  18971. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18972. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18973. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18974. fi
  18975. fi
  18976. }
  18977. CheckNEON()
  18978. {
  18979. # Check whether --enable-arm-neon was given.
  18980. if test ${enable_arm_neon+y}
  18981. then :
  18982. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18983. else $as_nop
  18984. enable_arm_neon=no
  18985. fi
  18986. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18987. save_CFLAGS="$CFLAGS"
  18988. have_arm_neon=no
  18989. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18991. printf %s "checking for ARM NEON... " >&6; }
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. .text
  18995. .fpu neon
  18996. .arch armv7a
  18997. .object_arch armv4
  18998. .eabi_attribute 10, 0
  18999. .arm
  19000. .altmacro
  19001. #ifndef __ARM_EABI__
  19002. #error EABI is required (to be sure that calling conventions are compatible)
  19003. #endif
  19004. pld [r0]
  19005. vmovn.u16 d0, q0
  19006. _ACEOF
  19007. if ac_fn_c_try_compile "$LINENO"
  19008. then :
  19009. have_arm_neon=yes
  19010. fi
  19011. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19013. printf "%s\n" "$have_arm_neon" >&6; }
  19014. CFLAGS="$save_CFLAGS"
  19015. if test x$have_arm_neon = xyes; then
  19016. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19017. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19018. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19019. fi
  19020. fi
  19021. }
  19022. CheckObjectiveCARC()
  19023. {
  19024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19025. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19026. have_clang_objc_arc=no
  19027. save_CFLAGS="$CFLAGS"
  19028. CFLAGS="$save_CFLAGS -fobjc-arc"
  19029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19030. /* end confdefs.h. */
  19031. int x = 0;
  19032. int
  19033. main (void)
  19034. {
  19035. ;
  19036. return 0;
  19037. }
  19038. _ACEOF
  19039. if ac_fn_c_try_compile "$LINENO"
  19040. then :
  19041. have_clang_objc_arc=yes
  19042. fi
  19043. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19045. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19046. CFLAGS="$save_CFLAGS"
  19047. if test x$have_clang_objc_arc = xyes; then
  19048. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19049. fi
  19050. }
  19051. CheckGDwarf4()
  19052. {
  19053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19054. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19055. have_gcc_gdwarf4=no
  19056. save_CFLAGS="$CFLAGS"
  19057. CFLAGS="$save_CFLAGS -gdwarf-4"
  19058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19059. /* end confdefs.h. */
  19060. int x = 0;
  19061. int
  19062. main (void)
  19063. {
  19064. ;
  19065. return 0;
  19066. }
  19067. _ACEOF
  19068. if ac_fn_c_try_compile "$LINENO"
  19069. then :
  19070. have_gcc_gdwarf4=yes
  19071. fi
  19072. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19074. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19075. CFLAGS="$save_CFLAGS"
  19076. if test x$have_gcc_gdwarf4 = xyes; then
  19077. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19078. fi
  19079. }
  19080. CheckVisibilityHidden()
  19081. {
  19082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19083. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19084. have_gcc_fvisibility=no
  19085. visibility_CFLAGS="-fvisibility=hidden"
  19086. save_CFLAGS="$CFLAGS"
  19087. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19089. /* end confdefs.h. */
  19090. #if !defined(__GNUC__) || __GNUC__ < 4
  19091. #error SDL only uses visibility attributes in GCC 4 or newer
  19092. #endif
  19093. int
  19094. main (void)
  19095. {
  19096. ;
  19097. return 0;
  19098. }
  19099. _ACEOF
  19100. if ac_fn_c_try_compile "$LINENO"
  19101. then :
  19102. have_gcc_fvisibility=yes
  19103. fi
  19104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19106. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19107. CFLAGS="$save_CFLAGS"
  19108. if test x$have_gcc_fvisibility = xyes; then
  19109. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19110. fi
  19111. }
  19112. CheckNoStrictAliasing()
  19113. {
  19114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19115. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19116. have_gcc_no_strict_aliasing=no
  19117. save_CFLAGS="$CFLAGS"
  19118. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. int x = 0;
  19122. int
  19123. main (void)
  19124. {
  19125. ;
  19126. return 0;
  19127. }
  19128. _ACEOF
  19129. if ac_fn_c_try_compile "$LINENO"
  19130. then :
  19131. have_gcc_no_strict_aliasing=yes
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19135. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19136. CFLAGS="$save_CFLAGS"
  19137. if test x$have_gcc_no_strict_aliasing = xyes; then
  19138. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19139. fi
  19140. }
  19141. CheckStackBoundary()
  19142. {
  19143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19144. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19145. have_gcc_preferred_stack_boundary=no
  19146. save_CFLAGS="$CFLAGS"
  19147. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19149. /* end confdefs.h. */
  19150. int x = 0;
  19151. int
  19152. main (void)
  19153. {
  19154. ;
  19155. return 0;
  19156. }
  19157. _ACEOF
  19158. if ac_fn_c_try_compile "$LINENO"
  19159. then :
  19160. have_gcc_preferred_stack_boundary=yes
  19161. fi
  19162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19164. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19165. CFLAGS="$save_CFLAGS"
  19166. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19167. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19168. fi
  19169. }
  19170. CheckWerror()
  19171. {
  19172. # Check whether --enable-werror was given.
  19173. if test ${enable_werror+y}
  19174. then :
  19175. enableval=$enable_werror; enable_werror=$enableval
  19176. else $as_nop
  19177. enable_werror=no
  19178. fi
  19179. if test x$enable_werror = xyes; then
  19180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19181. printf %s "checking for GCC -Werror option... " >&6; }
  19182. have_gcc_werror=no
  19183. save_CFLAGS="$CFLAGS"
  19184. CFLAGS="$save_CFLAGS -Werror"
  19185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19186. /* end confdefs.h. */
  19187. int x = 0;
  19188. int
  19189. main (void)
  19190. {
  19191. ;
  19192. return 0;
  19193. }
  19194. _ACEOF
  19195. if ac_fn_c_try_compile "$LINENO"
  19196. then :
  19197. have_gcc_werror=yes
  19198. fi
  19199. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19201. printf "%s\n" "$have_gcc_werror" >&6; }
  19202. CFLAGS="$save_CFLAGS"
  19203. if test x$have_gcc_werror = xyes; then
  19204. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19205. fi
  19206. fi
  19207. }
  19208. CheckNoErrorDeprecatedDeclarationsWerror()
  19209. {
  19210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19211. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19212. have_gcc_no_werror_deprecated_declarations=no
  19213. save_CFLAGS="$CFLAGS"
  19214. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. int x = 0;
  19218. int
  19219. main (void)
  19220. {
  19221. ;
  19222. return 0;
  19223. }
  19224. _ACEOF
  19225. if ac_fn_c_try_compile "$LINENO"
  19226. then :
  19227. have_gcc_no_werror_deprecated_declarations=yes
  19228. fi
  19229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19231. printf "%s\n" "$have_gcc_werror" >&6; }
  19232. CFLAGS="$save_CFLAGS"
  19233. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19234. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19235. fi
  19236. }
  19237. CheckDeclarationAfterStatement()
  19238. {
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19240. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19241. have_gcc_declaration_after_statement=no
  19242. save_CFLAGS="$CFLAGS"
  19243. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19245. /* end confdefs.h. */
  19246. int x = 0;
  19247. int
  19248. main (void)
  19249. {
  19250. ;
  19251. return 0;
  19252. }
  19253. _ACEOF
  19254. if ac_fn_c_try_compile "$LINENO"
  19255. then :
  19256. have_gcc_declaration_after_statement=yes
  19257. fi
  19258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19260. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19261. CFLAGS="$save_CFLAGS"
  19262. if test x$have_gcc_declaration_after_statement = xyes; then
  19263. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19264. fi
  19265. }
  19266. CheckWarnAll()
  19267. {
  19268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19269. printf %s "checking for GCC -Wall option... " >&6; }
  19270. have_gcc_Wall=no
  19271. save_CFLAGS="$CFLAGS"
  19272. CFLAGS="$save_CFLAGS -Wall"
  19273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19274. /* end confdefs.h. */
  19275. int x = 0;
  19276. int
  19277. main (void)
  19278. {
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_compile "$LINENO"
  19284. then :
  19285. have_gcc_Wall=yes
  19286. fi
  19287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19289. printf "%s\n" "$have_gcc_Wall" >&6; }
  19290. CFLAGS="$save_CFLAGS"
  19291. if test x$have_gcc_Wall = xyes; then
  19292. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19294. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19295. need_gcc_Wno_multichar=no
  19296. case "$host" in
  19297. *-*-haiku*)
  19298. need_gcc_Wno_multichar=yes
  19299. ;;
  19300. esac
  19301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19302. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19303. if test x$need_gcc_Wno_multichar = xyes; then
  19304. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19305. fi
  19306. fi
  19307. }
  19308. CheckWayland()
  19309. {
  19310. # Check whether --enable-video-wayland was given.
  19311. if test ${enable_video_wayland+y}
  19312. then :
  19313. enableval=$enable_video_wayland;
  19314. else $as_nop
  19315. enable_video_wayland=yes
  19316. fi
  19317. # Check whether --enable-video-wayland-qt-touch was given.
  19318. if test ${enable_video_wayland_qt_touch+y}
  19319. then :
  19320. enableval=$enable_video_wayland_qt_touch;
  19321. else $as_nop
  19322. enable_video_wayland_qt_touch=yes
  19323. fi
  19324. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19326. printf %s "checking for Wayland support... " >&6; }
  19327. video_wayland=no
  19328. if test x$video_opengl_egl = xyes && \
  19329. test x$video_opengles_v2 = xyes; then
  19330. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19331. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19332. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19333. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19334. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19335. then :
  19336. WAYLAND_SCANNER_CODE_MODE=private-code
  19337. else $as_nop
  19338. WAYLAND_SCANNER_CODE_MODE=code
  19339. fi
  19340. video_wayland=yes
  19341. fi
  19342. fi
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19344. printf "%s\n" "$video_wayland" >&6; }
  19345. if test x$video_wayland = xyes; then
  19346. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19347. if test x$enable_video_wayland_qt_touch = xyes; then
  19348. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19349. fi
  19350. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19351. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19352. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19353. # Check whether --enable-wayland-shared was given.
  19354. if test ${enable_wayland_shared+y}
  19355. then :
  19356. enableval=$enable_wayland_shared;
  19357. else $as_nop
  19358. enable_wayland_shared=maybe
  19359. fi
  19360. case "$host" in
  19361. *)
  19362. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19363. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19364. if test x$wayland_egl_lib = x; then
  19365. # This works in Ubuntu 13.10, maybe others
  19366. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19367. fi
  19368. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19369. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19370. ;;
  19371. esac
  19372. if test x$enable_wayland_shared = xmaybe; then
  19373. enable_wayland_shared=yes
  19374. fi
  19375. if test x$have_loadso != xyes && \
  19376. test x$enable_wayland_shared = xyes; then
  19377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19378. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19379. enable_wayland_shared=no
  19380. fi
  19381. if test x$have_loadso = xyes && \
  19382. test x$enable_wayland_shared = xyes && \
  19383. test x$wayland_client_lib != x && \
  19384. test x$wayland_egl_lib != x && \
  19385. test x$wayland_cursor_lib != x && \
  19386. test x$xkbcommon_lib != x; then
  19387. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19388. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19389. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19390. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19391. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19392. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19393. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19394. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19395. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19396. else
  19397. enable_wayland_shared=no
  19398. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19399. SUMMARY_video="${SUMMARY_video} wayland"
  19400. fi
  19401. have_video=yes
  19402. # Check whether --enable-libdecor was given.
  19403. if test ${enable_libdecor+y}
  19404. then :
  19405. enableval=$enable_libdecor;
  19406. else $as_nop
  19407. enable_libdecor=yes
  19408. fi
  19409. if test x$enable_libdecor = xyes; then
  19410. pkg_failed=no
  19411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19412. printf %s "checking for libdecor-0... " >&6; }
  19413. if test -n "$DECOR_CFLAGS"; then
  19414. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19415. elif test -n "$PKG_CONFIG"; then
  19416. if test -n "$PKG_CONFIG" && \
  19417. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19418. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19419. ac_status=$?
  19420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19421. test $ac_status = 0; }; then
  19422. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19423. test "x$?" != "x0" && pkg_failed=yes
  19424. else
  19425. pkg_failed=yes
  19426. fi
  19427. else
  19428. pkg_failed=untried
  19429. fi
  19430. if test -n "$DECOR_LIBS"; then
  19431. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19432. elif test -n "$PKG_CONFIG"; then
  19433. if test -n "$PKG_CONFIG" && \
  19434. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19435. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19436. ac_status=$?
  19437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19438. test $ac_status = 0; }; then
  19439. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19440. test "x$?" != "x0" && pkg_failed=yes
  19441. else
  19442. pkg_failed=yes
  19443. fi
  19444. else
  19445. pkg_failed=untried
  19446. fi
  19447. if test $pkg_failed = yes; then
  19448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19449. printf "%s\n" "no" >&6; }
  19450. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19451. _pkg_short_errors_supported=yes
  19452. else
  19453. _pkg_short_errors_supported=no
  19454. fi
  19455. if test $_pkg_short_errors_supported = yes; then
  19456. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19457. else
  19458. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19459. fi
  19460. # Put the nasty error message in config.log where it belongs
  19461. echo "$DECOR_PKG_ERRORS" >&5
  19462. video_libdecor=no
  19463. elif test $pkg_failed = untried; then
  19464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19465. printf "%s\n" "no" >&6; }
  19466. video_libdecor=no
  19467. else
  19468. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19469. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19471. printf "%s\n" "yes" >&6; }
  19472. video_libdecor=yes
  19473. fi
  19474. if test x$video_libdecor = xyes; then
  19475. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19476. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19477. # Check whether --enable-libdecor-shared was given.
  19478. if test ${enable_libdecor_shared+y}
  19479. then :
  19480. enableval=$enable_libdecor_shared;
  19481. else $as_nop
  19482. enable_libdecor_shared=yes
  19483. fi
  19484. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19485. if test x$enable_wayland_shared != xyes; then
  19486. enable_libdecor_shared=no
  19487. fi
  19488. if test x$have_loadso != xyes && \
  19489. test x$enable_libdecor_shared = xyes; then
  19490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19491. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19492. fi
  19493. if test x$have_loadso = xyes && \
  19494. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19495. echo "-- dynamic libdecor -> $decor_lib"
  19496. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19497. else
  19498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19499. fi
  19500. fi
  19501. fi
  19502. fi
  19503. fi
  19504. }
  19505. CheckRPI()
  19506. {
  19507. # Check whether --enable-video-rpi was given.
  19508. if test ${enable_video_rpi+y}
  19509. then :
  19510. enableval=$enable_video_rpi;
  19511. else $as_nop
  19512. enable_video_rpi=yes
  19513. fi
  19514. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19515. pkg_failed=no
  19516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19517. printf %s "checking for bcm_host brcmegl... " >&6; }
  19518. if test -n "$RPI_CFLAGS"; then
  19519. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19520. elif test -n "$PKG_CONFIG"; then
  19521. if test -n "$PKG_CONFIG" && \
  19522. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19523. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19524. ac_status=$?
  19525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19526. test $ac_status = 0; }; then
  19527. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19528. test "x$?" != "x0" && pkg_failed=yes
  19529. else
  19530. pkg_failed=yes
  19531. fi
  19532. else
  19533. pkg_failed=untried
  19534. fi
  19535. if test -n "$RPI_LIBS"; then
  19536. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19537. elif test -n "$PKG_CONFIG"; then
  19538. if test -n "$PKG_CONFIG" && \
  19539. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19540. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19541. ac_status=$?
  19542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19543. test $ac_status = 0; }; then
  19544. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19545. test "x$?" != "x0" && pkg_failed=yes
  19546. else
  19547. pkg_failed=yes
  19548. fi
  19549. else
  19550. pkg_failed=untried
  19551. fi
  19552. if test $pkg_failed = yes; then
  19553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19554. printf "%s\n" "no" >&6; }
  19555. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19556. _pkg_short_errors_supported=yes
  19557. else
  19558. _pkg_short_errors_supported=no
  19559. fi
  19560. if test $_pkg_short_errors_supported = yes; then
  19561. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19562. else
  19563. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19564. fi
  19565. # Put the nasty error message in config.log where it belongs
  19566. echo "$RPI_PKG_ERRORS" >&5
  19567. video_rpi=no
  19568. elif test $pkg_failed = untried; then
  19569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19570. printf "%s\n" "no" >&6; }
  19571. video_rpi=no
  19572. else
  19573. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19574. RPI_LIBS=$pkg_cv_RPI_LIBS
  19575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19576. printf "%s\n" "yes" >&6; }
  19577. video_rpi=yes
  19578. fi
  19579. if test x$video_rpi = xno; then
  19580. if test x$ARCH = xnetbsd; then
  19581. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19582. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19583. else
  19584. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19585. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19586. fi
  19587. fi
  19588. # Save the original compiler flags and libraries
  19589. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19590. # Add the Raspberry Pi compiler flags and libraries
  19591. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19593. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19594. have_video_rpi=no
  19595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19596. /* end confdefs.h. */
  19597. #include <bcm_host.h>
  19598. #include <EGL/eglplatform.h>
  19599. int
  19600. main (void)
  19601. {
  19602. EGL_DISPMANX_WINDOW_T window;
  19603. bcm_host_init();
  19604. ;
  19605. return 0;
  19606. }
  19607. _ACEOF
  19608. if ac_fn_c_try_link "$LINENO"
  19609. then :
  19610. have_video_rpi=yes
  19611. fi
  19612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19613. conftest$ac_exeext conftest.$ac_ext
  19614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19615. printf "%s\n" "$have_video_rpi" >&6; }
  19616. # Restore the compiler flags and libraries
  19617. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19618. if test x$have_video_rpi = xyes; then
  19619. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19620. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19621. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19623. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19624. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19625. SUMMARY_video="${SUMMARY_video} rpi"
  19626. have_video=yes
  19627. fi
  19628. fi
  19629. }
  19630. CheckX11()
  19631. {
  19632. # Check whether --enable-video-x11 was given.
  19633. if test ${enable_video_x11+y}
  19634. then :
  19635. enableval=$enable_video_x11;
  19636. else $as_nop
  19637. enable_video_x11=yes
  19638. case "$host" in
  19639. *-*-darwin*|*-ios-*)
  19640. enable_video_x11=no
  19641. ;;
  19642. esac
  19643. fi
  19644. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19645. case "$host" in
  19646. *-*-darwin*)
  19647. # This isn't necessary for X11, but fixes GLX detection
  19648. if test "x$x_includes" = xNONE && \
  19649. test "x$x_libraries" = xNONE && \
  19650. test -d /opt/X11/include && \
  19651. test -d /opt/X11/lib; then
  19652. x_includes="/opt/X11/include"
  19653. x_libraries="/opt/X11/lib"
  19654. fi
  19655. ;;
  19656. esac
  19657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19658. printf %s "checking for X... " >&6; }
  19659. # Check whether --with-x was given.
  19660. if test ${with_x+y}
  19661. then :
  19662. withval=$with_x;
  19663. fi
  19664. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19665. if test "x$with_x" = xno; then
  19666. # The user explicitly disabled X.
  19667. have_x=disabled
  19668. else
  19669. case $x_includes,$x_libraries in #(
  19670. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19671. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19672. then :
  19673. printf %s "(cached) " >&6
  19674. else $as_nop
  19675. # One or both of the vars are not set, and there is no cached value.
  19676. ac_x_includes=no
  19677. ac_x_libraries=no
  19678. # Do we need to do anything special at all?
  19679. ac_save_LIBS=$LIBS
  19680. LIBS="-lX11 $LIBS"
  19681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19682. /* end confdefs.h. */
  19683. #include <X11/Xlib.h>
  19684. int
  19685. main (void)
  19686. {
  19687. XrmInitialize ()
  19688. ;
  19689. return 0;
  19690. }
  19691. _ACEOF
  19692. if ac_fn_c_try_link "$LINENO"
  19693. then :
  19694. # We can compile and link X programs with no special options.
  19695. ac_x_includes=
  19696. ac_x_libraries=
  19697. fi
  19698. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19699. conftest$ac_exeext conftest.$ac_ext
  19700. LIBS="$ac_save_LIBS"
  19701. # If that didn't work, only try xmkmf and file system searches
  19702. # for native compilation.
  19703. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19704. then :
  19705. rm -f -r conftest.dir
  19706. if mkdir conftest.dir; then
  19707. cd conftest.dir
  19708. cat >Imakefile <<'_ACEOF'
  19709. incroot:
  19710. @echo incroot='${INCROOT}'
  19711. usrlibdir:
  19712. @echo usrlibdir='${USRLIBDIR}'
  19713. libdir:
  19714. @echo libdir='${LIBDIR}'
  19715. _ACEOF
  19716. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19717. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19718. for ac_var in incroot usrlibdir libdir; do
  19719. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19720. done
  19721. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19722. for ac_extension in a so sl dylib la dll; do
  19723. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19724. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19725. ac_im_usrlibdir=$ac_im_libdir; break
  19726. fi
  19727. done
  19728. # Screen out bogus values from the imake configuration. They are
  19729. # bogus both because they are the default anyway, and because
  19730. # using them would break gcc on systems where it needs fixed includes.
  19731. case $ac_im_incroot in
  19732. /usr/include) ac_x_includes= ;;
  19733. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19734. esac
  19735. case $ac_im_usrlibdir in
  19736. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19737. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19738. esac
  19739. fi
  19740. cd ..
  19741. rm -f -r conftest.dir
  19742. fi
  19743. # Standard set of common directories for X headers.
  19744. # Check X11 before X11Rn because it is often a symlink to the current release.
  19745. ac_x_header_dirs='
  19746. /usr/X11/include
  19747. /usr/X11R7/include
  19748. /usr/X11R6/include
  19749. /usr/X11R5/include
  19750. /usr/X11R4/include
  19751. /usr/include/X11
  19752. /usr/include/X11R7
  19753. /usr/include/X11R6
  19754. /usr/include/X11R5
  19755. /usr/include/X11R4
  19756. /usr/local/X11/include
  19757. /usr/local/X11R7/include
  19758. /usr/local/X11R6/include
  19759. /usr/local/X11R5/include
  19760. /usr/local/X11R4/include
  19761. /usr/local/include/X11
  19762. /usr/local/include/X11R7
  19763. /usr/local/include/X11R6
  19764. /usr/local/include/X11R5
  19765. /usr/local/include/X11R4
  19766. /opt/X11/include
  19767. /usr/X386/include
  19768. /usr/x386/include
  19769. /usr/XFree86/include/X11
  19770. /usr/include
  19771. /usr/local/include
  19772. /usr/unsupported/include
  19773. /usr/athena/include
  19774. /usr/local/x11r5/include
  19775. /usr/lpp/Xamples/include
  19776. /usr/openwin/include
  19777. /usr/openwin/share/include'
  19778. if test "$ac_x_includes" = no; then
  19779. # Guess where to find include files, by looking for Xlib.h.
  19780. # First, try using that file with no special directory specified.
  19781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19782. /* end confdefs.h. */
  19783. #include <X11/Xlib.h>
  19784. _ACEOF
  19785. if ac_fn_c_try_cpp "$LINENO"
  19786. then :
  19787. # We can compile using X headers with no special include directory.
  19788. ac_x_includes=
  19789. else $as_nop
  19790. for ac_dir in $ac_x_header_dirs; do
  19791. if test -r "$ac_dir/X11/Xlib.h"; then
  19792. ac_x_includes=$ac_dir
  19793. break
  19794. fi
  19795. done
  19796. fi
  19797. rm -f conftest.err conftest.i conftest.$ac_ext
  19798. fi # $ac_x_includes = no
  19799. if test "$ac_x_libraries" = no; then
  19800. # Check for the libraries.
  19801. # See if we find them without any special options.
  19802. # Don't add to $LIBS permanently.
  19803. ac_save_LIBS=$LIBS
  19804. LIBS="-lX11 $LIBS"
  19805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19806. /* end confdefs.h. */
  19807. #include <X11/Xlib.h>
  19808. int
  19809. main (void)
  19810. {
  19811. XrmInitialize ()
  19812. ;
  19813. return 0;
  19814. }
  19815. _ACEOF
  19816. if ac_fn_c_try_link "$LINENO"
  19817. then :
  19818. LIBS=$ac_save_LIBS
  19819. # We can link X programs with no special library path.
  19820. ac_x_libraries=
  19821. else $as_nop
  19822. LIBS=$ac_save_LIBS
  19823. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19824. do
  19825. # Don't even attempt the hair of trying to link an X program!
  19826. for ac_extension in a so sl dylib la dll; do
  19827. if test -r "$ac_dir/libX11.$ac_extension"; then
  19828. ac_x_libraries=$ac_dir
  19829. break 2
  19830. fi
  19831. done
  19832. done
  19833. fi
  19834. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19835. conftest$ac_exeext conftest.$ac_ext
  19836. fi # $ac_x_libraries = no
  19837. fi
  19838. # Record the results.
  19839. case $ac_x_includes,$ac_x_libraries in #(
  19840. no,* | *,no | *\'*) :
  19841. # Didn't find X, or a directory has "'" in its name.
  19842. ac_cv_have_x="have_x=no" ;; #(
  19843. *) :
  19844. # Record where we found X for the cache.
  19845. ac_cv_have_x="have_x=yes\
  19846. ac_x_includes='$ac_x_includes'\
  19847. ac_x_libraries='$ac_x_libraries'" ;;
  19848. esac
  19849. fi
  19850. ;; #(
  19851. *) have_x=yes;;
  19852. esac
  19853. eval "$ac_cv_have_x"
  19854. fi # $with_x != no
  19855. if test "$have_x" != yes; then
  19856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19857. printf "%s\n" "$have_x" >&6; }
  19858. no_x=yes
  19859. else
  19860. # If each of the values was on the command line, it overrides each guess.
  19861. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19862. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19863. # Update the cache value to reflect the command line values.
  19864. ac_cv_have_x="have_x=yes\
  19865. ac_x_includes='$x_includes'\
  19866. ac_x_libraries='$x_libraries'"
  19867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19868. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19869. fi
  19870. if test "$no_x" = yes; then
  19871. # Not all programs may use this symbol, but it does not hurt to define it.
  19872. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19873. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19874. else
  19875. if test -n "$x_includes"; then
  19876. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19877. fi
  19878. # It would also be nice to do this for all -L options, not just this one.
  19879. if test -n "$x_libraries"; then
  19880. X_LIBS="$X_LIBS -L$x_libraries"
  19881. # For Solaris; some versions of Sun CC require a space after -R and
  19882. # others require no space. Words are not sufficient . . . .
  19883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19884. printf %s "checking whether -R must be followed by a space... " >&6; }
  19885. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19886. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19887. ac_c_werror_flag=yes
  19888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19889. /* end confdefs.h. */
  19890. int
  19891. main (void)
  19892. {
  19893. ;
  19894. return 0;
  19895. }
  19896. _ACEOF
  19897. if ac_fn_c_try_link "$LINENO"
  19898. then :
  19899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19900. printf "%s\n" "no" >&6; }
  19901. X_LIBS="$X_LIBS -R$x_libraries"
  19902. else $as_nop
  19903. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. int
  19907. main (void)
  19908. {
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_link "$LINENO"
  19914. then :
  19915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19916. printf "%s\n" "yes" >&6; }
  19917. X_LIBS="$X_LIBS -R $x_libraries"
  19918. else $as_nop
  19919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19920. printf "%s\n" "neither works" >&6; }
  19921. fi
  19922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19923. conftest$ac_exeext conftest.$ac_ext
  19924. fi
  19925. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19926. conftest$ac_exeext conftest.$ac_ext
  19927. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19928. LIBS=$ac_xsave_LIBS
  19929. fi
  19930. # Check for system-dependent libraries X programs must link with.
  19931. # Do this before checking for the system-independent R6 libraries
  19932. # (-lICE), since we may need -lsocket or whatever for X linking.
  19933. if test "$ISC" = yes; then
  19934. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19935. else
  19936. # Martyn Johnson says this is needed for Ultrix, if the X
  19937. # libraries were built with DECnet support. And Karl Berry says
  19938. # the Alpha needs dnet_stub (dnet does not exist).
  19939. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19941. /* end confdefs.h. */
  19942. /* Override any GCC internal prototype to avoid an error.
  19943. Use char because int might match the return type of a GCC
  19944. builtin and then its argument prototype would still apply. */
  19945. char XOpenDisplay ();
  19946. int
  19947. main (void)
  19948. {
  19949. return XOpenDisplay ();
  19950. ;
  19951. return 0;
  19952. }
  19953. _ACEOF
  19954. if ac_fn_c_try_link "$LINENO"
  19955. then :
  19956. else $as_nop
  19957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19958. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19959. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19960. then :
  19961. printf %s "(cached) " >&6
  19962. else $as_nop
  19963. ac_check_lib_save_LIBS=$LIBS
  19964. LIBS="-ldnet $LIBS"
  19965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19966. /* end confdefs.h. */
  19967. /* Override any GCC internal prototype to avoid an error.
  19968. Use char because int might match the return type of a GCC
  19969. builtin and then its argument prototype would still apply. */
  19970. char dnet_ntoa ();
  19971. int
  19972. main (void)
  19973. {
  19974. return dnet_ntoa ();
  19975. ;
  19976. return 0;
  19977. }
  19978. _ACEOF
  19979. if ac_fn_c_try_link "$LINENO"
  19980. then :
  19981. ac_cv_lib_dnet_dnet_ntoa=yes
  19982. else $as_nop
  19983. ac_cv_lib_dnet_dnet_ntoa=no
  19984. fi
  19985. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19986. conftest$ac_exeext conftest.$ac_ext
  19987. LIBS=$ac_check_lib_save_LIBS
  19988. fi
  19989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19990. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19991. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19992. then :
  19993. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19994. fi
  19995. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19997. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19998. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19999. then :
  20000. printf %s "(cached) " >&6
  20001. else $as_nop
  20002. ac_check_lib_save_LIBS=$LIBS
  20003. LIBS="-ldnet_stub $LIBS"
  20004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20005. /* end confdefs.h. */
  20006. /* Override any GCC internal prototype to avoid an error.
  20007. Use char because int might match the return type of a GCC
  20008. builtin and then its argument prototype would still apply. */
  20009. char dnet_ntoa ();
  20010. int
  20011. main (void)
  20012. {
  20013. return dnet_ntoa ();
  20014. ;
  20015. return 0;
  20016. }
  20017. _ACEOF
  20018. if ac_fn_c_try_link "$LINENO"
  20019. then :
  20020. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20021. else $as_nop
  20022. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20023. fi
  20024. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20025. conftest$ac_exeext conftest.$ac_ext
  20026. LIBS=$ac_check_lib_save_LIBS
  20027. fi
  20028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20029. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20030. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20031. then :
  20032. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20033. fi
  20034. fi
  20035. fi
  20036. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20037. conftest$ac_exeext conftest.$ac_ext
  20038. LIBS="$ac_xsave_LIBS"
  20039. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20040. # to get the SysV transport functions.
  20041. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20042. # needs -lnsl.
  20043. # The nsl library prevents programs from opening the X display
  20044. # on Irix 5.2, according to T.E. Dickey.
  20045. # The functions gethostbyname, getservbyname, and inet_addr are
  20046. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20047. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20048. if test "x$ac_cv_func_gethostbyname" = xyes
  20049. then :
  20050. fi
  20051. if test $ac_cv_func_gethostbyname = no; then
  20052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20053. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20054. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20055. then :
  20056. printf %s "(cached) " >&6
  20057. else $as_nop
  20058. ac_check_lib_save_LIBS=$LIBS
  20059. LIBS="-lnsl $LIBS"
  20060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20061. /* end confdefs.h. */
  20062. /* Override any GCC internal prototype to avoid an error.
  20063. Use char because int might match the return type of a GCC
  20064. builtin and then its argument prototype would still apply. */
  20065. char gethostbyname ();
  20066. int
  20067. main (void)
  20068. {
  20069. return gethostbyname ();
  20070. ;
  20071. return 0;
  20072. }
  20073. _ACEOF
  20074. if ac_fn_c_try_link "$LINENO"
  20075. then :
  20076. ac_cv_lib_nsl_gethostbyname=yes
  20077. else $as_nop
  20078. ac_cv_lib_nsl_gethostbyname=no
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20081. conftest$ac_exeext conftest.$ac_ext
  20082. LIBS=$ac_check_lib_save_LIBS
  20083. fi
  20084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20085. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20086. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20087. then :
  20088. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20089. fi
  20090. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20092. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20093. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20094. then :
  20095. printf %s "(cached) " >&6
  20096. else $as_nop
  20097. ac_check_lib_save_LIBS=$LIBS
  20098. LIBS="-lbsd $LIBS"
  20099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20100. /* end confdefs.h. */
  20101. /* Override any GCC internal prototype to avoid an error.
  20102. Use char because int might match the return type of a GCC
  20103. builtin and then its argument prototype would still apply. */
  20104. char gethostbyname ();
  20105. int
  20106. main (void)
  20107. {
  20108. return gethostbyname ();
  20109. ;
  20110. return 0;
  20111. }
  20112. _ACEOF
  20113. if ac_fn_c_try_link "$LINENO"
  20114. then :
  20115. ac_cv_lib_bsd_gethostbyname=yes
  20116. else $as_nop
  20117. ac_cv_lib_bsd_gethostbyname=no
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20120. conftest$ac_exeext conftest.$ac_ext
  20121. LIBS=$ac_check_lib_save_LIBS
  20122. fi
  20123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20124. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20125. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20126. then :
  20127. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20128. fi
  20129. fi
  20130. fi
  20131. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20132. # socket/setsockopt and other routines are undefined under SCO ODT
  20133. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20134. # on later versions), says Simon Leinen: it contains gethostby*
  20135. # variants that don't use the name server (or something). -lsocket
  20136. # must be given before -lnsl if both are needed. We assume that
  20137. # if connect needs -lnsl, so does gethostbyname.
  20138. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20139. if test "x$ac_cv_func_connect" = xyes
  20140. then :
  20141. fi
  20142. if test $ac_cv_func_connect = no; then
  20143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20144. printf %s "checking for connect in -lsocket... " >&6; }
  20145. if test ${ac_cv_lib_socket_connect+y}
  20146. then :
  20147. printf %s "(cached) " >&6
  20148. else $as_nop
  20149. ac_check_lib_save_LIBS=$LIBS
  20150. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20152. /* end confdefs.h. */
  20153. /* Override any GCC internal prototype to avoid an error.
  20154. Use char because int might match the return type of a GCC
  20155. builtin and then its argument prototype would still apply. */
  20156. char connect ();
  20157. int
  20158. main (void)
  20159. {
  20160. return connect ();
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. if ac_fn_c_try_link "$LINENO"
  20166. then :
  20167. ac_cv_lib_socket_connect=yes
  20168. else $as_nop
  20169. ac_cv_lib_socket_connect=no
  20170. fi
  20171. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20172. conftest$ac_exeext conftest.$ac_ext
  20173. LIBS=$ac_check_lib_save_LIBS
  20174. fi
  20175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20176. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20177. if test "x$ac_cv_lib_socket_connect" = xyes
  20178. then :
  20179. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20180. fi
  20181. fi
  20182. # Guillermo Gomez says -lposix is necessary on A/UX.
  20183. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20184. if test "x$ac_cv_func_remove" = xyes
  20185. then :
  20186. fi
  20187. if test $ac_cv_func_remove = no; then
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20189. printf %s "checking for remove in -lposix... " >&6; }
  20190. if test ${ac_cv_lib_posix_remove+y}
  20191. then :
  20192. printf %s "(cached) " >&6
  20193. else $as_nop
  20194. ac_check_lib_save_LIBS=$LIBS
  20195. LIBS="-lposix $LIBS"
  20196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20197. /* end confdefs.h. */
  20198. /* Override any GCC internal prototype to avoid an error.
  20199. Use char because int might match the return type of a GCC
  20200. builtin and then its argument prototype would still apply. */
  20201. char remove ();
  20202. int
  20203. main (void)
  20204. {
  20205. return remove ();
  20206. ;
  20207. return 0;
  20208. }
  20209. _ACEOF
  20210. if ac_fn_c_try_link "$LINENO"
  20211. then :
  20212. ac_cv_lib_posix_remove=yes
  20213. else $as_nop
  20214. ac_cv_lib_posix_remove=no
  20215. fi
  20216. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20217. conftest$ac_exeext conftest.$ac_ext
  20218. LIBS=$ac_check_lib_save_LIBS
  20219. fi
  20220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20221. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20222. if test "x$ac_cv_lib_posix_remove" = xyes
  20223. then :
  20224. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20225. fi
  20226. fi
  20227. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20228. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20229. if test "x$ac_cv_func_shmat" = xyes
  20230. then :
  20231. fi
  20232. if test $ac_cv_func_shmat = no; then
  20233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20234. printf %s "checking for shmat in -lipc... " >&6; }
  20235. if test ${ac_cv_lib_ipc_shmat+y}
  20236. then :
  20237. printf %s "(cached) " >&6
  20238. else $as_nop
  20239. ac_check_lib_save_LIBS=$LIBS
  20240. LIBS="-lipc $LIBS"
  20241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20242. /* end confdefs.h. */
  20243. /* Override any GCC internal prototype to avoid an error.
  20244. Use char because int might match the return type of a GCC
  20245. builtin and then its argument prototype would still apply. */
  20246. char shmat ();
  20247. int
  20248. main (void)
  20249. {
  20250. return shmat ();
  20251. ;
  20252. return 0;
  20253. }
  20254. _ACEOF
  20255. if ac_fn_c_try_link "$LINENO"
  20256. then :
  20257. ac_cv_lib_ipc_shmat=yes
  20258. else $as_nop
  20259. ac_cv_lib_ipc_shmat=no
  20260. fi
  20261. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20262. conftest$ac_exeext conftest.$ac_ext
  20263. LIBS=$ac_check_lib_save_LIBS
  20264. fi
  20265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20266. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20267. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20268. then :
  20269. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20270. fi
  20271. fi
  20272. fi
  20273. # Check for libraries that X11R6 Xt/Xaw programs need.
  20274. ac_save_LDFLAGS=$LDFLAGS
  20275. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20276. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20277. # check for ICE first), but we must link in the order -lSM -lICE or
  20278. # we get undefined symbols. So assume we have SM if we have ICE.
  20279. # These have to be linked with before -lX11, unlike the other
  20280. # libraries we check for below, so use a different variable.
  20281. # John Interrante, Karl Berry
  20282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20283. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20284. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20285. then :
  20286. printf %s "(cached) " >&6
  20287. else $as_nop
  20288. ac_check_lib_save_LIBS=$LIBS
  20289. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20291. /* end confdefs.h. */
  20292. /* Override any GCC internal prototype to avoid an error.
  20293. Use char because int might match the return type of a GCC
  20294. builtin and then its argument prototype would still apply. */
  20295. char IceConnectionNumber ();
  20296. int
  20297. main (void)
  20298. {
  20299. return IceConnectionNumber ();
  20300. ;
  20301. return 0;
  20302. }
  20303. _ACEOF
  20304. if ac_fn_c_try_link "$LINENO"
  20305. then :
  20306. ac_cv_lib_ICE_IceConnectionNumber=yes
  20307. else $as_nop
  20308. ac_cv_lib_ICE_IceConnectionNumber=no
  20309. fi
  20310. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20311. conftest$ac_exeext conftest.$ac_ext
  20312. LIBS=$ac_check_lib_save_LIBS
  20313. fi
  20314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20315. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20316. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20317. then :
  20318. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20319. fi
  20320. LDFLAGS=$ac_save_LDFLAGS
  20321. fi
  20322. if test x$have_x = xyes; then
  20323. # Check whether --enable-x11-shared was given.
  20324. if test ${enable_x11_shared+y}
  20325. then :
  20326. enableval=$enable_x11_shared;
  20327. else $as_nop
  20328. enable_x11_shared=maybe
  20329. fi
  20330. case "$host" in
  20331. *-*-darwin*)
  20332. # Apple now puts this in /opt/X11
  20333. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20334. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20335. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20336. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20337. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20338. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20339. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20340. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20341. ;;
  20342. *-*-openbsd*)
  20343. x11_lib='libX11.so'
  20344. x11ext_lib='libXext.so'
  20345. xcursor_lib='libXcursor.so'
  20346. xinput_lib='libXi.so'
  20347. xfixes_lib='libXfixes.so'
  20348. xrandr_lib='libXrandr.so'
  20349. xrender_lib='libXrender.so'
  20350. xss_lib='libXss.so'
  20351. ;;
  20352. *)
  20353. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20354. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20355. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20356. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20357. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20358. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20359. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20360. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20361. ;;
  20362. esac
  20363. if test x$ac_cv_func_shmat != xyes; then
  20364. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20365. fi
  20366. CFLAGS="$CFLAGS $X_CFLAGS"
  20367. LDFLAGS="$LDFLAGS $X_LIBS"
  20368. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20369. #include <X11/Xproto.h>
  20370. "
  20371. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20372. then :
  20373. have_xext_h_hdr=yes
  20374. else $as_nop
  20375. have_xext_h_hdr=no
  20376. fi
  20377. if test x$have_xext_h_hdr != xyes; then
  20378. as_fn_error $? "
  20379. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20380. " "$LINENO" 5
  20381. fi
  20382. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20383. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20384. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20385. # Needed so SDL applications can include SDL_syswm.h
  20386. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20387. if test x$enable_x11_shared = xmaybe; then
  20388. enable_x11_shared=yes
  20389. fi
  20390. if test x$have_loadso != xyes && \
  20391. test x$enable_x11_shared = xyes; then
  20392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20393. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20394. enable_x11_shared=no
  20395. fi
  20396. if test x$have_loadso = xyes && \
  20397. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20398. echo "-- dynamic libX11 -> $x11_lib"
  20399. echo "-- dynamic libX11ext -> $x11ext_lib"
  20400. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20401. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20402. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20403. else
  20404. enable_x11_shared=no
  20405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20406. SUMMARY_video="${SUMMARY_video} x11"
  20407. fi
  20408. have_video=yes
  20409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20410. printf %s "checking for XGenericEvent... " >&6; }
  20411. have_XGenericEvent=no
  20412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20413. /* end confdefs.h. */
  20414. #include <X11/Xlib.h>
  20415. int
  20416. main (void)
  20417. {
  20418. Display *display;
  20419. XEvent event;
  20420. XGenericEventCookie *cookie = &event.xcookie;
  20421. XNextEvent(display, &event);
  20422. XGetEventData(display, cookie);
  20423. XFreeEventData(display, cookie);
  20424. ;
  20425. return 0;
  20426. }
  20427. _ACEOF
  20428. if ac_fn_c_try_compile "$LINENO"
  20429. then :
  20430. have_XGenericEvent=yes
  20431. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20432. fi
  20433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20435. printf "%s\n" "$have_XGenericEvent" >&6; }
  20436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20437. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20438. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20439. then :
  20440. printf %s "(cached) " >&6
  20441. else $as_nop
  20442. ac_check_lib_save_LIBS=$LIBS
  20443. LIBS="-lX11 $LIBS"
  20444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20445. /* end confdefs.h. */
  20446. /* Override any GCC internal prototype to avoid an error.
  20447. Use char because int might match the return type of a GCC
  20448. builtin and then its argument prototype would still apply. */
  20449. char XkbKeycodeToKeysym ();
  20450. int
  20451. main (void)
  20452. {
  20453. return XkbKeycodeToKeysym ();
  20454. ;
  20455. return 0;
  20456. }
  20457. _ACEOF
  20458. if ac_fn_c_try_link "$LINENO"
  20459. then :
  20460. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20461. else $as_nop
  20462. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20463. fi
  20464. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20465. conftest$ac_exeext conftest.$ac_ext
  20466. LIBS=$ac_check_lib_save_LIBS
  20467. fi
  20468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20469. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20470. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20471. then :
  20472. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20473. fi
  20474. # Check whether --enable-video-x11-xcursor was given.
  20475. if test ${enable_video_x11_xcursor+y}
  20476. then :
  20477. enableval=$enable_video_x11_xcursor;
  20478. else $as_nop
  20479. enable_video_x11_xcursor=yes
  20480. fi
  20481. if test x$enable_video_x11_xcursor = xyes; then
  20482. definitely_enable_video_x11_xcursor=no
  20483. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20484. "
  20485. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20486. then :
  20487. have_xcursor_h_hdr=yes
  20488. else $as_nop
  20489. have_xcursor_h_hdr=no
  20490. fi
  20491. if test x$have_xcursor_h_hdr = xyes; then
  20492. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20493. echo "-- dynamic libXcursor -> $xcursor_lib"
  20494. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20495. definitely_enable_video_x11_xcursor=yes
  20496. else
  20497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20498. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20499. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20500. then :
  20501. printf %s "(cached) " >&6
  20502. else $as_nop
  20503. ac_check_lib_save_LIBS=$LIBS
  20504. LIBS="-lXcursor $LIBS"
  20505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20506. /* end confdefs.h. */
  20507. /* Override any GCC internal prototype to avoid an error.
  20508. Use char because int might match the return type of a GCC
  20509. builtin and then its argument prototype would still apply. */
  20510. char XcursorImageCreate ();
  20511. int
  20512. main (void)
  20513. {
  20514. return XcursorImageCreate ();
  20515. ;
  20516. return 0;
  20517. }
  20518. _ACEOF
  20519. if ac_fn_c_try_link "$LINENO"
  20520. then :
  20521. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20522. else $as_nop
  20523. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20524. fi
  20525. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20526. conftest$ac_exeext conftest.$ac_ext
  20527. LIBS=$ac_check_lib_save_LIBS
  20528. fi
  20529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20530. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20531. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20532. then :
  20533. have_xcursor_lib=yes
  20534. fi
  20535. if test x$have_xcursor_lib = xyes ; then
  20536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20537. definitely_enable_video_x11_xcursor=yes
  20538. fi
  20539. fi
  20540. fi
  20541. fi
  20542. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20543. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20544. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20545. fi
  20546. # Check whether --enable-video-x11-xdbe was given.
  20547. if test ${enable_video_x11_xdbe+y}
  20548. then :
  20549. enableval=$enable_video_x11_xdbe;
  20550. else $as_nop
  20551. enable_video_x11_xdbe=yes
  20552. fi
  20553. if test x$enable_video_x11_xdbe = xyes; then
  20554. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20555. "
  20556. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20557. then :
  20558. have_dbe_h_hdr=yes
  20559. else $as_nop
  20560. have_dbe_h_hdr=no
  20561. fi
  20562. if test x$have_dbe_h_hdr = xyes; then
  20563. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20564. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20565. fi
  20566. fi
  20567. # Check whether --enable-video-x11-xinput was given.
  20568. if test ${enable_video_x11_xinput+y}
  20569. then :
  20570. enableval=$enable_video_x11_xinput;
  20571. else $as_nop
  20572. enable_video_x11_xinput=yes
  20573. fi
  20574. if test x$enable_video_x11_xinput = xyes; then
  20575. definitely_enable_video_x11_xinput=no
  20576. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20577. "
  20578. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20579. then :
  20580. have_xinput_h_hdr=yes
  20581. else $as_nop
  20582. have_xinput_h_hdr=no
  20583. fi
  20584. if test x$have_xinput_h_hdr = xyes; then
  20585. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20586. echo "-- dynamic libXi -> $xinput_lib"
  20587. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20588. definitely_enable_video_x11_xinput=yes
  20589. else
  20590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20591. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20592. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20593. then :
  20594. printf %s "(cached) " >&6
  20595. else $as_nop
  20596. ac_check_lib_save_LIBS=$LIBS
  20597. LIBS="-lXi $LIBS"
  20598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20599. /* end confdefs.h. */
  20600. /* Override any GCC internal prototype to avoid an error.
  20601. Use char because int might match the return type of a GCC
  20602. builtin and then its argument prototype would still apply. */
  20603. char XOpenDevice ();
  20604. int
  20605. main (void)
  20606. {
  20607. return XOpenDevice ();
  20608. ;
  20609. return 0;
  20610. }
  20611. _ACEOF
  20612. if ac_fn_c_try_link "$LINENO"
  20613. then :
  20614. ac_cv_lib_Xi_XOpenDevice=yes
  20615. else $as_nop
  20616. ac_cv_lib_Xi_XOpenDevice=no
  20617. fi
  20618. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20619. conftest$ac_exeext conftest.$ac_ext
  20620. LIBS=$ac_check_lib_save_LIBS
  20621. fi
  20622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20623. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20624. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20625. then :
  20626. have_xinput_lib=yes
  20627. fi
  20628. if test x$have_xinput_lib = xyes ; then
  20629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20630. definitely_enable_video_x11_xinput=yes
  20631. fi
  20632. fi
  20633. fi
  20634. fi
  20635. if test x$definitely_enable_video_x11_xinput = xyes; then
  20636. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20637. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20639. printf %s "checking for xinput2 multitouch... " >&6; }
  20640. have_xinput2_multitouch=no
  20641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20642. /* end confdefs.h. */
  20643. #include <X11/Xlib.h>
  20644. #include <X11/Xproto.h>
  20645. #include <X11/extensions/XInput2.h>
  20646. int
  20647. main (void)
  20648. {
  20649. int event_type = XI_TouchBegin;
  20650. XITouchClassInfo *t;
  20651. ;
  20652. return 0;
  20653. }
  20654. _ACEOF
  20655. if ac_fn_c_try_compile "$LINENO"
  20656. then :
  20657. have_xinput2_multitouch=yes
  20658. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20659. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20660. fi
  20661. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20663. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20664. fi
  20665. # Check whether --enable-video-x11-xfixes was given.
  20666. if test ${enable_video_x11_xfixes+y}
  20667. then :
  20668. enableval=$enable_video_x11_xfixes;
  20669. else $as_nop
  20670. enable_video_x11_xfixes=yes
  20671. fi
  20672. if test x$enable_video_x11_xfixes = xyes; then
  20673. definitely_enable_video_x11_xfixes=no
  20674. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20676. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20678. /* end confdefs.h. */
  20679. #include <X11/Xlib.h>
  20680. #include <X11/Xproto.h>
  20681. #include <X11/extensions/XInput2.h>
  20682. #include <X11/extensions/Xfixes.h>
  20683. int
  20684. main (void)
  20685. {
  20686. BarrierEventID b;
  20687. ;
  20688. return 0;
  20689. }
  20690. _ACEOF
  20691. if ac_fn_c_try_compile "$LINENO"
  20692. then :
  20693. have_xfixes_h_hdr=yes
  20694. else $as_nop
  20695. have_xfixes_h_hdr=no
  20696. fi
  20697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20699. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20700. if test x$have_xfixes_h_hdr = xyes; then
  20701. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20702. echo "-- dynamic libXfixes -> $xfixes_lib"
  20703. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20704. definitely_enable_video_x11_xfixes=yes
  20705. else
  20706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20707. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20708. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20709. then :
  20710. printf %s "(cached) " >&6
  20711. else $as_nop
  20712. ac_check_lib_save_LIBS=$LIBS
  20713. LIBS="-lXfixes $LIBS"
  20714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20715. /* end confdefs.h. */
  20716. /* Override any GCC internal prototype to avoid an error.
  20717. Use char because int might match the return type of a GCC
  20718. builtin and then its argument prototype would still apply. */
  20719. char XFixesCreatePointerBarrier ();
  20720. int
  20721. main (void)
  20722. {
  20723. return XFixesCreatePointerBarrier ();
  20724. ;
  20725. return 0;
  20726. }
  20727. _ACEOF
  20728. if ac_fn_c_try_link "$LINENO"
  20729. then :
  20730. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20731. else $as_nop
  20732. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20733. fi
  20734. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20735. conftest$ac_exeext conftest.$ac_ext
  20736. LIBS=$ac_check_lib_save_LIBS
  20737. fi
  20738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20739. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20740. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20741. then :
  20742. have_xfixes_lib=yes
  20743. fi
  20744. if test x$have_xfixes_lib = xyes ; then
  20745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20746. definitely_enable_video_x11_xfixes=yes
  20747. fi
  20748. fi
  20749. fi
  20750. fi
  20751. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20752. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20753. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20754. fi
  20755. # Check whether --enable-video-x11-xrandr was given.
  20756. if test ${enable_video_x11_xrandr+y}
  20757. then :
  20758. enableval=$enable_video_x11_xrandr;
  20759. else $as_nop
  20760. enable_video_x11_xrandr=yes
  20761. fi
  20762. if test x$enable_video_x11_xrandr = xyes; then
  20763. definitely_enable_video_x11_xrandr=no
  20764. have_xrandr_h_hdr=no
  20765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20766. /* end confdefs.h. */
  20767. #include <X11/Xlib.h>
  20768. #include <X11/extensions/Xrandr.h>
  20769. int
  20770. main (void)
  20771. {
  20772. XRRScreenResources *res = NULL;
  20773. ;
  20774. return 0;
  20775. }
  20776. _ACEOF
  20777. if ac_fn_c_try_compile "$LINENO"
  20778. then :
  20779. have_xrandr_h_hdr=yes
  20780. fi
  20781. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20782. if test x$have_xrandr_h_hdr = xyes; then
  20783. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20784. echo "-- dynamic libXrandr -> $xrandr_lib"
  20785. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20786. definitely_enable_video_x11_xrandr=yes
  20787. else
  20788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20789. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20790. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20791. then :
  20792. printf %s "(cached) " >&6
  20793. else $as_nop
  20794. ac_check_lib_save_LIBS=$LIBS
  20795. LIBS="-lXrandr $LIBS"
  20796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20797. /* end confdefs.h. */
  20798. /* Override any GCC internal prototype to avoid an error.
  20799. Use char because int might match the return type of a GCC
  20800. builtin and then its argument prototype would still apply. */
  20801. char XRRQueryExtension ();
  20802. int
  20803. main (void)
  20804. {
  20805. return XRRQueryExtension ();
  20806. ;
  20807. return 0;
  20808. }
  20809. _ACEOF
  20810. if ac_fn_c_try_link "$LINENO"
  20811. then :
  20812. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20813. else $as_nop
  20814. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20815. fi
  20816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20817. conftest$ac_exeext conftest.$ac_ext
  20818. LIBS=$ac_check_lib_save_LIBS
  20819. fi
  20820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20821. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20822. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20823. then :
  20824. have_xrandr_lib=yes
  20825. fi
  20826. if test x$have_xrandr_lib = xyes ; then
  20827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20828. definitely_enable_video_x11_xrandr=yes
  20829. fi
  20830. fi
  20831. fi
  20832. fi
  20833. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20834. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20835. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20836. fi
  20837. # Check whether --enable-video-x11-scrnsaver was given.
  20838. if test ${enable_video_x11_scrnsaver+y}
  20839. then :
  20840. enableval=$enable_video_x11_scrnsaver;
  20841. else $as_nop
  20842. enable_video_x11_scrnsaver=yes
  20843. fi
  20844. if test x$enable_video_x11_scrnsaver = xyes; then
  20845. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20846. "
  20847. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20848. then :
  20849. have_scrnsaver_h_hdr=yes
  20850. else $as_nop
  20851. have_scrnsaver_h_hdr=no
  20852. fi
  20853. if test x$have_scrnsaver_h_hdr = xyes; then
  20854. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20855. echo "-- dynamic libXss -> $xss_lib"
  20856. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20857. definitely_enable_video_x11_scrnsaver=yes
  20858. else
  20859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20860. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20861. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20862. then :
  20863. printf %s "(cached) " >&6
  20864. else $as_nop
  20865. ac_check_lib_save_LIBS=$LIBS
  20866. LIBS="-lXss $LIBS"
  20867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20868. /* end confdefs.h. */
  20869. /* Override any GCC internal prototype to avoid an error.
  20870. Use char because int might match the return type of a GCC
  20871. builtin and then its argument prototype would still apply. */
  20872. char XScreenSaverSuspend ();
  20873. int
  20874. main (void)
  20875. {
  20876. return XScreenSaverSuspend ();
  20877. ;
  20878. return 0;
  20879. }
  20880. _ACEOF
  20881. if ac_fn_c_try_link "$LINENO"
  20882. then :
  20883. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20884. else $as_nop
  20885. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20886. fi
  20887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20888. conftest$ac_exeext conftest.$ac_ext
  20889. LIBS=$ac_check_lib_save_LIBS
  20890. fi
  20891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20892. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20893. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20894. then :
  20895. have_xss_lib=yes
  20896. fi
  20897. if test x$have_xss_lib = xyes ; then
  20898. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20899. definitely_enable_video_x11_scrnsaver=yes
  20900. fi
  20901. fi
  20902. fi
  20903. fi
  20904. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20905. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20906. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20907. fi
  20908. # Check whether --enable-video-x11-xshape was given.
  20909. if test ${enable_video_x11_xshape+y}
  20910. then :
  20911. enableval=$enable_video_x11_xshape;
  20912. else $as_nop
  20913. enable_video_x11_xshape=yes
  20914. fi
  20915. if test x$enable_video_x11_xshape = xyes; then
  20916. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20917. "
  20918. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20919. then :
  20920. have_shape_h_hdr=yes
  20921. else $as_nop
  20922. have_shape_h_hdr=no
  20923. fi
  20924. if test x$have_shape_h_hdr = xyes; then
  20925. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20926. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20927. fi
  20928. fi
  20929. fi
  20930. fi
  20931. if test x$have_x != xyes; then
  20932. # Prevent Mesa from including X11 headers
  20933. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20934. fi
  20935. }
  20936. CheckVivanteVideo()
  20937. {
  20938. # Check whether --enable-video-vivante was given.
  20939. if test ${enable_video_vivante+y}
  20940. then :
  20941. enableval=$enable_video_vivante;
  20942. else $as_nop
  20943. enable_video_vivante=yes
  20944. fi
  20945. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20947. printf %s "checking for Vivante VDK API... " >&6; }
  20948. have_vivante_vdk=no
  20949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20950. /* end confdefs.h. */
  20951. #define LINUX
  20952. #define EGL_API_FB
  20953. #include <gc_vdk.h>
  20954. int
  20955. main (void)
  20956. {
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_compile "$LINENO"
  20962. then :
  20963. have_vivante_vdk=yes
  20964. fi
  20965. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20967. printf "%s\n" "$have_vivante_vdk" >&6; }
  20968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20969. printf %s "checking for Vivante FB API... " >&6; }
  20970. have_vivante_egl=no
  20971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20972. /* end confdefs.h. */
  20973. #define LINUX
  20974. #define EGL_API_FB
  20975. #include <EGL/eglvivante.h>
  20976. int
  20977. main (void)
  20978. {
  20979. ;
  20980. return 0;
  20981. }
  20982. _ACEOF
  20983. if ac_fn_c_try_compile "$LINENO"
  20984. then :
  20985. have_vivante_egl=yes
  20986. fi
  20987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20989. printf "%s\n" "$have_vivante_egl" >&6; }
  20990. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20991. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20992. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20993. if test x$have_vivante_vdk = xyes; then
  20994. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20996. fi
  20997. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20998. SUMMARY_video="${SUMMARY_video} vivante"
  20999. have_video=yes
  21000. fi
  21001. fi
  21002. }
  21003. CheckHaikuVideo()
  21004. {
  21005. if test x$enable_video = xyes; then
  21006. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21007. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21008. have_video=yes
  21009. SUMMARY_video="${SUMMARY_video} haiku"
  21010. fi
  21011. }
  21012. CheckCOCOA()
  21013. {
  21014. # Check whether --enable-video-cocoa was given.
  21015. if test ${enable_video_cocoa+y}
  21016. then :
  21017. enableval=$enable_video_cocoa;
  21018. else $as_nop
  21019. enable_video_cocoa=yes
  21020. fi
  21021. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21022. save_CFLAGS="$CFLAGS"
  21023. CFLAGS="$CFLAGS -x objective-c"
  21024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21025. printf %s "checking for Cocoa framework... " >&6; }
  21026. have_cocoa=no
  21027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21028. /* end confdefs.h. */
  21029. #import <Cocoa/Cocoa.h>
  21030. int
  21031. main (void)
  21032. {
  21033. ;
  21034. return 0;
  21035. }
  21036. _ACEOF
  21037. if ac_fn_c_try_compile "$LINENO"
  21038. then :
  21039. have_cocoa=yes
  21040. fi
  21041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21043. printf "%s\n" "$have_cocoa" >&6; }
  21044. CFLAGS="$save_CFLAGS"
  21045. if test x$have_cocoa = xyes; then
  21046. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21047. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21048. SUMMARY_video="${SUMMARY_video} cocoa"
  21049. have_video=yes
  21050. fi
  21051. fi
  21052. }
  21053. CheckMETAL()
  21054. {
  21055. # Check whether --enable-video-metal was given.
  21056. if test ${enable_video_metal+y}
  21057. then :
  21058. enableval=$enable_video_metal;
  21059. else $as_nop
  21060. enable_video_metal=yes
  21061. fi
  21062. # Check whether --enable-render-metal was given.
  21063. if test ${enable_render_metal+y}
  21064. then :
  21065. enableval=$enable_render_metal;
  21066. else $as_nop
  21067. enable_render_metal=yes
  21068. fi
  21069. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21070. save_CFLAGS="$CFLAGS"
  21071. CFLAGS="$CFLAGS -x objective-c"
  21072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21073. printf %s "checking for Metal framework... " >&6; }
  21074. have_metal=no
  21075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21076. /* end confdefs.h. */
  21077. #import <Cocoa/Cocoa.h>
  21078. #import <Metal/Metal.h>
  21079. #import <QuartzCore/CAMetalLayer.h>
  21080. #if TARGET_CPU_X86
  21081. #error Metal doesn't work on this configuration
  21082. #endif
  21083. int
  21084. main (void)
  21085. {
  21086. ;
  21087. return 0;
  21088. }
  21089. _ACEOF
  21090. if ac_fn_c_try_compile "$LINENO"
  21091. then :
  21092. have_metal=yes
  21093. fi
  21094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21095. CFLAGS="$save_CFLAGS"
  21096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21097. printf "%s\n" "$have_metal" >&6; }
  21098. if test x$have_metal = xyes; then
  21099. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21100. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21101. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21102. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21103. fi
  21104. SUMMARY_video="${SUMMARY_video} metal"
  21105. else
  21106. enable_video_metal=no
  21107. enable_render_metal=no
  21108. fi
  21109. fi
  21110. }
  21111. CheckKMSDRM()
  21112. {
  21113. # Check whether --enable-video-kmsdrm was given.
  21114. if test ${enable_video_kmsdrm+y}
  21115. then :
  21116. enableval=$enable_video_kmsdrm;
  21117. else $as_nop
  21118. enable_video_kmsdrm=yes
  21119. fi
  21120. if test x$enable_video = xyes && \
  21121. test x$enable_video_kmsdrm = xyes && \
  21122. test x$video_opengl_egl = xyes; then
  21123. video_kmsdrm=no
  21124. pkg_failed=no
  21125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21126. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21127. if test -n "$LIBDRM_CFLAGS"; then
  21128. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21129. elif test -n "$PKG_CONFIG"; then
  21130. if test -n "$PKG_CONFIG" && \
  21131. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21132. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21133. ac_status=$?
  21134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21135. test $ac_status = 0; }; then
  21136. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21137. test "x$?" != "x0" && pkg_failed=yes
  21138. else
  21139. pkg_failed=yes
  21140. fi
  21141. else
  21142. pkg_failed=untried
  21143. fi
  21144. if test -n "$LIBDRM_LIBS"; then
  21145. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21146. elif test -n "$PKG_CONFIG"; then
  21147. if test -n "$PKG_CONFIG" && \
  21148. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21149. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21150. ac_status=$?
  21151. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21152. test $ac_status = 0; }; then
  21153. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21154. test "x$?" != "x0" && pkg_failed=yes
  21155. else
  21156. pkg_failed=yes
  21157. fi
  21158. else
  21159. pkg_failed=untried
  21160. fi
  21161. if test $pkg_failed = yes; then
  21162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21163. printf "%s\n" "no" >&6; }
  21164. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21165. _pkg_short_errors_supported=yes
  21166. else
  21167. _pkg_short_errors_supported=no
  21168. fi
  21169. if test $_pkg_short_errors_supported = yes; then
  21170. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21171. else
  21172. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21173. fi
  21174. # Put the nasty error message in config.log where it belongs
  21175. echo "$LIBDRM_PKG_ERRORS" >&5
  21176. libdrm_avail=no
  21177. elif test $pkg_failed = untried; then
  21178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21179. printf "%s\n" "no" >&6; }
  21180. libdrm_avail=no
  21181. else
  21182. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21183. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21185. printf "%s\n" "yes" >&6; }
  21186. libdrm_avail=yes
  21187. fi
  21188. pkg_failed=no
  21189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21190. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21191. if test -n "$LIBGBM_CFLAGS"; then
  21192. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21193. elif test -n "$PKG_CONFIG"; then
  21194. if test -n "$PKG_CONFIG" && \
  21195. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21196. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21197. ac_status=$?
  21198. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21199. test $ac_status = 0; }; then
  21200. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21201. test "x$?" != "x0" && pkg_failed=yes
  21202. else
  21203. pkg_failed=yes
  21204. fi
  21205. else
  21206. pkg_failed=untried
  21207. fi
  21208. if test -n "$LIBGBM_LIBS"; then
  21209. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21210. elif test -n "$PKG_CONFIG"; then
  21211. if test -n "$PKG_CONFIG" && \
  21212. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21213. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21214. ac_status=$?
  21215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21216. test $ac_status = 0; }; then
  21217. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21218. test "x$?" != "x0" && pkg_failed=yes
  21219. else
  21220. pkg_failed=yes
  21221. fi
  21222. else
  21223. pkg_failed=untried
  21224. fi
  21225. if test $pkg_failed = yes; then
  21226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21227. printf "%s\n" "no" >&6; }
  21228. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21229. _pkg_short_errors_supported=yes
  21230. else
  21231. _pkg_short_errors_supported=no
  21232. fi
  21233. if test $_pkg_short_errors_supported = yes; then
  21234. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21235. else
  21236. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21237. fi
  21238. # Put the nasty error message in config.log where it belongs
  21239. echo "$LIBGBM_PKG_ERRORS" >&5
  21240. libgbm_avail=no
  21241. elif test $pkg_failed = untried; then
  21242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21243. printf "%s\n" "no" >&6; }
  21244. libgbm_avail=no
  21245. else
  21246. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21247. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21249. printf "%s\n" "yes" >&6; }
  21250. libgbm_avail=yes
  21251. fi
  21252. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21253. video_kmsdrm=yes
  21254. fi
  21255. if test x$video_kmsdrm = xyes; then
  21256. # Check whether --enable-kmsdrm-shared was given.
  21257. if test ${enable_kmsdrm_shared+y}
  21258. then :
  21259. enableval=$enable_kmsdrm_shared;
  21260. else $as_nop
  21261. enable_kmsdrm_shared=yes
  21262. fi
  21263. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21264. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21265. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21267. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21268. kmsdrm_shared=no
  21269. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21270. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21271. if test x$have_loadso != xyes && \
  21272. test x$enable_kmsdrm_shared = xyes; then
  21273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21274. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21275. fi
  21276. if test x$have_loadso = xyes && \
  21277. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21278. kmsdrm_shared=yes
  21279. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21280. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21281. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21282. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21283. else
  21284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21285. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21286. fi
  21287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21288. printf "%s\n" "$kmsdrm_shared" >&6; }
  21289. if test x$kmsdrm_shared = xyes; then
  21290. echo "-- dynamic libdrm -> $drm_lib"
  21291. echo "-- dynamic libgbm -> $gbm_lib"
  21292. fi
  21293. have_video=yes
  21294. fi
  21295. fi
  21296. }
  21297. CheckDummyVideo()
  21298. {
  21299. # Check whether --enable-video-dummy was given.
  21300. if test ${enable_video_dummy+y}
  21301. then :
  21302. enableval=$enable_video_dummy;
  21303. else $as_nop
  21304. enable_video_dummy=yes
  21305. fi
  21306. if test x$enable_video_dummy = xyes; then
  21307. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21308. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21309. have_video=yes
  21310. SUMMARY_video="${SUMMARY_video} dummy"
  21311. fi
  21312. }
  21313. CheckOffscreenVideo()
  21314. {
  21315. # Check whether --enable-video-offscreen was given.
  21316. if test ${enable_video_offscreen+y}
  21317. then :
  21318. enableval=$enable_video_offscreen;
  21319. else $as_nop
  21320. enable_video_offscreen=yes
  21321. fi
  21322. if test x$enable_video_offscreen = xyes; then
  21323. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21324. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21325. have_video=yes
  21326. SUMMARY_video="${SUMMARY_video} offscreen"
  21327. fi
  21328. }
  21329. # Check whether --enable-video-opengl was given.
  21330. if test ${enable_video_opengl+y}
  21331. then :
  21332. enableval=$enable_video_opengl;
  21333. else $as_nop
  21334. enable_video_opengl=yes
  21335. fi
  21336. CheckGLX()
  21337. {
  21338. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21340. printf %s "checking for GLX support... " >&6; }
  21341. video_opengl_glx=no
  21342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21343. /* end confdefs.h. */
  21344. #include <GL/glx.h>
  21345. int
  21346. main (void)
  21347. {
  21348. ;
  21349. return 0;
  21350. }
  21351. _ACEOF
  21352. if ac_fn_c_try_compile "$LINENO"
  21353. then :
  21354. video_opengl_glx=yes
  21355. fi
  21356. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21358. printf "%s\n" "$video_opengl_glx" >&6; }
  21359. if test x$video_opengl_glx = xyes; then
  21360. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21361. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21362. fi
  21363. fi
  21364. }
  21365. # Check whether --enable-video-opengles was given.
  21366. if test ${enable_video_opengles+y}
  21367. then :
  21368. enableval=$enable_video_opengles;
  21369. else $as_nop
  21370. enable_video_opengles=yes
  21371. fi
  21372. # Check whether --enable-video-opengles2 was given.
  21373. if test ${enable_video_opengles2+y}
  21374. then :
  21375. enableval=$enable_video_opengles2;
  21376. else $as_nop
  21377. enable_video_opengles2=yes
  21378. fi
  21379. CheckEGL()
  21380. {
  21381. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21383. printf %s "checking for EGL support... " >&6; }
  21384. video_opengl_egl=no
  21385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21386. /* end confdefs.h. */
  21387. #define LINUX
  21388. #define EGL_API_FB
  21389. #define MESA_EGL_NO_X11_HEADERS
  21390. #define EGL_NO_X11
  21391. #include <EGL/egl.h>
  21392. #include <EGL/eglext.h>
  21393. int
  21394. main (void)
  21395. {
  21396. ;
  21397. return 0;
  21398. }
  21399. _ACEOF
  21400. if ac_fn_c_try_compile "$LINENO"
  21401. then :
  21402. video_opengl_egl=yes
  21403. fi
  21404. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21406. printf "%s\n" "$video_opengl_egl" >&6; }
  21407. if test x$video_opengl_egl = xyes; then
  21408. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21409. fi
  21410. fi
  21411. }
  21412. CheckOpenGL()
  21413. {
  21414. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21416. printf %s "checking for OpenGL headers... " >&6; }
  21417. video_opengl=no
  21418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21419. /* end confdefs.h. */
  21420. #include <GL/gl.h>
  21421. #include <GL/glext.h>
  21422. int
  21423. main (void)
  21424. {
  21425. ;
  21426. return 0;
  21427. }
  21428. _ACEOF
  21429. if ac_fn_c_try_compile "$LINENO"
  21430. then :
  21431. video_opengl=yes
  21432. fi
  21433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21435. printf "%s\n" "$video_opengl" >&6; }
  21436. if test x$video_opengl = xyes; then
  21437. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21438. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21439. SUMMARY_video="${SUMMARY_video} opengl"
  21440. fi
  21441. fi
  21442. }
  21443. CheckOpenGLES()
  21444. {
  21445. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21446. if test x$enable_video_opengles2 = xyes; then
  21447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21448. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21449. video_opengles_v2=no
  21450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21451. /* end confdefs.h. */
  21452. #include <GLES2/gl2.h>
  21453. #include <GLES2/gl2ext.h>
  21454. int
  21455. main (void)
  21456. {
  21457. ;
  21458. return 0;
  21459. }
  21460. _ACEOF
  21461. if ac_fn_c_try_compile "$LINENO"
  21462. then :
  21463. video_opengles_v2=yes
  21464. fi
  21465. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21467. printf "%s\n" "$video_opengles_v2" >&6; }
  21468. if test x$video_opengles_v2 = xyes; then
  21469. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21470. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21471. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21472. fi
  21473. fi
  21474. fi
  21475. }
  21476. CheckWINDOWSGL()
  21477. {
  21478. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21479. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21480. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21481. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21482. SUMMARY_video="${SUMMARY_video} opengl"
  21483. fi
  21484. }
  21485. CheckWINDOWSGLES()
  21486. {
  21487. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21489. printf %s "checking for EGL support... " >&6; }
  21490. video_opengl_egl=no
  21491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21492. /* end confdefs.h. */
  21493. #include <EGL/egl.h>
  21494. int
  21495. main (void)
  21496. {
  21497. ;
  21498. return 0;
  21499. }
  21500. _ACEOF
  21501. if ac_fn_c_try_compile "$LINENO"
  21502. then :
  21503. video_opengl_egl=yes
  21504. fi
  21505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21507. printf "%s\n" "$video_opengl_egl" >&6; }
  21508. if test x$video_opengl_egl = xyes; then
  21509. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21510. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21511. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21512. fi
  21513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21514. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21515. video_opengles_v2=no
  21516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21517. /* end confdefs.h. */
  21518. #include <GLES2/gl2.h>
  21519. #include <GLES2/gl2ext.h>
  21520. int
  21521. main (void)
  21522. {
  21523. ;
  21524. return 0;
  21525. }
  21526. _ACEOF
  21527. if ac_fn_c_try_compile "$LINENO"
  21528. then :
  21529. video_opengles_v2=yes
  21530. fi
  21531. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21533. printf "%s\n" "$video_opengles_v2" >&6; }
  21534. if test x$video_opengles_v2 = xyes; then
  21535. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21536. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21537. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21538. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21539. fi
  21540. fi
  21541. }
  21542. CheckHaikuGL()
  21543. {
  21544. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21545. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21546. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21547. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21549. SUMMARY_video="${SUMMARY_video} opengl"
  21550. fi
  21551. }
  21552. CheckMacGL()
  21553. {
  21554. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21555. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21556. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21557. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21558. SUMMARY_video="${SUMMARY_video} opengl"
  21559. fi
  21560. }
  21561. CheckMacGLES()
  21562. {
  21563. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21564. video_opengl_egl=yes
  21565. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21566. video_opengles_v2=yes
  21567. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21568. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21569. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21570. fi
  21571. }
  21572. CheckEmscriptenGLES()
  21573. {
  21574. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21576. printf %s "checking for EGL support... " >&6; }
  21577. video_opengl_egl=no
  21578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21579. /* end confdefs.h. */
  21580. #include <EGL/egl.h>
  21581. int
  21582. main (void)
  21583. {
  21584. ;
  21585. return 0;
  21586. }
  21587. _ACEOF
  21588. if ac_fn_c_try_compile "$LINENO"
  21589. then :
  21590. video_opengl_egl=yes
  21591. fi
  21592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21594. printf "%s\n" "$video_opengl_egl" >&6; }
  21595. if test x$video_opengl_egl = xyes; then
  21596. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21597. fi
  21598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21599. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21600. video_opengles_v2=no
  21601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21602. /* end confdefs.h. */
  21603. #include <GLES2/gl2.h>
  21604. #include <GLES2/gl2ext.h>
  21605. int
  21606. main (void)
  21607. {
  21608. ;
  21609. return 0;
  21610. }
  21611. _ACEOF
  21612. if ac_fn_c_try_compile "$LINENO"
  21613. then :
  21614. video_opengles_v2=yes
  21615. fi
  21616. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21618. printf "%s\n" "$video_opengles_v2" >&6; }
  21619. if test x$video_opengles_v2 = xyes; then
  21620. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21621. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21622. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21623. fi
  21624. fi
  21625. }
  21626. # Check whether --enable-video-vulkan was given.
  21627. if test ${enable_video_vulkan+y}
  21628. then :
  21629. enableval=$enable_video_vulkan;
  21630. else $as_nop
  21631. enable_video_vulkan=yes
  21632. fi
  21633. CheckVulkan()
  21634. {
  21635. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21636. case "$host" in
  21637. *-*-android*)
  21638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21639. /* end confdefs.h. */
  21640. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21641. #error Vulkan doesn't work on this configuration
  21642. #endif
  21643. int
  21644. main (void)
  21645. {
  21646. ;
  21647. return 0;
  21648. }
  21649. _ACEOF
  21650. if ac_fn_c_try_compile "$LINENO"
  21651. then :
  21652. else $as_nop
  21653. enable_video_vulkan=no
  21654. fi
  21655. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21656. ;;
  21657. *-*-darwin*)
  21658. save_CFLAGS="$CFLAGS"
  21659. CFLAGS="$CFLAGS -x objective-c"
  21660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21661. /* end confdefs.h. */
  21662. #include <Cocoa/Cocoa.h>
  21663. #include <Metal/Metal.h>
  21664. #include <QuartzCore/CAMetalLayer.h>
  21665. #if TARGET_CPU_X86
  21666. #error Vulkan doesn't work on this configuration
  21667. #endif
  21668. int
  21669. main (void)
  21670. {
  21671. ;
  21672. return 0;
  21673. }
  21674. _ACEOF
  21675. if ac_fn_c_try_compile "$LINENO"
  21676. then :
  21677. else $as_nop
  21678. enable_video_vulkan=no
  21679. fi
  21680. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21681. CFLAGS="$save_CFLAGS"
  21682. ;;
  21683. *)
  21684. ;;
  21685. esac
  21686. if test x$enable_video_vulkan = xno; then
  21687. # For reasons I am totally unable to see, I get an undefined macro error if
  21688. # I put this in the AC_TRY_COMPILE.
  21689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21690. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21691. fi
  21692. fi
  21693. if test x$have_loadso != xyes; then
  21694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21695. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21696. enable_video_vulkan=no
  21697. fi
  21698. if test x$enable_video_vulkan = xyes; then
  21699. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21700. SUMMARY_video="${SUMMARY_video} vulkan"
  21701. fi
  21702. }
  21703. CheckInputEvents()
  21704. {
  21705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21706. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21707. use_input_events=no
  21708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21709. /* end confdefs.h. */
  21710. #include <linux/input.h>
  21711. int
  21712. main (void)
  21713. {
  21714. #ifndef EVIOCGNAME
  21715. #error EVIOCGNAME() ioctl not available
  21716. #endif
  21717. ;
  21718. return 0;
  21719. }
  21720. _ACEOF
  21721. if ac_fn_c_try_compile "$LINENO"
  21722. then :
  21723. use_input_events=yes
  21724. fi
  21725. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21727. printf "%s\n" "$use_input_events" >&6; }
  21728. if test x$use_input_events = xyes; then
  21729. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21730. SUMMARY_input="${SUMMARY_input} linuxev"
  21731. fi
  21732. }
  21733. CheckInputKD()
  21734. {
  21735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21736. printf %s "checking for Linux kd.h... " >&6; }
  21737. use_input_kd=no
  21738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21739. /* end confdefs.h. */
  21740. #include <linux/kd.h>
  21741. #include <linux/keyboard.h>
  21742. #include <sys/ioctl.h>
  21743. int
  21744. main (void)
  21745. {
  21746. struct kbentry kbe;
  21747. kbe.kb_table = KG_CTRL;
  21748. ioctl(0, KDGKBENT, &kbe);
  21749. ;
  21750. return 0;
  21751. }
  21752. _ACEOF
  21753. if ac_fn_c_try_compile "$LINENO"
  21754. then :
  21755. use_input_kd=yes
  21756. fi
  21757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21759. printf "%s\n" "$use_input_kd" >&6; }
  21760. if test x$use_input_kd = xyes; then
  21761. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21762. SUMMARY_input="${SUMMARY_input} linuxkd"
  21763. fi
  21764. }
  21765. CheckInputKBIO()
  21766. {
  21767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21768. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21769. use_input_kbio=no
  21770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21771. /* end confdefs.h. */
  21772. #include <sys/kbio.h>
  21773. #include <sys/ioctl.h>
  21774. int
  21775. main (void)
  21776. {
  21777. accentmap_t accTable;
  21778. ioctl(0, KDENABIO, 1);
  21779. ;
  21780. return 0;
  21781. }
  21782. _ACEOF
  21783. if ac_fn_c_try_compile "$LINENO"
  21784. then :
  21785. use_input_kbio=yes
  21786. fi
  21787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21789. printf "%s\n" "$use_input_kbio" >&6; }
  21790. if test x$use_input_kbio = xyes; then
  21791. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21792. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21793. fi
  21794. }
  21795. CheckInputWSCONS()
  21796. {
  21797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21798. printf %s "checking for OpenBSD wscons... " >&6; }
  21799. use_input_wscons=no
  21800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21801. /* end confdefs.h. */
  21802. #include <sys/time.h>
  21803. #include <dev/wscons/wsconsio.h>
  21804. #include <dev/wscons/wsksymdef.h>
  21805. #include <dev/wscons/wsksymvar.h>
  21806. #include <sys/ioctl.h>
  21807. int
  21808. main (void)
  21809. {
  21810. struct wskbd_map_data data;
  21811. ioctl(0, WSKBDIO_GETMAP, &data);
  21812. ;
  21813. return 0;
  21814. }
  21815. _ACEOF
  21816. if ac_fn_c_try_compile "$LINENO"
  21817. then :
  21818. use_input_wscons=yes
  21819. fi
  21820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21822. printf "%s\n" "$use_input_wscons" >&6; }
  21823. if test x$use_input_wscons = xyes; then
  21824. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21825. SUMMARY_input="${SUMMARY_input} wscons"
  21826. fi
  21827. }
  21828. CheckLibUDev()
  21829. {
  21830. # Check whether --enable-libudev was given.
  21831. if test ${enable_libudev+y}
  21832. then :
  21833. enableval=$enable_libudev;
  21834. else $as_nop
  21835. enable_libudev=yes
  21836. fi
  21837. if test x$enable_libudev = xyes; then
  21838. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21839. if test "x$ac_cv_header_libudev_h" = xyes
  21840. then :
  21841. have_libudev_h_hdr=yes
  21842. else $as_nop
  21843. have_libudev_h_hdr=no
  21844. fi
  21845. if test x$have_libudev_h_hdr = xyes; then
  21846. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21847. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21848. if test x$udev_lib != x; then
  21849. echo "-- dynamic udev -> $udev_lib"
  21850. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21851. fi
  21852. fi
  21853. fi
  21854. }
  21855. CheckDBus()
  21856. {
  21857. # Check whether --enable-dbus was given.
  21858. if test ${enable_dbus+y}
  21859. then :
  21860. enableval=$enable_dbus;
  21861. else $as_nop
  21862. enable_dbus=yes
  21863. fi
  21864. if test x$enable_dbus = xyes; then
  21865. pkg_failed=no
  21866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21867. printf %s "checking for dbus-1... " >&6; }
  21868. if test -n "$DBUS_CFLAGS"; then
  21869. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21870. elif test -n "$PKG_CONFIG"; then
  21871. if test -n "$PKG_CONFIG" && \
  21872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21873. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21874. ac_status=$?
  21875. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21876. test $ac_status = 0; }; then
  21877. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21878. test "x$?" != "x0" && pkg_failed=yes
  21879. else
  21880. pkg_failed=yes
  21881. fi
  21882. else
  21883. pkg_failed=untried
  21884. fi
  21885. if test -n "$DBUS_LIBS"; then
  21886. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21887. elif test -n "$PKG_CONFIG"; then
  21888. if test -n "$PKG_CONFIG" && \
  21889. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21890. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21891. ac_status=$?
  21892. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21893. test $ac_status = 0; }; then
  21894. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21895. test "x$?" != "x0" && pkg_failed=yes
  21896. else
  21897. pkg_failed=yes
  21898. fi
  21899. else
  21900. pkg_failed=untried
  21901. fi
  21902. if test $pkg_failed = yes; then
  21903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21904. printf "%s\n" "no" >&6; }
  21905. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21906. _pkg_short_errors_supported=yes
  21907. else
  21908. _pkg_short_errors_supported=no
  21909. fi
  21910. if test $_pkg_short_errors_supported = yes; then
  21911. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21912. else
  21913. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21914. fi
  21915. # Put the nasty error message in config.log where it belongs
  21916. echo "$DBUS_PKG_ERRORS" >&5
  21917. have_dbus=no
  21918. elif test $pkg_failed = untried; then
  21919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21920. printf "%s\n" "no" >&6; }
  21921. have_dbus=no
  21922. else
  21923. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21924. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21926. printf "%s\n" "yes" >&6; }
  21927. have_dbus=yes
  21928. fi
  21929. save_CPPFLAGS="$CPPFLAGS"
  21930. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21931. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21932. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21933. then :
  21934. have_dbus_dbus_h_hdr=yes
  21935. else $as_nop
  21936. have_dbus_dbus_h_hdr=no
  21937. fi
  21938. CPPFLAGS="$save_CPPFLAGS"
  21939. if test x$have_dbus_dbus_h_hdr = xyes; then
  21940. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21941. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21942. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21943. fi
  21944. fi
  21945. }
  21946. CheckIME()
  21947. {
  21948. # Check whether --enable-ime was given.
  21949. if test ${enable_ime+y}
  21950. then :
  21951. enableval=$enable_ime;
  21952. else $as_nop
  21953. enable_ime=yes
  21954. fi
  21955. if test x$enable_ime = xyes; then
  21956. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21957. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21958. fi
  21959. }
  21960. CheckInotify()
  21961. {
  21962. save_LIBS="$LIBS"
  21963. case "$host" in
  21964. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21965. ;;
  21966. esac
  21967. for ac_header in sys/inotify.h
  21968. do :
  21969. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21970. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21971. then :
  21972. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21973. have_inotify_inotify_h_hdr=yes
  21974. fi
  21975. done
  21976. for ac_func in inotify_init
  21977. do :
  21978. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21979. if test "x$ac_cv_func_inotify_init" = xyes
  21980. then :
  21981. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21982. have_inotify=yes
  21983. fi
  21984. done
  21985. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21986. if test "x$ac_cv_func_inotify_init1" = xyes
  21987. then :
  21988. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21989. fi
  21990. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21991. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21992. case "$host" in
  21993. *-*-freebsd*|*-*-dragonfly*)
  21994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21995. ;;
  21996. esac
  21997. fi
  21998. LIBS="$save_LIBS"
  21999. }
  22000. CheckIBus()
  22001. {
  22002. # Check whether --enable-ibus was given.
  22003. if test ${enable_ibus+y}
  22004. then :
  22005. enableval=$enable_ibus;
  22006. else $as_nop
  22007. enable_ibus=yes
  22008. fi
  22009. if test x$enable_ibus = xyes; then
  22010. pkg_failed=no
  22011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22012. printf %s "checking for ibus-1.0... " >&6; }
  22013. if test -n "$IBUS_CFLAGS"; then
  22014. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22015. elif test -n "$PKG_CONFIG"; then
  22016. if test -n "$PKG_CONFIG" && \
  22017. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22018. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22019. ac_status=$?
  22020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22021. test $ac_status = 0; }; then
  22022. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22023. test "x$?" != "x0" && pkg_failed=yes
  22024. else
  22025. pkg_failed=yes
  22026. fi
  22027. else
  22028. pkg_failed=untried
  22029. fi
  22030. if test -n "$IBUS_LIBS"; then
  22031. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22032. elif test -n "$PKG_CONFIG"; then
  22033. if test -n "$PKG_CONFIG" && \
  22034. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22035. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22036. ac_status=$?
  22037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22038. test $ac_status = 0; }; then
  22039. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22040. test "x$?" != "x0" && pkg_failed=yes
  22041. else
  22042. pkg_failed=yes
  22043. fi
  22044. else
  22045. pkg_failed=untried
  22046. fi
  22047. if test $pkg_failed = yes; then
  22048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22049. printf "%s\n" "no" >&6; }
  22050. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22051. _pkg_short_errors_supported=yes
  22052. else
  22053. _pkg_short_errors_supported=no
  22054. fi
  22055. if test $_pkg_short_errors_supported = yes; then
  22056. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22057. else
  22058. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22059. fi
  22060. # Put the nasty error message in config.log where it belongs
  22061. echo "$IBUS_PKG_ERRORS" >&5
  22062. have_ibus=no
  22063. elif test $pkg_failed = untried; then
  22064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22065. printf "%s\n" "no" >&6; }
  22066. have_ibus=no
  22067. else
  22068. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22069. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22071. printf "%s\n" "yes" >&6; }
  22072. have_ibus=yes
  22073. fi
  22074. save_CPPFLAGS="$CPPFLAGS"
  22075. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22076. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22077. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22078. then :
  22079. have_ibus_ibus_h_hdr=yes
  22080. else $as_nop
  22081. have_ibus_ibus_h_hdr=no
  22082. fi
  22083. CPPFLAGS="$save_CPPFLAGS"
  22084. if test x$have_ibus_ibus_h_hdr = xyes; then
  22085. if test x$enable_ime != xyes; then
  22086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22087. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22088. have_ibus_ibus_h_hdr=no
  22089. elif test x$enable_dbus != xyes; then
  22090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22091. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22092. have_ibus_ibus_h_hdr=no
  22093. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22095. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22096. have_ibus_ibus_h_hdr=no
  22097. else
  22098. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22099. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22100. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22101. fi
  22102. fi
  22103. fi
  22104. }
  22105. CheckFcitx()
  22106. {
  22107. # Check whether --enable-fcitx was given.
  22108. if test ${enable_fcitx+y}
  22109. then :
  22110. enableval=$enable_fcitx;
  22111. else $as_nop
  22112. enable_fcitx=yes
  22113. fi
  22114. if test x$enable_fcitx = xyes; then
  22115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22116. printf %s "checking for fcitx support... " >&6; }
  22117. have_fcitx=no
  22118. if test x$enable_ime != xyes; then
  22119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22120. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22121. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22123. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22124. else
  22125. have_fcitx=yes
  22126. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22127. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22128. fi
  22129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22130. printf "%s\n" "$have_fcitx" >&6; }
  22131. fi
  22132. }
  22133. CheckJoystickMFI()
  22134. {
  22135. # Check whether --enable-joystick-mfi was given.
  22136. if test ${enable_joystick_mfi+y}
  22137. then :
  22138. enableval=$enable_joystick_mfi;
  22139. else $as_nop
  22140. enable_joystick_mfi=yes
  22141. fi
  22142. if test x$enable_joystick_mfi = xyes; then
  22143. save_CFLAGS="$CFLAGS"
  22144. save_LDFLAGS="$LDFLAGS"
  22145. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22146. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22148. printf %s "checking for GameController framework... " >&6; }
  22149. enable_joystick_mfi=no
  22150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22151. /* end confdefs.h. */
  22152. #include <AvailabilityMacros.h>
  22153. #include <TargetConditionals.h>
  22154. #import <GameController/GameController.h>
  22155. int
  22156. main (void)
  22157. {
  22158. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22159. #error GameController framework doesn't work on this configuration
  22160. #endif
  22161. #if TARGET_CPU_X86
  22162. #error GameController framework doesn't work on this configuration
  22163. #endif
  22164. ;
  22165. return 0;
  22166. }
  22167. _ACEOF
  22168. if ac_fn_c_try_link "$LINENO"
  22169. then :
  22170. enable_joystick_mfi=yes
  22171. fi
  22172. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22173. conftest$ac_exeext conftest.$ac_ext
  22174. CFLAGS="$save_CFLAGS"
  22175. LDFLAGS="$save_LDFLAGS"
  22176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22177. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22178. if test x$enable_joystick_mfi = xyes; then
  22179. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22180. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22182. fi
  22183. fi
  22184. }
  22185. CheckPTHREAD()
  22186. {
  22187. case "$host" in
  22188. *-*-emscripten*)
  22189. enable_pthreads_default=no
  22190. ;;
  22191. *)
  22192. enable_pthreads_default=yes
  22193. ;;
  22194. esac
  22195. # Check whether --enable-pthreads was given.
  22196. if test ${enable_pthreads+y}
  22197. then :
  22198. enableval=$enable_pthreads;
  22199. else $as_nop
  22200. enable_pthreads=maybe
  22201. fi
  22202. # Check whether --enable-pthread-sem was given.
  22203. if test ${enable_pthread_sem+y}
  22204. then :
  22205. enableval=$enable_pthread_sem;
  22206. else $as_nop
  22207. enable_pthread_sem=maybe
  22208. fi
  22209. if test x$enable_pthreads = xmaybe; then
  22210. enable_pthreads=$enable_pthreads_default
  22211. fi
  22212. if test x$enable_pthread_sem = xmaybe; then
  22213. enable_pthread_sem=$enable_pthreads
  22214. fi
  22215. case "$host" in
  22216. *-*-android*)
  22217. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22218. pthread_lib=""
  22219. ;;
  22220. *-*-linux*|*-*-uclinux*)
  22221. pthread_cflags="-D_REENTRANT"
  22222. pthread_lib="-lpthread"
  22223. ;;
  22224. *-*-bsdi*)
  22225. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22226. pthread_lib=""
  22227. ;;
  22228. *-*-darwin*)
  22229. pthread_cflags="-D_THREAD_SAFE"
  22230. # causes Carbon.p complaints?
  22231. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22232. ;;
  22233. *-*-freebsd*|*-*-dragonfly*)
  22234. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22235. pthread_lib="-pthread"
  22236. ;;
  22237. *-*-netbsd*)
  22238. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22239. pthread_lib="-lpthread"
  22240. ;;
  22241. *-*-openbsd*)
  22242. pthread_cflags="-D_REENTRANT"
  22243. pthread_lib="-lpthread"
  22244. ;;
  22245. *-*-solaris2.9)
  22246. # From Solaris 9+, posix4's preferred name is rt.
  22247. pthread_cflags="-D_REENTRANT"
  22248. pthread_lib="-lpthread -lrt"
  22249. ;;
  22250. *-*-solaris2.10)
  22251. # Solaris 10+ merged pthread into libc.
  22252. pthread_cflags="-D_REENTRANT"
  22253. pthread_lib="-lrt"
  22254. ;;
  22255. *-*-solaris*)
  22256. # Solaris 11+ merged rt into libc.
  22257. pthread_cflags="-D_REENTRANT"
  22258. pthread_lib=""
  22259. ;;
  22260. *-*-sysv5*)
  22261. pthread_cflags="-D_REENTRANT -Kthread"
  22262. pthread_lib=""
  22263. ;;
  22264. *-*-aix*)
  22265. pthread_cflags="-D_REENTRANT -mthreads"
  22266. pthread_lib="-lpthread"
  22267. ;;
  22268. *-*-hpux11*)
  22269. pthread_cflags="-D_REENTRANT"
  22270. pthread_lib="-L/usr/lib -lpthread"
  22271. ;;
  22272. *-*-haiku*)
  22273. pthread_cflags="-D_REENTRANT"
  22274. pthread_lib=""
  22275. ;;
  22276. *-*-emscripten*)
  22277. pthread_cflags="-D_REENTRANT -pthread"
  22278. pthread_lib="-pthread"
  22279. ;;
  22280. *)
  22281. pthread_cflags="-D_REENTRANT"
  22282. pthread_lib="-lpthread"
  22283. ;;
  22284. esac
  22285. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22286. # Save the original compiler flags and libraries
  22287. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22288. # Add the pthread compiler flags and libraries
  22289. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22290. # Check to see if we have pthread support on this system
  22291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22292. printf %s "checking for pthreads... " >&6; }
  22293. use_pthreads=no
  22294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22295. /* end confdefs.h. */
  22296. #include <pthread.h>
  22297. int
  22298. main (void)
  22299. {
  22300. pthread_attr_t type;
  22301. pthread_attr_init(&type);
  22302. ;
  22303. return 0;
  22304. }
  22305. _ACEOF
  22306. if ac_fn_c_try_link "$LINENO"
  22307. then :
  22308. use_pthreads=yes
  22309. fi
  22310. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22311. conftest$ac_exeext conftest.$ac_ext
  22312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22313. printf "%s\n" "$use_pthreads" >&6; }
  22314. # Restore the compiler flags and libraries
  22315. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22316. # Do futher testing if we have pthread support...
  22317. if test x$use_pthreads = xyes; then
  22318. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22319. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22321. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22322. # Save the original compiler flags and libraries
  22323. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22324. # Add the pthread compiler flags and libraries
  22325. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22326. # Check to see if recursive mutexes are available
  22327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22328. printf %s "checking for recursive mutexes... " >&6; }
  22329. has_recursive_mutexes=no
  22330. if test x$has_recursive_mutexes = xno; then
  22331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22332. /* end confdefs.h. */
  22333. #define _GNU_SOURCE 1
  22334. #include <pthread.h>
  22335. int
  22336. main (void)
  22337. {
  22338. pthread_mutexattr_t attr;
  22339. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. if ac_fn_c_try_link "$LINENO"
  22345. then :
  22346. has_recursive_mutexes=yes
  22347. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22348. fi
  22349. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22350. conftest$ac_exeext conftest.$ac_ext
  22351. fi
  22352. if test x$has_recursive_mutexes = xno; then
  22353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22354. /* end confdefs.h. */
  22355. #define _GNU_SOURCE 1
  22356. #include <pthread.h>
  22357. int
  22358. main (void)
  22359. {
  22360. pthread_mutexattr_t attr;
  22361. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22362. ;
  22363. return 0;
  22364. }
  22365. _ACEOF
  22366. if ac_fn_c_try_link "$LINENO"
  22367. then :
  22368. has_recursive_mutexes=yes
  22369. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22370. fi
  22371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22372. conftest$ac_exeext conftest.$ac_ext
  22373. fi
  22374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22375. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22376. # Check to see if pthread semaphore support is missing
  22377. if test x$enable_pthread_sem = xyes; then
  22378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22379. printf %s "checking for pthread semaphores... " >&6; }
  22380. have_pthread_sem=no
  22381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22382. /* end confdefs.h. */
  22383. #include <pthread.h>
  22384. #include <semaphore.h>
  22385. int
  22386. main (void)
  22387. {
  22388. ;
  22389. return 0;
  22390. }
  22391. _ACEOF
  22392. if ac_fn_c_try_compile "$LINENO"
  22393. then :
  22394. have_pthread_sem=yes
  22395. fi
  22396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22398. printf "%s\n" "$have_pthread_sem" >&6; }
  22399. fi
  22400. if test x$have_pthread_sem = xyes; then
  22401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22402. printf %s "checking for sem_timedwait... " >&6; }
  22403. have_sem_timedwait=no
  22404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22405. /* end confdefs.h. */
  22406. #include <pthread.h>
  22407. #include <semaphore.h>
  22408. int
  22409. main (void)
  22410. {
  22411. sem_timedwait(NULL, NULL);
  22412. ;
  22413. return 0;
  22414. }
  22415. _ACEOF
  22416. if ac_fn_c_try_link "$LINENO"
  22417. then :
  22418. have_sem_timedwait=yes
  22419. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22420. fi
  22421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22422. conftest$ac_exeext conftest.$ac_ext
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22424. printf "%s\n" "$have_sem_timedwait" >&6; }
  22425. fi
  22426. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22427. "
  22428. if test "x$ac_cv_header_pthread_np_h" = xyes
  22429. then :
  22430. have_pthread_np_h=yes
  22431. else $as_nop
  22432. have_pthread_np_h=no
  22433. fi
  22434. if test x$have_pthread_np_h = xyes; then
  22435. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22436. fi
  22437. # Check to see if pthread naming is available
  22438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22439. printf %s "checking for pthread_setname_np... " >&6; }
  22440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22441. /* end confdefs.h. */
  22442. /* Override any GCC internal prototype to avoid an error.
  22443. Use char because int might match the return type of a GCC
  22444. builtin and then its argument prototype would still apply. */
  22445. char pthread_setname_np ();
  22446. int
  22447. main (void)
  22448. {
  22449. return pthread_setname_np ();
  22450. ;
  22451. return 0;
  22452. }
  22453. _ACEOF
  22454. if ac_fn_c_try_link "$LINENO"
  22455. then :
  22456. has_pthread_setname_np=yes
  22457. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22458. else $as_nop
  22459. has_pthread_setname_np=no
  22460. fi
  22461. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22462. conftest$ac_exeext conftest.$ac_ext
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22464. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22466. printf %s "checking for pthread_set_name_np... " >&6; }
  22467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22468. /* end confdefs.h. */
  22469. /* Override any GCC internal prototype to avoid an error.
  22470. Use char because int might match the return type of a GCC
  22471. builtin and then its argument prototype would still apply. */
  22472. char pthread_set_name_np ();
  22473. int
  22474. main (void)
  22475. {
  22476. return pthread_set_name_np ();
  22477. ;
  22478. return 0;
  22479. }
  22480. _ACEOF
  22481. if ac_fn_c_try_link "$LINENO"
  22482. then :
  22483. has_pthread_set_name_np=yes
  22484. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22485. else $as_nop
  22486. has_pthread_set_name_np=no
  22487. fi
  22488. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22489. conftest$ac_exeext conftest.$ac_ext
  22490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22491. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22492. # Restore the compiler flags and libraries
  22493. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22494. # Basic thread creation functions
  22495. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22496. # Semaphores
  22497. # We can fake these with mutexes and condition variables if necessary
  22498. if test x$have_pthread_sem = xyes; then
  22499. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22500. else
  22501. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22502. fi
  22503. # Mutexes
  22504. # We can fake these with semaphores if necessary
  22505. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22506. # Condition variables
  22507. # We can fake these with semaphores and mutexes if necessary
  22508. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22509. # Thread local storage
  22510. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22511. have_threads=yes
  22512. fi
  22513. fi
  22514. }
  22515. CheckWINDOWS()
  22516. {
  22517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22518. printf %s "checking Windows compiler... " >&6; }
  22519. have_win32_gcc=no
  22520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22521. /* end confdefs.h. */
  22522. #include <windows.h>
  22523. int
  22524. main (void)
  22525. {
  22526. ;
  22527. return 0;
  22528. }
  22529. _ACEOF
  22530. if ac_fn_c_try_compile "$LINENO"
  22531. then :
  22532. have_win32_gcc=yes
  22533. fi
  22534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22536. printf "%s\n" "$have_win32_gcc" >&6; }
  22537. if test x$have_win32_gcc != xyes; then
  22538. as_fn_error $? "
  22539. *** Your compiler ($CC) does not produce Windows executables!
  22540. " "$LINENO" 5
  22541. fi
  22542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22543. printf %s "checking Windows CE... " >&6; }
  22544. have_wince=no
  22545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22546. /* end confdefs.h. */
  22547. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22548. #error This is not Windows CE
  22549. #endif
  22550. int
  22551. main (void)
  22552. {
  22553. ;
  22554. return 0;
  22555. }
  22556. _ACEOF
  22557. if ac_fn_c_try_compile "$LINENO"
  22558. then :
  22559. have_wince=yes
  22560. as_fn_error $? "
  22561. *** Sorry, Windows CE is no longer supported.
  22562. " "$LINENO" 5
  22563. fi
  22564. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22566. printf "%s\n" "$have_wince" >&6; }
  22567. # This fixes Windows stack alignment with newer GCC
  22568. CheckStackBoundary
  22569. # headers needed elsewhere
  22570. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22571. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22572. then :
  22573. have_tpcshrd_h=yes
  22574. fi
  22575. if test x$have_tpcshrd_h = xyes; then
  22576. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22577. fi
  22578. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22579. if test "x$ac_cv_header_roapi_h" = xyes
  22580. then :
  22581. have_roapi_h=yes
  22582. fi
  22583. if test x$have_roapi_h = xyes; then
  22584. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22585. fi
  22586. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22587. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22588. then :
  22589. have_shellscalingapi_h=yes
  22590. fi
  22591. if test x$shellscalingapi_h = xyes; then
  22592. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22593. fi
  22594. }
  22595. CheckDIRECTX()
  22596. {
  22597. # Check whether --enable-directx was given.
  22598. if test ${enable_directx+y}
  22599. then :
  22600. enableval=$enable_directx;
  22601. else $as_nop
  22602. enable_directx=yes
  22603. fi
  22604. if test x$enable_directx = xyes; then
  22605. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22606. if test "x$ac_cv_header_d3d9_h" = xyes
  22607. then :
  22608. have_d3d=yes
  22609. fi
  22610. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22611. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22612. then :
  22613. have_d3d11=yes
  22614. fi
  22615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22616. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22618. /* end confdefs.h. */
  22619. #include <winsdkver.h>
  22620. #include <sdkddkver.h>
  22621. #include <d3d12.h>
  22622. ID3D12Device1 *device;
  22623. #if WDK_NTDDI_VERSION <= 0x0A000008
  22624. asdf
  22625. #endif
  22626. int
  22627. main (void)
  22628. {
  22629. ;
  22630. return 0;
  22631. }
  22632. _ACEOF
  22633. if ac_fn_c_try_compile "$LINENO"
  22634. then :
  22635. have_d3d12=yes
  22636. else $as_nop
  22637. have_d3d12=no
  22638. fi
  22639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22641. printf "%s\n" "$have_d3d12" >&6; }
  22642. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22643. if test "x$ac_cv_header_ddraw_h" = xyes
  22644. then :
  22645. have_ddraw=yes
  22646. fi
  22647. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22648. if test "x$ac_cv_header_dsound_h" = xyes
  22649. then :
  22650. have_dsound=yes
  22651. fi
  22652. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22653. if test "x$ac_cv_header_dinput_h" = xyes
  22654. then :
  22655. have_dinput=yes
  22656. fi
  22657. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22658. if test "x$ac_cv_header_dxgi_h" = xyes
  22659. then :
  22660. have_dxgi=yes
  22661. fi
  22662. if test x$have_ddraw = xyes; then
  22663. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22664. fi
  22665. if test x$have_dinput = xyes; then
  22666. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22667. fi
  22668. if test x$have_dsound = xyes; then
  22669. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22670. fi
  22671. if test x$have_dxgi = xyes; then
  22672. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22673. fi
  22674. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22675. # FIXME: ...so force it off for now.
  22676. case "$host" in
  22677. *-*-cygwin*)
  22678. have_dinput=false
  22679. ;;
  22680. esac
  22681. fi
  22682. # Check whether --enable-xinput was given.
  22683. if test ${enable_xinput+y}
  22684. then :
  22685. enableval=$enable_xinput;
  22686. else $as_nop
  22687. enable_xinput=yes
  22688. fi
  22689. if test x$enable_xinput = xyes; then
  22690. have_xinput_gamepadex=no
  22691. have_xinput_stateex=no
  22692. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22693. if test "x$ac_cv_header_xinput_h" = xyes
  22694. then :
  22695. have_xinput=yes
  22696. fi
  22697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22698. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22700. /* end confdefs.h. */
  22701. #include <windows.h>
  22702. #include <xinput.h>
  22703. XINPUT_GAMEPAD_EX x1;
  22704. int
  22705. main (void)
  22706. {
  22707. ;
  22708. return 0;
  22709. }
  22710. _ACEOF
  22711. if ac_fn_c_try_compile "$LINENO"
  22712. then :
  22713. have_xinput_gamepadex=yes
  22714. fi
  22715. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22717. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22719. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22721. /* end confdefs.h. */
  22722. #include <windows.h>
  22723. #include <xinput.h>
  22724. XINPUT_STATE_EX s1;
  22725. int
  22726. main (void)
  22727. {
  22728. ;
  22729. return 0;
  22730. }
  22731. _ACEOF
  22732. if ac_fn_c_try_compile "$LINENO"
  22733. then :
  22734. have_xinput_stateex=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: $have_xinput_stateex" >&5
  22738. printf "%s\n" "$have_xinput_stateex" >&6; }
  22739. if test x$have_xinput = xyes; then
  22740. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22741. fi
  22742. if test x$have_xinput_gamepadex = xyes; then
  22743. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22744. fi
  22745. if test x$have_xinput_stateex = xyes; then
  22746. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22747. fi
  22748. fi
  22749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22750. printf %s "checking for windows.gaming.input.h... " >&6; }
  22751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22752. /* end confdefs.h. */
  22753. #define COBJMACROS
  22754. #include <windows.gaming.input.h>
  22755. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22756. int
  22757. main (void)
  22758. {
  22759. ;
  22760. return 0;
  22761. }
  22762. _ACEOF
  22763. if ac_fn_c_try_compile "$LINENO"
  22764. then :
  22765. have_wgi=yes
  22766. else $as_nop
  22767. have_wgi=no
  22768. fi
  22769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22771. printf "%s\n" "$have_wgi" >&6; }
  22772. if test x$have_wgi = xyes; then
  22773. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22774. fi
  22775. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22776. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22777. then :
  22778. have_wasapi=yes
  22779. fi
  22780. if test x$have_wasapi = xyes; then
  22781. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22782. fi
  22783. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22784. if test "x$ac_cv_header_audioclient_h" = xyes
  22785. then :
  22786. else $as_nop
  22787. have_wasapi=no
  22788. fi
  22789. if test x$have_wasapi = xyes; then
  22790. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22791. fi
  22792. # Check whether --enable-wasapi was given.
  22793. if test ${enable_wasapi+y}
  22794. then :
  22795. enableval=$enable_wasapi;
  22796. else $as_nop
  22797. enable_wasapi=yes
  22798. fi
  22799. }
  22800. CheckDLOPEN()
  22801. {
  22802. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22803. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22804. if test "x$ac_cv_header_dlfcn_h" = xyes
  22805. then :
  22806. have_dlfcn_h=yes
  22807. else $as_nop
  22808. have_dlfcn_h=no
  22809. fi
  22810. have_dlopen=no
  22811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22812. printf %s "checking for dlopen in -lc... " >&6; }
  22813. if test ${ac_cv_lib_c_dlopen+y}
  22814. then :
  22815. printf %s "(cached) " >&6
  22816. else $as_nop
  22817. ac_check_lib_save_LIBS=$LIBS
  22818. LIBS="-lc $LIBS"
  22819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22820. /* end confdefs.h. */
  22821. /* Override any GCC internal prototype to avoid an error.
  22822. Use char because int might match the return type of a GCC
  22823. builtin and then its argument prototype would still apply. */
  22824. char dlopen ();
  22825. int
  22826. main (void)
  22827. {
  22828. return dlopen ();
  22829. ;
  22830. return 0;
  22831. }
  22832. _ACEOF
  22833. if ac_fn_c_try_link "$LINENO"
  22834. then :
  22835. ac_cv_lib_c_dlopen=yes
  22836. else $as_nop
  22837. ac_cv_lib_c_dlopen=no
  22838. fi
  22839. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22840. conftest$ac_exeext conftest.$ac_ext
  22841. LIBS=$ac_check_lib_save_LIBS
  22842. fi
  22843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22844. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22845. if test "x$ac_cv_lib_c_dlopen" = xyes
  22846. then :
  22847. have_dlopen=yes
  22848. else $as_nop
  22849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22850. printf %s "checking for dlopen in -ldl... " >&6; }
  22851. if test ${ac_cv_lib_dl_dlopen+y}
  22852. then :
  22853. printf %s "(cached) " >&6
  22854. else $as_nop
  22855. ac_check_lib_save_LIBS=$LIBS
  22856. LIBS="-ldl $LIBS"
  22857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22858. /* end confdefs.h. */
  22859. /* Override any GCC internal prototype to avoid an error.
  22860. Use char because int might match the return type of a GCC
  22861. builtin and then its argument prototype would still apply. */
  22862. char dlopen ();
  22863. int
  22864. main (void)
  22865. {
  22866. return dlopen ();
  22867. ;
  22868. return 0;
  22869. }
  22870. _ACEOF
  22871. if ac_fn_c_try_link "$LINENO"
  22872. then :
  22873. ac_cv_lib_dl_dlopen=yes
  22874. else $as_nop
  22875. ac_cv_lib_dl_dlopen=no
  22876. fi
  22877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22878. conftest$ac_exeext conftest.$ac_ext
  22879. LIBS=$ac_check_lib_save_LIBS
  22880. fi
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22882. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22883. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22884. then :
  22885. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22886. fi
  22887. fi
  22888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22889. printf %s "checking for dlopen... " >&6; }
  22890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22891. printf "%s\n" "$have_dlopen" >&6; }
  22892. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22893. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22894. if test x$enable_loadso = xyes; then
  22895. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22897. have_loadso=yes
  22898. fi
  22899. fi
  22900. }
  22901. CheckO_CLOEXEC()
  22902. {
  22903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22904. printf %s "checking for O_CLOEXEC... " >&6; }
  22905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22906. /* end confdefs.h. */
  22907. #include <fcntl.h>
  22908. int flag = O_CLOEXEC;
  22909. int
  22910. main (void)
  22911. {
  22912. ;
  22913. return 0;
  22914. }
  22915. _ACEOF
  22916. if ac_fn_c_try_compile "$LINENO"
  22917. then :
  22918. have_o_cloexec=yes
  22919. else $as_nop
  22920. have_o_cloexec=no
  22921. fi
  22922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22924. printf "%s\n" "$have_o_cloexec" >&6; }
  22925. if test $have_o_cloexec = yes; then
  22926. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22927. fi
  22928. }
  22929. CheckUSBHID()
  22930. {
  22931. case "$host" in
  22932. *-*-*bsd*|*-*-dragonfly*)
  22933. if test x$enable_joystick = xyes; then
  22934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22935. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22936. if test ${ac_cv_lib_usbhid_hid_init+y}
  22937. then :
  22938. printf %s "(cached) " >&6
  22939. else $as_nop
  22940. ac_check_lib_save_LIBS=$LIBS
  22941. LIBS="-lusbhid $LIBS"
  22942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22943. /* end confdefs.h. */
  22944. /* Override any GCC internal prototype to avoid an error.
  22945. Use char because int might match the return type of a GCC
  22946. builtin and then its argument prototype would still apply. */
  22947. char hid_init ();
  22948. int
  22949. main (void)
  22950. {
  22951. return hid_init ();
  22952. ;
  22953. return 0;
  22954. }
  22955. _ACEOF
  22956. if ac_fn_c_try_link "$LINENO"
  22957. then :
  22958. ac_cv_lib_usbhid_hid_init=yes
  22959. else $as_nop
  22960. ac_cv_lib_usbhid_hid_init=no
  22961. fi
  22962. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22963. conftest$ac_exeext conftest.$ac_ext
  22964. LIBS=$ac_check_lib_save_LIBS
  22965. fi
  22966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22967. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22968. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22969. then :
  22970. have_libusbhid=yes
  22971. fi
  22972. if test x$have_libusbhid = xyes; then
  22973. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22974. if test "x$ac_cv_header_usbhid_h" = xyes
  22975. then :
  22976. USB_CFLAGS="-DHAVE_USBHID_H"
  22977. fi
  22978. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22979. if test "x$ac_cv_header_libusbhid_h" = xyes
  22980. then :
  22981. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22982. fi
  22983. USB_LIBS="$USB_LIBS -lusbhid"
  22984. else
  22985. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22986. if test "x$ac_cv_header_usb_h" = xyes
  22987. then :
  22988. USB_CFLAGS="-DHAVE_USB_H"
  22989. fi
  22990. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22991. if test "x$ac_cv_header_libusb_h" = xyes
  22992. then :
  22993. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22994. fi
  22995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22996. printf %s "checking for hid_init in -lusb... " >&6; }
  22997. if test ${ac_cv_lib_usb_hid_init+y}
  22998. then :
  22999. printf %s "(cached) " >&6
  23000. else $as_nop
  23001. ac_check_lib_save_LIBS=$LIBS
  23002. LIBS="-lusb $LIBS"
  23003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23004. /* end confdefs.h. */
  23005. /* Override any GCC internal prototype to avoid an error.
  23006. Use char because int might match the return type of a GCC
  23007. builtin and then its argument prototype would still apply. */
  23008. char hid_init ();
  23009. int
  23010. main (void)
  23011. {
  23012. return hid_init ();
  23013. ;
  23014. return 0;
  23015. }
  23016. _ACEOF
  23017. if ac_fn_c_try_link "$LINENO"
  23018. then :
  23019. ac_cv_lib_usb_hid_init=yes
  23020. else $as_nop
  23021. ac_cv_lib_usb_hid_init=no
  23022. fi
  23023. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23024. conftest$ac_exeext conftest.$ac_ext
  23025. LIBS=$ac_check_lib_save_LIBS
  23026. fi
  23027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23028. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23029. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23030. then :
  23031. USB_LIBS="$USB_LIBS -lusb"
  23032. fi
  23033. fi
  23034. save_CFLAGS="$CFLAGS"
  23035. CFLAGS="$CFLAGS $USB_CFLAGS"
  23036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23037. printf %s "checking for usbhid... " >&6; }
  23038. have_usbhid=no
  23039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23040. /* end confdefs.h. */
  23041. #include <sys/types.h>
  23042. #if defined(HAVE_USB_H)
  23043. #include <usb.h>
  23044. #endif
  23045. #ifdef __DragonFly__
  23046. # include <bus/u4b/usb.h>
  23047. # include <bus/u4b/usbhid.h>
  23048. #else
  23049. # include <dev/usb/usb.h>
  23050. # include <dev/usb/usbhid.h>
  23051. #endif
  23052. #if defined(HAVE_USBHID_H)
  23053. #include <usbhid.h>
  23054. #elif defined(HAVE_LIBUSB_H)
  23055. #include <libusb.h>
  23056. #elif defined(HAVE_LIBUSBHID_H)
  23057. #include <libusbhid.h>
  23058. #endif
  23059. int
  23060. main (void)
  23061. {
  23062. struct report_desc *repdesc;
  23063. struct usb_ctl_report *repbuf;
  23064. hid_kind_t hidkind;
  23065. ;
  23066. return 0;
  23067. }
  23068. _ACEOF
  23069. if ac_fn_c_try_compile "$LINENO"
  23070. then :
  23071. have_usbhid=yes
  23072. fi
  23073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23075. printf "%s\n" "$have_usbhid" >&6; }
  23076. if test x$have_usbhid = xyes; then
  23077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23078. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23079. have_usbhid_ucr_data=no
  23080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23081. /* end confdefs.h. */
  23082. #include <sys/types.h>
  23083. #if defined(HAVE_USB_H)
  23084. #include <usb.h>
  23085. #endif
  23086. #ifdef __DragonFly__
  23087. # include <bus/u4b/usb.h>
  23088. # include <bus/u4b/usbhid.h>
  23089. #else
  23090. # include <dev/usb/usb.h>
  23091. # include <dev/usb/usbhid.h>
  23092. #endif
  23093. #if defined(HAVE_USBHID_H)
  23094. #include <usbhid.h>
  23095. #elif defined(HAVE_LIBUSB_H)
  23096. #include <libusb.h>
  23097. #elif defined(HAVE_LIBUSBHID_H)
  23098. #include <libusbhid.h>
  23099. #endif
  23100. int
  23101. main (void)
  23102. {
  23103. struct usb_ctl_report buf;
  23104. if (buf.ucr_data) { }
  23105. ;
  23106. return 0;
  23107. }
  23108. _ACEOF
  23109. if ac_fn_c_try_compile "$LINENO"
  23110. then :
  23111. have_usbhid_ucr_data=yes
  23112. fi
  23113. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23114. if test x$have_usbhid_ucr_data = xyes; then
  23115. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23116. fi
  23117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23118. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23120. printf %s "checking for new usbhid API... " >&6; }
  23121. have_usbhid_new=no
  23122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23123. /* end confdefs.h. */
  23124. #include <sys/types.h>
  23125. #if defined(HAVE_USB_H)
  23126. #include <usb.h>
  23127. #endif
  23128. #ifdef __DragonFly__
  23129. #include <bus/u4b/usb.h>
  23130. #include <bus/u4b/usbhid.h>
  23131. #else
  23132. #include <dev/usb/usb.h>
  23133. #include <dev/usb/usbhid.h>
  23134. #endif
  23135. #if defined(HAVE_USBHID_H)
  23136. #include <usbhid.h>
  23137. #elif defined(HAVE_LIBUSB_H)
  23138. #include <libusb.h>
  23139. #elif defined(HAVE_LIBUSBHID_H)
  23140. #include <libusbhid.h>
  23141. #endif
  23142. int
  23143. main (void)
  23144. {
  23145. report_desc_t d;
  23146. hid_start_parse(d, 1, 1);
  23147. ;
  23148. return 0;
  23149. }
  23150. _ACEOF
  23151. if ac_fn_c_try_compile "$LINENO"
  23152. then :
  23153. have_usbhid_new=yes
  23154. fi
  23155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23156. if test x$have_usbhid_new = xyes; then
  23157. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23158. fi
  23159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23160. printf "%s\n" "$have_usbhid_new" >&6; }
  23161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23162. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23163. have_machine_joystick=no
  23164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23165. /* end confdefs.h. */
  23166. #include <machine/joystick.h>
  23167. int
  23168. main (void)
  23169. {
  23170. struct joystick t;
  23171. ;
  23172. return 0;
  23173. }
  23174. _ACEOF
  23175. if ac_fn_c_try_compile "$LINENO"
  23176. then :
  23177. have_machine_joystick=yes
  23178. fi
  23179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23180. if test x$have_machine_joystick = xyes; then
  23181. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23182. fi
  23183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23184. printf "%s\n" "$have_machine_joystick" >&6; }
  23185. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23186. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23187. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23189. have_joystick=yes
  23190. fi
  23191. CFLAGS="$save_CFLAGS"
  23192. fi
  23193. ;;
  23194. esac
  23195. }
  23196. CheckHIDAPI()
  23197. {
  23198. # Check whether --enable-hidapi-joystick was given.
  23199. if test ${enable_hidapi_joystick+y}
  23200. then :
  23201. enableval=$enable_hidapi_joystick;
  23202. else $as_nop
  23203. enable_hidapi_joystick=yes
  23204. fi
  23205. # Check whether --enable-hidapi-libusb was given.
  23206. if test ${enable_hidapi_libusb+y}
  23207. then :
  23208. enableval=$enable_hidapi_libusb;
  23209. else $as_nop
  23210. enable_hidapi_libusb=maybe
  23211. fi
  23212. if test x$enable_hidapi = xyes; then
  23213. case "$host" in
  23214. # libusb does not support iOS
  23215. *-ios-* )
  23216. enable_hidapi_libusb=no
  23217. ;;
  23218. # On the other hand, *BSD specifically uses libusb only
  23219. *-*-*bsd* )
  23220. enable_hidapi_libusb=yes
  23221. require_hidapi_libusb=yes
  23222. ;;
  23223. esac
  23224. hidapi_support=yes
  23225. if test x$enable_hidapi_libusb = xyes; then
  23226. pkg_failed=no
  23227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23228. printf %s "checking for libusb-1.0... " >&6; }
  23229. if test -n "$LIBUSB_CFLAGS"; then
  23230. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23231. elif test -n "$PKG_CONFIG"; then
  23232. if test -n "$PKG_CONFIG" && \
  23233. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23234. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23235. ac_status=$?
  23236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23237. test $ac_status = 0; }; then
  23238. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23239. test "x$?" != "x0" && pkg_failed=yes
  23240. else
  23241. pkg_failed=yes
  23242. fi
  23243. else
  23244. pkg_failed=untried
  23245. fi
  23246. if test -n "$LIBUSB_LIBS"; then
  23247. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23248. elif test -n "$PKG_CONFIG"; then
  23249. if test -n "$PKG_CONFIG" && \
  23250. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23251. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23252. ac_status=$?
  23253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23254. test $ac_status = 0; }; then
  23255. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23256. test "x$?" != "x0" && pkg_failed=yes
  23257. else
  23258. pkg_failed=yes
  23259. fi
  23260. else
  23261. pkg_failed=untried
  23262. fi
  23263. if test $pkg_failed = yes; then
  23264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23265. printf "%s\n" "no" >&6; }
  23266. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23267. _pkg_short_errors_supported=yes
  23268. else
  23269. _pkg_short_errors_supported=no
  23270. fi
  23271. if test $_pkg_short_errors_supported = yes; then
  23272. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23273. else
  23274. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23275. fi
  23276. # Put the nasty error message in config.log where it belongs
  23277. echo "$LIBUSB_PKG_ERRORS" >&5
  23278. have_libusb=no
  23279. elif test $pkg_failed = untried; then
  23280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23281. printf "%s\n" "no" >&6; }
  23282. have_libusb=no
  23283. else
  23284. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23285. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23287. printf "%s\n" "yes" >&6; }
  23288. have_libusb=yes
  23289. fi
  23290. save_CPPFLAGS="$CPPFLAGS"
  23291. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23292. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23293. if test "x$ac_cv_header_libusb_h" = xyes
  23294. then :
  23295. have_libusb_h=yes
  23296. else $as_nop
  23297. have_libusb_h=no
  23298. fi
  23299. CPPFLAGS="$save_CPPFLAGS"
  23300. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23301. hidapi_support=no
  23302. fi
  23303. fi
  23304. if test x$hidapi_support = xyes; then
  23305. if test x$have_libusb_h = xyes; then
  23306. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23307. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23308. if test x$require_hidapi_libusb = xyes; then
  23309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23310. else
  23311. if test x$have_loadso != xyes; then
  23312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23313. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23314. fi
  23315. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23316. libusb_lib=""
  23317. case "$host" in
  23318. *-*-darwin* )
  23319. libusb_lib="libusb-1.0.0.dylib"
  23320. ;;
  23321. *-*-cygwin* | *-*-mingw* )
  23322. libusb_lib="libusb-1.0.dll"
  23323. ;;
  23324. esac
  23325. if test x$libusb_lib = x; then
  23326. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23327. fi
  23328. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23329. fi
  23330. fi
  23331. fi
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23333. printf %s "checking for hidapi joystick support... " >&6; }
  23334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23335. printf "%s\n" "$hidapi_support" >&6; }
  23336. fi
  23337. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23338. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23339. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23340. fi
  23341. }
  23342. CheckClockGettime()
  23343. {
  23344. # Check whether --enable-clock_gettime was given.
  23345. if test ${enable_clock_gettime+y}
  23346. then :
  23347. enableval=$enable_clock_gettime;
  23348. else $as_nop
  23349. enable_clock_gettime=yes
  23350. fi
  23351. if test x$enable_clock_gettime = xyes; then
  23352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23353. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23354. if test ${ac_cv_lib_rt_clock_gettime+y}
  23355. then :
  23356. printf %s "(cached) " >&6
  23357. else $as_nop
  23358. ac_check_lib_save_LIBS=$LIBS
  23359. LIBS="-lrt $LIBS"
  23360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23361. /* end confdefs.h. */
  23362. /* Override any GCC internal prototype to avoid an error.
  23363. Use char because int might match the return type of a GCC
  23364. builtin and then its argument prototype would still apply. */
  23365. char clock_gettime ();
  23366. int
  23367. main (void)
  23368. {
  23369. return clock_gettime ();
  23370. ;
  23371. return 0;
  23372. }
  23373. _ACEOF
  23374. if ac_fn_c_try_link "$LINENO"
  23375. then :
  23376. ac_cv_lib_rt_clock_gettime=yes
  23377. else $as_nop
  23378. ac_cv_lib_rt_clock_gettime=no
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23381. conftest$ac_exeext conftest.$ac_ext
  23382. LIBS=$ac_check_lib_save_LIBS
  23383. fi
  23384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23385. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23386. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23387. then :
  23388. have_clock_gettime=yes
  23389. fi
  23390. if test x$have_clock_gettime = xyes; then
  23391. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23392. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23393. else
  23394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23395. printf %s "checking for clock_gettime in -lc... " >&6; }
  23396. if test ${ac_cv_lib_c_clock_gettime+y}
  23397. then :
  23398. printf %s "(cached) " >&6
  23399. else $as_nop
  23400. ac_check_lib_save_LIBS=$LIBS
  23401. LIBS="-lc $LIBS"
  23402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23403. /* end confdefs.h. */
  23404. /* Override any GCC internal prototype to avoid an error.
  23405. Use char because int might match the return type of a GCC
  23406. builtin and then its argument prototype would still apply. */
  23407. char clock_gettime ();
  23408. int
  23409. main (void)
  23410. {
  23411. return clock_gettime ();
  23412. ;
  23413. return 0;
  23414. }
  23415. _ACEOF
  23416. if ac_fn_c_try_link "$LINENO"
  23417. then :
  23418. ac_cv_lib_c_clock_gettime=yes
  23419. else $as_nop
  23420. ac_cv_lib_c_clock_gettime=no
  23421. fi
  23422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23423. conftest$ac_exeext conftest.$ac_ext
  23424. LIBS=$ac_check_lib_save_LIBS
  23425. fi
  23426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23427. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23428. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23429. then :
  23430. have_clock_gettime=yes
  23431. fi
  23432. if test x$have_clock_gettime = xyes; then
  23433. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23435. fi
  23436. fi
  23437. fi
  23438. }
  23439. CheckLinuxVersion()
  23440. {
  23441. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23442. if test "x$ac_cv_header_linux_version_h" = xyes
  23443. then :
  23444. have_linux_version_h=yes
  23445. fi
  23446. if test x$have_linux_version_h = xyes; then
  23447. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23448. fi
  23449. }
  23450. CheckRPATH()
  23451. {
  23452. # Check whether --enable-rpath was given.
  23453. if test ${enable_rpath+y}
  23454. then :
  23455. enableval=$enable_rpath;
  23456. else $as_nop
  23457. enable_rpath=yes
  23458. fi
  23459. }
  23460. CheckEventSignals()
  23461. {
  23462. # Check whether --enable-backgrounding-signal was given.
  23463. if test ${enable_backgrounding_signal+y}
  23464. then :
  23465. enableval=$enable_backgrounding_signal;
  23466. else $as_nop
  23467. enable_backgrounding_signal=no
  23468. fi
  23469. if test x$enable_backgrounding_signal != xno; then
  23470. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23471. fi
  23472. # Check whether --enable-foregrounding-signal was given.
  23473. if test ${enable_foregrounding_signal+y}
  23474. then :
  23475. enableval=$enable_foregrounding_signal;
  23476. else $as_nop
  23477. enable_foregrounding_signal=no
  23478. fi
  23479. if test x$enable_foregrounding_signal != xno; then
  23480. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23481. fi
  23482. }
  23483. CheckVirtualJoystick()
  23484. {
  23485. # Check whether --enable-joystick-virtual was given.
  23486. if test ${enable_joystick_virtual+y}
  23487. then :
  23488. enableval=$enable_joystick_virtual;
  23489. else $as_nop
  23490. enable_joystick_virtual=yes
  23491. fi
  23492. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23493. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23494. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23495. have_joystick_virtual=yes
  23496. fi
  23497. }
  23498. CheckWarnAll
  23499. CheckNoStrictAliasing
  23500. CheckEventSignals
  23501. have_locale=no
  23502. case "$host" in
  23503. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23504. case "$host" in
  23505. *-*-android*)
  23506. # Android
  23507. ARCH=android
  23508. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23509. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23510. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23511. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23513. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23514. if test x$enable_video = xyes; then
  23515. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23516. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23517. SUMMARY_video="${SUMMARY_video} android"
  23518. have_video=yes
  23519. fi
  23520. ;;
  23521. *-*-linux*) ARCH=linux ;;
  23522. *-*-uclinux*) ARCH=linux ;;
  23523. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23524. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23525. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23526. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23527. *-*-bsdi*) ARCH=bsdi ;;
  23528. *-*-freebsd*) ARCH=freebsd ;;
  23529. *-*-dragonfly*) ARCH=freebsd ;;
  23530. *-*-netbsd*) ARCH=netbsd ;;
  23531. *-*-openbsd*) ARCH=openbsd ;;
  23532. *-*-sysv5*) ARCH=sysv5 ;;
  23533. *-*-solaris*) ARCH=solaris ;;
  23534. *-*-hpux*) ARCH=hpux ;;
  23535. *-*-aix*) ARCH=aix ;;
  23536. *-*-minix*) ARCH=minix ;;
  23537. esac
  23538. CheckVisibilityHidden
  23539. CheckWerror
  23540. CheckDeclarationAfterStatement
  23541. CheckDummyVideo
  23542. CheckOffscreenVideo
  23543. CheckDiskAudio
  23544. CheckDummyAudio
  23545. CheckDLOPEN
  23546. CheckARM
  23547. CheckNEON
  23548. CheckO_CLOEXEC
  23549. CheckOSS
  23550. CheckALSA
  23551. CheckPipewire
  23552. CheckPulseAudio
  23553. CheckJACK
  23554. CheckSNDIO
  23555. CheckLibSampleRate
  23556. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23557. CheckRPI
  23558. CheckX11
  23559. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23560. CheckEGL
  23561. CheckKMSDRM
  23562. CheckGLX
  23563. CheckOpenGL
  23564. CheckOpenGLES
  23565. CheckVulkan
  23566. CheckWayland
  23567. CheckInputEvents
  23568. CheckLibUDev
  23569. CheckDBus
  23570. CheckIME
  23571. CheckInotify
  23572. CheckIBus
  23573. CheckFcitx
  23574. case $ARCH in
  23575. linux)
  23576. CheckInputKD
  23577. ;;
  23578. freebsd)
  23579. CheckInputKBIO
  23580. ;;
  23581. openbsd|netbsd)
  23582. CheckInputWSCONS
  23583. ;;
  23584. esac
  23585. CheckUSBHID
  23586. CheckHIDAPI
  23587. CheckPTHREAD
  23588. CheckClockGettime
  23589. CheckLinuxVersion
  23590. CheckRPATH
  23591. CheckVivanteVideo
  23592. # Set up files for the misc library
  23593. if test x$enable_misc = xyes; then
  23594. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23595. have_misc=yes
  23596. fi
  23597. # Set up files for the locale library
  23598. if test x$enable_locale = xyes; then
  23599. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23600. have_locale=yes
  23601. fi
  23602. # Set up files for the audio library
  23603. if test x$enable_audio = xyes; then
  23604. case $ARCH in
  23605. netbsd) # Don't use this on OpenBSD, it's busted.
  23606. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23607. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23608. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23609. have_audio=yes
  23610. ;;
  23611. android)
  23612. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23613. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23614. SUMMARY_audio="${SUMMARY_audio} android"
  23615. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23616. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23617. SUMMARY_audio="${SUMMARY_audio} openslES"
  23618. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23619. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23620. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23621. have_audio=yes
  23622. ;;
  23623. esac
  23624. fi
  23625. # Set up files for the joystick library
  23626. if test x$enable_joystick = xyes; then
  23627. case $ARCH in
  23628. linux)
  23629. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23630. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23631. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23632. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23633. have_joystick=yes
  23634. fi
  23635. ;;
  23636. freebsd)
  23637. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23638. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23639. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23640. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23641. have_joystick=yes
  23642. fi
  23643. ;;
  23644. android)
  23645. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23646. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23647. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23648. have_joystick=yes
  23649. ;;
  23650. esac
  23651. fi
  23652. # Set up files for the haptic library
  23653. if test x$enable_haptic = xyes; then
  23654. case $ARCH in
  23655. linux|freebsd)
  23656. if test x$use_input_events = xyes; then
  23657. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23658. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23659. have_haptic=yes
  23660. fi
  23661. ;;
  23662. android)
  23663. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23664. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23665. have_haptic=yes
  23666. ;;
  23667. esac
  23668. fi
  23669. # Set up files for the sensor library
  23670. if test x$enable_sensor = xyes; then
  23671. case $ARCH in
  23672. android)
  23673. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23674. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23675. have_sensor=yes
  23676. ;;
  23677. esac
  23678. fi
  23679. # Set up files for the power library
  23680. if test x$enable_power = xyes; then
  23681. case $ARCH in
  23682. linux)
  23683. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23684. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23685. have_power=yes
  23686. ;;
  23687. android)
  23688. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23689. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23690. have_power=yes
  23691. ;;
  23692. esac
  23693. fi
  23694. # Set up files for the filesystem library
  23695. if test x$enable_filesystem = xyes; then
  23696. case $ARCH in
  23697. android)
  23698. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23699. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23700. have_filesystem=yes
  23701. ;;
  23702. *)
  23703. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23704. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23705. have_filesystem=yes
  23706. ;;
  23707. esac
  23708. fi
  23709. # Set up files for the timer library
  23710. if test x$enable_timers = xyes; then
  23711. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23712. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23713. have_timers=yes
  23714. fi
  23715. # Set up files for udev hotplugging support
  23716. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23717. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23718. fi
  23719. # Set up files for evdev input
  23720. if test x$use_input_events = xyes; then
  23721. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23722. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23723. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23724. fi
  23725. # Set up files for wscons input
  23726. if test x$use_input_wscons = xyes; then
  23727. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23728. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23729. fi
  23730. # Set up other core UNIX files
  23731. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23732. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23733. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23734. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23735. ;;
  23736. *-*-cygwin* | *-*-mingw*)
  23737. ARCH=win32
  23738. if test "$build" != "$host"; then # cross-compiling
  23739. # Default cross-compile location
  23740. ac_default_prefix=/usr/local/cross-tools/$host
  23741. else
  23742. # Look for the location of the tools and install there
  23743. if test "$BUILD_PREFIX" != ""; then
  23744. ac_default_prefix=$BUILD_PREFIX
  23745. fi
  23746. fi
  23747. if test x$enable_loadso = xyes; then
  23748. have_loadso=yes
  23749. fi
  23750. CheckGDwarf4
  23751. CheckWerror
  23752. CheckDeclarationAfterStatement
  23753. CheckDummyVideo
  23754. CheckOffscreenVideo
  23755. CheckDiskAudio
  23756. CheckDummyAudio
  23757. CheckWINDOWS
  23758. CheckWINDOWSGL
  23759. CheckWINDOWSGLES
  23760. CheckVulkan
  23761. CheckDIRECTX
  23762. CheckHIDAPI
  23763. # Set up the core platform files
  23764. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23765. # Set up files for the misc library
  23766. if test x$enable_misc = xyes; then
  23767. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23768. have_misc=yes
  23769. fi
  23770. # Use the Windows locale APIs.
  23771. if test x$enable_locale = xyes; then
  23772. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23773. have_locale=yes
  23774. fi
  23775. # Set up files for the video library
  23776. if test x$enable_video = xyes; then
  23777. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23778. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23779. have_video=yes
  23780. # Check whether --enable-render-d3d was given.
  23781. if test ${enable_render_d3d+y}
  23782. then :
  23783. enableval=$enable_render_d3d;
  23784. else $as_nop
  23785. enable_render_d3d=yes
  23786. fi
  23787. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23788. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23789. SUMMARY_video="${SUMMARY_video} d3d9"
  23790. fi
  23791. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23792. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23793. SUMMARY_video="${SUMMARY_video} d3d11"
  23794. fi
  23795. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23796. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23797. SUMMARY_video="${SUMMARY_video} d3d12"
  23798. fi
  23799. fi
  23800. # Set up files for the audio library
  23801. if test x$enable_audio = xyes; then
  23802. if test x$have_dsound = xyes; then
  23803. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23804. SUMMARY_audio="${SUMMARY_audio} directsound"
  23805. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23806. fi
  23807. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23808. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23809. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23810. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23811. fi
  23812. have_audio=yes
  23813. fi
  23814. # Set up files for the joystick library
  23815. if test x$enable_joystick = xyes; then
  23816. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23817. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23818. if test x$have_xinput = xyes; then
  23819. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23820. fi
  23821. if test x$have_wgi = xyes; then
  23822. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23823. fi
  23824. if test x$have_dinput = xyes; then
  23825. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23827. fi
  23828. fi
  23829. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23830. have_joystick=yes
  23831. fi
  23832. if test x$enable_haptic = xyes; then
  23833. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23834. if test x$have_xinput = xyes; then
  23835. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23836. fi
  23837. if test x$have_dinput = xyes; then
  23838. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23839. fi
  23840. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23841. have_haptic=yes
  23842. fi
  23843. fi
  23844. # Set up files for the sensor library
  23845. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23846. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23847. then :
  23848. have_winsensors=yes
  23849. else $as_nop
  23850. have_winsensors=no
  23851. fi
  23852. if test x$have_winsensors = xyes; then
  23853. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23854. fi
  23855. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23856. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23857. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23858. have_sensor=yes
  23859. fi
  23860. # Set up files for the power library
  23861. if test x$enable_power = xyes; then
  23862. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23863. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23864. have_power=yes
  23865. fi
  23866. # Set up files for the filesystem library
  23867. if test x$enable_filesystem = xyes; then
  23868. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23869. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23870. have_filesystem=yes
  23871. fi
  23872. # Set up files for the thread library
  23873. if test x$enable_threads = xyes; then
  23874. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23875. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23876. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23877. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23878. have_threads=yes
  23879. fi
  23880. # Set up files for the timer library
  23881. if test x$enable_timers = xyes; then
  23882. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23883. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23884. have_timers=yes
  23885. fi
  23886. # Set up files for the shared object loading library
  23887. if test x$enable_loadso = xyes; then
  23888. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23889. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23890. fi
  23891. # Set up the system libraries we need
  23892. if test -f /lib/w32api/libuuid.a; then
  23893. LIBUUID=/lib/w32api/libuuid.a
  23894. else
  23895. LIBUUID=-luuid
  23896. fi
  23897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23898. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23899. # The Windows platform requires special setup
  23900. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23901. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23902. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23903. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23904. # Check to see if this is a mingw or cygwin build
  23905. have_mingw32=
  23906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23907. printf %s "checking for main in -lmingw32... " >&6; }
  23908. if test ${ac_cv_lib_mingw32_main+y}
  23909. then :
  23910. printf %s "(cached) " >&6
  23911. else $as_nop
  23912. ac_check_lib_save_LIBS=$LIBS
  23913. LIBS="-lmingw32 $LIBS"
  23914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23915. /* end confdefs.h. */
  23916. int
  23917. main (void)
  23918. {
  23919. return main ();
  23920. ;
  23921. return 0;
  23922. }
  23923. _ACEOF
  23924. if ac_fn_c_try_link "$LINENO"
  23925. then :
  23926. ac_cv_lib_mingw32_main=yes
  23927. else $as_nop
  23928. ac_cv_lib_mingw32_main=no
  23929. fi
  23930. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23931. conftest$ac_exeext conftest.$ac_ext
  23932. LIBS=$ac_check_lib_save_LIBS
  23933. fi
  23934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23935. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23936. if test "x$ac_cv_lib_mingw32_main" = xyes
  23937. then :
  23938. have_mingw32=yes
  23939. fi
  23940. if test x$have_mingw32 = xyes; then
  23941. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23942. else
  23943. SDL_LIBS="-lcygwin $SDL_LIBS"
  23944. fi
  23945. ;;
  23946. *-*-beos*)
  23947. as_fn_error $? "
  23948. *** BeOS support has been removed as of SDL 2.0.2.
  23949. " "$LINENO" 5
  23950. ;;
  23951. *-*-haiku*)
  23952. ARCH=haiku
  23953. ac_default_prefix=/boot/system
  23954. CheckDummyVideo
  23955. CheckOffscreenVideo
  23956. CheckDiskAudio
  23957. CheckDummyAudio
  23958. CheckDLOPEN
  23959. CheckO_CLOEXEC
  23960. CheckHaikuVideo
  23961. CheckHaikuGL
  23962. CheckPTHREAD
  23963. # Set up files for the audio library
  23964. if test x$enable_audio = xyes; then
  23965. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23966. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23967. SUMMARY_audio="${SUMMARY_audio} haiku"
  23968. have_audio=yes
  23969. fi
  23970. # Set up files for the joystick library
  23971. if test x$enable_joystick = xyes; then
  23972. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23973. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23974. have_joystick=yes
  23975. fi
  23976. # Set up files for the timer library
  23977. if test x$enable_timers = xyes; then
  23978. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23979. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23980. have_timers=yes
  23981. fi
  23982. # Set up files for the system power library
  23983. if test x$enable_power = xyes; then
  23984. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23985. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23986. have_power=yes
  23987. fi
  23988. # Set up files for the system filesystem library
  23989. if test x$enable_filesystem = xyes; then
  23990. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23991. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23992. have_filesystem=yes
  23993. fi
  23994. # Set up files for the misc library
  23995. if test x$enable_misc = xyes; then
  23996. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  23997. have_misc=yes
  23998. fi
  23999. # Set up files for the locale library
  24000. if test x$enable_locale = xyes; then
  24001. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24002. have_locale=yes
  24003. fi
  24004. # The Haiku platform requires special setup.
  24005. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24006. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24007. ;;
  24008. *-ios-*)
  24009. ARCH=ios
  24010. CheckVisibilityHidden
  24011. CheckWerror
  24012. CheckNoErrorDeprecatedDeclarationsWerror
  24013. CheckDeclarationAfterStatement
  24014. CheckDummyVideo
  24015. CheckOffscreenVideo
  24016. CheckDiskAudio
  24017. CheckDummyAudio
  24018. CheckDLOPEN
  24019. CheckO_CLOEXEC
  24020. CheckMETAL
  24021. CheckVulkan
  24022. CheckPTHREAD
  24023. # Set up files for the misc library
  24024. if test x$enable_misc = xyes; then
  24025. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24026. have_misc=yes
  24027. fi
  24028. # Set up files for the locale library
  24029. if test x$enable_locale = xyes; then
  24030. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24031. have_locale=yes
  24032. fi
  24033. # Set up files for the audio library
  24034. if test x$enable_audio = xyes; then
  24035. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24036. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24037. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24038. have_audio=yes
  24039. fi
  24040. # Set up files for the joystick library
  24041. if test x$enable_joystick = xyes; then
  24042. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24043. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24044. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24045. have_joystick=yes
  24046. else
  24047. # Need this code for accelerometer as joystick support
  24048. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24049. fi
  24050. # Set up files for the haptic library
  24051. #if test x$enable_haptic = xyes; then
  24052. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24053. # have_haptic=yes
  24054. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24055. #fi
  24056. # Set up files for the sensor library
  24057. if test x$enable_sensor = xyes; then
  24058. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24059. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24060. have_sensor=yes
  24061. fi
  24062. # Set up files for the power library
  24063. if test x$enable_power = xyes; then
  24064. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24065. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24066. have_power=yes
  24067. fi
  24068. # Set up files for the filesystem library
  24069. if test x$enable_filesystem = xyes; then
  24070. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24071. have_filesystem=yes
  24072. fi
  24073. # Set up additional files for the file library
  24074. if test x$enable_file = xyes; then
  24075. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24076. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24077. fi
  24078. # Set up files for the timer library
  24079. if test x$enable_timers = xyes; then
  24080. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24081. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24082. have_timers=yes
  24083. fi
  24084. # Set up other core UNIX files
  24085. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24086. # The iOS platform requires special setup.
  24087. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24088. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24089. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24090. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24091. SUMMARY_video="${SUMMARY_video} uikit"
  24092. have_video=yes
  24093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24094. if test x$enable_system_iconv = xyes; then
  24095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24096. fi
  24097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24104. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24108. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24110. fi
  24111. ;;
  24112. *-*-darwin* )
  24113. # This could be either full "Mac OS X", or plain "Darwin" which is
  24114. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24115. # Next line is broken, and a few files below require Mac OS X (full)
  24116. ARCH=macosx
  24117. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24118. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24119. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24120. CheckObjectiveCARC
  24121. CheckVisibilityHidden
  24122. CheckWerror
  24123. CheckNoErrorDeprecatedDeclarationsWerror
  24124. CheckDeclarationAfterStatement
  24125. CheckDummyVideo
  24126. CheckOffscreenVideo
  24127. CheckDiskAudio
  24128. CheckDummyAudio
  24129. CheckDLOPEN
  24130. CheckO_CLOEXEC
  24131. CheckCOCOA
  24132. CheckMETAL
  24133. CheckX11
  24134. CheckMacGL
  24135. CheckMacGLES
  24136. CheckGLX
  24137. CheckOpenGL
  24138. CheckVulkan
  24139. CheckPTHREAD
  24140. CheckHIDAPI
  24141. # Set up files for the misc library
  24142. if test x$enable_misc = xyes; then
  24143. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24144. have_misc=yes
  24145. fi
  24146. # Set up files for the locale library
  24147. if test x$enable_locale = xyes; then
  24148. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24149. have_locale=yes
  24150. fi
  24151. # Set up files for the audio library
  24152. if test x$enable_audio = xyes; then
  24153. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24154. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24156. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24157. have_audio=yes
  24158. fi
  24159. # Set up files for the joystick library
  24160. if test x$enable_joystick = xyes; then
  24161. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24162. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24163. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24164. CheckJoystickMFI
  24165. have_joystick=yes
  24166. fi
  24167. # Set up files for the haptic library
  24168. if test x$enable_haptic = xyes; then
  24169. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24170. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24172. have_haptic=yes
  24173. fi
  24174. # Set up files for the power library
  24175. if test x$enable_power = xyes; then
  24176. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24177. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24178. have_power=yes
  24179. fi
  24180. # Set up files for the filesystem library
  24181. if test x$enable_filesystem = xyes; then
  24182. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24183. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24184. have_filesystem=yes
  24185. fi
  24186. # Set up files for the timer library
  24187. if test x$enable_timers = xyes; then
  24188. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24189. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24190. have_timers=yes
  24191. fi
  24192. # Set up additional files for the file library
  24193. if test x$enable_file = xyes; then
  24194. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24195. fi
  24196. # Set up other core UNIX files
  24197. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24198. # The Mac OS X platform requires special setup.
  24199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24204. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24206. fi
  24207. ;;
  24208. *-*-emscripten* )
  24209. if test x$enable_video = xyes; then
  24210. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24211. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24212. have_video=yes
  24213. SUMMARY_video="${SUMMARY_video} emscripten"
  24214. fi
  24215. if test x$enable_audio = xyes; then
  24216. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24217. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24218. have_audio=yes
  24219. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24220. fi
  24221. CheckVisibilityHidden
  24222. CheckWerror
  24223. CheckDeclarationAfterStatement
  24224. CheckDummyVideo
  24225. CheckOffscreenVideo
  24226. CheckDiskAudio
  24227. CheckDummyAudio
  24228. CheckPTHREAD
  24229. CheckDLOPEN
  24230. CheckClockGettime
  24231. CheckEmscriptenGLES
  24232. # Set up files for the misc library
  24233. if test x$enable_misc = xyes; then
  24234. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24235. have_misc=yes
  24236. fi
  24237. # Set up files for the power library
  24238. if test x$enable_power = xyes; then
  24239. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24240. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24241. have_power=yes
  24242. fi
  24243. # Set up files for the joystick library
  24244. if test x$enable_joystick = xyes; then
  24245. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24246. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24247. have_joystick=yes
  24248. fi
  24249. # Set up files for the filesystem library
  24250. if test x$enable_filesystem = xyes; then
  24251. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24252. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24253. have_filesystem=yes
  24254. fi
  24255. # Set up files for the timer library
  24256. if test x$enable_timers = xyes; then
  24257. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24258. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24259. have_timers=yes
  24260. fi
  24261. # Set up files for the locale library
  24262. if test x$enable_locale = xyes; then
  24263. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24264. have_locale=yes
  24265. fi
  24266. ;;
  24267. *-*-riscos*)
  24268. ARCH=riscos
  24269. CheckVisibilityHidden
  24270. CheckWerror
  24271. CheckDeclarationAfterStatement
  24272. CheckDummyVideo
  24273. CheckOffscreenVideo
  24274. CheckDiskAudio
  24275. CheckDummyAudio
  24276. CheckDLOPEN
  24277. CheckO_CLOEXEC
  24278. CheckOSS
  24279. CheckPTHREAD
  24280. CheckClockGettime
  24281. # Set up files for the misc library
  24282. if test x$enable_misc = xyes; then
  24283. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24284. have_misc=yes
  24285. fi
  24286. # Set up files for the video library
  24287. if test x$enable_video = xyes; then
  24288. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24289. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24290. have_video=yes
  24291. SUMMARY_video="${SUMMARY_video} riscos"
  24292. fi
  24293. # Set up files for the filesystem library
  24294. if test x$enable_filesystem = xyes; then
  24295. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24296. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24297. have_filesystem=yes
  24298. fi
  24299. # Set up files for the timer library
  24300. if test x$enable_timers = xyes; then
  24301. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24302. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24303. have_timers=yes
  24304. fi
  24305. ;;
  24306. *)
  24307. as_fn_error $? "
  24308. *** Unsupported host: Please add to configure.ac
  24309. " "$LINENO" 5
  24310. ;;
  24311. esac
  24312. CheckVirtualJoystick
  24313. # Check whether to install sdl3-config
  24314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24315. printf %s "checking whether to install sdl3-config... " >&6; }
  24316. # Check whether --enable-sdl3-config was given.
  24317. if test ${enable_sdl3_config+y}
  24318. then :
  24319. enableval=$enable_sdl3_config; case "${enableval}" in
  24320. yes) enable_sdl3_config="TRUE" ;;
  24321. no) enable_sdl3_config="FALSE" ;;
  24322. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24323. esac
  24324. else $as_nop
  24325. enable_sdl3_config="TRUE"
  24326. fi
  24327. if test "$enable_sdl3_config" = "TRUE"; then
  24328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24329. printf "%s\n" "yes" >&6; }
  24330. else
  24331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24332. printf "%s\n" "no" >&6; }
  24333. fi
  24334. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24335. # Check whether --enable-vendor-info was given.
  24336. if test ${enable_vendor_info+y}
  24337. then :
  24338. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24339. else $as_nop
  24340. enable_vendor_info=
  24341. fi
  24342. if test "$enable_vendor_info" = no
  24343. then :
  24344. enable_vendor_info=
  24345. fi
  24346. SDL_VENDOR_INFO=$enable_vendor_info
  24347. # Verify that we have all the platform specific files we need
  24348. if test x$have_audio != xyes; then
  24349. if test x$enable_audio = xyes; then
  24350. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24351. fi
  24352. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24353. fi
  24354. if test x$have_video != xyes; then
  24355. if test x$enable_video = xyes; then
  24356. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24357. fi
  24358. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24359. fi
  24360. if test x$have_misc != xyes; then
  24361. if test x$enable_misc = xyes; then
  24362. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24363. fi
  24364. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24365. fi
  24366. if test x$have_locale != xyes; then
  24367. if test x$enable_locale = xyes; then
  24368. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24369. fi
  24370. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24371. fi
  24372. if test x$have_joystick != xyes; then
  24373. if test x$enable_joystick = xyes; then
  24374. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24375. fi
  24376. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24377. fi
  24378. if test x$have_haptic != xyes; then
  24379. if test x$enable_haptic = xyes; then
  24380. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24381. fi
  24382. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24383. fi
  24384. if test x$have_sensor != xyes; then
  24385. if test x$enable_sensor = xyes; then
  24386. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24387. fi
  24388. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24389. fi
  24390. if test x$have_threads != xyes; then
  24391. if test x$enable_threads = xyes; then
  24392. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24393. fi
  24394. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24395. fi
  24396. if test x$have_timers != xyes; then
  24397. if test x$enable_timers = xyes; then
  24398. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24399. fi
  24400. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24401. fi
  24402. if test x$have_filesystem != xyes; then
  24403. if test x$enable_filesystem = xyes; then
  24404. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24405. fi
  24406. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24407. fi
  24408. if test x$have_loadso != xyes; then
  24409. if test x$enable_loadso = xyes; then
  24410. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24411. fi
  24412. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24413. fi
  24414. if test x$SDLMAIN_SOURCES = x; then
  24415. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24416. fi
  24417. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24418. if test x$video_wayland = xyes; then
  24419. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24420. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24421. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24422. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24423. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24424. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24425. echo ;\
  24426. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24427. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24428. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24429. echo ;\
  24430. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24431. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24432. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24433. echo ;\
  24434. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24435. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24436. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24437. done ;\
  24438. echo ;\
  24439. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24440. fi
  24441. OBJECTS=`echo $SOURCES`
  24442. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24443. for EXT in asm cc m c S; do
  24444. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24445. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24446. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24447. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24448. done
  24449. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24450. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24451. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24452. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24453. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24454. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24455. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24456. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24457. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24458. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24459. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24460. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24461. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24462. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24463. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24464. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24465. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24466. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24467. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24468. # Set runtime shared library paths as needed
  24469. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24470. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24471. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24473. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24474. have_enable_new_dtags=no
  24475. save_LDFLAGS="$LDFLAGS"
  24476. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24478. /* end confdefs.h. */
  24479. int
  24480. main (void)
  24481. {
  24482. ;
  24483. return 0;
  24484. }
  24485. _ACEOF
  24486. if ac_fn_c_try_link "$LINENO"
  24487. then :
  24488. have_enable_new_dtags=yes
  24489. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24490. fi
  24491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24492. conftest$ac_exeext conftest.$ac_ext
  24493. LDFLAGS="$save_LDFLAGS"
  24494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24495. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24496. fi
  24497. if test $ARCH = solaris; then
  24498. SDL_RLD_FLAGS="-R\${libdir}"
  24499. fi
  24500. else
  24501. SDL_RLD_FLAGS=""
  24502. fi
  24503. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24504. pkg_cmakedir='$libdir/cmake/SDL3'
  24505. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24506. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24507. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24508. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24509. _lcl_receval="$_lcl_from"
  24510. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24511. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24512. _lcl_receval_old=''
  24513. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24514. _lcl_receval_old="$_lcl_receval"
  24515. eval _lcl_receval="\"$_lcl_receval\""
  24516. done
  24517. echo "$_lcl_receval")`
  24518. _lcl_receval="$_lcl_to"
  24519. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24520. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24521. _lcl_receval_old=''
  24522. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24523. _lcl_receval_old="$_lcl_receval"
  24524. eval _lcl_receval="\"$_lcl_receval\""
  24525. done
  24526. echo "$_lcl_receval")`
  24527. _lcl_notation="$_lcl_from$_lcl_to"
  24528. case ":$_lcl_from:" in
  24529. # change empty paths to '.'
  24530. ::) _lcl_from='.' ;;
  24531. # strip trailing slashes
  24532. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24533. :*:) ;;
  24534. esac
  24535. # squeeze repeated slashes
  24536. case '/' in
  24537. # if the path contains any backslashes, turn slashes into backslashes
  24538. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24539. # if the path contains slashes, also turn backslashes into slashes
  24540. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24541. esac
  24542. case ":$_lcl_to:" in
  24543. # change empty paths to '.'
  24544. ::) _lcl_to='.' ;;
  24545. # strip trailing slashes
  24546. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24547. :*:) ;;
  24548. esac
  24549. # squeeze repeated slashes
  24550. case '/' in
  24551. # if the path contains any backslashes, turn slashes into backslashes
  24552. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24553. # if the path contains slashes, also turn backslashes into slashes
  24554. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24555. esac
  24556. _lcl_common_prefix=''
  24557. _lcl_second_prefix_match=''
  24558. while test "$_lcl_second_prefix_match" != 0; do
  24559. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24560. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24561. if test "$_lcl_second_prefix_match" != 0; then
  24562. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24563. _lcl_common_prefix="$_lcl_first_prefix"
  24564. else
  24565. _lcl_second_prefix_match=0
  24566. fi
  24567. fi
  24568. done
  24569. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24570. _lcl_first_rel=''
  24571. _lcl_tmp='xxx'
  24572. while test "$_lcl_tmp" != ''; do
  24573. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24574. if test "$_lcl_first_suffix" != ''; then
  24575. _lcl_first_suffix="$_lcl_tmp"
  24576. _lcl_first_rel="../$_lcl_first_rel"
  24577. fi
  24578. done
  24579. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24580. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24581. case ":$_lcl_result_tmp:" in
  24582. # change empty paths to '.'
  24583. ::) _lcl_result_tmp='.' ;;
  24584. # strip trailing slashes
  24585. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24586. :*:) ;;
  24587. esac
  24588. # squeeze repeated slashes
  24589. case "$_lcl_notation" in
  24590. # if the path contains any backslashes, turn slashes into backslashes
  24591. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24592. # if the path contains slashes, also turn backslashes into slashes
  24593. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24594. esac
  24595. eval $_lcl_result_var='$_lcl_result_tmp'
  24596. done
  24597. if test x$enable_shared = xyes; then
  24598. PKGCONFIG_LIBS_PRIV="
  24599. Libs.private:"
  24600. ENABLE_SHARED_TRUE=
  24601. ENABLE_SHARED_FALSE="#"
  24602. else
  24603. PKGCONFIG_LIBS_PRIV=
  24604. ENABLE_SHARED_TRUE="#"
  24605. ENABLE_SHARED_FALSE=
  24606. fi
  24607. if test x$enable_static = xyes; then
  24608. ENABLE_STATIC_TRUE=
  24609. ENABLE_STATIC_FALSE="#"
  24610. else
  24611. ENABLE_STATIC_TRUE="#"
  24612. ENABLE_STATIC_FALSE=
  24613. fi
  24614. cat >Makefile.rules <<__EOF__
  24615. # Build rules for objects
  24616. -include \$(OBJECTS:.lo=.d)
  24617. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24618. $srcdir/src/SDL.c: update-revision
  24619. $DEPENDS
  24620. $VERSION_DEPENDS
  24621. $SDLMAIN_DEPENDS
  24622. $SDLTEST_DEPENDS
  24623. $WAYLAND_PROTOCOLS_DEPENDS
  24624. __EOF__
  24625. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24626. ac_config_commands="$ac_config_commands sdl3_config"
  24627. SUMMARY="SDL3 Configure Summary:\n"
  24628. if test x$enable_shared = xyes; then
  24629. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24630. fi
  24631. if test x$enable_static = xyes; then
  24632. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24633. fi
  24634. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24635. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24636. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24637. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24638. if test x$have_x = xyes; then
  24639. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24640. fi
  24641. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24642. if test x$have_joystick_virtual = xyes; then
  24643. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24644. else
  24645. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24646. fi
  24647. if test x$have_samplerate_h_hdr = xyes; then
  24648. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24649. else
  24650. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24651. fi
  24652. if test x$have_libudev_h_hdr = xyes; then
  24653. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24654. else
  24655. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24656. fi
  24657. if test x$have_dbus_dbus_h_hdr = xyes; then
  24658. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24659. else
  24660. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24661. fi
  24662. if test x$enable_ime = xyes; then
  24663. SUMMARY="${SUMMARY}Using ime : YES\n"
  24664. else
  24665. SUMMARY="${SUMMARY}Using ime : NO\n"
  24666. fi
  24667. if test x$have_ibus_ibus_h_hdr = xyes; then
  24668. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24669. else
  24670. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24671. fi
  24672. if test x$have_fcitx = xyes; then
  24673. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24674. else
  24675. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24676. fi
  24677. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24678. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24679. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24680. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24681. SUMMARY="${SUMMARY}configure script with:\n"
  24682. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24683. fi
  24684. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24685. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24686. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24687. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24688. SUMMARY="${SUMMARY}configure script with:\n"
  24689. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24690. fi
  24691. ac_config_commands="$ac_config_commands summary"
  24692. cat >confcache <<\_ACEOF
  24693. # This file is a shell script that caches the results of configure
  24694. # tests run on this system so they can be shared between configure
  24695. # scripts and configure runs, see configure's option --config-cache.
  24696. # It is not useful on other systems. If it contains results you don't
  24697. # want to keep, you may remove or edit it.
  24698. #
  24699. # config.status only pays attention to the cache file if you give it
  24700. # the --recheck option to rerun configure.
  24701. #
  24702. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24703. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24704. # following values.
  24705. _ACEOF
  24706. # The following way of writing the cache mishandles newlines in values,
  24707. # but we know of no workaround that is simple, portable, and efficient.
  24708. # So, we kill variables containing newlines.
  24709. # Ultrix sh set writes to stderr and can't be redirected directly,
  24710. # and sets the high bit in the cache file unless we assign to the vars.
  24711. (
  24712. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24713. eval ac_val=\$$ac_var
  24714. case $ac_val in #(
  24715. *${as_nl}*)
  24716. case $ac_var in #(
  24717. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24718. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24719. esac
  24720. case $ac_var in #(
  24721. _ | IFS | as_nl) ;; #(
  24722. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24723. *) { eval $ac_var=; unset $ac_var;} ;;
  24724. esac ;;
  24725. esac
  24726. done
  24727. (set) 2>&1 |
  24728. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24729. *${as_nl}ac_space=\ *)
  24730. # `set' does not quote correctly, so add quotes: double-quote
  24731. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24732. sed -n \
  24733. "s/'/'\\\\''/g;
  24734. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24735. ;; #(
  24736. *)
  24737. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24738. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24739. ;;
  24740. esac |
  24741. sort
  24742. ) |
  24743. sed '
  24744. /^ac_cv_env_/b end
  24745. t clear
  24746. :clear
  24747. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24748. t end
  24749. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24750. :end' >>confcache
  24751. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24752. if test -w "$cache_file"; then
  24753. if test "x$cache_file" != "x/dev/null"; then
  24754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24755. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24756. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24757. cat confcache >"$cache_file"
  24758. else
  24759. case $cache_file in #(
  24760. */* | ?:*)
  24761. mv -f confcache "$cache_file"$$ &&
  24762. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24763. *)
  24764. mv -f confcache "$cache_file" ;;
  24765. esac
  24766. fi
  24767. fi
  24768. else
  24769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24770. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24771. fi
  24772. fi
  24773. rm -f confcache
  24774. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24775. # Let make expand exec_prefix.
  24776. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24777. DEFS=-DHAVE_CONFIG_H
  24778. ac_libobjs=
  24779. ac_ltlibobjs=
  24780. U=
  24781. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24782. # 1. Remove the extension, and $U if already installed.
  24783. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24784. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24785. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24786. # will be set to the directory where LIBOBJS objects are built.
  24787. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24788. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24789. done
  24790. LIBOBJS=$ac_libobjs
  24791. LTLIBOBJS=$ac_ltlibobjs
  24792. : "${CONFIG_STATUS=./config.status}"
  24793. ac_write_fail=0
  24794. ac_clean_files_save=$ac_clean_files
  24795. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24797. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24798. as_write_fail=0
  24799. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24800. #! $SHELL
  24801. # Generated by $as_me.
  24802. # Run this file to recreate the current configuration.
  24803. # Compiler output produced by configure, useful for debugging
  24804. # configure, is in config.log if it exists.
  24805. debug=false
  24806. ac_cs_recheck=false
  24807. ac_cs_silent=false
  24808. SHELL=\${CONFIG_SHELL-$SHELL}
  24809. export SHELL
  24810. _ASEOF
  24811. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24812. ## -------------------- ##
  24813. ## M4sh Initialization. ##
  24814. ## -------------------- ##
  24815. # Be more Bourne compatible
  24816. DUALCASE=1; export DUALCASE # for MKS sh
  24817. as_nop=:
  24818. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24819. then :
  24820. emulate sh
  24821. NULLCMD=:
  24822. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24823. # is contrary to our usage. Disable this feature.
  24824. alias -g '${1+"$@"}'='"$@"'
  24825. setopt NO_GLOB_SUBST
  24826. else $as_nop
  24827. case `(set -o) 2>/dev/null` in #(
  24828. *posix*) :
  24829. set -o posix ;; #(
  24830. *) :
  24831. ;;
  24832. esac
  24833. fi
  24834. # Reset variables that may have inherited troublesome values from
  24835. # the environment.
  24836. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24837. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24838. # side effect of setting IFS to empty, thus disabling word splitting.)
  24839. # Quoting is to prevent editors from complaining about space-tab.
  24840. as_nl='
  24841. '
  24842. export as_nl
  24843. IFS=" "" $as_nl"
  24844. PS1='$ '
  24845. PS2='> '
  24846. PS4='+ '
  24847. # Ensure predictable behavior from utilities with locale-dependent output.
  24848. LC_ALL=C
  24849. export LC_ALL
  24850. LANGUAGE=C
  24851. export LANGUAGE
  24852. # We cannot yet rely on "unset" to work, but we need these variables
  24853. # to be unset--not just set to an empty or harmless value--now, to
  24854. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24855. # also avoids known problems related to "unset" and subshell syntax
  24856. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24857. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24858. do eval test \${$as_var+y} \
  24859. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24860. done
  24861. # Ensure that fds 0, 1, and 2 are open.
  24862. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24863. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24864. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24865. # The user is always right.
  24866. if ${PATH_SEPARATOR+false} :; then
  24867. PATH_SEPARATOR=:
  24868. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24869. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24870. PATH_SEPARATOR=';'
  24871. }
  24872. fi
  24873. # Find who we are. Look in the path if we contain no directory separator.
  24874. as_myself=
  24875. case $0 in #((
  24876. *[\\/]* ) as_myself=$0 ;;
  24877. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24878. for as_dir in $PATH
  24879. do
  24880. IFS=$as_save_IFS
  24881. case $as_dir in #(((
  24882. '') as_dir=./ ;;
  24883. */) ;;
  24884. *) as_dir=$as_dir/ ;;
  24885. esac
  24886. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24887. done
  24888. IFS=$as_save_IFS
  24889. ;;
  24890. esac
  24891. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24892. # in which case we are not to be found in the path.
  24893. if test "x$as_myself" = x; then
  24894. as_myself=$0
  24895. fi
  24896. if test ! -f "$as_myself"; then
  24897. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24898. exit 1
  24899. fi
  24900. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24901. # ----------------------------------------
  24902. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24903. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24904. # script with STATUS, using 1 if that was 0.
  24905. as_fn_error ()
  24906. {
  24907. as_status=$1; test $as_status -eq 0 && as_status=1
  24908. if test "$4"; then
  24909. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24910. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24911. fi
  24912. printf "%s\n" "$as_me: error: $2" >&2
  24913. as_fn_exit $as_status
  24914. } # as_fn_error
  24915. # as_fn_set_status STATUS
  24916. # -----------------------
  24917. # Set $? to STATUS, without forking.
  24918. as_fn_set_status ()
  24919. {
  24920. return $1
  24921. } # as_fn_set_status
  24922. # as_fn_exit STATUS
  24923. # -----------------
  24924. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24925. as_fn_exit ()
  24926. {
  24927. set +e
  24928. as_fn_set_status $1
  24929. exit $1
  24930. } # as_fn_exit
  24931. # as_fn_unset VAR
  24932. # ---------------
  24933. # Portably unset VAR.
  24934. as_fn_unset ()
  24935. {
  24936. { eval $1=; unset $1;}
  24937. }
  24938. as_unset=as_fn_unset
  24939. # as_fn_append VAR VALUE
  24940. # ----------------------
  24941. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24942. # advantage of any shell optimizations that allow amortized linear growth over
  24943. # repeated appends, instead of the typical quadratic growth present in naive
  24944. # implementations.
  24945. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24946. then :
  24947. eval 'as_fn_append ()
  24948. {
  24949. eval $1+=\$2
  24950. }'
  24951. else $as_nop
  24952. as_fn_append ()
  24953. {
  24954. eval $1=\$$1\$2
  24955. }
  24956. fi # as_fn_append
  24957. # as_fn_arith ARG...
  24958. # ------------------
  24959. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24960. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24961. # must be portable across $(()) and expr.
  24962. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24963. then :
  24964. eval 'as_fn_arith ()
  24965. {
  24966. as_val=$(( $* ))
  24967. }'
  24968. else $as_nop
  24969. as_fn_arith ()
  24970. {
  24971. as_val=`expr "$@" || test $? -eq 1`
  24972. }
  24973. fi # as_fn_arith
  24974. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24975. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24976. as_expr=expr
  24977. else
  24978. as_expr=false
  24979. fi
  24980. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24981. as_basename=basename
  24982. else
  24983. as_basename=false
  24984. fi
  24985. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24986. as_dirname=dirname
  24987. else
  24988. as_dirname=false
  24989. fi
  24990. as_me=`$as_basename -- "$0" ||
  24991. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24992. X"$0" : 'X\(//\)$' \| \
  24993. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24994. printf "%s\n" X/"$0" |
  24995. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24996. s//\1/
  24997. q
  24998. }
  24999. /^X\/\(\/\/\)$/{
  25000. s//\1/
  25001. q
  25002. }
  25003. /^X\/\(\/\).*/{
  25004. s//\1/
  25005. q
  25006. }
  25007. s/.*/./; q'`
  25008. # Avoid depending upon Character Ranges.
  25009. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25010. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25011. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25012. as_cr_digits='0123456789'
  25013. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25014. # Determine whether it's possible to make 'echo' print without a newline.
  25015. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25016. # for compatibility with existing Makefiles.
  25017. ECHO_C= ECHO_N= ECHO_T=
  25018. case `echo -n x` in #(((((
  25019. -n*)
  25020. case `echo 'xy\c'` in
  25021. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25022. xy) ECHO_C='\c';;
  25023. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25024. ECHO_T=' ';;
  25025. esac;;
  25026. *)
  25027. ECHO_N='-n';;
  25028. esac
  25029. # For backward compatibility with old third-party macros, we provide
  25030. # the shell variables $as_echo and $as_echo_n. New code should use
  25031. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25032. as_echo='printf %s\n'
  25033. as_echo_n='printf %s'
  25034. rm -f conf$$ conf$$.exe conf$$.file
  25035. if test -d conf$$.dir; then
  25036. rm -f conf$$.dir/conf$$.file
  25037. else
  25038. rm -f conf$$.dir
  25039. mkdir conf$$.dir 2>/dev/null
  25040. fi
  25041. if (echo >conf$$.file) 2>/dev/null; then
  25042. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25043. as_ln_s='ln -s'
  25044. # ... but there are two gotchas:
  25045. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25046. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25047. # In both cases, we have to default to `cp -pR'.
  25048. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25049. as_ln_s='cp -pR'
  25050. elif ln conf$$.file conf$$ 2>/dev/null; then
  25051. as_ln_s=ln
  25052. else
  25053. as_ln_s='cp -pR'
  25054. fi
  25055. else
  25056. as_ln_s='cp -pR'
  25057. fi
  25058. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25059. rmdir conf$$.dir 2>/dev/null
  25060. # as_fn_mkdir_p
  25061. # -------------
  25062. # Create "$as_dir" as a directory, including parents if necessary.
  25063. as_fn_mkdir_p ()
  25064. {
  25065. case $as_dir in #(
  25066. -*) as_dir=./$as_dir;;
  25067. esac
  25068. test -d "$as_dir" || eval $as_mkdir_p || {
  25069. as_dirs=
  25070. while :; do
  25071. case $as_dir in #(
  25072. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25073. *) as_qdir=$as_dir;;
  25074. esac
  25075. as_dirs="'$as_qdir' $as_dirs"
  25076. as_dir=`$as_dirname -- "$as_dir" ||
  25077. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25078. X"$as_dir" : 'X\(//\)[^/]' \| \
  25079. X"$as_dir" : 'X\(//\)$' \| \
  25080. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25081. printf "%s\n" X"$as_dir" |
  25082. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25083. s//\1/
  25084. q
  25085. }
  25086. /^X\(\/\/\)[^/].*/{
  25087. s//\1/
  25088. q
  25089. }
  25090. /^X\(\/\/\)$/{
  25091. s//\1/
  25092. q
  25093. }
  25094. /^X\(\/\).*/{
  25095. s//\1/
  25096. q
  25097. }
  25098. s/.*/./; q'`
  25099. test -d "$as_dir" && break
  25100. done
  25101. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25102. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25103. } # as_fn_mkdir_p
  25104. if mkdir -p . 2>/dev/null; then
  25105. as_mkdir_p='mkdir -p "$as_dir"'
  25106. else
  25107. test -d ./-p && rmdir ./-p
  25108. as_mkdir_p=false
  25109. fi
  25110. # as_fn_executable_p FILE
  25111. # -----------------------
  25112. # Test if FILE is an executable regular file.
  25113. as_fn_executable_p ()
  25114. {
  25115. test -f "$1" && test -x "$1"
  25116. } # as_fn_executable_p
  25117. as_test_x='test -x'
  25118. as_executable_p=as_fn_executable_p
  25119. # Sed expression to map a string onto a valid CPP name.
  25120. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25121. # Sed expression to map a string onto a valid variable name.
  25122. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25123. exec 6>&1
  25124. ## ----------------------------------- ##
  25125. ## Main body of $CONFIG_STATUS script. ##
  25126. ## ----------------------------------- ##
  25127. _ASEOF
  25128. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25130. # Save the log message, to keep $0 and so on meaningful, and to
  25131. # report actual input values of CONFIG_FILES etc. instead of their
  25132. # values after options handling.
  25133. ac_log="
  25134. This file was extended by $as_me, which was
  25135. generated by GNU Autoconf 2.71. Invocation command line was
  25136. CONFIG_FILES = $CONFIG_FILES
  25137. CONFIG_HEADERS = $CONFIG_HEADERS
  25138. CONFIG_LINKS = $CONFIG_LINKS
  25139. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25140. $ $0 $@
  25141. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25142. "
  25143. _ACEOF
  25144. case $ac_config_files in *"
  25145. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25146. esac
  25147. case $ac_config_headers in *"
  25148. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25149. esac
  25150. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25151. # Files that config.status was made for.
  25152. config_files="$ac_config_files"
  25153. config_headers="$ac_config_headers"
  25154. config_commands="$ac_config_commands"
  25155. _ACEOF
  25156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25157. ac_cs_usage="\
  25158. \`$as_me' instantiates files and other configuration actions
  25159. from templates according to the current configuration. Unless the files
  25160. and actions are specified as TAGs, all are instantiated by default.
  25161. Usage: $0 [OPTION]... [TAG]...
  25162. -h, --help print this help, then exit
  25163. -V, --version print version number and configuration settings, then exit
  25164. --config print configuration, then exit
  25165. -q, --quiet, --silent
  25166. do not print progress messages
  25167. -d, --debug don't remove temporary files
  25168. --recheck update $as_me by reconfiguring in the same conditions
  25169. --file=FILE[:TEMPLATE]
  25170. instantiate the configuration file FILE
  25171. --header=FILE[:TEMPLATE]
  25172. instantiate the configuration header FILE
  25173. Configuration files:
  25174. $config_files
  25175. Configuration headers:
  25176. $config_headers
  25177. Configuration commands:
  25178. $config_commands
  25179. Report bugs to the package provider."
  25180. _ACEOF
  25181. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25182. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25184. ac_cs_config='$ac_cs_config_escaped'
  25185. ac_cs_version="\\
  25186. config.status
  25187. configured by $0, generated by GNU Autoconf 2.71,
  25188. with options \\"\$ac_cs_config\\"
  25189. Copyright (C) 2021 Free Software Foundation, Inc.
  25190. This config.status script is free software; the Free Software Foundation
  25191. gives unlimited permission to copy, distribute and modify it."
  25192. ac_pwd='$ac_pwd'
  25193. srcdir='$srcdir'
  25194. INSTALL='$INSTALL'
  25195. AWK='$AWK'
  25196. test -n "\$AWK" || AWK=awk
  25197. _ACEOF
  25198. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25199. # The default lists apply if the user does not specify any file.
  25200. ac_need_defaults=:
  25201. while test $# != 0
  25202. do
  25203. case $1 in
  25204. --*=?*)
  25205. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25206. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25207. ac_shift=:
  25208. ;;
  25209. --*=)
  25210. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25211. ac_optarg=
  25212. ac_shift=:
  25213. ;;
  25214. *)
  25215. ac_option=$1
  25216. ac_optarg=$2
  25217. ac_shift=shift
  25218. ;;
  25219. esac
  25220. case $ac_option in
  25221. # Handling of the options.
  25222. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25223. ac_cs_recheck=: ;;
  25224. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25225. printf "%s\n" "$ac_cs_version"; exit ;;
  25226. --config | --confi | --conf | --con | --co | --c )
  25227. printf "%s\n" "$ac_cs_config"; exit ;;
  25228. --debug | --debu | --deb | --de | --d | -d )
  25229. debug=: ;;
  25230. --file | --fil | --fi | --f )
  25231. $ac_shift
  25232. case $ac_optarg in
  25233. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25234. '') as_fn_error $? "missing file argument" ;;
  25235. esac
  25236. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25237. ac_need_defaults=false;;
  25238. --header | --heade | --head | --hea )
  25239. $ac_shift
  25240. case $ac_optarg in
  25241. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25242. esac
  25243. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25244. ac_need_defaults=false;;
  25245. --he | --h)
  25246. # Conflict between --help and --header
  25247. as_fn_error $? "ambiguous option: \`$1'
  25248. Try \`$0 --help' for more information.";;
  25249. --help | --hel | -h )
  25250. printf "%s\n" "$ac_cs_usage"; exit ;;
  25251. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25252. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25253. ac_cs_silent=: ;;
  25254. # This is an error.
  25255. -*) as_fn_error $? "unrecognized option: \`$1'
  25256. Try \`$0 --help' for more information." ;;
  25257. *) as_fn_append ac_config_targets " $1"
  25258. ac_need_defaults=false ;;
  25259. esac
  25260. shift
  25261. done
  25262. ac_configure_extra_args=
  25263. if $ac_cs_silent; then
  25264. exec 6>/dev/null
  25265. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25266. fi
  25267. _ACEOF
  25268. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25269. if \$ac_cs_recheck; then
  25270. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25271. shift
  25272. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25273. CONFIG_SHELL='$SHELL'
  25274. export CONFIG_SHELL
  25275. exec "\$@"
  25276. fi
  25277. _ACEOF
  25278. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25279. exec 5>>config.log
  25280. {
  25281. echo
  25282. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25283. ## Running $as_me. ##
  25284. _ASBOX
  25285. printf "%s\n" "$ac_log"
  25286. } >&5
  25287. _ACEOF
  25288. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25289. #
  25290. # INIT-COMMANDS
  25291. #
  25292. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25293. # if CDPATH is set.
  25294. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25295. sed_quote_subst='$sed_quote_subst'
  25296. double_quote_subst='$double_quote_subst'
  25297. delay_variable_subst='$delay_variable_subst'
  25298. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25299. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25300. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25301. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25302. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25303. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25304. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25305. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25306. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25307. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25308. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25309. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25310. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25311. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25312. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25313. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25314. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25315. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25316. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25317. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25318. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25319. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25320. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25321. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25322. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25323. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25324. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25325. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25326. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25327. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25328. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25329. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25330. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25331. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25332. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25333. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25334. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25335. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25336. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25337. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25338. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25339. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25340. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25341. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25342. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25343. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25344. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25345. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25346. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25347. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25348. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25349. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25350. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25351. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25352. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25353. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25354. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25355. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25356. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25357. 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"`'
  25358. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25359. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25360. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25361. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25362. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25363. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25364. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25365. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25366. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25367. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25368. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25369. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25370. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25371. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25372. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25373. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25374. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25375. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25376. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25377. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25378. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25379. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25380. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25381. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25382. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25383. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25384. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25385. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25386. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25387. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25388. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25389. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25390. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25391. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25392. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25393. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25394. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25395. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25396. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25397. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25398. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25399. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25400. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25401. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25402. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25403. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25404. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25405. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25406. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25407. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25408. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25409. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25410. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25411. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25412. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25413. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25414. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25415. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25416. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25417. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25418. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25419. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25420. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25421. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25422. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25423. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25424. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25425. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25426. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25427. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25428. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25429. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25430. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25431. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25432. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25433. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25434. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25435. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25436. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25437. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25438. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25439. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25440. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25441. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25442. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25443. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25444. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25445. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25446. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25447. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25448. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25449. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25450. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25451. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25452. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25453. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25454. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25455. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25456. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25457. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25458. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25459. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25460. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25461. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25462. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25463. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25464. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25465. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25466. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25467. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25468. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25469. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25470. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25471. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25472. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25473. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25474. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25475. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25476. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25477. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25478. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25479. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25480. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25481. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25482. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25483. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25484. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25485. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25486. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25487. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25488. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25489. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25490. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25491. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25492. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25493. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25494. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25495. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25496. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25497. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25498. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25499. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25500. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25501. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25502. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25503. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25504. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25505. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25506. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25507. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25508. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25509. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25510. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25511. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25512. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25513. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25514. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25515. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25516. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25517. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25518. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25519. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25520. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25521. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25522. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25523. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25524. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25525. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25526. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25527. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25528. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25529. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25530. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25531. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25532. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25533. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25534. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25535. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25536. LTCC='$LTCC'
  25537. LTCFLAGS='$LTCFLAGS'
  25538. compiler='$compiler_DEFAULT'
  25539. # A function that is used when there is no print builtin or printf.
  25540. func_fallback_echo ()
  25541. {
  25542. eval 'cat <<_LTECHO_EOF
  25543. \$1
  25544. _LTECHO_EOF'
  25545. }
  25546. # Quote evaled strings.
  25547. for var in AS \
  25548. DLLTOOL \
  25549. OBJDUMP \
  25550. SHELL \
  25551. ECHO \
  25552. PATH_SEPARATOR \
  25553. SED \
  25554. GREP \
  25555. EGREP \
  25556. FGREP \
  25557. LD \
  25558. NM \
  25559. LN_S \
  25560. lt_SP2NL \
  25561. lt_NL2SP \
  25562. reload_flag \
  25563. deplibs_check_method \
  25564. file_magic_cmd \
  25565. file_magic_glob \
  25566. want_nocaseglob \
  25567. sharedlib_from_linklib_cmd \
  25568. AR \
  25569. AR_FLAGS \
  25570. archiver_list_spec \
  25571. STRIP \
  25572. RANLIB \
  25573. CC \
  25574. CFLAGS \
  25575. compiler \
  25576. lt_cv_sys_global_symbol_pipe \
  25577. lt_cv_sys_global_symbol_to_cdecl \
  25578. lt_cv_sys_global_symbol_to_import \
  25579. lt_cv_sys_global_symbol_to_c_name_address \
  25580. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25581. lt_cv_nm_interface \
  25582. nm_file_list_spec \
  25583. lt_cv_truncate_bin \
  25584. lt_prog_compiler_no_builtin_flag \
  25585. lt_prog_compiler_pic \
  25586. lt_prog_compiler_wl \
  25587. lt_prog_compiler_static \
  25588. lt_cv_prog_compiler_c_o \
  25589. need_locks \
  25590. MANIFEST_TOOL \
  25591. DSYMUTIL \
  25592. NMEDIT \
  25593. LIPO \
  25594. OTOOL \
  25595. OTOOL64 \
  25596. shrext_cmds \
  25597. export_dynamic_flag_spec \
  25598. whole_archive_flag_spec \
  25599. compiler_needs_object \
  25600. with_gnu_ld \
  25601. allow_undefined_flag \
  25602. no_undefined_flag \
  25603. hardcode_libdir_flag_spec \
  25604. hardcode_libdir_separator \
  25605. exclude_expsyms \
  25606. include_expsyms \
  25607. file_list_spec \
  25608. variables_saved_for_relink \
  25609. libname_spec \
  25610. library_names_spec \
  25611. soname_spec \
  25612. install_override_mode \
  25613. finish_eval \
  25614. old_striplib \
  25615. striplib \
  25616. compiler_lib_search_dirs \
  25617. predep_objects \
  25618. postdep_objects \
  25619. predeps \
  25620. postdeps \
  25621. compiler_lib_search_path \
  25622. LD_RC \
  25623. LD_CXX \
  25624. reload_flag_RC \
  25625. reload_flag_CXX \
  25626. compiler_RC \
  25627. compiler_CXX \
  25628. lt_prog_compiler_no_builtin_flag_RC \
  25629. lt_prog_compiler_no_builtin_flag_CXX \
  25630. lt_prog_compiler_pic_RC \
  25631. lt_prog_compiler_pic_CXX \
  25632. lt_prog_compiler_wl_RC \
  25633. lt_prog_compiler_wl_CXX \
  25634. lt_prog_compiler_static_RC \
  25635. lt_prog_compiler_static_CXX \
  25636. lt_cv_prog_compiler_c_o_RC \
  25637. lt_cv_prog_compiler_c_o_CXX \
  25638. export_dynamic_flag_spec_RC \
  25639. export_dynamic_flag_spec_CXX \
  25640. whole_archive_flag_spec_RC \
  25641. whole_archive_flag_spec_CXX \
  25642. compiler_needs_object_RC \
  25643. compiler_needs_object_CXX \
  25644. with_gnu_ld_RC \
  25645. with_gnu_ld_CXX \
  25646. allow_undefined_flag_RC \
  25647. allow_undefined_flag_CXX \
  25648. no_undefined_flag_RC \
  25649. no_undefined_flag_CXX \
  25650. hardcode_libdir_flag_spec_RC \
  25651. hardcode_libdir_flag_spec_CXX \
  25652. hardcode_libdir_separator_RC \
  25653. hardcode_libdir_separator_CXX \
  25654. exclude_expsyms_RC \
  25655. exclude_expsyms_CXX \
  25656. include_expsyms_RC \
  25657. include_expsyms_CXX \
  25658. file_list_spec_RC \
  25659. file_list_spec_CXX \
  25660. compiler_lib_search_dirs_RC \
  25661. compiler_lib_search_dirs_CXX \
  25662. predep_objects_RC \
  25663. predep_objects_CXX \
  25664. postdep_objects_RC \
  25665. postdep_objects_CXX \
  25666. predeps_RC \
  25667. predeps_CXX \
  25668. postdeps_RC \
  25669. postdeps_CXX \
  25670. compiler_lib_search_path_RC \
  25671. compiler_lib_search_path_CXX; do
  25672. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25673. *[\\\\\\\`\\"\\\$]*)
  25674. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25675. ;;
  25676. *)
  25677. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25678. ;;
  25679. esac
  25680. done
  25681. # Double-quote double-evaled strings.
  25682. for var in reload_cmds \
  25683. old_postinstall_cmds \
  25684. old_postuninstall_cmds \
  25685. old_archive_cmds \
  25686. extract_expsyms_cmds \
  25687. old_archive_from_new_cmds \
  25688. old_archive_from_expsyms_cmds \
  25689. archive_cmds \
  25690. archive_expsym_cmds \
  25691. module_cmds \
  25692. module_expsym_cmds \
  25693. export_symbols_cmds \
  25694. prelink_cmds \
  25695. postlink_cmds \
  25696. postinstall_cmds \
  25697. postuninstall_cmds \
  25698. finish_cmds \
  25699. sys_lib_search_path_spec \
  25700. configure_time_dlsearch_path \
  25701. configure_time_lt_sys_library_path \
  25702. reload_cmds_RC \
  25703. reload_cmds_CXX \
  25704. old_archive_cmds_RC \
  25705. old_archive_cmds_CXX \
  25706. old_archive_from_new_cmds_RC \
  25707. old_archive_from_new_cmds_CXX \
  25708. old_archive_from_expsyms_cmds_RC \
  25709. old_archive_from_expsyms_cmds_CXX \
  25710. archive_cmds_RC \
  25711. archive_cmds_CXX \
  25712. archive_expsym_cmds_RC \
  25713. archive_expsym_cmds_CXX \
  25714. module_cmds_RC \
  25715. module_cmds_CXX \
  25716. module_expsym_cmds_RC \
  25717. module_expsym_cmds_CXX \
  25718. export_symbols_cmds_RC \
  25719. export_symbols_cmds_CXX \
  25720. prelink_cmds_RC \
  25721. prelink_cmds_CXX \
  25722. postlink_cmds_RC \
  25723. postlink_cmds_CXX; do
  25724. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25725. *[\\\\\\\`\\"\\\$]*)
  25726. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25727. ;;
  25728. *)
  25729. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25730. ;;
  25731. esac
  25732. done
  25733. ac_aux_dir='$ac_aux_dir'
  25734. # See if we are running on zsh, and set the options that allow our
  25735. # commands through without removal of \ escapes INIT.
  25736. if test -n "\${ZSH_VERSION+set}"; then
  25737. setopt NO_GLOB_SUBST
  25738. fi
  25739. PACKAGE='$PACKAGE'
  25740. VERSION='$VERSION'
  25741. RM='$RM'
  25742. ofile='$ofile'
  25743. SUMMARY="$SUMMARY"
  25744. _ACEOF
  25745. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25746. # Handling of arguments.
  25747. for ac_config_target in $ac_config_targets
  25748. do
  25749. case $ac_config_target in
  25750. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25751. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25752. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25753. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25754. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25755. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25756. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25757. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25758. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25759. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25760. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25761. esac
  25762. done
  25763. # If the user did not use the arguments to specify the items to instantiate,
  25764. # then the envvar interface is used. Set only those that are not.
  25765. # We use the long form for the default assignment because of an extremely
  25766. # bizarre bug on SunOS 4.1.3.
  25767. if $ac_need_defaults; then
  25768. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25769. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25770. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25771. fi
  25772. # Have a temporary directory for convenience. Make it in the build tree
  25773. # simply because there is no reason against having it here, and in addition,
  25774. # creating and moving files from /tmp can sometimes cause problems.
  25775. # Hook for its removal unless debugging.
  25776. # Note that there is a small window in which the directory will not be cleaned:
  25777. # after its creation but before its name has been assigned to `$tmp'.
  25778. $debug ||
  25779. {
  25780. tmp= ac_tmp=
  25781. trap 'exit_status=$?
  25782. : "${ac_tmp:=$tmp}"
  25783. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25784. ' 0
  25785. trap 'as_fn_exit 1' 1 2 13 15
  25786. }
  25787. # Create a (secure) tmp directory for tmp files.
  25788. {
  25789. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25790. test -d "$tmp"
  25791. } ||
  25792. {
  25793. tmp=./conf$$-$RANDOM
  25794. (umask 077 && mkdir "$tmp")
  25795. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25796. ac_tmp=$tmp
  25797. # Set up the scripts for CONFIG_FILES section.
  25798. # No need to generate them if there are no CONFIG_FILES.
  25799. # This happens for instance with `./config.status config.h'.
  25800. if test -n "$CONFIG_FILES"; then
  25801. ac_cr=`echo X | tr X '\015'`
  25802. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25803. # But we know of no other shell where ac_cr would be empty at this
  25804. # point, so we can use a bashism as a fallback.
  25805. if test "x$ac_cr" = x; then
  25806. eval ac_cr=\$\'\\r\'
  25807. fi
  25808. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25809. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25810. ac_cs_awk_cr='\\r'
  25811. else
  25812. ac_cs_awk_cr=$ac_cr
  25813. fi
  25814. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25815. _ACEOF
  25816. {
  25817. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25818. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25819. echo "_ACEOF"
  25820. } >conf$$subs.sh ||
  25821. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25822. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25823. ac_delim='%!_!# '
  25824. for ac_last_try in false false false false false :; do
  25825. . ./conf$$subs.sh ||
  25826. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25827. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25828. if test $ac_delim_n = $ac_delim_num; then
  25829. break
  25830. elif $ac_last_try; then
  25831. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25832. else
  25833. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25834. fi
  25835. done
  25836. rm -f conf$$subs.sh
  25837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25838. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25839. _ACEOF
  25840. sed -n '
  25841. h
  25842. s/^/S["/; s/!.*/"]=/
  25843. p
  25844. g
  25845. s/^[^!]*!//
  25846. :repl
  25847. t repl
  25848. s/'"$ac_delim"'$//
  25849. t delim
  25850. :nl
  25851. h
  25852. s/\(.\{148\}\)..*/\1/
  25853. t more1
  25854. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25855. p
  25856. n
  25857. b repl
  25858. :more1
  25859. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25860. p
  25861. g
  25862. s/.\{148\}//
  25863. t nl
  25864. :delim
  25865. h
  25866. s/\(.\{148\}\)..*/\1/
  25867. t more2
  25868. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25869. p
  25870. b
  25871. :more2
  25872. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25873. p
  25874. g
  25875. s/.\{148\}//
  25876. t delim
  25877. ' <conf$$subs.awk | sed '
  25878. /^[^""]/{
  25879. N
  25880. s/\n//
  25881. }
  25882. ' >>$CONFIG_STATUS || ac_write_fail=1
  25883. rm -f conf$$subs.awk
  25884. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25885. _ACAWK
  25886. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25887. for (key in S) S_is_set[key] = 1
  25888. FS = ""
  25889. }
  25890. {
  25891. line = $ 0
  25892. nfields = split(line, field, "@")
  25893. substed = 0
  25894. len = length(field[1])
  25895. for (i = 2; i < nfields; i++) {
  25896. key = field[i]
  25897. keylen = length(key)
  25898. if (S_is_set[key]) {
  25899. value = S[key]
  25900. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25901. len += length(value) + length(field[++i])
  25902. substed = 1
  25903. } else
  25904. len += 1 + keylen
  25905. }
  25906. print line
  25907. }
  25908. _ACAWK
  25909. _ACEOF
  25910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25911. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25912. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25913. else
  25914. cat
  25915. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25916. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25917. _ACEOF
  25918. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25919. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25920. # trailing colons and then remove the whole line if VPATH becomes empty
  25921. # (actually we leave an empty line to preserve line numbers).
  25922. if test "x$srcdir" = x.; then
  25923. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25924. h
  25925. s///
  25926. s/^/:/
  25927. s/[ ]*$/:/
  25928. s/:\$(srcdir):/:/g
  25929. s/:\${srcdir}:/:/g
  25930. s/:@srcdir@:/:/g
  25931. s/^:*//
  25932. s/:*$//
  25933. x
  25934. s/\(=[ ]*\).*/\1/
  25935. G
  25936. s/\n//
  25937. s/^[^=]*=[ ]*$//
  25938. }'
  25939. fi
  25940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25941. fi # test -n "$CONFIG_FILES"
  25942. # Set up the scripts for CONFIG_HEADERS section.
  25943. # No need to generate them if there are no CONFIG_HEADERS.
  25944. # This happens for instance with `./config.status Makefile'.
  25945. if test -n "$CONFIG_HEADERS"; then
  25946. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25947. BEGIN {
  25948. _ACEOF
  25949. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25950. # here-document in config.status, that substitutes the proper values into
  25951. # config.h.in to produce config.h.
  25952. # Create a delimiter string that does not exist in confdefs.h, to ease
  25953. # handling of long lines.
  25954. ac_delim='%!_!# '
  25955. for ac_last_try in false false :; do
  25956. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25957. if test -z "$ac_tt"; then
  25958. break
  25959. elif $ac_last_try; then
  25960. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25961. else
  25962. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25963. fi
  25964. done
  25965. # For the awk script, D is an array of macro values keyed by name,
  25966. # likewise P contains macro parameters if any. Preserve backslash
  25967. # newline sequences.
  25968. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25969. sed -n '
  25970. s/.\{148\}/&'"$ac_delim"'/g
  25971. t rset
  25972. :rset
  25973. s/^[ ]*#[ ]*define[ ][ ]*/ /
  25974. t def
  25975. d
  25976. :def
  25977. s/\\$//
  25978. t bsnl
  25979. s/["\\]/\\&/g
  25980. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25981. D["\1"]=" \3"/p
  25982. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25983. d
  25984. :bsnl
  25985. s/["\\]/\\&/g
  25986. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25987. D["\1"]=" \3\\\\\\n"\\/p
  25988. t cont
  25989. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25990. t cont
  25991. d
  25992. :cont
  25993. n
  25994. s/.\{148\}/&'"$ac_delim"'/g
  25995. t clear
  25996. :clear
  25997. s/\\$//
  25998. t bsnlc
  25999. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26000. d
  26001. :bsnlc
  26002. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26003. b cont
  26004. ' <confdefs.h | sed '
  26005. s/'"$ac_delim"'/"\\\
  26006. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26008. for (key in D) D_is_set[key] = 1
  26009. FS = ""
  26010. }
  26011. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26012. line = \$ 0
  26013. split(line, arg, " ")
  26014. if (arg[1] == "#") {
  26015. defundef = arg[2]
  26016. mac1 = arg[3]
  26017. } else {
  26018. defundef = substr(arg[1], 2)
  26019. mac1 = arg[2]
  26020. }
  26021. split(mac1, mac2, "(") #)
  26022. macro = mac2[1]
  26023. prefix = substr(line, 1, index(line, defundef) - 1)
  26024. if (D_is_set[macro]) {
  26025. # Preserve the white space surrounding the "#".
  26026. print prefix "define", macro P[macro] D[macro]
  26027. next
  26028. } else {
  26029. # Replace #undef with comments. This is necessary, for example,
  26030. # in the case of _POSIX_SOURCE, which is predefined and required
  26031. # on some systems where configure will not decide to define it.
  26032. if (defundef == "undef") {
  26033. print "/*", prefix defundef, macro, "*/"
  26034. next
  26035. }
  26036. }
  26037. }
  26038. { print }
  26039. _ACAWK
  26040. _ACEOF
  26041. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26042. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26043. fi # test -n "$CONFIG_HEADERS"
  26044. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26045. shift
  26046. for ac_tag
  26047. do
  26048. case $ac_tag in
  26049. :[FHLC]) ac_mode=$ac_tag; continue;;
  26050. esac
  26051. case $ac_mode$ac_tag in
  26052. :[FHL]*:*);;
  26053. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26054. :[FH]-) ac_tag=-:-;;
  26055. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26056. esac
  26057. ac_save_IFS=$IFS
  26058. IFS=:
  26059. set x $ac_tag
  26060. IFS=$ac_save_IFS
  26061. shift
  26062. ac_file=$1
  26063. shift
  26064. case $ac_mode in
  26065. :L) ac_source=$1;;
  26066. :[FH])
  26067. ac_file_inputs=
  26068. for ac_f
  26069. do
  26070. case $ac_f in
  26071. -) ac_f="$ac_tmp/stdin";;
  26072. *) # Look for the file first in the build tree, then in the source tree
  26073. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26074. # because $ac_f cannot contain `:'.
  26075. test -f "$ac_f" ||
  26076. case $ac_f in
  26077. [\\/$]*) false;;
  26078. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26079. esac ||
  26080. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26081. esac
  26082. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26083. as_fn_append ac_file_inputs " '$ac_f'"
  26084. done
  26085. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26086. # use $as_me), people would be surprised to read:
  26087. # /* config.h. Generated by config.status. */
  26088. configure_input='Generated from '`
  26089. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26090. `' by configure.'
  26091. if test x"$ac_file" != x-; then
  26092. configure_input="$ac_file. $configure_input"
  26093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26094. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26095. fi
  26096. # Neutralize special characters interpreted by sed in replacement strings.
  26097. case $configure_input in #(
  26098. *\&* | *\|* | *\\* )
  26099. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26100. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26101. *) ac_sed_conf_input=$configure_input;;
  26102. esac
  26103. case $ac_tag in
  26104. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26105. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26106. esac
  26107. ;;
  26108. esac
  26109. ac_dir=`$as_dirname -- "$ac_file" ||
  26110. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26111. X"$ac_file" : 'X\(//\)[^/]' \| \
  26112. X"$ac_file" : 'X\(//\)$' \| \
  26113. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26114. printf "%s\n" X"$ac_file" |
  26115. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26116. s//\1/
  26117. q
  26118. }
  26119. /^X\(\/\/\)[^/].*/{
  26120. s//\1/
  26121. q
  26122. }
  26123. /^X\(\/\/\)$/{
  26124. s//\1/
  26125. q
  26126. }
  26127. /^X\(\/\).*/{
  26128. s//\1/
  26129. q
  26130. }
  26131. s/.*/./; q'`
  26132. as_dir="$ac_dir"; as_fn_mkdir_p
  26133. ac_builddir=.
  26134. case "$ac_dir" in
  26135. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26136. *)
  26137. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26138. # A ".." for each directory in $ac_dir_suffix.
  26139. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26140. case $ac_top_builddir_sub in
  26141. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26142. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26143. esac ;;
  26144. esac
  26145. ac_abs_top_builddir=$ac_pwd
  26146. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26147. # for backward compatibility:
  26148. ac_top_builddir=$ac_top_build_prefix
  26149. case $srcdir in
  26150. .) # We are building in place.
  26151. ac_srcdir=.
  26152. ac_top_srcdir=$ac_top_builddir_sub
  26153. ac_abs_top_srcdir=$ac_pwd ;;
  26154. [\\/]* | ?:[\\/]* ) # Absolute name.
  26155. ac_srcdir=$srcdir$ac_dir_suffix;
  26156. ac_top_srcdir=$srcdir
  26157. ac_abs_top_srcdir=$srcdir ;;
  26158. *) # Relative name.
  26159. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26160. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26161. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26162. esac
  26163. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26164. case $ac_mode in
  26165. :F)
  26166. #
  26167. # CONFIG_FILE
  26168. #
  26169. case $INSTALL in
  26170. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26171. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26172. esac
  26173. _ACEOF
  26174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26175. # If the template does not know about datarootdir, expand it.
  26176. # FIXME: This hack should be removed a few years after 2.60.
  26177. ac_datarootdir_hack=; ac_datarootdir_seen=
  26178. ac_sed_dataroot='
  26179. /datarootdir/ {
  26180. p
  26181. q
  26182. }
  26183. /@datadir@/p
  26184. /@docdir@/p
  26185. /@infodir@/p
  26186. /@localedir@/p
  26187. /@mandir@/p'
  26188. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26189. *datarootdir*) ac_datarootdir_seen=yes;;
  26190. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26192. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26193. _ACEOF
  26194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26195. ac_datarootdir_hack='
  26196. s&@datadir@&$datadir&g
  26197. s&@docdir@&$docdir&g
  26198. s&@infodir@&$infodir&g
  26199. s&@localedir@&$localedir&g
  26200. s&@mandir@&$mandir&g
  26201. s&\\\${datarootdir}&$datarootdir&g' ;;
  26202. esac
  26203. _ACEOF
  26204. # Neutralize VPATH when `$srcdir' = `.'.
  26205. # Shell code in configure.ac might set extrasub.
  26206. # FIXME: do we really want to maintain this feature?
  26207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26208. ac_sed_extra="$ac_vpsub
  26209. $extrasub
  26210. _ACEOF
  26211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26212. :t
  26213. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26214. s|@configure_input@|$ac_sed_conf_input|;t t
  26215. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26216. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26217. s&@srcdir@&$ac_srcdir&;t t
  26218. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26219. s&@top_srcdir@&$ac_top_srcdir&;t t
  26220. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26221. s&@builddir@&$ac_builddir&;t t
  26222. s&@abs_builddir@&$ac_abs_builddir&;t t
  26223. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26224. s&@INSTALL@&$ac_INSTALL&;t t
  26225. $ac_datarootdir_hack
  26226. "
  26227. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26228. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26229. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26230. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26231. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26232. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26234. which seems to be undefined. Please make sure it is defined" >&5
  26235. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26236. which seems to be undefined. Please make sure it is defined" >&2;}
  26237. rm -f "$ac_tmp/stdin"
  26238. case $ac_file in
  26239. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26240. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26241. esac \
  26242. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26243. ;;
  26244. :H)
  26245. #
  26246. # CONFIG_HEADER
  26247. #
  26248. if test x"$ac_file" != x-; then
  26249. {
  26250. printf "%s\n" "/* $configure_input */" >&1 \
  26251. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26252. } >"$ac_tmp/config.h" \
  26253. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26254. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26256. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26257. else
  26258. rm -f "$ac_file"
  26259. mv "$ac_tmp/config.h" "$ac_file" \
  26260. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26261. fi
  26262. else
  26263. printf "%s\n" "/* $configure_input */" >&1 \
  26264. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26265. || as_fn_error $? "could not create -" "$LINENO" 5
  26266. fi
  26267. ;;
  26268. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26269. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26270. ;;
  26271. esac
  26272. case $ac_file$ac_mode in
  26273. "libtool":C)
  26274. # See if we are running on zsh, and set the options that allow our
  26275. # commands through without removal of \ escapes.
  26276. if test -n "${ZSH_VERSION+set}"; then
  26277. setopt NO_GLOB_SUBST
  26278. fi
  26279. cfgfile=${ofile}T
  26280. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26281. $RM "$cfgfile"
  26282. cat <<_LT_EOF >> "$cfgfile"
  26283. #! $SHELL
  26284. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26285. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26286. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26287. # Provide generalized library-building support services.
  26288. # Written by Gordon Matzigkeit, 1996
  26289. # Copyright (C) 2014 Free Software Foundation, Inc.
  26290. # This is free software; see the source for copying conditions. There is NO
  26291. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26292. # GNU Libtool is free software; you can redistribute it and/or modify
  26293. # it under the terms of the GNU General Public License as published by
  26294. # the Free Software Foundation; either version 2 of of the License, or
  26295. # (at your option) any later version.
  26296. #
  26297. # As a special exception to the GNU General Public License, if you
  26298. # distribute this file as part of a program or library that is built
  26299. # using GNU Libtool, you may include this file under the same
  26300. # distribution terms that you use for the rest of that program.
  26301. #
  26302. # GNU Libtool is distributed in the hope that it will be useful, but
  26303. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26304. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26305. # GNU General Public License for more details.
  26306. #
  26307. # You should have received a copy of the GNU General Public License
  26308. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26309. # The names of the tagged configurations supported by this script.
  26310. available_tags='RC CXX '
  26311. # Configured defaults for sys_lib_dlsearch_path munging.
  26312. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26313. # ### BEGIN LIBTOOL CONFIG
  26314. # Which release of libtool.m4 was used?
  26315. macro_version=$macro_version
  26316. macro_revision=$macro_revision
  26317. # Assembler program.
  26318. AS=$lt_AS
  26319. # DLL creation program.
  26320. DLLTOOL=$lt_DLLTOOL
  26321. # Object dumper program.
  26322. OBJDUMP=$lt_OBJDUMP
  26323. # Whether or not to build shared libraries.
  26324. build_libtool_libs=$enable_shared
  26325. # Whether or not to build static libraries.
  26326. build_old_libs=$enable_static
  26327. # What type of objects to build.
  26328. pic_mode=$pic_mode
  26329. # Whether or not to optimize for fast installation.
  26330. fast_install=$enable_fast_install
  26331. # Shared archive member basename,for filename based shared library versioning on AIX.
  26332. shared_archive_member_spec=$shared_archive_member_spec
  26333. # Shell to use when invoking shell scripts.
  26334. SHELL=$lt_SHELL
  26335. # An echo program that protects backslashes.
  26336. ECHO=$lt_ECHO
  26337. # The PATH separator for the build system.
  26338. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26339. # The host system.
  26340. host_alias=$host_alias
  26341. host=$host
  26342. host_os=$host_os
  26343. # The build system.
  26344. build_alias=$build_alias
  26345. build=$build
  26346. build_os=$build_os
  26347. # A sed program that does not truncate output.
  26348. SED=$lt_SED
  26349. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26350. Xsed="\$SED -e 1s/^X//"
  26351. # A grep program that handles long lines.
  26352. GREP=$lt_GREP
  26353. # An ERE matcher.
  26354. EGREP=$lt_EGREP
  26355. # A literal string matcher.
  26356. FGREP=$lt_FGREP
  26357. # A BSD- or MS-compatible name lister.
  26358. NM=$lt_NM
  26359. # Whether we need soft or hard links.
  26360. LN_S=$lt_LN_S
  26361. # What is the maximum length of a command?
  26362. max_cmd_len=$max_cmd_len
  26363. # Object file suffix (normally "o").
  26364. objext=$ac_objext
  26365. # Executable file suffix (normally "").
  26366. exeext=$exeext
  26367. # whether the shell understands "unset".
  26368. lt_unset=$lt_unset
  26369. # turn spaces into newlines.
  26370. SP2NL=$lt_lt_SP2NL
  26371. # turn newlines into spaces.
  26372. NL2SP=$lt_lt_NL2SP
  26373. # convert \$build file names to \$host format.
  26374. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26375. # convert \$build files to toolchain format.
  26376. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26377. # Method to check whether dependent libraries are shared objects.
  26378. deplibs_check_method=$lt_deplibs_check_method
  26379. # Command to use when deplibs_check_method = "file_magic".
  26380. file_magic_cmd=$lt_file_magic_cmd
  26381. # How to find potential files when deplibs_check_method = "file_magic".
  26382. file_magic_glob=$lt_file_magic_glob
  26383. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26384. want_nocaseglob=$lt_want_nocaseglob
  26385. # Command to associate shared and link libraries.
  26386. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26387. # The archiver.
  26388. AR=$lt_AR
  26389. # Flags to create an archive.
  26390. AR_FLAGS=$lt_AR_FLAGS
  26391. # How to feed a file listing to the archiver.
  26392. archiver_list_spec=$lt_archiver_list_spec
  26393. # A symbol stripping program.
  26394. STRIP=$lt_STRIP
  26395. # Commands used to install an old-style archive.
  26396. RANLIB=$lt_RANLIB
  26397. old_postinstall_cmds=$lt_old_postinstall_cmds
  26398. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26399. # Whether to use a lock for old archive extraction.
  26400. lock_old_archive_extraction=$lock_old_archive_extraction
  26401. # A C compiler.
  26402. LTCC=$lt_CC
  26403. # LTCC compiler flags.
  26404. LTCFLAGS=$lt_CFLAGS
  26405. # Take the output of nm and produce a listing of raw symbols and C names.
  26406. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26407. # Transform the output of nm in a proper C declaration.
  26408. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26409. # Transform the output of nm into a list of symbols to manually relocate.
  26410. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26411. # Transform the output of nm in a C name address pair.
  26412. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26413. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26414. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26415. # The name lister interface.
  26416. nm_interface=$lt_lt_cv_nm_interface
  26417. # Specify filename containing input files for \$NM.
  26418. nm_file_list_spec=$lt_nm_file_list_spec
  26419. # The root where to search for dependent libraries,and where our libraries should be installed.
  26420. lt_sysroot=$lt_sysroot
  26421. # Command to truncate a binary pipe.
  26422. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26423. # The name of the directory that contains temporary libtool files.
  26424. objdir=$objdir
  26425. # Used to examine libraries when file_magic_cmd begins with "file".
  26426. MAGIC_CMD=$MAGIC_CMD
  26427. # Must we lock files when doing compilation?
  26428. need_locks=$lt_need_locks
  26429. # Manifest tool.
  26430. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26431. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26432. DSYMUTIL=$lt_DSYMUTIL
  26433. # Tool to change global to local symbols on Mac OS X.
  26434. NMEDIT=$lt_NMEDIT
  26435. # Tool to manipulate fat objects and archives on Mac OS X.
  26436. LIPO=$lt_LIPO
  26437. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26438. OTOOL=$lt_OTOOL
  26439. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26440. OTOOL64=$lt_OTOOL64
  26441. # Old archive suffix (normally "a").
  26442. libext=$libext
  26443. # Shared library suffix (normally ".so").
  26444. shrext_cmds=$lt_shrext_cmds
  26445. # The commands to extract the exported symbol list from a shared archive.
  26446. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26447. # Variables whose values should be saved in libtool wrapper scripts and
  26448. # restored at link time.
  26449. variables_saved_for_relink=$lt_variables_saved_for_relink
  26450. # Do we need the "lib" prefix for modules?
  26451. need_lib_prefix=$need_lib_prefix
  26452. # Do we need a version for libraries?
  26453. need_version=$need_version
  26454. # Library versioning type.
  26455. version_type=$version_type
  26456. # Shared library runtime path variable.
  26457. runpath_var=$runpath_var
  26458. # Shared library path variable.
  26459. shlibpath_var=$shlibpath_var
  26460. # Is shlibpath searched before the hard-coded library search path?
  26461. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26462. # Format of library name prefix.
  26463. libname_spec=$lt_libname_spec
  26464. # List of archive names. First name is the real one, the rest are links.
  26465. # The last name is the one that the linker finds with -lNAME
  26466. library_names_spec=$lt_library_names_spec
  26467. # The coded name of the library, if different from the real name.
  26468. soname_spec=$lt_soname_spec
  26469. # Permission mode override for installation of shared libraries.
  26470. install_override_mode=$lt_install_override_mode
  26471. # Command to use after installation of a shared archive.
  26472. postinstall_cmds=$lt_postinstall_cmds
  26473. # Command to use after uninstallation of a shared archive.
  26474. postuninstall_cmds=$lt_postuninstall_cmds
  26475. # Commands used to finish a libtool library installation in a directory.
  26476. finish_cmds=$lt_finish_cmds
  26477. # As "finish_cmds", except a single script fragment to be evaled but
  26478. # not shown.
  26479. finish_eval=$lt_finish_eval
  26480. # Whether we should hardcode library paths into libraries.
  26481. hardcode_into_libs=$hardcode_into_libs
  26482. # Compile-time system search path for libraries.
  26483. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26484. # Detected run-time system search path for libraries.
  26485. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26486. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26487. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26488. # Whether dlopen is supported.
  26489. dlopen_support=$enable_dlopen
  26490. # Whether dlopen of programs is supported.
  26491. dlopen_self=$enable_dlopen_self
  26492. # Whether dlopen of statically linked programs is supported.
  26493. dlopen_self_static=$enable_dlopen_self_static
  26494. # Commands to strip libraries.
  26495. old_striplib=$lt_old_striplib
  26496. striplib=$lt_striplib
  26497. # The linker used to build libraries.
  26498. LD=$lt_LD
  26499. # How to create reloadable object files.
  26500. reload_flag=$lt_reload_flag
  26501. reload_cmds=$lt_reload_cmds
  26502. # Commands used to build an old-style archive.
  26503. old_archive_cmds=$lt_old_archive_cmds
  26504. # A language specific compiler.
  26505. CC=$lt_compiler
  26506. # Is the compiler the GNU compiler?
  26507. with_gcc=$GCC
  26508. # Compiler flag to turn off builtin functions.
  26509. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26510. # Additional compiler flags for building library objects.
  26511. pic_flag=$lt_lt_prog_compiler_pic
  26512. # How to pass a linker flag through the compiler.
  26513. wl=$lt_lt_prog_compiler_wl
  26514. # Compiler flag to prevent dynamic linking.
  26515. link_static_flag=$lt_lt_prog_compiler_static
  26516. # Does compiler simultaneously support -c and -o options?
  26517. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26518. # Whether or not to add -lc for building shared libraries.
  26519. build_libtool_need_lc=$archive_cmds_need_lc
  26520. # Whether or not to disallow shared libs when runtime libs are static.
  26521. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26522. # Compiler flag to allow reflexive dlopens.
  26523. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26524. # Compiler flag to generate shared objects directly from archives.
  26525. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26526. # Whether the compiler copes with passing no objects directly.
  26527. compiler_needs_object=$lt_compiler_needs_object
  26528. # Create an old-style archive from a shared archive.
  26529. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26530. # Create a temporary old-style archive to link instead of a shared archive.
  26531. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26532. # Commands used to build a shared archive.
  26533. archive_cmds=$lt_archive_cmds
  26534. archive_expsym_cmds=$lt_archive_expsym_cmds
  26535. # Commands used to build a loadable module if different from building
  26536. # a shared archive.
  26537. module_cmds=$lt_module_cmds
  26538. module_expsym_cmds=$lt_module_expsym_cmds
  26539. # Whether we are building with GNU ld or not.
  26540. with_gnu_ld=$lt_with_gnu_ld
  26541. # Flag that allows shared libraries with undefined symbols to be built.
  26542. allow_undefined_flag=$lt_allow_undefined_flag
  26543. # Flag that enforces no undefined symbols.
  26544. no_undefined_flag=$lt_no_undefined_flag
  26545. # Flag to hardcode \$libdir into a binary during linking.
  26546. # This must work even if \$libdir does not exist
  26547. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26548. # Whether we need a single "-rpath" flag with a separated argument.
  26549. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26550. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26551. # DIR into the resulting binary.
  26552. hardcode_direct=$hardcode_direct
  26553. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26554. # DIR into the resulting binary and the resulting library dependency is
  26555. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26556. # library is relocated.
  26557. hardcode_direct_absolute=$hardcode_direct_absolute
  26558. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26559. # into the resulting binary.
  26560. hardcode_minus_L=$hardcode_minus_L
  26561. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26562. # into the resulting binary.
  26563. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26564. # Set to "yes" if building a shared library automatically hardcodes DIR
  26565. # into the library and all subsequent libraries and executables linked
  26566. # against it.
  26567. hardcode_automatic=$hardcode_automatic
  26568. # Set to yes if linker adds runtime paths of dependent libraries
  26569. # to runtime path list.
  26570. inherit_rpath=$inherit_rpath
  26571. # Whether libtool must link a program against all its dependency libraries.
  26572. link_all_deplibs=$link_all_deplibs
  26573. # Set to "yes" if exported symbols are required.
  26574. always_export_symbols=$always_export_symbols
  26575. # The commands to list exported symbols.
  26576. export_symbols_cmds=$lt_export_symbols_cmds
  26577. # Symbols that should not be listed in the preloaded symbols.
  26578. exclude_expsyms=$lt_exclude_expsyms
  26579. # Symbols that must always be exported.
  26580. include_expsyms=$lt_include_expsyms
  26581. # Commands necessary for linking programs (against libraries) with templates.
  26582. prelink_cmds=$lt_prelink_cmds
  26583. # Commands necessary for finishing linking programs.
  26584. postlink_cmds=$lt_postlink_cmds
  26585. # Specify filename containing input files.
  26586. file_list_spec=$lt_file_list_spec
  26587. # How to hardcode a shared library path into an executable.
  26588. hardcode_action=$hardcode_action
  26589. # The directories searched by this compiler when creating a shared library.
  26590. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26591. # Dependencies to place before and after the objects being linked to
  26592. # create a shared library.
  26593. predep_objects=$lt_predep_objects
  26594. postdep_objects=$lt_postdep_objects
  26595. predeps=$lt_predeps
  26596. postdeps=$lt_postdeps
  26597. # The library search path used internally by the compiler when linking
  26598. # a shared library.
  26599. compiler_lib_search_path=$lt_compiler_lib_search_path
  26600. # ### END LIBTOOL CONFIG
  26601. _LT_EOF
  26602. cat <<'_LT_EOF' >> "$cfgfile"
  26603. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26604. # func_munge_path_list VARIABLE PATH
  26605. # -----------------------------------
  26606. # VARIABLE is name of variable containing _space_ separated list of
  26607. # directories to be munged by the contents of PATH, which is string
  26608. # having a format:
  26609. # "DIR[:DIR]:"
  26610. # string "DIR[ DIR]" will be prepended to VARIABLE
  26611. # ":DIR[:DIR]"
  26612. # string "DIR[ DIR]" will be appended to VARIABLE
  26613. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26614. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26615. # "DIRA[ DIRA]" will be appended to VARIABLE
  26616. # "DIR[:DIR]"
  26617. # VARIABLE will be replaced by "DIR[ DIR]"
  26618. func_munge_path_list ()
  26619. {
  26620. case x$2 in
  26621. x)
  26622. ;;
  26623. *:)
  26624. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26625. ;;
  26626. x:*)
  26627. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26628. ;;
  26629. *::*)
  26630. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26631. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26632. ;;
  26633. *)
  26634. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26635. ;;
  26636. esac
  26637. }
  26638. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26639. func_cc_basename ()
  26640. {
  26641. for cc_temp in $*""; do
  26642. case $cc_temp in
  26643. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26644. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26645. \-*) ;;
  26646. *) break;;
  26647. esac
  26648. done
  26649. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26650. }
  26651. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26652. _LT_EOF
  26653. case $host_os in
  26654. aix3*)
  26655. cat <<\_LT_EOF >> "$cfgfile"
  26656. # AIX sometimes has problems with the GCC collect2 program. For some
  26657. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26658. # vanish in a puff of smoke.
  26659. if test set != "${COLLECT_NAMES+set}"; then
  26660. COLLECT_NAMES=
  26661. export COLLECT_NAMES
  26662. fi
  26663. _LT_EOF
  26664. ;;
  26665. esac
  26666. ltmain=$ac_aux_dir/ltmain.sh
  26667. # We use sed instead of cat because bash on DJGPP gets confused if
  26668. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26669. # text mode, it properly converts lines to CR/LF. This bash problem
  26670. # is reportedly fixed, but why not run on old versions too?
  26671. sed '$q' "$ltmain" >> "$cfgfile" \
  26672. || (rm -f "$cfgfile"; exit 1)
  26673. mv -f "$cfgfile" "$ofile" ||
  26674. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26675. chmod +x "$ofile"
  26676. cat <<_LT_EOF >> "$ofile"
  26677. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26678. # The linker used to build libraries.
  26679. LD=$lt_LD_RC
  26680. # How to create reloadable object files.
  26681. reload_flag=$lt_reload_flag_RC
  26682. reload_cmds=$lt_reload_cmds_RC
  26683. # Commands used to build an old-style archive.
  26684. old_archive_cmds=$lt_old_archive_cmds_RC
  26685. # A language specific compiler.
  26686. CC=$lt_compiler_RC
  26687. # Is the compiler the GNU compiler?
  26688. with_gcc=$GCC_RC
  26689. # Compiler flag to turn off builtin functions.
  26690. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26691. # Additional compiler flags for building library objects.
  26692. pic_flag=$lt_lt_prog_compiler_pic_RC
  26693. # How to pass a linker flag through the compiler.
  26694. wl=$lt_lt_prog_compiler_wl_RC
  26695. # Compiler flag to prevent dynamic linking.
  26696. link_static_flag=$lt_lt_prog_compiler_static_RC
  26697. # Does compiler simultaneously support -c and -o options?
  26698. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26699. # Whether or not to add -lc for building shared libraries.
  26700. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26701. # Whether or not to disallow shared libs when runtime libs are static.
  26702. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26703. # Compiler flag to allow reflexive dlopens.
  26704. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26705. # Compiler flag to generate shared objects directly from archives.
  26706. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26707. # Whether the compiler copes with passing no objects directly.
  26708. compiler_needs_object=$lt_compiler_needs_object_RC
  26709. # Create an old-style archive from a shared archive.
  26710. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26711. # Create a temporary old-style archive to link instead of a shared archive.
  26712. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26713. # Commands used to build a shared archive.
  26714. archive_cmds=$lt_archive_cmds_RC
  26715. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26716. # Commands used to build a loadable module if different from building
  26717. # a shared archive.
  26718. module_cmds=$lt_module_cmds_RC
  26719. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26720. # Whether we are building with GNU ld or not.
  26721. with_gnu_ld=$lt_with_gnu_ld_RC
  26722. # Flag that allows shared libraries with undefined symbols to be built.
  26723. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26724. # Flag that enforces no undefined symbols.
  26725. no_undefined_flag=$lt_no_undefined_flag_RC
  26726. # Flag to hardcode \$libdir into a binary during linking.
  26727. # This must work even if \$libdir does not exist
  26728. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26729. # Whether we need a single "-rpath" flag with a separated argument.
  26730. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26731. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26732. # DIR into the resulting binary.
  26733. hardcode_direct=$hardcode_direct_RC
  26734. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26735. # DIR into the resulting binary and the resulting library dependency is
  26736. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26737. # library is relocated.
  26738. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26739. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26740. # into the resulting binary.
  26741. hardcode_minus_L=$hardcode_minus_L_RC
  26742. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26743. # into the resulting binary.
  26744. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26745. # Set to "yes" if building a shared library automatically hardcodes DIR
  26746. # into the library and all subsequent libraries and executables linked
  26747. # against it.
  26748. hardcode_automatic=$hardcode_automatic_RC
  26749. # Set to yes if linker adds runtime paths of dependent libraries
  26750. # to runtime path list.
  26751. inherit_rpath=$inherit_rpath_RC
  26752. # Whether libtool must link a program against all its dependency libraries.
  26753. link_all_deplibs=$link_all_deplibs_RC
  26754. # Set to "yes" if exported symbols are required.
  26755. always_export_symbols=$always_export_symbols_RC
  26756. # The commands to list exported symbols.
  26757. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26758. # Symbols that should not be listed in the preloaded symbols.
  26759. exclude_expsyms=$lt_exclude_expsyms_RC
  26760. # Symbols that must always be exported.
  26761. include_expsyms=$lt_include_expsyms_RC
  26762. # Commands necessary for linking programs (against libraries) with templates.
  26763. prelink_cmds=$lt_prelink_cmds_RC
  26764. # Commands necessary for finishing linking programs.
  26765. postlink_cmds=$lt_postlink_cmds_RC
  26766. # Specify filename containing input files.
  26767. file_list_spec=$lt_file_list_spec_RC
  26768. # How to hardcode a shared library path into an executable.
  26769. hardcode_action=$hardcode_action_RC
  26770. # The directories searched by this compiler when creating a shared library.
  26771. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26772. # Dependencies to place before and after the objects being linked to
  26773. # create a shared library.
  26774. predep_objects=$lt_predep_objects_RC
  26775. postdep_objects=$lt_postdep_objects_RC
  26776. predeps=$lt_predeps_RC
  26777. postdeps=$lt_postdeps_RC
  26778. # The library search path used internally by the compiler when linking
  26779. # a shared library.
  26780. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26781. # ### END LIBTOOL TAG CONFIG: RC
  26782. _LT_EOF
  26783. cat <<_LT_EOF >> "$ofile"
  26784. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26785. # The linker used to build libraries.
  26786. LD=$lt_LD_CXX
  26787. # How to create reloadable object files.
  26788. reload_flag=$lt_reload_flag_CXX
  26789. reload_cmds=$lt_reload_cmds_CXX
  26790. # Commands used to build an old-style archive.
  26791. old_archive_cmds=$lt_old_archive_cmds_CXX
  26792. # A language specific compiler.
  26793. CC=$lt_compiler_CXX
  26794. # Is the compiler the GNU compiler?
  26795. with_gcc=$GCC_CXX
  26796. # Compiler flag to turn off builtin functions.
  26797. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26798. # Additional compiler flags for building library objects.
  26799. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26800. # How to pass a linker flag through the compiler.
  26801. wl=$lt_lt_prog_compiler_wl_CXX
  26802. # Compiler flag to prevent dynamic linking.
  26803. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26804. # Does compiler simultaneously support -c and -o options?
  26805. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26806. # Whether or not to add -lc for building shared libraries.
  26807. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26808. # Whether or not to disallow shared libs when runtime libs are static.
  26809. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26810. # Compiler flag to allow reflexive dlopens.
  26811. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26812. # Compiler flag to generate shared objects directly from archives.
  26813. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26814. # Whether the compiler copes with passing no objects directly.
  26815. compiler_needs_object=$lt_compiler_needs_object_CXX
  26816. # Create an old-style archive from a shared archive.
  26817. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26818. # Create a temporary old-style archive to link instead of a shared archive.
  26819. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26820. # Commands used to build a shared archive.
  26821. archive_cmds=$lt_archive_cmds_CXX
  26822. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26823. # Commands used to build a loadable module if different from building
  26824. # a shared archive.
  26825. module_cmds=$lt_module_cmds_CXX
  26826. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26827. # Whether we are building with GNU ld or not.
  26828. with_gnu_ld=$lt_with_gnu_ld_CXX
  26829. # Flag that allows shared libraries with undefined symbols to be built.
  26830. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26831. # Flag that enforces no undefined symbols.
  26832. no_undefined_flag=$lt_no_undefined_flag_CXX
  26833. # Flag to hardcode \$libdir into a binary during linking.
  26834. # This must work even if \$libdir does not exist
  26835. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26836. # Whether we need a single "-rpath" flag with a separated argument.
  26837. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26838. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26839. # DIR into the resulting binary.
  26840. hardcode_direct=$hardcode_direct_CXX
  26841. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26842. # DIR into the resulting binary and the resulting library dependency is
  26843. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26844. # library is relocated.
  26845. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26846. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26847. # into the resulting binary.
  26848. hardcode_minus_L=$hardcode_minus_L_CXX
  26849. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26850. # into the resulting binary.
  26851. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26852. # Set to "yes" if building a shared library automatically hardcodes DIR
  26853. # into the library and all subsequent libraries and executables linked
  26854. # against it.
  26855. hardcode_automatic=$hardcode_automatic_CXX
  26856. # Set to yes if linker adds runtime paths of dependent libraries
  26857. # to runtime path list.
  26858. inherit_rpath=$inherit_rpath_CXX
  26859. # Whether libtool must link a program against all its dependency libraries.
  26860. link_all_deplibs=$link_all_deplibs_CXX
  26861. # Set to "yes" if exported symbols are required.
  26862. always_export_symbols=$always_export_symbols_CXX
  26863. # The commands to list exported symbols.
  26864. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26865. # Symbols that should not be listed in the preloaded symbols.
  26866. exclude_expsyms=$lt_exclude_expsyms_CXX
  26867. # Symbols that must always be exported.
  26868. include_expsyms=$lt_include_expsyms_CXX
  26869. # Commands necessary for linking programs (against libraries) with templates.
  26870. prelink_cmds=$lt_prelink_cmds_CXX
  26871. # Commands necessary for finishing linking programs.
  26872. postlink_cmds=$lt_postlink_cmds_CXX
  26873. # Specify filename containing input files.
  26874. file_list_spec=$lt_file_list_spec_CXX
  26875. # How to hardcode a shared library path into an executable.
  26876. hardcode_action=$hardcode_action_CXX
  26877. # The directories searched by this compiler when creating a shared library.
  26878. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26879. # Dependencies to place before and after the objects being linked to
  26880. # create a shared library.
  26881. predep_objects=$lt_predep_objects_CXX
  26882. postdep_objects=$lt_postdep_objects_CXX
  26883. predeps=$lt_predeps_CXX
  26884. postdeps=$lt_postdeps_CXX
  26885. # The library search path used internally by the compiler when linking
  26886. # a shared library.
  26887. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26888. # ### END LIBTOOL TAG CONFIG: CXX
  26889. _LT_EOF
  26890. ;;
  26891. "sdl3_config":C) chmod a+x sdl3-config ;;
  26892. "summary":C) printf "$SUMMARY" ;;
  26893. esac
  26894. done # for ac_tag
  26895. as_fn_exit 0
  26896. _ACEOF
  26897. ac_clean_files=$ac_clean_files_save
  26898. test $ac_write_fail = 0 ||
  26899. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26900. # configure is writing to config.log, and then calls config.status.
  26901. # config.status does its own redirection, appending to config.log.
  26902. # Unfortunately, on DOS this fails, as config.log is still kept open
  26903. # by configure, so config.status won't be able to write to it; its
  26904. # output is simply discarded. So we exec the FD to /dev/null,
  26905. # effectively closing config.log, so it can be properly (re)opened and
  26906. # appended to by config.status. When coming back to configure, we
  26907. # need to make the FD available again.
  26908. if test "$no_create" != yes; then
  26909. ac_cs_success=:
  26910. ac_config_status_args=
  26911. test "$silent" = yes &&
  26912. ac_config_status_args="$ac_config_status_args --quiet"
  26913. exec 5>/dev/null
  26914. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26915. exec 5>>config.log
  26916. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26917. # would make configure fail if this is the last instruction.
  26918. $ac_cs_success || as_fn_exit 1
  26919. fi
  26920. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26922. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26923. fi