configure 909 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081
  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. PULSEAUDIO_LIBS
  648. PULSEAUDIO_CFLAGS
  649. PIPEWIRE_LIBS
  650. PIPEWIRE_CFLAGS
  651. ALSA_LIBS
  652. ALSA_CFLAGS
  653. ALLOCA
  654. CPP
  655. LIBTOOLLINKERTAG
  656. LINKER
  657. SORT
  658. PKG_CONFIG_LIBDIR
  659. PKG_CONFIG_PATH
  660. PKG_CONFIG
  661. SET_MAKE
  662. INSTALL_DATA
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. CXXCPP
  666. ac_ct_CXX
  667. CXXFLAGS
  668. CXX
  669. LT_AGE
  670. LT_REVISION
  671. LT_CURRENT
  672. LT_RELEASE
  673. RC
  674. LT_SYS_LIBRARY_PATH
  675. OTOOL64
  676. OTOOL
  677. LIPO
  678. NMEDIT
  679. DSYMUTIL
  680. MANIFEST_TOOL
  681. AWK
  682. RANLIB
  683. STRIP
  684. ac_ct_AR
  685. AR
  686. LN_S
  687. NM
  688. ac_ct_DUMPBIN
  689. DUMPBIN
  690. LD
  691. FGREP
  692. EGREP
  693. GREP
  694. SED
  695. OBJEXT
  696. EXEEXT
  697. ac_ct_CC
  698. CPPFLAGS
  699. LDFLAGS
  700. CFLAGS
  701. CC
  702. host_os
  703. host_vendor
  704. host_cpu
  705. host
  706. build_os
  707. build_vendor
  708. build_cpu
  709. build
  710. LIBTOOL
  711. OBJDUMP
  712. DLLTOOL
  713. AS
  714. SDL_VERSION
  715. SDL_BINARY_AGE
  716. SDL_INTERFACE_AGE
  717. SDL_MICRO_VERSION
  718. SDL_MINOR_VERSION
  719. SDL_MAJOR_VERSION
  720. target_alias
  721. host_alias
  722. build_alias
  723. LIBS
  724. ECHO_T
  725. ECHO_N
  726. ECHO_C
  727. DEFS
  728. mandir
  729. localedir
  730. libdir
  731. psdir
  732. pdfdir
  733. dvidir
  734. htmldir
  735. infodir
  736. docdir
  737. oldincludedir
  738. includedir
  739. runstatedir
  740. localstatedir
  741. sharedstatedir
  742. sysconfdir
  743. datadir
  744. datarootdir
  745. libexecdir
  746. sbindir
  747. bindir
  748. program_transform_name
  749. prefix
  750. exec_prefix
  751. PACKAGE_URL
  752. PACKAGE_BUGREPORT
  753. PACKAGE_STRING
  754. PACKAGE_VERSION
  755. PACKAGE_TARNAME
  756. PACKAGE_NAME
  757. PATH_SEPARATOR
  758. SHELL'
  759. ac_subst_files=''
  760. ac_user_opts='
  761. enable_option_checking
  762. enable_shared
  763. enable_static
  764. with_pic
  765. enable_fast_install
  766. with_aix_soname
  767. with_gnu_ld
  768. with_sysroot
  769. enable_libtool_lock
  770. enable_largefile
  771. enable_assertions
  772. enable_dependency_tracking
  773. enable_libc
  774. enable_system_iconv
  775. enable_gcc_atomics
  776. enable_atomic
  777. enable_audio
  778. enable_video
  779. enable_render
  780. enable_events
  781. enable_joystick
  782. enable_haptic
  783. enable_hidapi
  784. enable_sensor
  785. enable_power
  786. enable_filesystem
  787. enable_timers
  788. enable_file
  789. enable_misc
  790. enable_locale
  791. enable_loadso
  792. enable_cpuinfo
  793. enable_assembly
  794. enable_ssemath
  795. enable_mmx
  796. enable_3dnow
  797. enable_sse
  798. enable_sse2
  799. enable_sse3
  800. enable_altivec
  801. enable_lsx
  802. enable_lasx
  803. enable_oss
  804. enable_alsa
  805. with_alsa_prefix
  806. with_alsa_inc_prefix
  807. enable_alsatest
  808. enable_alsa_shared
  809. enable_pipewire
  810. enable_pipewire_shared
  811. enable_pulseaudio
  812. enable_pulseaudio_shared
  813. enable_diskaudio
  814. enable_dummyaudio
  815. enable_libsamplerate
  816. enable_libsamplerate_shared
  817. enable_arm_simd
  818. enable_arm_neon
  819. enable_werror
  820. enable_video_wayland
  821. enable_video_wayland_qt_touch
  822. enable_wayland_shared
  823. enable_libdecor
  824. enable_libdecor_shared
  825. enable_video_rpi
  826. enable_video_x11
  827. with_x
  828. enable_x11_shared
  829. enable_video_x11_xcursor
  830. enable_video_x11_xdbe
  831. enable_video_x11_xinput
  832. enable_video_x11_xfixes
  833. enable_video_x11_xrandr
  834. enable_video_x11_scrnsaver
  835. enable_video_x11_xshape
  836. enable_video_vivante
  837. enable_video_cocoa
  838. enable_video_metal
  839. enable_render_metal
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl3_config
  869. enable_vendor_info
  870. '
  871. ac_precious_vars='build_alias
  872. host_alias
  873. target_alias
  874. CC
  875. CFLAGS
  876. LDFLAGS
  877. LIBS
  878. CPPFLAGS
  879. LT_SYS_LIBRARY_PATH
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. CPP
  888. PIPEWIRE_CFLAGS
  889. PIPEWIRE_LIBS
  890. PULSEAUDIO_CFLAGS
  891. PULSEAUDIO_LIBS
  892. DECOR_CFLAGS
  893. DECOR_LIBS
  894. RPI_CFLAGS
  895. RPI_LIBS
  896. XMKMF
  897. LIBDRM_CFLAGS
  898. LIBDRM_LIBS
  899. LIBGBM_CFLAGS
  900. LIBGBM_LIBS
  901. DBUS_CFLAGS
  902. DBUS_LIBS
  903. IBUS_CFLAGS
  904. IBUS_LIBS
  905. LIBUSB_CFLAGS
  906. LIBUSB_LIBS'
  907. # Initialize some variables set by options.
  908. ac_init_help=
  909. ac_init_version=false
  910. ac_unrecognized_opts=
  911. ac_unrecognized_sep=
  912. # The variables have the same names as the options, with
  913. # dashes changed to underlines.
  914. cache_file=/dev/null
  915. exec_prefix=NONE
  916. no_create=
  917. no_recursion=
  918. prefix=NONE
  919. program_prefix=NONE
  920. program_suffix=NONE
  921. program_transform_name=s,x,x,
  922. silent=
  923. site=
  924. srcdir=
  925. verbose=
  926. x_includes=NONE
  927. x_libraries=NONE
  928. # Installation directory options.
  929. # These are left unexpanded so users can "make install exec_prefix=/foo"
  930. # and all the variables that are supposed to be based on exec_prefix
  931. # by default will actually change.
  932. # Use braces instead of parens because sh, perl, etc. also accept them.
  933. # (The list follows the same order as the GNU Coding Standards.)
  934. bindir='${exec_prefix}/bin'
  935. sbindir='${exec_prefix}/sbin'
  936. libexecdir='${exec_prefix}/libexec'
  937. datarootdir='${prefix}/share'
  938. datadir='${datarootdir}'
  939. sysconfdir='${prefix}/etc'
  940. sharedstatedir='${prefix}/com'
  941. localstatedir='${prefix}/var'
  942. runstatedir='${localstatedir}/run'
  943. includedir='${prefix}/include'
  944. oldincludedir='/usr/include'
  945. docdir='${datarootdir}/doc/${PACKAGE}'
  946. infodir='${datarootdir}/info'
  947. htmldir='${docdir}'
  948. dvidir='${docdir}'
  949. pdfdir='${docdir}'
  950. psdir='${docdir}'
  951. libdir='${exec_prefix}/lib'
  952. localedir='${datarootdir}/locale'
  953. mandir='${datarootdir}/man'
  954. ac_prev=
  955. ac_dashdash=
  956. for ac_option
  957. do
  958. # If the previous option needs an argument, assign it.
  959. if test -n "$ac_prev"; then
  960. eval $ac_prev=\$ac_option
  961. ac_prev=
  962. continue
  963. fi
  964. case $ac_option in
  965. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  966. *=) ac_optarg= ;;
  967. *) ac_optarg=yes ;;
  968. esac
  969. case $ac_dashdash$ac_option in
  970. --)
  971. ac_dashdash=yes ;;
  972. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  973. ac_prev=bindir ;;
  974. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  975. bindir=$ac_optarg ;;
  976. -build | --build | --buil | --bui | --bu)
  977. ac_prev=build_alias ;;
  978. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  979. build_alias=$ac_optarg ;;
  980. -cache-file | --cache-file | --cache-fil | --cache-fi \
  981. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  982. ac_prev=cache_file ;;
  983. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  984. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  985. cache_file=$ac_optarg ;;
  986. --config-cache | -C)
  987. cache_file=config.cache ;;
  988. -datadir | --datadir | --datadi | --datad)
  989. ac_prev=datadir ;;
  990. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  991. datadir=$ac_optarg ;;
  992. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  993. | --dataroo | --dataro | --datar)
  994. ac_prev=datarootdir ;;
  995. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  996. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  997. datarootdir=$ac_optarg ;;
  998. -disable-* | --disable-*)
  999. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1000. # Reject names that are not valid shell variable names.
  1001. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1002. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1003. ac_useropt_orig=$ac_useropt
  1004. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1005. case $ac_user_opts in
  1006. *"
  1007. "enable_$ac_useropt"
  1008. "*) ;;
  1009. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1010. ac_unrecognized_sep=', ';;
  1011. esac
  1012. eval enable_$ac_useropt=no ;;
  1013. -docdir | --docdir | --docdi | --doc | --do)
  1014. ac_prev=docdir ;;
  1015. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1016. docdir=$ac_optarg ;;
  1017. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1018. ac_prev=dvidir ;;
  1019. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1020. dvidir=$ac_optarg ;;
  1021. -enable-* | --enable-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "enable_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval enable_$ac_useropt=\$ac_optarg ;;
  1036. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1037. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1038. | --exec | --exe | --ex)
  1039. ac_prev=exec_prefix ;;
  1040. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1041. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1042. | --exec=* | --exe=* | --ex=*)
  1043. exec_prefix=$ac_optarg ;;
  1044. -gas | --gas | --ga | --g)
  1045. # Obsolete; use --with-gas.
  1046. with_gas=yes ;;
  1047. -help | --help | --hel | --he | -h)
  1048. ac_init_help=long ;;
  1049. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1050. ac_init_help=recursive ;;
  1051. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1052. ac_init_help=short ;;
  1053. -host | --host | --hos | --ho)
  1054. ac_prev=host_alias ;;
  1055. -host=* | --host=* | --hos=* | --ho=*)
  1056. host_alias=$ac_optarg ;;
  1057. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1058. ac_prev=htmldir ;;
  1059. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1060. | --ht=*)
  1061. htmldir=$ac_optarg ;;
  1062. -includedir | --includedir | --includedi | --included | --include \
  1063. | --includ | --inclu | --incl | --inc)
  1064. ac_prev=includedir ;;
  1065. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1066. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1067. includedir=$ac_optarg ;;
  1068. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1069. ac_prev=infodir ;;
  1070. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1071. infodir=$ac_optarg ;;
  1072. -libdir | --libdir | --libdi | --libd)
  1073. ac_prev=libdir ;;
  1074. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1075. libdir=$ac_optarg ;;
  1076. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1077. | --libexe | --libex | --libe)
  1078. ac_prev=libexecdir ;;
  1079. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1080. | --libexe=* | --libex=* | --libe=*)
  1081. libexecdir=$ac_optarg ;;
  1082. -localedir | --localedir | --localedi | --localed | --locale)
  1083. ac_prev=localedir ;;
  1084. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1085. localedir=$ac_optarg ;;
  1086. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1087. | --localstate | --localstat | --localsta | --localst | --locals)
  1088. ac_prev=localstatedir ;;
  1089. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1090. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1091. localstatedir=$ac_optarg ;;
  1092. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1093. ac_prev=mandir ;;
  1094. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1095. mandir=$ac_optarg ;;
  1096. -nfp | --nfp | --nf)
  1097. # Obsolete; use --without-fp.
  1098. with_fp=no ;;
  1099. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1100. | --no-cr | --no-c | -n)
  1101. no_create=yes ;;
  1102. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1103. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1104. no_recursion=yes ;;
  1105. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1106. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1107. | --oldin | --oldi | --old | --ol | --o)
  1108. ac_prev=oldincludedir ;;
  1109. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1110. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1111. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1112. oldincludedir=$ac_optarg ;;
  1113. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1114. ac_prev=prefix ;;
  1115. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1116. prefix=$ac_optarg ;;
  1117. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1118. | --program-pre | --program-pr | --program-p)
  1119. ac_prev=program_prefix ;;
  1120. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1121. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1122. program_prefix=$ac_optarg ;;
  1123. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1124. | --program-suf | --program-su | --program-s)
  1125. ac_prev=program_suffix ;;
  1126. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1127. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1128. program_suffix=$ac_optarg ;;
  1129. -program-transform-name | --program-transform-name \
  1130. | --program-transform-nam | --program-transform-na \
  1131. | --program-transform-n | --program-transform- \
  1132. | --program-transform | --program-transfor \
  1133. | --program-transfo | --program-transf \
  1134. | --program-trans | --program-tran \
  1135. | --progr-tra | --program-tr | --program-t)
  1136. ac_prev=program_transform_name ;;
  1137. -program-transform-name=* | --program-transform-name=* \
  1138. | --program-transform-nam=* | --program-transform-na=* \
  1139. | --program-transform-n=* | --program-transform-=* \
  1140. | --program-transform=* | --program-transfor=* \
  1141. | --program-transfo=* | --program-transf=* \
  1142. | --program-trans=* | --program-tran=* \
  1143. | --progr-tra=* | --program-tr=* | --program-t=*)
  1144. program_transform_name=$ac_optarg ;;
  1145. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1146. ac_prev=pdfdir ;;
  1147. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1148. pdfdir=$ac_optarg ;;
  1149. -psdir | --psdir | --psdi | --psd | --ps)
  1150. ac_prev=psdir ;;
  1151. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1152. psdir=$ac_optarg ;;
  1153. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1154. | -silent | --silent | --silen | --sile | --sil)
  1155. silent=yes ;;
  1156. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1157. | --runstate | --runstat | --runsta | --runst | --runs \
  1158. | --run | --ru | --r)
  1159. ac_prev=runstatedir ;;
  1160. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1161. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1162. | --run=* | --ru=* | --r=*)
  1163. runstatedir=$ac_optarg ;;
  1164. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1165. ac_prev=sbindir ;;
  1166. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1167. | --sbi=* | --sb=*)
  1168. sbindir=$ac_optarg ;;
  1169. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1170. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1171. | --sharedst | --shareds | --shared | --share | --shar \
  1172. | --sha | --sh)
  1173. ac_prev=sharedstatedir ;;
  1174. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1175. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1176. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1177. | --sha=* | --sh=*)
  1178. sharedstatedir=$ac_optarg ;;
  1179. -site | --site | --sit)
  1180. ac_prev=site ;;
  1181. -site=* | --site=* | --sit=*)
  1182. site=$ac_optarg ;;
  1183. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1184. ac_prev=srcdir ;;
  1185. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1186. srcdir=$ac_optarg ;;
  1187. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1188. | --syscon | --sysco | --sysc | --sys | --sy)
  1189. ac_prev=sysconfdir ;;
  1190. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1191. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1192. sysconfdir=$ac_optarg ;;
  1193. -target | --target | --targe | --targ | --tar | --ta | --t)
  1194. ac_prev=target_alias ;;
  1195. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1196. target_alias=$ac_optarg ;;
  1197. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1198. verbose=yes ;;
  1199. -version | --version | --versio | --versi | --vers | -V)
  1200. ac_init_version=: ;;
  1201. -with-* | --with-*)
  1202. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1203. # Reject names that are not valid shell variable names.
  1204. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1205. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1206. ac_useropt_orig=$ac_useropt
  1207. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1208. case $ac_user_opts in
  1209. *"
  1210. "with_$ac_useropt"
  1211. "*) ;;
  1212. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1213. ac_unrecognized_sep=', ';;
  1214. esac
  1215. eval with_$ac_useropt=\$ac_optarg ;;
  1216. -without-* | --without-*)
  1217. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1218. # Reject names that are not valid shell variable names.
  1219. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1220. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1221. ac_useropt_orig=$ac_useropt
  1222. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1223. case $ac_user_opts in
  1224. *"
  1225. "with_$ac_useropt"
  1226. "*) ;;
  1227. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1228. ac_unrecognized_sep=', ';;
  1229. esac
  1230. eval with_$ac_useropt=no ;;
  1231. --x)
  1232. # Obsolete; use --with-x.
  1233. with_x=yes ;;
  1234. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1235. | --x-incl | --x-inc | --x-in | --x-i)
  1236. ac_prev=x_includes ;;
  1237. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1238. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1239. x_includes=$ac_optarg ;;
  1240. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1241. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1242. ac_prev=x_libraries ;;
  1243. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1244. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1245. x_libraries=$ac_optarg ;;
  1246. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1247. Try \`$0 --help' for more information"
  1248. ;;
  1249. *=*)
  1250. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1251. # Reject names that are not valid shell variable names.
  1252. case $ac_envvar in #(
  1253. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1254. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1255. esac
  1256. eval $ac_envvar=\$ac_optarg
  1257. export $ac_envvar ;;
  1258. *)
  1259. # FIXME: should be removed in autoconf 3.0.
  1260. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1261. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1262. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1263. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1264. ;;
  1265. esac
  1266. done
  1267. if test -n "$ac_prev"; then
  1268. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1269. as_fn_error $? "missing argument to $ac_option"
  1270. fi
  1271. if test -n "$ac_unrecognized_opts"; then
  1272. case $enable_option_checking in
  1273. no) ;;
  1274. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1275. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1276. esac
  1277. fi
  1278. # Check all directory arguments for consistency.
  1279. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1280. datadir sysconfdir sharedstatedir localstatedir includedir \
  1281. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1282. libdir localedir mandir runstatedir
  1283. do
  1284. eval ac_val=\$$ac_var
  1285. # Remove trailing slashes.
  1286. case $ac_val in
  1287. */ )
  1288. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1289. eval $ac_var=\$ac_val;;
  1290. esac
  1291. # Be sure to have absolute directory names.
  1292. case $ac_val in
  1293. [\\/$]* | ?:[\\/]* ) continue;;
  1294. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1295. esac
  1296. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1297. done
  1298. # There might be people who depend on the old broken behavior: `$host'
  1299. # used to hold the argument of --host etc.
  1300. # FIXME: To remove some day.
  1301. build=$build_alias
  1302. host=$host_alias
  1303. target=$target_alias
  1304. # FIXME: To remove some day.
  1305. if test "x$host_alias" != x; then
  1306. if test "x$build_alias" = x; then
  1307. cross_compiling=maybe
  1308. elif test "x$build_alias" != "x$host_alias"; then
  1309. cross_compiling=yes
  1310. fi
  1311. fi
  1312. ac_tool_prefix=
  1313. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1314. test "$silent" = yes && exec 6>/dev/null
  1315. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1316. ac_ls_di=`ls -di .` &&
  1317. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1318. as_fn_error $? "working directory cannot be determined"
  1319. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1320. as_fn_error $? "pwd does not report name of working directory"
  1321. # Find the source files, if location was not specified.
  1322. if test -z "$srcdir"; then
  1323. ac_srcdir_defaulted=yes
  1324. # Try the directory containing this script, then the parent directory.
  1325. ac_confdir=`$as_dirname -- "$as_myself" ||
  1326. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1327. X"$as_myself" : 'X\(//\)[^/]' \| \
  1328. X"$as_myself" : 'X\(//\)$' \| \
  1329. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1330. printf "%s\n" X"$as_myself" |
  1331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1332. s//\1/
  1333. q
  1334. }
  1335. /^X\(\/\/\)[^/].*/{
  1336. s//\1/
  1337. q
  1338. }
  1339. /^X\(\/\/\)$/{
  1340. s//\1/
  1341. q
  1342. }
  1343. /^X\(\/\).*/{
  1344. s//\1/
  1345. q
  1346. }
  1347. s/.*/./; q'`
  1348. srcdir=$ac_confdir
  1349. if test ! -r "$srcdir/$ac_unique_file"; then
  1350. srcdir=..
  1351. fi
  1352. else
  1353. ac_srcdir_defaulted=no
  1354. fi
  1355. if test ! -r "$srcdir/$ac_unique_file"; then
  1356. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1357. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1358. fi
  1359. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1360. ac_abs_confdir=`(
  1361. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1362. pwd)`
  1363. # When building in place, set srcdir=.
  1364. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1365. srcdir=.
  1366. fi
  1367. # Remove unnecessary trailing slashes from srcdir.
  1368. # Double slashes in file names in object file debugging info
  1369. # mess up M-x gdb in Emacs.
  1370. case $srcdir in
  1371. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1372. esac
  1373. for ac_var in $ac_precious_vars; do
  1374. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1375. eval ac_env_${ac_var}_value=\$${ac_var}
  1376. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1378. done
  1379. #
  1380. # Report the --help message.
  1381. #
  1382. if test "$ac_init_help" = "long"; then
  1383. # Omit some internal or obsolete options to make the list less imposing.
  1384. # This message is too long to be a string in the A/UX 3.1 sh.
  1385. cat <<_ACEOF
  1386. \`configure' configures this package to adapt to many kinds of systems.
  1387. Usage: $0 [OPTION]... [VAR=VALUE]...
  1388. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1389. VAR=VALUE. See below for descriptions of some of the useful variables.
  1390. Defaults for the options are specified in brackets.
  1391. Configuration:
  1392. -h, --help display this help and exit
  1393. --help=short display options specific to this package
  1394. --help=recursive display the short help of all the included packages
  1395. -V, --version display version information and exit
  1396. -q, --quiet, --silent do not print \`checking ...' messages
  1397. --cache-file=FILE cache test results in FILE [disabled]
  1398. -C, --config-cache alias for \`--cache-file=config.cache'
  1399. -n, --no-create do not create output files
  1400. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1401. Installation directories:
  1402. --prefix=PREFIX install architecture-independent files in PREFIX
  1403. [$ac_default_prefix]
  1404. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1405. [PREFIX]
  1406. By default, \`make install' will install all the files in
  1407. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1408. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1409. for instance \`--prefix=\$HOME'.
  1410. For better control, use the options below.
  1411. Fine tuning of the installation directories:
  1412. --bindir=DIR user executables [EPREFIX/bin]
  1413. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1414. --libexecdir=DIR program executables [EPREFIX/libexec]
  1415. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1416. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1417. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1418. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1419. --libdir=DIR object code libraries [EPREFIX/lib]
  1420. --includedir=DIR C header files [PREFIX/include]
  1421. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1422. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1423. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1424. --infodir=DIR info documentation [DATAROOTDIR/info]
  1425. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1426. --mandir=DIR man documentation [DATAROOTDIR/man]
  1427. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1428. --htmldir=DIR html documentation [DOCDIR]
  1429. --dvidir=DIR dvi documentation [DOCDIR]
  1430. --pdfdir=DIR pdf documentation [DOCDIR]
  1431. --psdir=DIR ps documentation [DOCDIR]
  1432. _ACEOF
  1433. cat <<\_ACEOF
  1434. X features:
  1435. --x-includes=DIR X include files are in DIR
  1436. --x-libraries=DIR X library files are in DIR
  1437. System types:
  1438. --build=BUILD configure for building on BUILD [guessed]
  1439. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1440. _ACEOF
  1441. fi
  1442. if test -n "$ac_init_help"; then
  1443. cat <<\_ACEOF
  1444. Optional Features:
  1445. --disable-option-checking ignore unrecognized --enable/--with options
  1446. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1447. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1448. --enable-shared[=PKGS] build shared libraries [default=yes]
  1449. --enable-static[=PKGS] build static libraries [default=yes]
  1450. --enable-fast-install[=PKGS]
  1451. optimize for fast installation [default=yes]
  1452. --disable-libtool-lock avoid locking (might break parallel builds)
  1453. --disable-largefile omit support for large files
  1454. --enable-assertions Enable internal sanity checks
  1455. (auto/disabled/release/enabled/paranoid)
  1456. [default=auto]
  1457. --enable-dependency-tracking
  1458. Use gcc -MMD -MT dependency tracking [default=yes]
  1459. --enable-libc Use the system C library [default=yes]
  1460. --enable-system-iconv Use iconv() from system-installed libraries
  1461. [default=yes]
  1462. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1463. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1464. --enable-audio Enable the audio subsystem [default=yes]
  1465. --enable-video Enable the video subsystem [default=yes]
  1466. --enable-render Enable the render subsystem [default=yes]
  1467. --enable-events Enable the events subsystem [default=yes]
  1468. --enable-joystick Enable the joystick subsystem [default=yes]
  1469. --enable-haptic Enable the haptic (force feedback) subsystem
  1470. [default=yes]
  1471. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1472. --enable-sensor Enable the sensor subsystem [default=yes]
  1473. --enable-power Enable the power subsystem [default=yes]
  1474. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1475. --enable-timers Enable the timer subsystem [default=yes]
  1476. --enable-file Enable the file subsystem [default=yes]
  1477. --enable-misc Enable the misc subsystem [default=yes]
  1478. --enable-locale Enable the locale subsystem [default=yes]
  1479. --enable-loadso Enable the shared object loading subsystem
  1480. [default=yes]
  1481. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1482. --enable-assembly Enable assembly routines [default=yes]
  1483. --enable-ssemath Allow GCC to use SSE floating point math
  1484. [default=maybe]
  1485. --enable-mmx use MMX assembly routines [default=yes]
  1486. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1487. --enable-sse use SSE assembly routines [default=yes]
  1488. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1489. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1490. --enable-altivec use Altivec assembly routines [default=yes]
  1491. --enable-lsx use LSX assembly routines [default=yes]
  1492. --enable-lasx use LASX assembly routines [default=yes]
  1493. --enable-oss support the OSS audio API [default=maybe]
  1494. --enable-alsa support the ALSA audio API [default=yes]
  1495. --disable-alsatest Do not try to compile and run a test Alsa program
  1496. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1497. --enable-pipewire use Pipewire audio [default=yes]
  1498. --enable-pipewire-shared
  1499. dynamically load Pipewire support [default=yes]
  1500. --enable-pulseaudio use PulseAudio [default=yes]
  1501. --enable-pulseaudio-shared
  1502. dynamically load PulseAudio support [default=yes]
  1503. --enable-diskaudio support the disk writer audio driver [default=yes]
  1504. --enable-dummyaudio support the dummy audio driver [default=yes]
  1505. --enable-libsamplerate use libsamplerate for audio rate conversion
  1506. [default=yes]
  1507. --enable-libsamplerate-shared
  1508. dynamically load libsamplerate [default=yes]
  1509. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1510. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1511. --enable-werror treat warnings as errors [default=no]
  1512. --enable-video-wayland use Wayland video driver [default=yes]
  1513. --enable-video-wayland-qt-touch
  1514. QtWayland server support for Wayland video driver
  1515. [default=yes]
  1516. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1517. --enable-libdecor use libdecor for Wayland client-side decorations
  1518. [default=yes]
  1519. --enable-libdecor-shared
  1520. dynamically load libdecor [default=yes]
  1521. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1522. --enable-video-x11 use X11 video driver [default=maybe]
  1523. --enable-x11-shared dynamically load X11 support [default=maybe]
  1524. --enable-video-x11-xcursor
  1525. enable X11 Xcursor support [default=yes]
  1526. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1527. --enable-video-x11-xinput
  1528. enable X11 XInput extension for manymouse, tablets,
  1529. etc [default=yes]
  1530. --enable-video-x11-xfixes
  1531. enable X11 Xfixes support [default=yes]
  1532. --enable-video-x11-xrandr
  1533. enable X11 Xrandr extension for fullscreen
  1534. [default=yes]
  1535. --enable-video-x11-scrnsaver
  1536. enable X11 screensaver extension [default=yes]
  1537. --enable-video-x11-xshape
  1538. enable X11 XShape support [default=yes]
  1539. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1540. --enable-video-cocoa use Cocoa video driver [default=yes]
  1541. --enable-video-metal include Metal support [default=yes]
  1542. --enable-render-metal enable the Metal render driver [default=yes]
  1543. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1544. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1545. --enable-video-dummy use dummy video driver [default=yes]
  1546. --enable-video-offscreen
  1547. use offscreen video driver [default=yes]
  1548. --enable-video-opengl include OpenGL support [default=yes]
  1549. --enable-video-opengles include OpenGL ES support [default=yes]
  1550. --enable-video-opengles1
  1551. include OpenGL ES 1.1 support [default=yes]
  1552. --enable-video-opengles2
  1553. include OpenGL ES 2.0 support [default=yes]
  1554. --enable-video-vulkan include Vulkan support [default=yes]
  1555. --enable-libudev enable libudev support [default=yes]
  1556. --enable-dbus enable D-Bus support [default=yes]
  1557. --enable-ime enable IME support [default=yes]
  1558. --enable-ibus enable IBus support [default=yes]
  1559. --enable-fcitx enable fcitx support [default=yes]
  1560. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1561. --enable-pthreads use POSIX threads for multi-threading
  1562. [default=maybe]
  1563. --enable-pthread-sem use pthread semaphores [default=maybe]
  1564. --enable-directx use DirectX for Windows audio/video [default=yes]
  1565. --enable-xinput use Xinput for Windows [default=yes]
  1566. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1567. --enable-hidapi-joystick
  1568. use HIDAPI for low level joystick drivers
  1569. [default=yes]
  1570. --enable-hidapi-libusb use libusb for low level joystick drivers
  1571. [default=maybe]
  1572. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1573. UNIX [default=yes]
  1574. --enable-rpath use an rpath when linking SDL [default=yes]
  1575. --enable-backgrounding-signal
  1576. number to use for magic backgrounding signal or 'no'
  1577. [default=no]
  1578. --enable-foregrounding-signal
  1579. number to use for magic foregrounding signal or 'no'
  1580. [default=no]
  1581. --enable-joystick-virtual
  1582. enable virtual joystick APIs [default=yes]
  1583. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1584. --enable-sdl3-config Install sdl3-config [default=yes]
  1585. --enable-vendor-info=STRING
  1586. Add vendor info to SDL_REVISION
  1587. Optional Packages:
  1588. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1589. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1590. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1591. both]
  1592. --with-aix-soname=aix|svr4|both
  1593. shared library versioning (aka "SONAME") variant to
  1594. provide on AIX, [default=aix].
  1595. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1596. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1597. compiler's sysroot if not specified).
  1598. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1599. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1600. --with-x use the X Window System
  1601. Some influential environment variables:
  1602. CC C compiler command
  1603. CFLAGS C compiler flags
  1604. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1605. nonstandard directory <lib dir>
  1606. LIBS libraries to pass to the linker, e.g. -l<library>
  1607. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1608. you have headers in a nonstandard directory <include dir>
  1609. LT_SYS_LIBRARY_PATH
  1610. User-defined run-time library search path.
  1611. CXX C++ compiler command
  1612. CXXFLAGS C++ compiler flags
  1613. CXXCPP C++ preprocessor
  1614. PKG_CONFIG path to pkg-config utility
  1615. PKG_CONFIG_PATH
  1616. directories to add to pkg-config's search path
  1617. PKG_CONFIG_LIBDIR
  1618. path overriding pkg-config's built-in search path
  1619. CPP C preprocessor
  1620. PIPEWIRE_CFLAGS
  1621. C compiler flags for PIPEWIRE, overriding pkg-config
  1622. PIPEWIRE_LIBS
  1623. linker flags for PIPEWIRE, overriding pkg-config
  1624. PULSEAUDIO_CFLAGS
  1625. C compiler flags for PULSEAUDIO, overriding pkg-config
  1626. PULSEAUDIO_LIBS
  1627. linker flags for PULSEAUDIO, overriding pkg-config
  1628. DECOR_CFLAGS
  1629. C compiler flags for DECOR, overriding pkg-config
  1630. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1631. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1632. RPI_LIBS linker flags for RPI, overriding pkg-config
  1633. XMKMF Path to xmkmf, Makefile generator for X Window System
  1634. LIBDRM_CFLAGS
  1635. C compiler flags for LIBDRM, overriding pkg-config
  1636. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1637. LIBGBM_CFLAGS
  1638. C compiler flags for LIBGBM, overriding pkg-config
  1639. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1640. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1641. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1642. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1643. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1644. LIBUSB_CFLAGS
  1645. C compiler flags for LIBUSB, overriding pkg-config
  1646. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1647. Use these variables to override the choices made by `configure' or to help
  1648. it to find libraries and programs with nonstandard names/locations.
  1649. Report bugs to the package provider.
  1650. _ACEOF
  1651. ac_status=$?
  1652. fi
  1653. if test "$ac_init_help" = "recursive"; then
  1654. # If there are subdirs, report their specific --help.
  1655. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1656. test -d "$ac_dir" ||
  1657. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1658. continue
  1659. ac_builddir=.
  1660. case "$ac_dir" in
  1661. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1662. *)
  1663. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1664. # A ".." for each directory in $ac_dir_suffix.
  1665. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1666. case $ac_top_builddir_sub in
  1667. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1668. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1669. esac ;;
  1670. esac
  1671. ac_abs_top_builddir=$ac_pwd
  1672. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1673. # for backward compatibility:
  1674. ac_top_builddir=$ac_top_build_prefix
  1675. case $srcdir in
  1676. .) # We are building in place.
  1677. ac_srcdir=.
  1678. ac_top_srcdir=$ac_top_builddir_sub
  1679. ac_abs_top_srcdir=$ac_pwd ;;
  1680. [\\/]* | ?:[\\/]* ) # Absolute name.
  1681. ac_srcdir=$srcdir$ac_dir_suffix;
  1682. ac_top_srcdir=$srcdir
  1683. ac_abs_top_srcdir=$srcdir ;;
  1684. *) # Relative name.
  1685. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1686. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1687. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1688. esac
  1689. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1690. cd "$ac_dir" || { ac_status=$?; continue; }
  1691. # Check for configure.gnu first; this name is used for a wrapper for
  1692. # Metaconfig's "Configure" on case-insensitive file systems.
  1693. if test -f "$ac_srcdir/configure.gnu"; then
  1694. echo &&
  1695. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1696. elif test -f "$ac_srcdir/configure"; then
  1697. echo &&
  1698. $SHELL "$ac_srcdir/configure" --help=recursive
  1699. else
  1700. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1701. fi || ac_status=$?
  1702. cd "$ac_pwd" || { ac_status=$?; break; }
  1703. done
  1704. fi
  1705. test -n "$ac_init_help" && exit $ac_status
  1706. if $ac_init_version; then
  1707. cat <<\_ACEOF
  1708. configure
  1709. generated by GNU Autoconf 2.71
  1710. Copyright (C) 2021 Free Software Foundation, Inc.
  1711. This configure script is free software; the Free Software Foundation
  1712. gives unlimited permission to copy, distribute and modify it.
  1713. _ACEOF
  1714. exit
  1715. fi
  1716. ## ------------------------ ##
  1717. ## Autoconf initialization. ##
  1718. ## ------------------------ ##
  1719. # ac_fn_c_try_compile LINENO
  1720. # --------------------------
  1721. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1722. ac_fn_c_try_compile ()
  1723. {
  1724. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1725. rm -f conftest.$ac_objext conftest.beam
  1726. if { { ac_try="$ac_compile"
  1727. case "(($ac_try" in
  1728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1729. *) ac_try_echo=$ac_try;;
  1730. esac
  1731. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1732. printf "%s\n" "$ac_try_echo"; } >&5
  1733. (eval "$ac_compile") 2>conftest.err
  1734. ac_status=$?
  1735. if test -s conftest.err; then
  1736. grep -v '^ *+' conftest.err >conftest.er1
  1737. cat conftest.er1 >&5
  1738. mv -f conftest.er1 conftest.err
  1739. fi
  1740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1741. test $ac_status = 0; } && {
  1742. test -z "$ac_c_werror_flag" ||
  1743. test ! -s conftest.err
  1744. } && test -s conftest.$ac_objext
  1745. then :
  1746. ac_retval=0
  1747. else $as_nop
  1748. printf "%s\n" "$as_me: failed program was:" >&5
  1749. sed 's/^/| /' conftest.$ac_ext >&5
  1750. ac_retval=1
  1751. fi
  1752. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1753. as_fn_set_status $ac_retval
  1754. } # ac_fn_c_try_compile
  1755. # ac_fn_c_try_link LINENO
  1756. # -----------------------
  1757. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1758. ac_fn_c_try_link ()
  1759. {
  1760. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1761. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1762. if { { ac_try="$ac_link"
  1763. case "(($ac_try" in
  1764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1765. *) ac_try_echo=$ac_try;;
  1766. esac
  1767. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1768. printf "%s\n" "$ac_try_echo"; } >&5
  1769. (eval "$ac_link") 2>conftest.err
  1770. ac_status=$?
  1771. if test -s conftest.err; then
  1772. grep -v '^ *+' conftest.err >conftest.er1
  1773. cat conftest.er1 >&5
  1774. mv -f conftest.er1 conftest.err
  1775. fi
  1776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1777. test $ac_status = 0; } && {
  1778. test -z "$ac_c_werror_flag" ||
  1779. test ! -s conftest.err
  1780. } && test -s conftest$ac_exeext && {
  1781. test "$cross_compiling" = yes ||
  1782. test -x conftest$ac_exeext
  1783. }
  1784. then :
  1785. ac_retval=0
  1786. else $as_nop
  1787. printf "%s\n" "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_c_try_link
  1799. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1800. # -------------------------------------------------------
  1801. # Tests whether HEADER exists and can be compiled using the include files in
  1802. # INCLUDES, setting the cache variable VAR accordingly.
  1803. ac_fn_c_check_header_compile ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1807. printf %s "checking for $2... " >&6; }
  1808. if eval test \${$3+y}
  1809. then :
  1810. printf %s "(cached) " >&6
  1811. else $as_nop
  1812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h. */
  1814. $4
  1815. #include <$2>
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"
  1818. then :
  1819. eval "$3=yes"
  1820. else $as_nop
  1821. eval "$3=no"
  1822. fi
  1823. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. printf "%s\n" "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_header_compile
  1830. # ac_fn_c_check_func LINENO FUNC VAR
  1831. # ----------------------------------
  1832. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1833. ac_fn_c_check_func ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1837. printf %s "checking for $2... " >&6; }
  1838. if eval test \${$3+y}
  1839. then :
  1840. printf %s "(cached) " >&6
  1841. else $as_nop
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1846. #define $2 innocuous_$2
  1847. /* System header to define __stub macros and hopefully few prototypes,
  1848. which can conflict with char $2 (); below. */
  1849. #include <limits.h>
  1850. #undef $2
  1851. /* Override any GCC internal prototype to avoid an error.
  1852. Use char because int might match the return type of a GCC
  1853. builtin and then its argument prototype would still apply. */
  1854. #ifdef __cplusplus
  1855. extern "C"
  1856. #endif
  1857. char $2 ();
  1858. /* The GNU C library defines this for functions which it implements
  1859. to always fail with ENOSYS. Some functions are actually named
  1860. something starting with __ and the normal name is an alias. */
  1861. #if defined __stub_$2 || defined __stub___$2
  1862. choke me
  1863. #endif
  1864. int
  1865. main (void)
  1866. {
  1867. return $2 ();
  1868. ;
  1869. return 0;
  1870. }
  1871. _ACEOF
  1872. if ac_fn_c_try_link "$LINENO"
  1873. then :
  1874. eval "$3=yes"
  1875. else $as_nop
  1876. eval "$3=no"
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1879. conftest$ac_exeext conftest.$ac_ext
  1880. fi
  1881. eval ac_res=\$$3
  1882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1883. printf "%s\n" "$ac_res" >&6; }
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. } # ac_fn_c_check_func
  1886. # ac_fn_cxx_try_compile LINENO
  1887. # ----------------------------
  1888. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1889. ac_fn_cxx_try_compile ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. rm -f conftest.$ac_objext conftest.beam
  1893. if { { ac_try="$ac_compile"
  1894. case "(($ac_try" in
  1895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1896. *) ac_try_echo=$ac_try;;
  1897. esac
  1898. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1899. printf "%s\n" "$ac_try_echo"; } >&5
  1900. (eval "$ac_compile") 2>conftest.err
  1901. ac_status=$?
  1902. if test -s conftest.err; then
  1903. grep -v '^ *+' conftest.err >conftest.er1
  1904. cat conftest.er1 >&5
  1905. mv -f conftest.er1 conftest.err
  1906. fi
  1907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1908. test $ac_status = 0; } && {
  1909. test -z "$ac_cxx_werror_flag" ||
  1910. test ! -s conftest.err
  1911. } && test -s conftest.$ac_objext
  1912. then :
  1913. ac_retval=0
  1914. else $as_nop
  1915. printf "%s\n" "$as_me: failed program was:" >&5
  1916. sed 's/^/| /' conftest.$ac_ext >&5
  1917. ac_retval=1
  1918. fi
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. as_fn_set_status $ac_retval
  1921. } # ac_fn_cxx_try_compile
  1922. # ac_fn_cxx_try_cpp LINENO
  1923. # ------------------------
  1924. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1925. ac_fn_cxx_try_cpp ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1929. case "(($ac_try" in
  1930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1931. *) ac_try_echo=$ac_try;;
  1932. esac
  1933. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1934. printf "%s\n" "$ac_try_echo"; } >&5
  1935. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1936. ac_status=$?
  1937. if test -s conftest.err; then
  1938. grep -v '^ *+' conftest.err >conftest.er1
  1939. cat conftest.er1 >&5
  1940. mv -f conftest.er1 conftest.err
  1941. fi
  1942. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1943. test $ac_status = 0; } > conftest.i && {
  1944. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1945. test ! -s conftest.err
  1946. }
  1947. then :
  1948. ac_retval=0
  1949. else $as_nop
  1950. printf "%s\n" "$as_me: failed program was:" >&5
  1951. sed 's/^/| /' conftest.$ac_ext >&5
  1952. ac_retval=1
  1953. fi
  1954. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1955. as_fn_set_status $ac_retval
  1956. } # ac_fn_cxx_try_cpp
  1957. # ac_fn_cxx_try_link LINENO
  1958. # -------------------------
  1959. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1960. ac_fn_cxx_try_link ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1964. if { { ac_try="$ac_link"
  1965. case "(($ac_try" in
  1966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967. *) ac_try_echo=$ac_try;;
  1968. esac
  1969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1970. printf "%s\n" "$ac_try_echo"; } >&5
  1971. (eval "$ac_link") 2>conftest.err
  1972. ac_status=$?
  1973. if test -s conftest.err; then
  1974. grep -v '^ *+' conftest.err >conftest.er1
  1975. cat conftest.er1 >&5
  1976. mv -f conftest.er1 conftest.err
  1977. fi
  1978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1979. test $ac_status = 0; } && {
  1980. test -z "$ac_cxx_werror_flag" ||
  1981. test ! -s conftest.err
  1982. } && test -s conftest$ac_exeext && {
  1983. test "$cross_compiling" = yes ||
  1984. test -x conftest$ac_exeext
  1985. }
  1986. then :
  1987. ac_retval=0
  1988. else $as_nop
  1989. printf "%s\n" "$as_me: failed program was:" >&5
  1990. sed 's/^/| /' conftest.$ac_ext >&5
  1991. ac_retval=1
  1992. fi
  1993. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1994. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1995. # interfere with the next link command; also delete a directory that is
  1996. # left behind by Apple's compiler. We do this before executing the actions.
  1997. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. as_fn_set_status $ac_retval
  2000. } # ac_fn_cxx_try_link
  2001. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2002. # -------------------------------------------
  2003. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2004. # variable VAR accordingly.
  2005. ac_fn_c_check_type ()
  2006. {
  2007. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2009. printf %s "checking for $2... " >&6; }
  2010. if eval test \${$3+y}
  2011. then :
  2012. printf %s "(cached) " >&6
  2013. else $as_nop
  2014. eval "$3=no"
  2015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2016. /* end confdefs.h. */
  2017. $4
  2018. int
  2019. main (void)
  2020. {
  2021. if (sizeof ($2))
  2022. return 0;
  2023. ;
  2024. return 0;
  2025. }
  2026. _ACEOF
  2027. if ac_fn_c_try_compile "$LINENO"
  2028. then :
  2029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2030. /* end confdefs.h. */
  2031. $4
  2032. int
  2033. main (void)
  2034. {
  2035. if (sizeof (($2)))
  2036. return 0;
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. if ac_fn_c_try_compile "$LINENO"
  2042. then :
  2043. else $as_nop
  2044. eval "$3=yes"
  2045. fi
  2046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2047. fi
  2048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2049. fi
  2050. eval ac_res=\$$3
  2051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2052. printf "%s\n" "$ac_res" >&6; }
  2053. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2054. } # ac_fn_c_check_type
  2055. # ac_fn_c_try_cpp LINENO
  2056. # ----------------------
  2057. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2058. ac_fn_c_try_cpp ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2062. case "(($ac_try" in
  2063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2064. *) ac_try_echo=$ac_try;;
  2065. esac
  2066. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2067. printf "%s\n" "$ac_try_echo"; } >&5
  2068. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2069. ac_status=$?
  2070. if test -s conftest.err; then
  2071. grep -v '^ *+' conftest.err >conftest.er1
  2072. cat conftest.er1 >&5
  2073. mv -f conftest.er1 conftest.err
  2074. fi
  2075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2076. test $ac_status = 0; } > conftest.i && {
  2077. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2078. test ! -s conftest.err
  2079. }
  2080. then :
  2081. ac_retval=0
  2082. else $as_nop
  2083. printf "%s\n" "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. ac_retval=1
  2086. fi
  2087. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2088. as_fn_set_status $ac_retval
  2089. } # ac_fn_c_try_cpp
  2090. # ac_fn_c_try_run LINENO
  2091. # ----------------------
  2092. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2093. # executables *can* be run.
  2094. ac_fn_c_try_run ()
  2095. {
  2096. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2097. if { { ac_try="$ac_link"
  2098. case "(($ac_try" in
  2099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2100. *) ac_try_echo=$ac_try;;
  2101. esac
  2102. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2103. printf "%s\n" "$ac_try_echo"; } >&5
  2104. (eval "$ac_link") 2>&5
  2105. ac_status=$?
  2106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2107. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2108. { { case "(($ac_try" in
  2109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2110. *) ac_try_echo=$ac_try;;
  2111. esac
  2112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2113. printf "%s\n" "$ac_try_echo"; } >&5
  2114. (eval "$ac_try") 2>&5
  2115. ac_status=$?
  2116. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2117. test $ac_status = 0; }; }
  2118. then :
  2119. ac_retval=0
  2120. else $as_nop
  2121. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2122. printf "%s\n" "$as_me: failed program was:" >&5
  2123. sed 's/^/| /' conftest.$ac_ext >&5
  2124. ac_retval=$ac_status
  2125. fi
  2126. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. as_fn_set_status $ac_retval
  2129. } # ac_fn_c_try_run
  2130. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2131. # ----------------------------------------------------
  2132. # Tries to find if the field MEMBER exists in type AGGR, after including
  2133. # INCLUDES, setting cache variable VAR accordingly.
  2134. ac_fn_c_check_member ()
  2135. {
  2136. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2138. printf %s "checking for $2.$3... " >&6; }
  2139. if eval test \${$4+y}
  2140. then :
  2141. printf %s "(cached) " >&6
  2142. else $as_nop
  2143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2144. /* end confdefs.h. */
  2145. $5
  2146. int
  2147. main (void)
  2148. {
  2149. static $2 ac_aggr;
  2150. if (ac_aggr.$3)
  2151. return 0;
  2152. ;
  2153. return 0;
  2154. }
  2155. _ACEOF
  2156. if ac_fn_c_try_compile "$LINENO"
  2157. then :
  2158. eval "$4=yes"
  2159. else $as_nop
  2160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2161. /* end confdefs.h. */
  2162. $5
  2163. int
  2164. main (void)
  2165. {
  2166. static $2 ac_aggr;
  2167. if (sizeof ac_aggr.$3)
  2168. return 0;
  2169. ;
  2170. return 0;
  2171. }
  2172. _ACEOF
  2173. if ac_fn_c_try_compile "$LINENO"
  2174. then :
  2175. eval "$4=yes"
  2176. else $as_nop
  2177. eval "$4=no"
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2180. fi
  2181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2182. fi
  2183. eval ac_res=\$$4
  2184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2185. printf "%s\n" "$ac_res" >&6; }
  2186. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2187. } # ac_fn_c_check_member
  2188. ac_configure_args_raw=
  2189. for ac_arg
  2190. do
  2191. case $ac_arg in
  2192. *\'*)
  2193. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2194. esac
  2195. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2196. done
  2197. case $ac_configure_args_raw in
  2198. *$as_nl*)
  2199. ac_safe_unquote= ;;
  2200. *)
  2201. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2202. ac_unsafe_a="$ac_unsafe_z#~"
  2203. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2204. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2205. esac
  2206. cat >config.log <<_ACEOF
  2207. This file contains any messages produced by compilers while
  2208. running configure, to aid debugging if configure makes a mistake.
  2209. It was created by $as_me, which was
  2210. generated by GNU Autoconf 2.71. Invocation command line was
  2211. $ $0$ac_configure_args_raw
  2212. _ACEOF
  2213. exec 5>>config.log
  2214. {
  2215. cat <<_ASUNAME
  2216. ## --------- ##
  2217. ## Platform. ##
  2218. ## --------- ##
  2219. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2220. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2221. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2222. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2223. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2224. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2225. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2226. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2227. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2228. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2229. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2230. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2231. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2232. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2233. _ASUNAME
  2234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2235. for as_dir in $PATH
  2236. do
  2237. IFS=$as_save_IFS
  2238. case $as_dir in #(((
  2239. '') as_dir=./ ;;
  2240. */) ;;
  2241. *) as_dir=$as_dir/ ;;
  2242. esac
  2243. printf "%s\n" "PATH: $as_dir"
  2244. done
  2245. IFS=$as_save_IFS
  2246. } >&5
  2247. cat >&5 <<_ACEOF
  2248. ## ----------- ##
  2249. ## Core tests. ##
  2250. ## ----------- ##
  2251. _ACEOF
  2252. # Keep a trace of the command line.
  2253. # Strip out --no-create and --no-recursion so they do not pile up.
  2254. # Strip out --silent because we don't want to record it for future runs.
  2255. # Also quote any args containing shell meta-characters.
  2256. # Make two passes to allow for proper duplicate-argument suppression.
  2257. ac_configure_args=
  2258. ac_configure_args0=
  2259. ac_configure_args1=
  2260. ac_must_keep_next=false
  2261. for ac_pass in 1 2
  2262. do
  2263. for ac_arg
  2264. do
  2265. case $ac_arg in
  2266. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2267. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2268. | -silent | --silent | --silen | --sile | --sil)
  2269. continue ;;
  2270. *\'*)
  2271. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2272. esac
  2273. case $ac_pass in
  2274. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2275. 2)
  2276. as_fn_append ac_configure_args1 " '$ac_arg'"
  2277. if test $ac_must_keep_next = true; then
  2278. ac_must_keep_next=false # Got value, back to normal.
  2279. else
  2280. case $ac_arg in
  2281. *=* | --config-cache | -C | -disable-* | --disable-* \
  2282. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2283. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2284. | -with-* | --with-* | -without-* | --without-* | --x)
  2285. case "$ac_configure_args0 " in
  2286. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2287. esac
  2288. ;;
  2289. -* ) ac_must_keep_next=true ;;
  2290. esac
  2291. fi
  2292. as_fn_append ac_configure_args " '$ac_arg'"
  2293. ;;
  2294. esac
  2295. done
  2296. done
  2297. { ac_configure_args0=; unset ac_configure_args0;}
  2298. { ac_configure_args1=; unset ac_configure_args1;}
  2299. # When interrupted or exit'd, cleanup temporary files, and complete
  2300. # config.log. We remove comments because anyway the quotes in there
  2301. # would cause problems or look ugly.
  2302. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2303. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2304. trap 'exit_status=$?
  2305. # Sanitize IFS.
  2306. IFS=" "" $as_nl"
  2307. # Save into config.log some information that might help in debugging.
  2308. {
  2309. echo
  2310. printf "%s\n" "## ---------------- ##
  2311. ## Cache variables. ##
  2312. ## ---------------- ##"
  2313. echo
  2314. # The following way of writing the cache mishandles newlines in values,
  2315. (
  2316. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2317. eval ac_val=\$$ac_var
  2318. case $ac_val in #(
  2319. *${as_nl}*)
  2320. case $ac_var in #(
  2321. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2322. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2323. esac
  2324. case $ac_var in #(
  2325. _ | IFS | as_nl) ;; #(
  2326. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2327. *) { eval $ac_var=; unset $ac_var;} ;;
  2328. esac ;;
  2329. esac
  2330. done
  2331. (set) 2>&1 |
  2332. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2333. *${as_nl}ac_space=\ *)
  2334. sed -n \
  2335. "s/'\''/'\''\\\\'\'''\''/g;
  2336. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2337. ;; #(
  2338. *)
  2339. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2340. ;;
  2341. esac |
  2342. sort
  2343. )
  2344. echo
  2345. printf "%s\n" "## ----------------- ##
  2346. ## Output variables. ##
  2347. ## ----------------- ##"
  2348. echo
  2349. for ac_var in $ac_subst_vars
  2350. do
  2351. eval ac_val=\$$ac_var
  2352. case $ac_val in
  2353. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2354. esac
  2355. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2356. done | sort
  2357. echo
  2358. if test -n "$ac_subst_files"; then
  2359. printf "%s\n" "## ------------------- ##
  2360. ## File substitutions. ##
  2361. ## ------------------- ##"
  2362. echo
  2363. for ac_var in $ac_subst_files
  2364. do
  2365. eval ac_val=\$$ac_var
  2366. case $ac_val in
  2367. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2368. esac
  2369. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2370. done | sort
  2371. echo
  2372. fi
  2373. if test -s confdefs.h; then
  2374. printf "%s\n" "## ----------- ##
  2375. ## confdefs.h. ##
  2376. ## ----------- ##"
  2377. echo
  2378. cat confdefs.h
  2379. echo
  2380. fi
  2381. test "$ac_signal" != 0 &&
  2382. printf "%s\n" "$as_me: caught signal $ac_signal"
  2383. printf "%s\n" "$as_me: exit $exit_status"
  2384. } >&5
  2385. rm -f core *.core core.conftest.* &&
  2386. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2387. exit $exit_status
  2388. ' 0
  2389. for ac_signal in 1 2 13 15; do
  2390. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2391. done
  2392. ac_signal=0
  2393. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2394. rm -f -r conftest* confdefs.h
  2395. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2396. # Predefined preprocessor variables.
  2397. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2398. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2399. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2400. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2401. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2402. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2403. # Let the site file select an alternate cache file if it wants to.
  2404. # Prefer an explicitly selected file to automatically selected ones.
  2405. if test -n "$CONFIG_SITE"; then
  2406. ac_site_files="$CONFIG_SITE"
  2407. elif test "x$prefix" != xNONE; then
  2408. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2409. else
  2410. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2411. fi
  2412. for ac_site_file in $ac_site_files
  2413. do
  2414. case $ac_site_file in #(
  2415. */*) :
  2416. ;; #(
  2417. *) :
  2418. ac_site_file=./$ac_site_file ;;
  2419. esac
  2420. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2422. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2423. sed 's/^/| /' "$ac_site_file" >&5
  2424. . "$ac_site_file" \
  2425. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2426. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2427. as_fn_error $? "failed to load site script $ac_site_file
  2428. See \`config.log' for more details" "$LINENO" 5; }
  2429. fi
  2430. done
  2431. if test -r "$cache_file"; then
  2432. # Some versions of bash will fail to source /dev/null (special files
  2433. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2434. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2436. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2437. case $cache_file in
  2438. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2439. *) . "./$cache_file";;
  2440. esac
  2441. fi
  2442. else
  2443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2444. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2445. >$cache_file
  2446. fi
  2447. # Test code for whether the C compiler supports C89 (global declarations)
  2448. ac_c_conftest_c89_globals='
  2449. /* Does the compiler advertise C89 conformance?
  2450. Do not test the value of __STDC__, because some compilers set it to 0
  2451. while being otherwise adequately conformant. */
  2452. #if !defined __STDC__
  2453. # error "Compiler does not advertise C89 conformance"
  2454. #endif
  2455. #include <stddef.h>
  2456. #include <stdarg.h>
  2457. struct stat;
  2458. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2459. struct buf { int x; };
  2460. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2461. static char *e (p, i)
  2462. char **p;
  2463. int i;
  2464. {
  2465. return p[i];
  2466. }
  2467. static char *f (char * (*g) (char **, int), char **p, ...)
  2468. {
  2469. char *s;
  2470. va_list v;
  2471. va_start (v,p);
  2472. s = g (p, va_arg (v,int));
  2473. va_end (v);
  2474. return s;
  2475. }
  2476. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2477. function prototypes and stuff, but not \xHH hex character constants.
  2478. These do not provoke an error unfortunately, instead are silently treated
  2479. as an "x". The following induces an error, until -std is added to get
  2480. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2481. array size at least. It is necessary to write \x00 == 0 to get something
  2482. that is true only with -std. */
  2483. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2484. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2485. inside strings and character constants. */
  2486. #define FOO(x) '\''x'\''
  2487. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2488. int test (int i, double x);
  2489. struct s1 {int (*f) (int a);};
  2490. struct s2 {int (*f) (double a);};
  2491. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2492. int, int);'
  2493. # Test code for whether the C compiler supports C89 (body of main).
  2494. ac_c_conftest_c89_main='
  2495. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2496. '
  2497. # Test code for whether the C compiler supports C99 (global declarations)
  2498. ac_c_conftest_c99_globals='
  2499. // Does the compiler advertise C99 conformance?
  2500. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2501. # error "Compiler does not advertise C99 conformance"
  2502. #endif
  2503. #include <stdbool.h>
  2504. extern int puts (const char *);
  2505. extern int printf (const char *, ...);
  2506. extern int dprintf (int, const char *, ...);
  2507. extern void *malloc (size_t);
  2508. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2509. // dprintf is used instead of fprintf to avoid needing to declare
  2510. // FILE and stderr.
  2511. #define debug(...) dprintf (2, __VA_ARGS__)
  2512. #define showlist(...) puts (#__VA_ARGS__)
  2513. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2514. static void
  2515. test_varargs_macros (void)
  2516. {
  2517. int x = 1234;
  2518. int y = 5678;
  2519. debug ("Flag");
  2520. debug ("X = %d\n", x);
  2521. showlist (The first, second, and third items.);
  2522. report (x>y, "x is %d but y is %d", x, y);
  2523. }
  2524. // Check long long types.
  2525. #define BIG64 18446744073709551615ull
  2526. #define BIG32 4294967295ul
  2527. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2528. #if !BIG_OK
  2529. #error "your preprocessor is broken"
  2530. #endif
  2531. #if BIG_OK
  2532. #else
  2533. #error "your preprocessor is broken"
  2534. #endif
  2535. static long long int bignum = -9223372036854775807LL;
  2536. static unsigned long long int ubignum = BIG64;
  2537. struct incomplete_array
  2538. {
  2539. int datasize;
  2540. double data[];
  2541. };
  2542. struct named_init {
  2543. int number;
  2544. const wchar_t *name;
  2545. double average;
  2546. };
  2547. typedef const char *ccp;
  2548. static inline int
  2549. test_restrict (ccp restrict text)
  2550. {
  2551. // See if C++-style comments work.
  2552. // Iterate through items via the restricted pointer.
  2553. // Also check for declarations in for loops.
  2554. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2555. continue;
  2556. return 0;
  2557. }
  2558. // Check varargs and va_copy.
  2559. static bool
  2560. test_varargs (const char *format, ...)
  2561. {
  2562. va_list args;
  2563. va_start (args, format);
  2564. va_list args_copy;
  2565. va_copy (args_copy, args);
  2566. const char *str = "";
  2567. int number = 0;
  2568. float fnumber = 0;
  2569. while (*format)
  2570. {
  2571. switch (*format++)
  2572. {
  2573. case '\''s'\'': // string
  2574. str = va_arg (args_copy, const char *);
  2575. break;
  2576. case '\''d'\'': // int
  2577. number = va_arg (args_copy, int);
  2578. break;
  2579. case '\''f'\'': // float
  2580. fnumber = va_arg (args_copy, double);
  2581. break;
  2582. default:
  2583. break;
  2584. }
  2585. }
  2586. va_end (args_copy);
  2587. va_end (args);
  2588. return *str && number && fnumber;
  2589. }
  2590. '
  2591. # Test code for whether the C compiler supports C99 (body of main).
  2592. ac_c_conftest_c99_main='
  2593. // Check bool.
  2594. _Bool success = false;
  2595. success |= (argc != 0);
  2596. // Check restrict.
  2597. if (test_restrict ("String literal") == 0)
  2598. success = true;
  2599. char *restrict newvar = "Another string";
  2600. // Check varargs.
  2601. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2602. test_varargs_macros ();
  2603. // Check flexible array members.
  2604. struct incomplete_array *ia =
  2605. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2606. ia->datasize = 10;
  2607. for (int i = 0; i < ia->datasize; ++i)
  2608. ia->data[i] = i * 1.234;
  2609. // Check named initializers.
  2610. struct named_init ni = {
  2611. .number = 34,
  2612. .name = L"Test wide string",
  2613. .average = 543.34343,
  2614. };
  2615. ni.number = 58;
  2616. int dynamic_array[ni.number];
  2617. dynamic_array[0] = argv[0][0];
  2618. dynamic_array[ni.number - 1] = 543;
  2619. // work around unused variable warnings
  2620. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2621. || dynamic_array[ni.number - 1] != 543);
  2622. '
  2623. # Test code for whether the C compiler supports C11 (global declarations)
  2624. ac_c_conftest_c11_globals='
  2625. // Does the compiler advertise C11 conformance?
  2626. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2627. # error "Compiler does not advertise C11 conformance"
  2628. #endif
  2629. // Check _Alignas.
  2630. char _Alignas (double) aligned_as_double;
  2631. char _Alignas (0) no_special_alignment;
  2632. extern char aligned_as_int;
  2633. char _Alignas (0) _Alignas (int) aligned_as_int;
  2634. // Check _Alignof.
  2635. enum
  2636. {
  2637. int_alignment = _Alignof (int),
  2638. int_array_alignment = _Alignof (int[100]),
  2639. char_alignment = _Alignof (char)
  2640. };
  2641. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2642. // Check _Noreturn.
  2643. int _Noreturn does_not_return (void) { for (;;) continue; }
  2644. // Check _Static_assert.
  2645. struct test_static_assert
  2646. {
  2647. int x;
  2648. _Static_assert (sizeof (int) <= sizeof (long int),
  2649. "_Static_assert does not work in struct");
  2650. long int y;
  2651. };
  2652. // Check UTF-8 literals.
  2653. #define u8 syntax error!
  2654. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2655. // Check duplicate typedefs.
  2656. typedef long *long_ptr;
  2657. typedef long int *long_ptr;
  2658. typedef long_ptr long_ptr;
  2659. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2660. struct anonymous
  2661. {
  2662. union {
  2663. struct { int i; int j; };
  2664. struct { int k; long int l; } w;
  2665. };
  2666. int m;
  2667. } v1;
  2668. '
  2669. # Test code for whether the C compiler supports C11 (body of main).
  2670. ac_c_conftest_c11_main='
  2671. _Static_assert ((offsetof (struct anonymous, i)
  2672. == offsetof (struct anonymous, w.k)),
  2673. "Anonymous union alignment botch");
  2674. v1.i = 2;
  2675. v1.w.k = 5;
  2676. ok |= v1.i != 5;
  2677. '
  2678. # Test code for whether the C compiler supports C11 (complete).
  2679. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2680. ${ac_c_conftest_c99_globals}
  2681. ${ac_c_conftest_c11_globals}
  2682. int
  2683. main (int argc, char **argv)
  2684. {
  2685. int ok = 0;
  2686. ${ac_c_conftest_c89_main}
  2687. ${ac_c_conftest_c99_main}
  2688. ${ac_c_conftest_c11_main}
  2689. return ok;
  2690. }
  2691. "
  2692. # Test code for whether the C compiler supports C99 (complete).
  2693. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2694. ${ac_c_conftest_c99_globals}
  2695. int
  2696. main (int argc, char **argv)
  2697. {
  2698. int ok = 0;
  2699. ${ac_c_conftest_c89_main}
  2700. ${ac_c_conftest_c99_main}
  2701. return ok;
  2702. }
  2703. "
  2704. # Test code for whether the C compiler supports C89 (complete).
  2705. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2706. int
  2707. main (int argc, char **argv)
  2708. {
  2709. int ok = 0;
  2710. ${ac_c_conftest_c89_main}
  2711. return ok;
  2712. }
  2713. "
  2714. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2715. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2716. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2717. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2718. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2719. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2720. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2721. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2722. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2723. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2724. ac_cxx_conftest_cxx98_globals='
  2725. // Does the compiler advertise C++98 conformance?
  2726. #if !defined __cplusplus || __cplusplus < 199711L
  2727. # error "Compiler does not advertise C++98 conformance"
  2728. #endif
  2729. // These inclusions are to reject old compilers that
  2730. // lack the unsuffixed header files.
  2731. #include <cstdlib>
  2732. #include <exception>
  2733. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2734. extern void assert (int);
  2735. namespace std {
  2736. extern int strcmp (const char *, const char *);
  2737. }
  2738. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2739. using std::exception;
  2740. using std::strcmp;
  2741. namespace {
  2742. void test_exception_syntax()
  2743. {
  2744. try {
  2745. throw "test";
  2746. } catch (const char *s) {
  2747. // Extra parentheses suppress a warning when building autoconf itself,
  2748. // due to lint rules shared with more typical C programs.
  2749. assert (!(strcmp) (s, "test"));
  2750. }
  2751. }
  2752. template <typename T> struct test_template
  2753. {
  2754. T const val;
  2755. explicit test_template(T t) : val(t) {}
  2756. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2757. };
  2758. } // anonymous namespace
  2759. '
  2760. # Test code for whether the C++ compiler supports C++98 (body of main)
  2761. ac_cxx_conftest_cxx98_main='
  2762. assert (argc);
  2763. assert (! argv[0]);
  2764. {
  2765. test_exception_syntax ();
  2766. test_template<double> tt (2.0);
  2767. assert (tt.add (4) == 6.0);
  2768. assert (true && !false);
  2769. }
  2770. '
  2771. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2772. ac_cxx_conftest_cxx11_globals='
  2773. // Does the compiler advertise C++ 2011 conformance?
  2774. #if !defined __cplusplus || __cplusplus < 201103L
  2775. # error "Compiler does not advertise C++11 conformance"
  2776. #endif
  2777. namespace cxx11test
  2778. {
  2779. constexpr int get_val() { return 20; }
  2780. struct testinit
  2781. {
  2782. int i;
  2783. double d;
  2784. };
  2785. class delegate
  2786. {
  2787. public:
  2788. delegate(int n) : n(n) {}
  2789. delegate(): delegate(2354) {}
  2790. virtual int getval() { return this->n; };
  2791. protected:
  2792. int n;
  2793. };
  2794. class overridden : public delegate
  2795. {
  2796. public:
  2797. overridden(int n): delegate(n) {}
  2798. virtual int getval() override final { return this->n * 2; }
  2799. };
  2800. class nocopy
  2801. {
  2802. public:
  2803. nocopy(int i): i(i) {}
  2804. nocopy() = default;
  2805. nocopy(const nocopy&) = delete;
  2806. nocopy & operator=(const nocopy&) = delete;
  2807. private:
  2808. int i;
  2809. };
  2810. // for testing lambda expressions
  2811. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2812. {
  2813. return f(v);
  2814. }
  2815. // for testing variadic templates and trailing return types
  2816. template <typename V> auto sum(V first) -> V
  2817. {
  2818. return first;
  2819. }
  2820. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2821. {
  2822. return first + sum(rest...);
  2823. }
  2824. }
  2825. '
  2826. # Test code for whether the C++ compiler supports C++11 (body of main)
  2827. ac_cxx_conftest_cxx11_main='
  2828. {
  2829. // Test auto and decltype
  2830. auto a1 = 6538;
  2831. auto a2 = 48573953.4;
  2832. auto a3 = "String literal";
  2833. int total = 0;
  2834. for (auto i = a3; *i; ++i) { total += *i; }
  2835. decltype(a2) a4 = 34895.034;
  2836. }
  2837. {
  2838. // Test constexpr
  2839. short sa[cxx11test::get_val()] = { 0 };
  2840. }
  2841. {
  2842. // Test initializer lists
  2843. cxx11test::testinit il = { 4323, 435234.23544 };
  2844. }
  2845. {
  2846. // Test range-based for
  2847. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2848. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2849. for (auto &x : array) { x += 23; }
  2850. }
  2851. {
  2852. // Test lambda expressions
  2853. using cxx11test::eval;
  2854. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2855. double d = 2.0;
  2856. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2857. assert (d == 5.0);
  2858. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2859. assert (d == 5.0);
  2860. }
  2861. {
  2862. // Test use of variadic templates
  2863. using cxx11test::sum;
  2864. auto a = sum(1);
  2865. auto b = sum(1, 2);
  2866. auto c = sum(1.0, 2.0, 3.0);
  2867. }
  2868. {
  2869. // Test constructor delegation
  2870. cxx11test::delegate d1;
  2871. cxx11test::delegate d2();
  2872. cxx11test::delegate d3(45);
  2873. }
  2874. {
  2875. // Test override and final
  2876. cxx11test::overridden o1(55464);
  2877. }
  2878. {
  2879. // Test nullptr
  2880. char *c = nullptr;
  2881. }
  2882. {
  2883. // Test template brackets
  2884. test_template<::test_template<int>> v(test_template<int>(12));
  2885. }
  2886. {
  2887. // Unicode literals
  2888. char const *utf8 = u8"UTF-8 string \u2500";
  2889. char16_t const *utf16 = u"UTF-8 string \u2500";
  2890. char32_t const *utf32 = U"UTF-32 string \u2500";
  2891. }
  2892. '
  2893. # Test code for whether the C compiler supports C++11 (complete).
  2894. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2895. ${ac_cxx_conftest_cxx11_globals}
  2896. int
  2897. main (int argc, char **argv)
  2898. {
  2899. int ok = 0;
  2900. ${ac_cxx_conftest_cxx98_main}
  2901. ${ac_cxx_conftest_cxx11_main}
  2902. return ok;
  2903. }
  2904. "
  2905. # Test code for whether the C compiler supports C++98 (complete).
  2906. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2907. int
  2908. main (int argc, char **argv)
  2909. {
  2910. int ok = 0;
  2911. ${ac_cxx_conftest_cxx98_main}
  2912. return ok;
  2913. }
  2914. "
  2915. # Auxiliary files required by this configure script.
  2916. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2917. # Locations in which to look for auxiliary files.
  2918. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2919. # Search for a directory containing all of the required auxiliary files,
  2920. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2921. # If we don't find one directory that contains all the files we need,
  2922. # we report the set of missing files from the *first* directory in
  2923. # $ac_aux_dir_candidates and give up.
  2924. ac_missing_aux_files=""
  2925. ac_first_candidate=:
  2926. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2928. as_found=false
  2929. for as_dir in $ac_aux_dir_candidates
  2930. do
  2931. IFS=$as_save_IFS
  2932. case $as_dir in #(((
  2933. '') as_dir=./ ;;
  2934. */) ;;
  2935. *) as_dir=$as_dir/ ;;
  2936. esac
  2937. as_found=:
  2938. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2939. ac_aux_dir_found=yes
  2940. ac_install_sh=
  2941. for ac_aux in $ac_aux_files
  2942. do
  2943. # As a special case, if "install-sh" is required, that requirement
  2944. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2945. # and $ac_install_sh is set appropriately for whichever one is found.
  2946. if test x"$ac_aux" = x"install-sh"
  2947. then
  2948. if test -f "${as_dir}install-sh"; then
  2949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2950. ac_install_sh="${as_dir}install-sh -c"
  2951. elif test -f "${as_dir}install.sh"; then
  2952. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2953. ac_install_sh="${as_dir}install.sh -c"
  2954. elif test -f "${as_dir}shtool"; then
  2955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2956. ac_install_sh="${as_dir}shtool install -c"
  2957. else
  2958. ac_aux_dir_found=no
  2959. if $ac_first_candidate; then
  2960. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2961. else
  2962. break
  2963. fi
  2964. fi
  2965. else
  2966. if test -f "${as_dir}${ac_aux}"; then
  2967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2968. else
  2969. ac_aux_dir_found=no
  2970. if $ac_first_candidate; then
  2971. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2972. else
  2973. break
  2974. fi
  2975. fi
  2976. fi
  2977. done
  2978. if test "$ac_aux_dir_found" = yes; then
  2979. ac_aux_dir="$as_dir"
  2980. break
  2981. fi
  2982. ac_first_candidate=false
  2983. as_found=false
  2984. done
  2985. IFS=$as_save_IFS
  2986. if $as_found
  2987. then :
  2988. else $as_nop
  2989. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2990. fi
  2991. # These three variables are undocumented and unsupported,
  2992. # and are intended to be withdrawn in a future Autoconf release.
  2993. # They can cause serious problems if a builder's source tree is in a directory
  2994. # whose full name contains unusual characters.
  2995. if test -f "${ac_aux_dir}config.guess"; then
  2996. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2997. fi
  2998. if test -f "${ac_aux_dir}config.sub"; then
  2999. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3000. fi
  3001. if test -f "$ac_aux_dir/configure"; then
  3002. ac_configure="$SHELL ${ac_aux_dir}configure"
  3003. fi
  3004. # Check that the precious variables saved in the cache have kept the same
  3005. # value.
  3006. ac_cache_corrupted=false
  3007. for ac_var in $ac_precious_vars; do
  3008. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3009. eval ac_new_set=\$ac_env_${ac_var}_set
  3010. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3011. eval ac_new_val=\$ac_env_${ac_var}_value
  3012. case $ac_old_set,$ac_new_set in
  3013. set,)
  3014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3015. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3016. ac_cache_corrupted=: ;;
  3017. ,set)
  3018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3019. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3020. ac_cache_corrupted=: ;;
  3021. ,);;
  3022. *)
  3023. if test "x$ac_old_val" != "x$ac_new_val"; then
  3024. # differences in whitespace do not lead to failure.
  3025. ac_old_val_w=`echo x $ac_old_val`
  3026. ac_new_val_w=`echo x $ac_new_val`
  3027. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3029. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3030. ac_cache_corrupted=:
  3031. else
  3032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3033. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3034. eval $ac_var=\$ac_old_val
  3035. fi
  3036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3037. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3039. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3040. fi;;
  3041. esac
  3042. # Pass precious variables to config.status.
  3043. if test "$ac_new_set" = set; then
  3044. case $ac_new_val in
  3045. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3046. *) ac_arg=$ac_var=$ac_new_val ;;
  3047. esac
  3048. case " $ac_configure_args " in
  3049. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3050. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3051. esac
  3052. fi
  3053. done
  3054. if $ac_cache_corrupted; then
  3055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3056. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3058. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3059. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3060. and start over" "$LINENO" 5
  3061. fi
  3062. ## -------------------- ##
  3063. ## Main body of script. ##
  3064. ## -------------------- ##
  3065. ac_ext=c
  3066. ac_cpp='$CPP $CPPFLAGS'
  3067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3070. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3071. orig_CFLAGS="$CFLAGS"
  3072. # See docs/release_checklist.md
  3073. SDL_MAJOR_VERSION=3
  3074. SDL_MINOR_VERSION=0
  3075. SDL_MICRO_VERSION=0
  3076. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3077. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3078. case "$SDL_MINOR_VERSION" in #(
  3079. *[02468]) :
  3080. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3081. *) :
  3082. SDL_INTERFACE_AGE=0 ;; #(
  3083. *) :
  3084. ;;
  3085. esac
  3086. # libtool versioning
  3087. case `pwd` in
  3088. *\ * | *\ *)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3090. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3091. esac
  3092. macro_version='2.4.6'
  3093. macro_revision='2.4.6'
  3094. ltmain=$ac_aux_dir/ltmain.sh
  3095. # Make sure we can run config.sub.
  3096. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3097. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3099. printf %s "checking build system type... " >&6; }
  3100. if test ${ac_cv_build+y}
  3101. then :
  3102. printf %s "(cached) " >&6
  3103. else $as_nop
  3104. ac_build_alias=$build_alias
  3105. test "x$ac_build_alias" = x &&
  3106. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3107. test "x$ac_build_alias" = x &&
  3108. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3109. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3110. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3111. fi
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3113. printf "%s\n" "$ac_cv_build" >&6; }
  3114. case $ac_cv_build in
  3115. *-*-*) ;;
  3116. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3117. esac
  3118. build=$ac_cv_build
  3119. ac_save_IFS=$IFS; IFS='-'
  3120. set x $ac_cv_build
  3121. shift
  3122. build_cpu=$1
  3123. build_vendor=$2
  3124. shift; shift
  3125. # Remember, the first character of IFS is used to create $*,
  3126. # except with old shells:
  3127. build_os=$*
  3128. IFS=$ac_save_IFS
  3129. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3131. printf %s "checking host system type... " >&6; }
  3132. if test ${ac_cv_host+y}
  3133. then :
  3134. printf %s "(cached) " >&6
  3135. else $as_nop
  3136. if test "x$host_alias" = x; then
  3137. ac_cv_host=$ac_cv_build
  3138. else
  3139. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3140. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3141. fi
  3142. fi
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3144. printf "%s\n" "$ac_cv_host" >&6; }
  3145. case $ac_cv_host in
  3146. *-*-*) ;;
  3147. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3148. esac
  3149. host=$ac_cv_host
  3150. ac_save_IFS=$IFS; IFS='-'
  3151. set x $ac_cv_host
  3152. shift
  3153. host_cpu=$1
  3154. host_vendor=$2
  3155. shift; shift
  3156. # Remember, the first character of IFS is used to create $*,
  3157. # except with old shells:
  3158. host_os=$*
  3159. IFS=$ac_save_IFS
  3160. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3161. # Backslashify metacharacters that are still active within
  3162. # double-quoted strings.
  3163. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3164. # Same as above, but do not quote variable references.
  3165. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3166. # Sed substitution to delay expansion of an escaped shell variable in a
  3167. # double_quote_subst'ed string.
  3168. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3169. # Sed substitution to delay expansion of an escaped single quote.
  3170. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3171. # Sed substitution to avoid accidental globbing in evaled expressions
  3172. no_glob_subst='s/\*/\\\*/g'
  3173. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3174. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3175. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3177. printf %s "checking how to print strings... " >&6; }
  3178. # Test print first, because it will be a builtin if present.
  3179. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3180. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3181. ECHO='print -r --'
  3182. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3183. ECHO='printf %s\n'
  3184. else
  3185. # Use this function as a fallback that always works.
  3186. func_fallback_echo ()
  3187. {
  3188. eval 'cat <<_LTECHO_EOF
  3189. $1
  3190. _LTECHO_EOF'
  3191. }
  3192. ECHO='func_fallback_echo'
  3193. fi
  3194. # func_echo_all arg...
  3195. # Invoke $ECHO with all args, space-separated.
  3196. func_echo_all ()
  3197. {
  3198. $ECHO ""
  3199. }
  3200. case $ECHO in
  3201. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3202. printf "%s\n" "printf" >&6; } ;;
  3203. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3204. printf "%s\n" "print -r" >&6; } ;;
  3205. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3206. printf "%s\n" "cat" >&6; } ;;
  3207. esac
  3208. ac_ext=c
  3209. ac_cpp='$CPP $CPPFLAGS'
  3210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3213. if test -n "$ac_tool_prefix"; then
  3214. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3215. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3217. printf %s "checking for $ac_word... " >&6; }
  3218. if test ${ac_cv_prog_CC+y}
  3219. then :
  3220. printf %s "(cached) " >&6
  3221. else $as_nop
  3222. if test -n "$CC"; then
  3223. ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. case $as_dir in #(((
  3230. '') as_dir=./ ;;
  3231. */) ;;
  3232. *) as_dir=$as_dir/ ;;
  3233. esac
  3234. for ac_exec_ext in '' $ac_executable_extensions; do
  3235. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3236. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3238. break 2
  3239. fi
  3240. done
  3241. done
  3242. IFS=$as_save_IFS
  3243. fi
  3244. fi
  3245. CC=$ac_cv_prog_CC
  3246. if test -n "$CC"; then
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3248. printf "%s\n" "$CC" >&6; }
  3249. else
  3250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3251. printf "%s\n" "no" >&6; }
  3252. fi
  3253. fi
  3254. if test -z "$ac_cv_prog_CC"; then
  3255. ac_ct_CC=$CC
  3256. # Extract the first word of "gcc", so it can be a program name with args.
  3257. set dummy gcc; ac_word=$2
  3258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3259. printf %s "checking for $ac_word... " >&6; }
  3260. if test ${ac_cv_prog_ac_ct_CC+y}
  3261. then :
  3262. printf %s "(cached) " >&6
  3263. else $as_nop
  3264. if test -n "$ac_ct_CC"; then
  3265. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. case $as_dir in #(((
  3272. '') as_dir=./ ;;
  3273. */) ;;
  3274. *) as_dir=$as_dir/ ;;
  3275. esac
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3278. ac_cv_prog_ac_ct_CC="gcc"
  3279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3280. break 2
  3281. fi
  3282. done
  3283. done
  3284. IFS=$as_save_IFS
  3285. fi
  3286. fi
  3287. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3288. if test -n "$ac_ct_CC"; then
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3290. printf "%s\n" "$ac_ct_CC" >&6; }
  3291. else
  3292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3293. printf "%s\n" "no" >&6; }
  3294. fi
  3295. if test "x$ac_ct_CC" = x; then
  3296. CC=""
  3297. else
  3298. case $cross_compiling:$ac_tool_warned in
  3299. yes:)
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3301. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3302. ac_tool_warned=yes ;;
  3303. esac
  3304. CC=$ac_ct_CC
  3305. fi
  3306. else
  3307. CC="$ac_cv_prog_CC"
  3308. fi
  3309. if test -z "$CC"; then
  3310. if test -n "$ac_tool_prefix"; then
  3311. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3312. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3314. printf %s "checking for $ac_word... " >&6; }
  3315. if test ${ac_cv_prog_CC+y}
  3316. then :
  3317. printf %s "(cached) " >&6
  3318. else $as_nop
  3319. if test -n "$CC"; then
  3320. ac_cv_prog_CC="$CC" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. case $as_dir in #(((
  3327. '') as_dir=./ ;;
  3328. */) ;;
  3329. *) as_dir=$as_dir/ ;;
  3330. esac
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3333. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. CC=$ac_cv_prog_CC
  3343. if test -n "$CC"; then
  3344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3345. printf "%s\n" "$CC" >&6; }
  3346. else
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3348. printf "%s\n" "no" >&6; }
  3349. fi
  3350. fi
  3351. fi
  3352. if test -z "$CC"; then
  3353. # Extract the first word of "cc", so it can be a program name with args.
  3354. set dummy cc; ac_word=$2
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3356. printf %s "checking for $ac_word... " >&6; }
  3357. if test ${ac_cv_prog_CC+y}
  3358. then :
  3359. printf %s "(cached) " >&6
  3360. else $as_nop
  3361. if test -n "$CC"; then
  3362. ac_cv_prog_CC="$CC" # Let the user override the test.
  3363. else
  3364. ac_prog_rejected=no
  3365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3366. for as_dir in $PATH
  3367. do
  3368. IFS=$as_save_IFS
  3369. case $as_dir in #(((
  3370. '') as_dir=./ ;;
  3371. */) ;;
  3372. *) as_dir=$as_dir/ ;;
  3373. esac
  3374. for ac_exec_ext in '' $ac_executable_extensions; do
  3375. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3376. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3377. ac_prog_rejected=yes
  3378. continue
  3379. fi
  3380. ac_cv_prog_CC="cc"
  3381. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3382. break 2
  3383. fi
  3384. done
  3385. done
  3386. IFS=$as_save_IFS
  3387. if test $ac_prog_rejected = yes; then
  3388. # We found a bogon in the path, so make sure we never use it.
  3389. set dummy $ac_cv_prog_CC
  3390. shift
  3391. if test $# != 0; then
  3392. # We chose a different compiler from the bogus one.
  3393. # However, it has the same basename, so the bogon will be chosen
  3394. # first if we set CC to just the basename; use the full file name.
  3395. shift
  3396. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3397. fi
  3398. fi
  3399. fi
  3400. fi
  3401. CC=$ac_cv_prog_CC
  3402. if test -n "$CC"; then
  3403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3404. printf "%s\n" "$CC" >&6; }
  3405. else
  3406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3407. printf "%s\n" "no" >&6; }
  3408. fi
  3409. fi
  3410. if test -z "$CC"; then
  3411. if test -n "$ac_tool_prefix"; then
  3412. for ac_prog in cl.exe
  3413. do
  3414. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3415. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3417. printf %s "checking for $ac_word... " >&6; }
  3418. if test ${ac_cv_prog_CC+y}
  3419. then :
  3420. printf %s "(cached) " >&6
  3421. else $as_nop
  3422. if test -n "$CC"; then
  3423. ac_cv_prog_CC="$CC" # Let the user override the test.
  3424. else
  3425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3426. for as_dir in $PATH
  3427. do
  3428. IFS=$as_save_IFS
  3429. case $as_dir in #(((
  3430. '') as_dir=./ ;;
  3431. */) ;;
  3432. *) as_dir=$as_dir/ ;;
  3433. esac
  3434. for ac_exec_ext in '' $ac_executable_extensions; do
  3435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3436. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3438. break 2
  3439. fi
  3440. done
  3441. done
  3442. IFS=$as_save_IFS
  3443. fi
  3444. fi
  3445. CC=$ac_cv_prog_CC
  3446. if test -n "$CC"; then
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3448. printf "%s\n" "$CC" >&6; }
  3449. else
  3450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3451. printf "%s\n" "no" >&6; }
  3452. fi
  3453. test -n "$CC" && break
  3454. done
  3455. fi
  3456. if test -z "$CC"; then
  3457. ac_ct_CC=$CC
  3458. for ac_prog in cl.exe
  3459. do
  3460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3461. set dummy $ac_prog; ac_word=$2
  3462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3463. printf %s "checking for $ac_word... " >&6; }
  3464. if test ${ac_cv_prog_ac_ct_CC+y}
  3465. then :
  3466. printf %s "(cached) " >&6
  3467. else $as_nop
  3468. if test -n "$ac_ct_CC"; then
  3469. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3470. else
  3471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3472. for as_dir in $PATH
  3473. do
  3474. IFS=$as_save_IFS
  3475. case $as_dir in #(((
  3476. '') as_dir=./ ;;
  3477. */) ;;
  3478. *) as_dir=$as_dir/ ;;
  3479. esac
  3480. for ac_exec_ext in '' $ac_executable_extensions; do
  3481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3482. ac_cv_prog_ac_ct_CC="$ac_prog"
  3483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3484. break 2
  3485. fi
  3486. done
  3487. done
  3488. IFS=$as_save_IFS
  3489. fi
  3490. fi
  3491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3492. if test -n "$ac_ct_CC"; then
  3493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3494. printf "%s\n" "$ac_ct_CC" >&6; }
  3495. else
  3496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3497. printf "%s\n" "no" >&6; }
  3498. fi
  3499. test -n "$ac_ct_CC" && break
  3500. done
  3501. if test "x$ac_ct_CC" = x; then
  3502. CC=""
  3503. else
  3504. case $cross_compiling:$ac_tool_warned in
  3505. yes:)
  3506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3507. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3508. ac_tool_warned=yes ;;
  3509. esac
  3510. CC=$ac_ct_CC
  3511. fi
  3512. fi
  3513. fi
  3514. if test -z "$CC"; then
  3515. if test -n "$ac_tool_prefix"; then
  3516. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3517. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3519. printf %s "checking for $ac_word... " >&6; }
  3520. if test ${ac_cv_prog_CC+y}
  3521. then :
  3522. printf %s "(cached) " >&6
  3523. else $as_nop
  3524. if test -n "$CC"; then
  3525. ac_cv_prog_CC="$CC" # Let the user override the test.
  3526. else
  3527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3528. for as_dir in $PATH
  3529. do
  3530. IFS=$as_save_IFS
  3531. case $as_dir in #(((
  3532. '') as_dir=./ ;;
  3533. */) ;;
  3534. *) as_dir=$as_dir/ ;;
  3535. esac
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3538. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3540. break 2
  3541. fi
  3542. done
  3543. done
  3544. IFS=$as_save_IFS
  3545. fi
  3546. fi
  3547. CC=$ac_cv_prog_CC
  3548. if test -n "$CC"; then
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3550. printf "%s\n" "$CC" >&6; }
  3551. else
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3553. printf "%s\n" "no" >&6; }
  3554. fi
  3555. fi
  3556. if test -z "$ac_cv_prog_CC"; then
  3557. ac_ct_CC=$CC
  3558. # Extract the first word of "clang", so it can be a program name with args.
  3559. set dummy clang; ac_word=$2
  3560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. printf %s "checking for $ac_word... " >&6; }
  3562. if test ${ac_cv_prog_ac_ct_CC+y}
  3563. then :
  3564. printf %s "(cached) " >&6
  3565. else $as_nop
  3566. if test -n "$ac_ct_CC"; then
  3567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3568. else
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH
  3571. do
  3572. IFS=$as_save_IFS
  3573. case $as_dir in #(((
  3574. '') as_dir=./ ;;
  3575. */) ;;
  3576. *) as_dir=$as_dir/ ;;
  3577. esac
  3578. for ac_exec_ext in '' $ac_executable_extensions; do
  3579. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3580. ac_cv_prog_ac_ct_CC="clang"
  3581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3582. break 2
  3583. fi
  3584. done
  3585. done
  3586. IFS=$as_save_IFS
  3587. fi
  3588. fi
  3589. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3590. if test -n "$ac_ct_CC"; then
  3591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3592. printf "%s\n" "$ac_ct_CC" >&6; }
  3593. else
  3594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3595. printf "%s\n" "no" >&6; }
  3596. fi
  3597. if test "x$ac_ct_CC" = x; then
  3598. CC=""
  3599. else
  3600. case $cross_compiling:$ac_tool_warned in
  3601. yes:)
  3602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3603. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3604. ac_tool_warned=yes ;;
  3605. esac
  3606. CC=$ac_ct_CC
  3607. fi
  3608. else
  3609. CC="$ac_cv_prog_CC"
  3610. fi
  3611. fi
  3612. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3613. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3614. as_fn_error $? "no acceptable C compiler found in \$PATH
  3615. See \`config.log' for more details" "$LINENO" 5; }
  3616. # Provide some information about the compiler.
  3617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3618. set X $ac_compile
  3619. ac_compiler=$2
  3620. for ac_option in --version -v -V -qversion -version; do
  3621. { { ac_try="$ac_compiler $ac_option >&5"
  3622. case "(($ac_try" in
  3623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3624. *) ac_try_echo=$ac_try;;
  3625. esac
  3626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3627. printf "%s\n" "$ac_try_echo"; } >&5
  3628. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3629. ac_status=$?
  3630. if test -s conftest.err; then
  3631. sed '10a\
  3632. ... rest of stderr output deleted ...
  3633. 10q' conftest.err >conftest.er1
  3634. cat conftest.er1 >&5
  3635. fi
  3636. rm -f conftest.er1 conftest.err
  3637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3638. test $ac_status = 0; }
  3639. done
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. int
  3643. main (void)
  3644. {
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. ac_clean_files_save=$ac_clean_files
  3650. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3651. # Try to create an executable without -o first, disregard a.out.
  3652. # It will help us diagnose broken compilers, and finding out an intuition
  3653. # of exeext.
  3654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3655. printf %s "checking whether the C compiler works... " >&6; }
  3656. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3657. # The possible output files:
  3658. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3659. ac_rmfiles=
  3660. for ac_file in $ac_files
  3661. do
  3662. case $ac_file in
  3663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3664. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3665. esac
  3666. done
  3667. rm -f $ac_rmfiles
  3668. if { { ac_try="$ac_link_default"
  3669. case "(($ac_try" in
  3670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3671. *) ac_try_echo=$ac_try;;
  3672. esac
  3673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3674. printf "%s\n" "$ac_try_echo"; } >&5
  3675. (eval "$ac_link_default") 2>&5
  3676. ac_status=$?
  3677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3678. test $ac_status = 0; }
  3679. then :
  3680. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3681. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3682. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3683. # so that the user can short-circuit this test for compilers unknown to
  3684. # Autoconf.
  3685. for ac_file in $ac_files ''
  3686. do
  3687. test -f "$ac_file" || continue
  3688. case $ac_file in
  3689. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3690. ;;
  3691. [ab].out )
  3692. # We found the default executable, but exeext='' is most
  3693. # certainly right.
  3694. break;;
  3695. *.* )
  3696. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3697. then :; else
  3698. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3699. fi
  3700. # We set ac_cv_exeext here because the later test for it is not
  3701. # safe: cross compilers may not add the suffix if given an `-o'
  3702. # argument, so we may need to know it at that point already.
  3703. # Even if this section looks crufty: it has the advantage of
  3704. # actually working.
  3705. break;;
  3706. * )
  3707. break;;
  3708. esac
  3709. done
  3710. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3711. else $as_nop
  3712. ac_file=''
  3713. fi
  3714. if test -z "$ac_file"
  3715. then :
  3716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3717. printf "%s\n" "no" >&6; }
  3718. printf "%s\n" "$as_me: failed program was:" >&5
  3719. sed 's/^/| /' conftest.$ac_ext >&5
  3720. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3721. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3722. as_fn_error 77 "C compiler cannot create executables
  3723. See \`config.log' for more details" "$LINENO" 5; }
  3724. else $as_nop
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3726. printf "%s\n" "yes" >&6; }
  3727. fi
  3728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3729. printf %s "checking for C compiler default output file name... " >&6; }
  3730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3731. printf "%s\n" "$ac_file" >&6; }
  3732. ac_exeext=$ac_cv_exeext
  3733. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3734. ac_clean_files=$ac_clean_files_save
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3736. printf %s "checking for suffix of executables... " >&6; }
  3737. if { { ac_try="$ac_link"
  3738. case "(($ac_try" in
  3739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3740. *) ac_try_echo=$ac_try;;
  3741. esac
  3742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3743. printf "%s\n" "$ac_try_echo"; } >&5
  3744. (eval "$ac_link") 2>&5
  3745. ac_status=$?
  3746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3747. test $ac_status = 0; }
  3748. then :
  3749. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3750. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3751. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3752. # `rm'.
  3753. for ac_file in conftest.exe conftest conftest.*; do
  3754. test -f "$ac_file" || continue
  3755. case $ac_file in
  3756. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3757. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3758. break;;
  3759. * ) break;;
  3760. esac
  3761. done
  3762. else $as_nop
  3763. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3764. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3765. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3766. See \`config.log' for more details" "$LINENO" 5; }
  3767. fi
  3768. rm -f conftest conftest$ac_cv_exeext
  3769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3770. printf "%s\n" "$ac_cv_exeext" >&6; }
  3771. rm -f conftest.$ac_ext
  3772. EXEEXT=$ac_cv_exeext
  3773. ac_exeext=$EXEEXT
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. #include <stdio.h>
  3777. int
  3778. main (void)
  3779. {
  3780. FILE *f = fopen ("conftest.out", "w");
  3781. return ferror (f) || fclose (f) != 0;
  3782. ;
  3783. return 0;
  3784. }
  3785. _ACEOF
  3786. ac_clean_files="$ac_clean_files conftest.out"
  3787. # Check that the compiler produces executables we can run. If not, either
  3788. # the compiler is broken, or we cross compile.
  3789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3790. printf %s "checking whether we are cross compiling... " >&6; }
  3791. if test "$cross_compiling" != yes; then
  3792. { { ac_try="$ac_link"
  3793. case "(($ac_try" in
  3794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3795. *) ac_try_echo=$ac_try;;
  3796. esac
  3797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3798. printf "%s\n" "$ac_try_echo"; } >&5
  3799. (eval "$ac_link") 2>&5
  3800. ac_status=$?
  3801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3802. test $ac_status = 0; }
  3803. if { ac_try='./conftest$ac_cv_exeext'
  3804. { { case "(($ac_try" in
  3805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3806. *) ac_try_echo=$ac_try;;
  3807. esac
  3808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3809. printf "%s\n" "$ac_try_echo"; } >&5
  3810. (eval "$ac_try") 2>&5
  3811. ac_status=$?
  3812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3813. test $ac_status = 0; }; }; then
  3814. cross_compiling=no
  3815. else
  3816. if test "$cross_compiling" = maybe; then
  3817. cross_compiling=yes
  3818. else
  3819. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3820. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3821. as_fn_error 77 "cannot run C compiled programs.
  3822. If you meant to cross compile, use \`--host'.
  3823. See \`config.log' for more details" "$LINENO" 5; }
  3824. fi
  3825. fi
  3826. fi
  3827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3828. printf "%s\n" "$cross_compiling" >&6; }
  3829. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3830. ac_clean_files=$ac_clean_files_save
  3831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3832. printf %s "checking for suffix of object files... " >&6; }
  3833. if test ${ac_cv_objext+y}
  3834. then :
  3835. printf %s "(cached) " >&6
  3836. else $as_nop
  3837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3838. /* end confdefs.h. */
  3839. int
  3840. main (void)
  3841. {
  3842. ;
  3843. return 0;
  3844. }
  3845. _ACEOF
  3846. rm -f conftest.o conftest.obj
  3847. if { { ac_try="$ac_compile"
  3848. case "(($ac_try" in
  3849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3850. *) ac_try_echo=$ac_try;;
  3851. esac
  3852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3853. printf "%s\n" "$ac_try_echo"; } >&5
  3854. (eval "$ac_compile") 2>&5
  3855. ac_status=$?
  3856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3857. test $ac_status = 0; }
  3858. then :
  3859. for ac_file in conftest.o conftest.obj conftest.*; do
  3860. test -f "$ac_file" || continue;
  3861. case $ac_file in
  3862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3863. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3864. break;;
  3865. esac
  3866. done
  3867. else $as_nop
  3868. printf "%s\n" "$as_me: failed program was:" >&5
  3869. sed 's/^/| /' conftest.$ac_ext >&5
  3870. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3871. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3872. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3873. See \`config.log' for more details" "$LINENO" 5; }
  3874. fi
  3875. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3876. fi
  3877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3878. printf "%s\n" "$ac_cv_objext" >&6; }
  3879. OBJEXT=$ac_cv_objext
  3880. ac_objext=$OBJEXT
  3881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3882. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3883. if test ${ac_cv_c_compiler_gnu+y}
  3884. then :
  3885. printf %s "(cached) " >&6
  3886. else $as_nop
  3887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3888. /* end confdefs.h. */
  3889. int
  3890. main (void)
  3891. {
  3892. #ifndef __GNUC__
  3893. choke me
  3894. #endif
  3895. ;
  3896. return 0;
  3897. }
  3898. _ACEOF
  3899. if ac_fn_c_try_compile "$LINENO"
  3900. then :
  3901. ac_compiler_gnu=yes
  3902. else $as_nop
  3903. ac_compiler_gnu=no
  3904. fi
  3905. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3906. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3907. fi
  3908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3909. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3911. if test $ac_compiler_gnu = yes; then
  3912. GCC=yes
  3913. else
  3914. GCC=
  3915. fi
  3916. ac_test_CFLAGS=${CFLAGS+y}
  3917. ac_save_CFLAGS=$CFLAGS
  3918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3919. printf %s "checking whether $CC accepts -g... " >&6; }
  3920. if test ${ac_cv_prog_cc_g+y}
  3921. then :
  3922. printf %s "(cached) " >&6
  3923. else $as_nop
  3924. ac_save_c_werror_flag=$ac_c_werror_flag
  3925. ac_c_werror_flag=yes
  3926. ac_cv_prog_cc_g=no
  3927. CFLAGS="-g"
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. int
  3931. main (void)
  3932. {
  3933. ;
  3934. return 0;
  3935. }
  3936. _ACEOF
  3937. if ac_fn_c_try_compile "$LINENO"
  3938. then :
  3939. ac_cv_prog_cc_g=yes
  3940. else $as_nop
  3941. CFLAGS=""
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. int
  3945. main (void)
  3946. {
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. if ac_fn_c_try_compile "$LINENO"
  3952. then :
  3953. else $as_nop
  3954. ac_c_werror_flag=$ac_save_c_werror_flag
  3955. CFLAGS="-g"
  3956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3957. /* end confdefs.h. */
  3958. int
  3959. main (void)
  3960. {
  3961. ;
  3962. return 0;
  3963. }
  3964. _ACEOF
  3965. if ac_fn_c_try_compile "$LINENO"
  3966. then :
  3967. ac_cv_prog_cc_g=yes
  3968. fi
  3969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3970. fi
  3971. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3972. fi
  3973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3974. ac_c_werror_flag=$ac_save_c_werror_flag
  3975. fi
  3976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3977. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3978. if test $ac_test_CFLAGS; then
  3979. CFLAGS=$ac_save_CFLAGS
  3980. elif test $ac_cv_prog_cc_g = yes; then
  3981. if test "$GCC" = yes; then
  3982. CFLAGS="-g -O2"
  3983. else
  3984. CFLAGS="-g"
  3985. fi
  3986. else
  3987. if test "$GCC" = yes; then
  3988. CFLAGS="-O2"
  3989. else
  3990. CFLAGS=
  3991. fi
  3992. fi
  3993. ac_prog_cc_stdc=no
  3994. if test x$ac_prog_cc_stdc = xno
  3995. then :
  3996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3997. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3998. if test ${ac_cv_prog_cc_c11+y}
  3999. then :
  4000. printf %s "(cached) " >&6
  4001. else $as_nop
  4002. ac_cv_prog_cc_c11=no
  4003. ac_save_CC=$CC
  4004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h. */
  4006. $ac_c_conftest_c11_program
  4007. _ACEOF
  4008. for ac_arg in '' -std=gnu11
  4009. do
  4010. CC="$ac_save_CC $ac_arg"
  4011. if ac_fn_c_try_compile "$LINENO"
  4012. then :
  4013. ac_cv_prog_cc_c11=$ac_arg
  4014. fi
  4015. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4016. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4017. done
  4018. rm -f conftest.$ac_ext
  4019. CC=$ac_save_CC
  4020. fi
  4021. if test "x$ac_cv_prog_cc_c11" = xno
  4022. then :
  4023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4024. printf "%s\n" "unsupported" >&6; }
  4025. else $as_nop
  4026. if test "x$ac_cv_prog_cc_c11" = x
  4027. then :
  4028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4029. printf "%s\n" "none needed" >&6; }
  4030. else $as_nop
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4032. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4033. CC="$CC $ac_cv_prog_cc_c11"
  4034. fi
  4035. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4036. ac_prog_cc_stdc=c11
  4037. fi
  4038. fi
  4039. if test x$ac_prog_cc_stdc = xno
  4040. then :
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4042. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4043. if test ${ac_cv_prog_cc_c99+y}
  4044. then :
  4045. printf %s "(cached) " >&6
  4046. else $as_nop
  4047. ac_cv_prog_cc_c99=no
  4048. ac_save_CC=$CC
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. $ac_c_conftest_c99_program
  4052. _ACEOF
  4053. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4054. do
  4055. CC="$ac_save_CC $ac_arg"
  4056. if ac_fn_c_try_compile "$LINENO"
  4057. then :
  4058. ac_cv_prog_cc_c99=$ac_arg
  4059. fi
  4060. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4061. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4062. done
  4063. rm -f conftest.$ac_ext
  4064. CC=$ac_save_CC
  4065. fi
  4066. if test "x$ac_cv_prog_cc_c99" = xno
  4067. then :
  4068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4069. printf "%s\n" "unsupported" >&6; }
  4070. else $as_nop
  4071. if test "x$ac_cv_prog_cc_c99" = x
  4072. then :
  4073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4074. printf "%s\n" "none needed" >&6; }
  4075. else $as_nop
  4076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4077. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4078. CC="$CC $ac_cv_prog_cc_c99"
  4079. fi
  4080. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4081. ac_prog_cc_stdc=c99
  4082. fi
  4083. fi
  4084. if test x$ac_prog_cc_stdc = xno
  4085. then :
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4087. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4088. if test ${ac_cv_prog_cc_c89+y}
  4089. then :
  4090. printf %s "(cached) " >&6
  4091. else $as_nop
  4092. ac_cv_prog_cc_c89=no
  4093. ac_save_CC=$CC
  4094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4095. /* end confdefs.h. */
  4096. $ac_c_conftest_c89_program
  4097. _ACEOF
  4098. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4099. do
  4100. CC="$ac_save_CC $ac_arg"
  4101. if ac_fn_c_try_compile "$LINENO"
  4102. then :
  4103. ac_cv_prog_cc_c89=$ac_arg
  4104. fi
  4105. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4106. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4107. done
  4108. rm -f conftest.$ac_ext
  4109. CC=$ac_save_CC
  4110. fi
  4111. if test "x$ac_cv_prog_cc_c89" = xno
  4112. then :
  4113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4114. printf "%s\n" "unsupported" >&6; }
  4115. else $as_nop
  4116. if test "x$ac_cv_prog_cc_c89" = x
  4117. then :
  4118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4119. printf "%s\n" "none needed" >&6; }
  4120. else $as_nop
  4121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4122. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4123. CC="$CC $ac_cv_prog_cc_c89"
  4124. fi
  4125. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4126. ac_prog_cc_stdc=c89
  4127. fi
  4128. fi
  4129. ac_ext=c
  4130. ac_cpp='$CPP $CPPFLAGS'
  4131. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4132. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4133. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4135. printf %s "checking for a sed that does not truncate output... " >&6; }
  4136. if test ${ac_cv_path_SED+y}
  4137. then :
  4138. printf %s "(cached) " >&6
  4139. else $as_nop
  4140. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4141. for ac_i in 1 2 3 4 5 6 7; do
  4142. ac_script="$ac_script$as_nl$ac_script"
  4143. done
  4144. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4145. { ac_script=; unset ac_script;}
  4146. if test -z "$SED"; then
  4147. ac_path_SED_found=false
  4148. # Loop through the user's path and test for each of PROGNAME-LIST
  4149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4150. for as_dir in $PATH
  4151. do
  4152. IFS=$as_save_IFS
  4153. case $as_dir in #(((
  4154. '') as_dir=./ ;;
  4155. */) ;;
  4156. *) as_dir=$as_dir/ ;;
  4157. esac
  4158. for ac_prog in sed gsed
  4159. do
  4160. for ac_exec_ext in '' $ac_executable_extensions; do
  4161. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4162. as_fn_executable_p "$ac_path_SED" || continue
  4163. # Check for GNU ac_path_SED and select it if it is found.
  4164. # Check for GNU $ac_path_SED
  4165. case `"$ac_path_SED" --version 2>&1` in
  4166. *GNU*)
  4167. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4168. *)
  4169. ac_count=0
  4170. printf %s 0123456789 >"conftest.in"
  4171. while :
  4172. do
  4173. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4174. mv "conftest.tmp" "conftest.in"
  4175. cp "conftest.in" "conftest.nl"
  4176. printf "%s\n" '' >> "conftest.nl"
  4177. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4178. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4179. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4180. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4181. # Best one so far, save it but keep looking for a better one
  4182. ac_cv_path_SED="$ac_path_SED"
  4183. ac_path_SED_max=$ac_count
  4184. fi
  4185. # 10*(2^10) chars as input seems more than enough
  4186. test $ac_count -gt 10 && break
  4187. done
  4188. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4189. esac
  4190. $ac_path_SED_found && break 3
  4191. done
  4192. done
  4193. done
  4194. IFS=$as_save_IFS
  4195. if test -z "$ac_cv_path_SED"; then
  4196. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4197. fi
  4198. else
  4199. ac_cv_path_SED=$SED
  4200. fi
  4201. fi
  4202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4203. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4204. SED="$ac_cv_path_SED"
  4205. rm -f conftest.sed
  4206. test -z "$SED" && SED=sed
  4207. Xsed="$SED -e 1s/^X//"
  4208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4209. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4210. if test ${ac_cv_path_GREP+y}
  4211. then :
  4212. printf %s "(cached) " >&6
  4213. else $as_nop
  4214. if test -z "$GREP"; then
  4215. ac_path_GREP_found=false
  4216. # Loop through the user's path and test for each of PROGNAME-LIST
  4217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4218. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4219. do
  4220. IFS=$as_save_IFS
  4221. case $as_dir in #(((
  4222. '') as_dir=./ ;;
  4223. */) ;;
  4224. *) as_dir=$as_dir/ ;;
  4225. esac
  4226. for ac_prog in grep ggrep
  4227. do
  4228. for ac_exec_ext in '' $ac_executable_extensions; do
  4229. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4230. as_fn_executable_p "$ac_path_GREP" || continue
  4231. # Check for GNU ac_path_GREP and select it if it is found.
  4232. # Check for GNU $ac_path_GREP
  4233. case `"$ac_path_GREP" --version 2>&1` in
  4234. *GNU*)
  4235. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4236. *)
  4237. ac_count=0
  4238. printf %s 0123456789 >"conftest.in"
  4239. while :
  4240. do
  4241. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4242. mv "conftest.tmp" "conftest.in"
  4243. cp "conftest.in" "conftest.nl"
  4244. printf "%s\n" 'GREP' >> "conftest.nl"
  4245. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4246. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4247. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4248. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4249. # Best one so far, save it but keep looking for a better one
  4250. ac_cv_path_GREP="$ac_path_GREP"
  4251. ac_path_GREP_max=$ac_count
  4252. fi
  4253. # 10*(2^10) chars as input seems more than enough
  4254. test $ac_count -gt 10 && break
  4255. done
  4256. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4257. esac
  4258. $ac_path_GREP_found && break 3
  4259. done
  4260. done
  4261. done
  4262. IFS=$as_save_IFS
  4263. if test -z "$ac_cv_path_GREP"; then
  4264. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4265. fi
  4266. else
  4267. ac_cv_path_GREP=$GREP
  4268. fi
  4269. fi
  4270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4271. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4272. GREP="$ac_cv_path_GREP"
  4273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4274. printf %s "checking for egrep... " >&6; }
  4275. if test ${ac_cv_path_EGREP+y}
  4276. then :
  4277. printf %s "(cached) " >&6
  4278. else $as_nop
  4279. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4280. then ac_cv_path_EGREP="$GREP -E"
  4281. else
  4282. if test -z "$EGREP"; then
  4283. ac_path_EGREP_found=false
  4284. # Loop through the user's path and test for each of PROGNAME-LIST
  4285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4286. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4287. do
  4288. IFS=$as_save_IFS
  4289. case $as_dir in #(((
  4290. '') as_dir=./ ;;
  4291. */) ;;
  4292. *) as_dir=$as_dir/ ;;
  4293. esac
  4294. for ac_prog in egrep
  4295. do
  4296. for ac_exec_ext in '' $ac_executable_extensions; do
  4297. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4298. as_fn_executable_p "$ac_path_EGREP" || continue
  4299. # Check for GNU ac_path_EGREP and select it if it is found.
  4300. # Check for GNU $ac_path_EGREP
  4301. case `"$ac_path_EGREP" --version 2>&1` in
  4302. *GNU*)
  4303. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4304. *)
  4305. ac_count=0
  4306. printf %s 0123456789 >"conftest.in"
  4307. while :
  4308. do
  4309. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4310. mv "conftest.tmp" "conftest.in"
  4311. cp "conftest.in" "conftest.nl"
  4312. printf "%s\n" 'EGREP' >> "conftest.nl"
  4313. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4314. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4315. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4316. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4317. # Best one so far, save it but keep looking for a better one
  4318. ac_cv_path_EGREP="$ac_path_EGREP"
  4319. ac_path_EGREP_max=$ac_count
  4320. fi
  4321. # 10*(2^10) chars as input seems more than enough
  4322. test $ac_count -gt 10 && break
  4323. done
  4324. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4325. esac
  4326. $ac_path_EGREP_found && break 3
  4327. done
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. if test -z "$ac_cv_path_EGREP"; then
  4332. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4333. fi
  4334. else
  4335. ac_cv_path_EGREP=$EGREP
  4336. fi
  4337. fi
  4338. fi
  4339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4340. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4341. EGREP="$ac_cv_path_EGREP"
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4343. printf %s "checking for fgrep... " >&6; }
  4344. if test ${ac_cv_path_FGREP+y}
  4345. then :
  4346. printf %s "(cached) " >&6
  4347. else $as_nop
  4348. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4349. then ac_cv_path_FGREP="$GREP -F"
  4350. else
  4351. if test -z "$FGREP"; then
  4352. ac_path_FGREP_found=false
  4353. # Loop through the user's path and test for each of PROGNAME-LIST
  4354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4355. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4356. do
  4357. IFS=$as_save_IFS
  4358. case $as_dir in #(((
  4359. '') as_dir=./ ;;
  4360. */) ;;
  4361. *) as_dir=$as_dir/ ;;
  4362. esac
  4363. for ac_prog in fgrep
  4364. do
  4365. for ac_exec_ext in '' $ac_executable_extensions; do
  4366. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4367. as_fn_executable_p "$ac_path_FGREP" || continue
  4368. # Check for GNU ac_path_FGREP and select it if it is found.
  4369. # Check for GNU $ac_path_FGREP
  4370. case `"$ac_path_FGREP" --version 2>&1` in
  4371. *GNU*)
  4372. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4373. *)
  4374. ac_count=0
  4375. printf %s 0123456789 >"conftest.in"
  4376. while :
  4377. do
  4378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4379. mv "conftest.tmp" "conftest.in"
  4380. cp "conftest.in" "conftest.nl"
  4381. printf "%s\n" 'FGREP' >> "conftest.nl"
  4382. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4385. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4386. # Best one so far, save it but keep looking for a better one
  4387. ac_cv_path_FGREP="$ac_path_FGREP"
  4388. ac_path_FGREP_max=$ac_count
  4389. fi
  4390. # 10*(2^10) chars as input seems more than enough
  4391. test $ac_count -gt 10 && break
  4392. done
  4393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4394. esac
  4395. $ac_path_FGREP_found && break 3
  4396. done
  4397. done
  4398. done
  4399. IFS=$as_save_IFS
  4400. if test -z "$ac_cv_path_FGREP"; then
  4401. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4402. fi
  4403. else
  4404. ac_cv_path_FGREP=$FGREP
  4405. fi
  4406. fi
  4407. fi
  4408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4409. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4410. FGREP="$ac_cv_path_FGREP"
  4411. test -z "$GREP" && GREP=grep
  4412. # Check whether --with-gnu-ld was given.
  4413. if test ${with_gnu_ld+y}
  4414. then :
  4415. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4416. else $as_nop
  4417. with_gnu_ld=no
  4418. fi
  4419. ac_prog=ld
  4420. if test yes = "$GCC"; then
  4421. # Check if gcc -print-prog-name=ld gives a path.
  4422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4423. printf %s "checking for ld used by $CC... " >&6; }
  4424. case $host in
  4425. *-*-mingw*)
  4426. # gcc leaves a trailing carriage return, which upsets mingw
  4427. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4428. *)
  4429. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4430. esac
  4431. case $ac_prog in
  4432. # Accept absolute paths.
  4433. [\\/]* | ?:[\\/]*)
  4434. re_direlt='/[^/][^/]*/\.\./'
  4435. # Canonicalize the pathname of ld
  4436. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4437. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4438. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4439. done
  4440. test -z "$LD" && LD=$ac_prog
  4441. ;;
  4442. "")
  4443. # If it fails, then pretend we aren't using GCC.
  4444. ac_prog=ld
  4445. ;;
  4446. *)
  4447. # If it is relative, then search for the first ld in PATH.
  4448. with_gnu_ld=unknown
  4449. ;;
  4450. esac
  4451. elif test yes = "$with_gnu_ld"; then
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4453. printf %s "checking for GNU ld... " >&6; }
  4454. else
  4455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4456. printf %s "checking for non-GNU ld... " >&6; }
  4457. fi
  4458. if test ${lt_cv_path_LD+y}
  4459. then :
  4460. printf %s "(cached) " >&6
  4461. else $as_nop
  4462. if test -z "$LD"; then
  4463. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4464. for ac_dir in $PATH; do
  4465. IFS=$lt_save_ifs
  4466. test -z "$ac_dir" && ac_dir=.
  4467. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4468. lt_cv_path_LD=$ac_dir/$ac_prog
  4469. # Check to see if the program is GNU ld. I'd rather use --version,
  4470. # but apparently some variants of GNU ld only accept -v.
  4471. # Break only if it was the GNU/non-GNU ld that we prefer.
  4472. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4473. *GNU* | *'with BFD'*)
  4474. test no != "$with_gnu_ld" && break
  4475. ;;
  4476. *)
  4477. test yes != "$with_gnu_ld" && break
  4478. ;;
  4479. esac
  4480. fi
  4481. done
  4482. IFS=$lt_save_ifs
  4483. else
  4484. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4485. fi
  4486. fi
  4487. LD=$lt_cv_path_LD
  4488. if test -n "$LD"; then
  4489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4490. printf "%s\n" "$LD" >&6; }
  4491. else
  4492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4493. printf "%s\n" "no" >&6; }
  4494. fi
  4495. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4497. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4498. if test ${lt_cv_prog_gnu_ld+y}
  4499. then :
  4500. printf %s "(cached) " >&6
  4501. else $as_nop
  4502. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4503. case `$LD -v 2>&1 </dev/null` in
  4504. *GNU* | *'with BFD'*)
  4505. lt_cv_prog_gnu_ld=yes
  4506. ;;
  4507. *)
  4508. lt_cv_prog_gnu_ld=no
  4509. ;;
  4510. esac
  4511. fi
  4512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4513. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4514. with_gnu_ld=$lt_cv_prog_gnu_ld
  4515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4516. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4517. if test ${lt_cv_path_NM+y}
  4518. then :
  4519. printf %s "(cached) " >&6
  4520. else $as_nop
  4521. if test -n "$NM"; then
  4522. # Let the user override the test.
  4523. lt_cv_path_NM=$NM
  4524. else
  4525. lt_nm_to_check=${ac_tool_prefix}nm
  4526. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4527. lt_nm_to_check="$lt_nm_to_check nm"
  4528. fi
  4529. for lt_tmp_nm in $lt_nm_to_check; do
  4530. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4531. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4532. IFS=$lt_save_ifs
  4533. test -z "$ac_dir" && ac_dir=.
  4534. tmp_nm=$ac_dir/$lt_tmp_nm
  4535. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4536. # Check to see if the nm accepts a BSD-compat flag.
  4537. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4538. # nm: unknown option "B" ignored
  4539. # Tru64's nm complains that /dev/null is an invalid object file
  4540. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4541. case $build_os in
  4542. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4543. *) lt_bad_file=/dev/null ;;
  4544. esac
  4545. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4546. *$lt_bad_file* | *'Invalid file or object type'*)
  4547. lt_cv_path_NM="$tmp_nm -B"
  4548. break 2
  4549. ;;
  4550. *)
  4551. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4552. */dev/null*)
  4553. lt_cv_path_NM="$tmp_nm -p"
  4554. break 2
  4555. ;;
  4556. *)
  4557. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4558. continue # so that we can try to find one that supports BSD flags
  4559. ;;
  4560. esac
  4561. ;;
  4562. esac
  4563. fi
  4564. done
  4565. IFS=$lt_save_ifs
  4566. done
  4567. : ${lt_cv_path_NM=no}
  4568. fi
  4569. fi
  4570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4571. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4572. if test no != "$lt_cv_path_NM"; then
  4573. NM=$lt_cv_path_NM
  4574. else
  4575. # Didn't find any BSD compatible name lister, look for dumpbin.
  4576. if test -n "$DUMPBIN"; then :
  4577. # Let the user override the test.
  4578. else
  4579. if test -n "$ac_tool_prefix"; then
  4580. for ac_prog in dumpbin "link -dump"
  4581. do
  4582. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4583. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. printf %s "checking for $ac_word... " >&6; }
  4586. if test ${ac_cv_prog_DUMPBIN+y}
  4587. then :
  4588. printf %s "(cached) " >&6
  4589. else $as_nop
  4590. if test -n "$DUMPBIN"; then
  4591. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4592. else
  4593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4594. for as_dir in $PATH
  4595. do
  4596. IFS=$as_save_IFS
  4597. case $as_dir in #(((
  4598. '') as_dir=./ ;;
  4599. */) ;;
  4600. *) as_dir=$as_dir/ ;;
  4601. esac
  4602. for ac_exec_ext in '' $ac_executable_extensions; do
  4603. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4604. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4605. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4606. break 2
  4607. fi
  4608. done
  4609. done
  4610. IFS=$as_save_IFS
  4611. fi
  4612. fi
  4613. DUMPBIN=$ac_cv_prog_DUMPBIN
  4614. if test -n "$DUMPBIN"; then
  4615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4616. printf "%s\n" "$DUMPBIN" >&6; }
  4617. else
  4618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4619. printf "%s\n" "no" >&6; }
  4620. fi
  4621. test -n "$DUMPBIN" && break
  4622. done
  4623. fi
  4624. if test -z "$DUMPBIN"; then
  4625. ac_ct_DUMPBIN=$DUMPBIN
  4626. for ac_prog in dumpbin "link -dump"
  4627. do
  4628. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4629. set dummy $ac_prog; ac_word=$2
  4630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4631. printf %s "checking for $ac_word... " >&6; }
  4632. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4633. then :
  4634. printf %s "(cached) " >&6
  4635. else $as_nop
  4636. if test -n "$ac_ct_DUMPBIN"; then
  4637. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. case $as_dir in #(((
  4644. '') as_dir=./ ;;
  4645. */) ;;
  4646. *) as_dir=$as_dir/ ;;
  4647. esac
  4648. for ac_exec_ext in '' $ac_executable_extensions; do
  4649. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4650. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4652. break 2
  4653. fi
  4654. done
  4655. done
  4656. IFS=$as_save_IFS
  4657. fi
  4658. fi
  4659. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4660. if test -n "$ac_ct_DUMPBIN"; then
  4661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4662. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4663. else
  4664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4665. printf "%s\n" "no" >&6; }
  4666. fi
  4667. test -n "$ac_ct_DUMPBIN" && break
  4668. done
  4669. if test "x$ac_ct_DUMPBIN" = x; then
  4670. DUMPBIN=":"
  4671. else
  4672. case $cross_compiling:$ac_tool_warned in
  4673. yes:)
  4674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4675. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4676. ac_tool_warned=yes ;;
  4677. esac
  4678. DUMPBIN=$ac_ct_DUMPBIN
  4679. fi
  4680. fi
  4681. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4682. *COFF*)
  4683. DUMPBIN="$DUMPBIN -symbols -headers"
  4684. ;;
  4685. *)
  4686. DUMPBIN=:
  4687. ;;
  4688. esac
  4689. fi
  4690. if test : != "$DUMPBIN"; then
  4691. NM=$DUMPBIN
  4692. fi
  4693. fi
  4694. test -z "$NM" && NM=nm
  4695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4696. printf %s "checking the name lister ($NM) interface... " >&6; }
  4697. if test ${lt_cv_nm_interface+y}
  4698. then :
  4699. printf %s "(cached) " >&6
  4700. else $as_nop
  4701. lt_cv_nm_interface="BSD nm"
  4702. echo "int some_variable = 0;" > conftest.$ac_ext
  4703. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4704. (eval "$ac_compile" 2>conftest.err)
  4705. cat conftest.err >&5
  4706. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4707. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4708. cat conftest.err >&5
  4709. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4710. cat conftest.out >&5
  4711. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4712. lt_cv_nm_interface="MS dumpbin"
  4713. fi
  4714. rm -f conftest*
  4715. fi
  4716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4717. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4719. printf %s "checking whether ln -s works... " >&6; }
  4720. LN_S=$as_ln_s
  4721. if test "$LN_S" = "ln -s"; then
  4722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4723. printf "%s\n" "yes" >&6; }
  4724. else
  4725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4726. printf "%s\n" "no, using $LN_S" >&6; }
  4727. fi
  4728. # find the maximum length of command line arguments
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4730. printf %s "checking the maximum length of command line arguments... " >&6; }
  4731. if test ${lt_cv_sys_max_cmd_len+y}
  4732. then :
  4733. printf %s "(cached) " >&6
  4734. else $as_nop
  4735. i=0
  4736. teststring=ABCD
  4737. case $build_os in
  4738. msdosdjgpp*)
  4739. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4740. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4741. # during glob expansion). Even if it were fixed, the result of this
  4742. # check would be larger than it should be.
  4743. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4744. ;;
  4745. gnu*)
  4746. # Under GNU Hurd, this test is not required because there is
  4747. # no limit to the length of command line arguments.
  4748. # Libtool will interpret -1 as no limit whatsoever
  4749. lt_cv_sys_max_cmd_len=-1;
  4750. ;;
  4751. cygwin* | mingw* | cegcc*)
  4752. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4753. # about 5 minutes as the teststring grows exponentially.
  4754. # Worse, since 9x/ME are not pre-emptively multitasking,
  4755. # you end up with a "frozen" computer, even though with patience
  4756. # the test eventually succeeds (with a max line length of 256k).
  4757. # Instead, let's just punt: use the minimum linelength reported by
  4758. # all of the supported platforms: 8192 (on NT/2K/XP).
  4759. lt_cv_sys_max_cmd_len=8192;
  4760. ;;
  4761. mint*)
  4762. # On MiNT this can take a long time and run out of memory.
  4763. lt_cv_sys_max_cmd_len=8192;
  4764. ;;
  4765. amigaos*)
  4766. # On AmigaOS with pdksh, this test takes hours, literally.
  4767. # So we just punt and use a minimum line length of 8192.
  4768. lt_cv_sys_max_cmd_len=8192;
  4769. ;;
  4770. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4771. # This has been around since 386BSD, at least. Likely further.
  4772. if test -x /sbin/sysctl; then
  4773. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4774. elif test -x /usr/sbin/sysctl; then
  4775. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4776. else
  4777. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4778. fi
  4779. # And add a safety zone
  4780. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4781. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4782. ;;
  4783. interix*)
  4784. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4785. lt_cv_sys_max_cmd_len=196608
  4786. ;;
  4787. os2*)
  4788. # The test takes a long time on OS/2.
  4789. lt_cv_sys_max_cmd_len=8192
  4790. ;;
  4791. osf*)
  4792. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4793. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4794. # nice to cause kernel panics so lets avoid the loop below.
  4795. # First set a reasonable default.
  4796. lt_cv_sys_max_cmd_len=16384
  4797. #
  4798. if test -x /sbin/sysconfig; then
  4799. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4800. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4801. esac
  4802. fi
  4803. ;;
  4804. sco3.2v5*)
  4805. lt_cv_sys_max_cmd_len=102400
  4806. ;;
  4807. sysv5* | sco5v6* | sysv4.2uw2*)
  4808. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4809. if test -n "$kargmax"; then
  4810. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4811. else
  4812. lt_cv_sys_max_cmd_len=32768
  4813. fi
  4814. ;;
  4815. *)
  4816. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4817. if test -n "$lt_cv_sys_max_cmd_len" && \
  4818. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4819. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4820. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4821. else
  4822. # Make teststring a little bigger before we do anything with it.
  4823. # a 1K string should be a reasonable start.
  4824. for i in 1 2 3 4 5 6 7 8; do
  4825. teststring=$teststring$teststring
  4826. done
  4827. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4828. # If test is not a shell built-in, we'll probably end up computing a
  4829. # maximum length that is only half of the actual maximum length, but
  4830. # we can't tell.
  4831. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4832. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4833. test 17 != "$i" # 1/2 MB should be enough
  4834. do
  4835. i=`expr $i + 1`
  4836. teststring=$teststring$teststring
  4837. done
  4838. # Only check the string length outside the loop.
  4839. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4840. teststring=
  4841. # Add a significant safety factor because C++ compilers can tack on
  4842. # massive amounts of additional arguments before passing them to the
  4843. # linker. It appears as though 1/2 is a usable value.
  4844. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4845. fi
  4846. ;;
  4847. esac
  4848. fi
  4849. if test -n "$lt_cv_sys_max_cmd_len"; then
  4850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4851. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4852. else
  4853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4854. printf "%s\n" "none" >&6; }
  4855. fi
  4856. max_cmd_len=$lt_cv_sys_max_cmd_len
  4857. : ${CP="cp -f"}
  4858. : ${MV="mv -f"}
  4859. : ${RM="rm -f"}
  4860. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4861. lt_unset=unset
  4862. else
  4863. lt_unset=false
  4864. fi
  4865. # test EBCDIC or ASCII
  4866. case `echo X|tr X '\101'` in
  4867. A) # ASCII based system
  4868. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4869. lt_SP2NL='tr \040 \012'
  4870. lt_NL2SP='tr \015\012 \040\040'
  4871. ;;
  4872. *) # EBCDIC based system
  4873. lt_SP2NL='tr \100 \n'
  4874. lt_NL2SP='tr \r\n \100\100'
  4875. ;;
  4876. esac
  4877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4878. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4879. if test ${lt_cv_to_host_file_cmd+y}
  4880. then :
  4881. printf %s "(cached) " >&6
  4882. else $as_nop
  4883. case $host in
  4884. *-*-mingw* )
  4885. case $build in
  4886. *-*-mingw* ) # actually msys
  4887. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4888. ;;
  4889. *-*-cygwin* )
  4890. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4891. ;;
  4892. * ) # otherwise, assume *nix
  4893. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4894. ;;
  4895. esac
  4896. ;;
  4897. *-*-cygwin* )
  4898. case $build in
  4899. *-*-mingw* ) # actually msys
  4900. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4901. ;;
  4902. *-*-cygwin* )
  4903. lt_cv_to_host_file_cmd=func_convert_file_noop
  4904. ;;
  4905. * ) # otherwise, assume *nix
  4906. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4907. ;;
  4908. esac
  4909. ;;
  4910. * ) # unhandled hosts (and "normal" native builds)
  4911. lt_cv_to_host_file_cmd=func_convert_file_noop
  4912. ;;
  4913. esac
  4914. fi
  4915. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4917. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4919. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4920. if test ${lt_cv_to_tool_file_cmd+y}
  4921. then :
  4922. printf %s "(cached) " >&6
  4923. else $as_nop
  4924. #assume ordinary cross tools, or native build.
  4925. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4926. case $host in
  4927. *-*-mingw* )
  4928. case $build in
  4929. *-*-mingw* ) # actually msys
  4930. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4931. ;;
  4932. esac
  4933. ;;
  4934. esac
  4935. fi
  4936. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4938. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4940. printf %s "checking for $LD option to reload object files... " >&6; }
  4941. if test ${lt_cv_ld_reload_flag+y}
  4942. then :
  4943. printf %s "(cached) " >&6
  4944. else $as_nop
  4945. lt_cv_ld_reload_flag='-r'
  4946. fi
  4947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4948. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4949. reload_flag=$lt_cv_ld_reload_flag
  4950. case $reload_flag in
  4951. "" | " "*) ;;
  4952. *) reload_flag=" $reload_flag" ;;
  4953. esac
  4954. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4955. case $host_os in
  4956. cygwin* | mingw* | pw32* | cegcc*)
  4957. if test yes != "$GCC"; then
  4958. reload_cmds=false
  4959. fi
  4960. ;;
  4961. darwin*)
  4962. if test yes = "$GCC"; then
  4963. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4964. else
  4965. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4966. fi
  4967. ;;
  4968. esac
  4969. if test -n "$ac_tool_prefix"; then
  4970. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4971. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4973. printf %s "checking for $ac_word... " >&6; }
  4974. if test ${ac_cv_prog_OBJDUMP+y}
  4975. then :
  4976. printf %s "(cached) " >&6
  4977. else $as_nop
  4978. if test -n "$OBJDUMP"; then
  4979. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4980. else
  4981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4982. for as_dir in $PATH
  4983. do
  4984. IFS=$as_save_IFS
  4985. case $as_dir in #(((
  4986. '') as_dir=./ ;;
  4987. */) ;;
  4988. *) as_dir=$as_dir/ ;;
  4989. esac
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4992. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. OBJDUMP=$ac_cv_prog_OBJDUMP
  5002. if test -n "$OBJDUMP"; then
  5003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5004. printf "%s\n" "$OBJDUMP" >&6; }
  5005. else
  5006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5007. printf "%s\n" "no" >&6; }
  5008. fi
  5009. fi
  5010. if test -z "$ac_cv_prog_OBJDUMP"; then
  5011. ac_ct_OBJDUMP=$OBJDUMP
  5012. # Extract the first word of "objdump", so it can be a program name with args.
  5013. set dummy objdump; ac_word=$2
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5015. printf %s "checking for $ac_word... " >&6; }
  5016. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5017. then :
  5018. printf %s "(cached) " >&6
  5019. else $as_nop
  5020. if test -n "$ac_ct_OBJDUMP"; then
  5021. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5022. else
  5023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5024. for as_dir in $PATH
  5025. do
  5026. IFS=$as_save_IFS
  5027. case $as_dir in #(((
  5028. '') as_dir=./ ;;
  5029. */) ;;
  5030. *) as_dir=$as_dir/ ;;
  5031. esac
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5034. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5044. if test -n "$ac_ct_OBJDUMP"; then
  5045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5046. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5047. else
  5048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5049. printf "%s\n" "no" >&6; }
  5050. fi
  5051. if test "x$ac_ct_OBJDUMP" = x; then
  5052. OBJDUMP="false"
  5053. else
  5054. case $cross_compiling:$ac_tool_warned in
  5055. yes:)
  5056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5057. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5058. ac_tool_warned=yes ;;
  5059. esac
  5060. OBJDUMP=$ac_ct_OBJDUMP
  5061. fi
  5062. else
  5063. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5064. fi
  5065. test -z "$OBJDUMP" && OBJDUMP=objdump
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5067. printf %s "checking how to recognize dependent libraries... " >&6; }
  5068. if test ${lt_cv_deplibs_check_method+y}
  5069. then :
  5070. printf %s "(cached) " >&6
  5071. else $as_nop
  5072. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5073. lt_cv_file_magic_test_file=
  5074. lt_cv_deplibs_check_method='unknown'
  5075. # Need to set the preceding variable on all platforms that support
  5076. # interlibrary dependencies.
  5077. # 'none' -- dependencies not supported.
  5078. # 'unknown' -- same as none, but documents that we really don't know.
  5079. # 'pass_all' -- all dependencies passed with no checks.
  5080. # 'test_compile' -- check by making test program.
  5081. # 'file_magic [[regex]]' -- check by looking for files in library path
  5082. # that responds to the $file_magic_cmd with a given extended regex.
  5083. # If you have 'file' or equivalent on your system and you're not sure
  5084. # whether 'pass_all' will *always* work, you probably want this one.
  5085. case $host_os in
  5086. aix[4-9]*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. beos*)
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. bsdi[45]*)
  5093. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5094. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5095. lt_cv_file_magic_test_file=/shlib/libc.so
  5096. ;;
  5097. cygwin*)
  5098. # func_win32_libid is a shell function defined in ltmain.sh
  5099. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5100. lt_cv_file_magic_cmd='func_win32_libid'
  5101. lt_cv_deplibs_check_method=pass_all # SDL customization
  5102. ;;
  5103. mingw* | pw32*)
  5104. # Base MSYS/MinGW do not provide the 'file' command needed by
  5105. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5106. # unless we find 'file', for example because we are cross-compiling.
  5107. if ( file / ) >/dev/null 2>&1; then
  5108. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5109. lt_cv_file_magic_cmd='func_win32_libid'
  5110. else
  5111. # Keep this pattern in sync with the one in func_win32_libid.
  5112. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5113. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5114. fi
  5115. lt_cv_deplibs_check_method=pass_all # SDL customization
  5116. ;;
  5117. cegcc*)
  5118. # use the weaker test based on 'objdump'. See mingw*.
  5119. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5120. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5121. ;;
  5122. darwin* | rhapsody*)
  5123. lt_cv_deplibs_check_method=pass_all
  5124. ;;
  5125. freebsd* | dragonfly* | midnightbsd*)
  5126. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5127. case $host_cpu in
  5128. i*86 )
  5129. # Not sure whether the presence of OpenBSD here was a mistake.
  5130. # Let's accept both of them until this is cleared up.
  5131. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5132. lt_cv_file_magic_cmd=/usr/bin/file
  5133. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5134. ;;
  5135. esac
  5136. else
  5137. lt_cv_deplibs_check_method=pass_all
  5138. fi
  5139. ;;
  5140. haiku*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. hpux10.20* | hpux11*)
  5144. lt_cv_file_magic_cmd=/usr/bin/file
  5145. case $host_cpu in
  5146. ia64*)
  5147. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5148. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5149. ;;
  5150. hppa*64*)
  5151. 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]'
  5152. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5153. ;;
  5154. *)
  5155. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5156. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5157. ;;
  5158. esac
  5159. ;;
  5160. interix[3-9]*)
  5161. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5162. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5163. ;;
  5164. irix5* | irix6* | nonstopux*)
  5165. case $LD in
  5166. *-32|*"-32 ") libmagic=32-bit;;
  5167. *-n32|*"-n32 ") libmagic=N32;;
  5168. *-64|*"-64 ") libmagic=64-bit;;
  5169. *) libmagic=never-match;;
  5170. esac
  5171. lt_cv_deplibs_check_method=pass_all
  5172. ;;
  5173. # This must be glibc/ELF.
  5174. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5175. lt_cv_deplibs_check_method=pass_all
  5176. ;;
  5177. netbsd*)
  5178. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5179. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5180. else
  5181. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5182. fi
  5183. ;;
  5184. newos6*)
  5185. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5186. lt_cv_file_magic_cmd=/usr/bin/file
  5187. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5188. ;;
  5189. *nto* | *qnx*)
  5190. lt_cv_deplibs_check_method=pass_all
  5191. ;;
  5192. openbsd* | bitrig*)
  5193. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5194. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5195. else
  5196. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5197. fi
  5198. ;;
  5199. osf3* | osf4* | osf5*)
  5200. lt_cv_deplibs_check_method=pass_all
  5201. ;;
  5202. rdos*)
  5203. lt_cv_deplibs_check_method=pass_all
  5204. ;;
  5205. solaris*)
  5206. lt_cv_deplibs_check_method=pass_all
  5207. ;;
  5208. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5209. lt_cv_deplibs_check_method=pass_all
  5210. ;;
  5211. sysv4 | sysv4.3*)
  5212. case $host_vendor in
  5213. motorola)
  5214. 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]'
  5215. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5216. ;;
  5217. ncr)
  5218. lt_cv_deplibs_check_method=pass_all
  5219. ;;
  5220. sequent)
  5221. lt_cv_file_magic_cmd='/bin/file'
  5222. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5223. ;;
  5224. sni)
  5225. lt_cv_file_magic_cmd='/bin/file'
  5226. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5227. lt_cv_file_magic_test_file=/lib/libc.so
  5228. ;;
  5229. siemens)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. pc)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. esac
  5236. ;;
  5237. tpf*)
  5238. lt_cv_deplibs_check_method=pass_all
  5239. ;;
  5240. os2*)
  5241. lt_cv_deplibs_check_method=pass_all
  5242. ;;
  5243. esac
  5244. fi
  5245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5246. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5247. file_magic_glob=
  5248. want_nocaseglob=no
  5249. if test "$build" = "$host"; then
  5250. case $host_os in
  5251. mingw* | pw32*)
  5252. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5253. want_nocaseglob=yes
  5254. else
  5255. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5256. fi
  5257. ;;
  5258. esac
  5259. fi
  5260. file_magic_cmd=$lt_cv_file_magic_cmd
  5261. deplibs_check_method=$lt_cv_deplibs_check_method
  5262. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5263. if test -n "$ac_tool_prefix"; then
  5264. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5265. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5267. printf %s "checking for $ac_word... " >&6; }
  5268. if test ${ac_cv_prog_DLLTOOL+y}
  5269. then :
  5270. printf %s "(cached) " >&6
  5271. else $as_nop
  5272. if test -n "$DLLTOOL"; then
  5273. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5274. else
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH
  5277. do
  5278. IFS=$as_save_IFS
  5279. case $as_dir in #(((
  5280. '') as_dir=./ ;;
  5281. */) ;;
  5282. *) as_dir=$as_dir/ ;;
  5283. esac
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. DLLTOOL=$ac_cv_prog_DLLTOOL
  5296. if test -n "$DLLTOOL"; then
  5297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5298. printf "%s\n" "$DLLTOOL" >&6; }
  5299. else
  5300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. printf "%s\n" "no" >&6; }
  5302. fi
  5303. fi
  5304. if test -z "$ac_cv_prog_DLLTOOL"; then
  5305. ac_ct_DLLTOOL=$DLLTOOL
  5306. # Extract the first word of "dlltool", so it can be a program name with args.
  5307. set dummy dlltool; ac_word=$2
  5308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5309. printf %s "checking for $ac_word... " >&6; }
  5310. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5311. then :
  5312. printf %s "(cached) " >&6
  5313. else $as_nop
  5314. if test -n "$ac_ct_DLLTOOL"; then
  5315. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5316. else
  5317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. case $as_dir in #(((
  5322. '') as_dir=./ ;;
  5323. */) ;;
  5324. *) as_dir=$as_dir/ ;;
  5325. esac
  5326. for ac_exec_ext in '' $ac_executable_extensions; do
  5327. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5328. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5330. break 2
  5331. fi
  5332. done
  5333. done
  5334. IFS=$as_save_IFS
  5335. fi
  5336. fi
  5337. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5338. if test -n "$ac_ct_DLLTOOL"; then
  5339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5340. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5341. else
  5342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5343. printf "%s\n" "no" >&6; }
  5344. fi
  5345. if test "x$ac_ct_DLLTOOL" = x; then
  5346. DLLTOOL="false"
  5347. else
  5348. case $cross_compiling:$ac_tool_warned in
  5349. yes:)
  5350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5351. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5352. ac_tool_warned=yes ;;
  5353. esac
  5354. DLLTOOL=$ac_ct_DLLTOOL
  5355. fi
  5356. else
  5357. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5358. fi
  5359. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5361. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5362. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5363. then :
  5364. printf %s "(cached) " >&6
  5365. else $as_nop
  5366. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5367. case $host_os in
  5368. cygwin* | mingw* | pw32* | cegcc*)
  5369. # two different shell functions defined in ltmain.sh;
  5370. # decide which one to use based on capabilities of $DLLTOOL
  5371. case `$DLLTOOL --help 2>&1` in
  5372. *--identify-strict*)
  5373. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5374. ;;
  5375. *)
  5376. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5377. ;;
  5378. esac
  5379. ;;
  5380. *)
  5381. # fallback: assume linklib IS sharedlib
  5382. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5383. ;;
  5384. esac
  5385. fi
  5386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5387. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5388. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5389. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5390. if test -n "$ac_tool_prefix"; then
  5391. for ac_prog in ar
  5392. do
  5393. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5394. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5396. printf %s "checking for $ac_word... " >&6; }
  5397. if test ${ac_cv_prog_AR+y}
  5398. then :
  5399. printf %s "(cached) " >&6
  5400. else $as_nop
  5401. if test -n "$AR"; then
  5402. ac_cv_prog_AR="$AR" # Let the user override the test.
  5403. else
  5404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5405. for as_dir in $PATH
  5406. do
  5407. IFS=$as_save_IFS
  5408. case $as_dir in #(((
  5409. '') as_dir=./ ;;
  5410. */) ;;
  5411. *) as_dir=$as_dir/ ;;
  5412. esac
  5413. for ac_exec_ext in '' $ac_executable_extensions; do
  5414. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5415. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5416. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5417. break 2
  5418. fi
  5419. done
  5420. done
  5421. IFS=$as_save_IFS
  5422. fi
  5423. fi
  5424. AR=$ac_cv_prog_AR
  5425. if test -n "$AR"; then
  5426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5427. printf "%s\n" "$AR" >&6; }
  5428. else
  5429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5430. printf "%s\n" "no" >&6; }
  5431. fi
  5432. test -n "$AR" && break
  5433. done
  5434. fi
  5435. if test -z "$AR"; then
  5436. ac_ct_AR=$AR
  5437. for ac_prog in ar
  5438. do
  5439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5440. set dummy $ac_prog; ac_word=$2
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5442. printf %s "checking for $ac_word... " >&6; }
  5443. if test ${ac_cv_prog_ac_ct_AR+y}
  5444. then :
  5445. printf %s "(cached) " >&6
  5446. else $as_nop
  5447. if test -n "$ac_ct_AR"; then
  5448. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. case $as_dir in #(((
  5455. '') as_dir=./ ;;
  5456. */) ;;
  5457. *) as_dir=$as_dir/ ;;
  5458. esac
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5461. ac_cv_prog_ac_ct_AR="$ac_prog"
  5462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5471. if test -n "$ac_ct_AR"; then
  5472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5473. printf "%s\n" "$ac_ct_AR" >&6; }
  5474. else
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. printf "%s\n" "no" >&6; }
  5477. fi
  5478. test -n "$ac_ct_AR" && break
  5479. done
  5480. if test "x$ac_ct_AR" = x; then
  5481. AR="false"
  5482. else
  5483. case $cross_compiling:$ac_tool_warned in
  5484. yes:)
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5486. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5487. ac_tool_warned=yes ;;
  5488. esac
  5489. AR=$ac_ct_AR
  5490. fi
  5491. fi
  5492. : ${AR=ar}
  5493. : ${AR_FLAGS=cru}
  5494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5495. printf %s "checking for archiver @FILE support... " >&6; }
  5496. if test ${lt_cv_ar_at_file+y}
  5497. then :
  5498. printf %s "(cached) " >&6
  5499. else $as_nop
  5500. lt_cv_ar_at_file=no
  5501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5502. /* end confdefs.h. */
  5503. int
  5504. main (void)
  5505. {
  5506. ;
  5507. return 0;
  5508. }
  5509. _ACEOF
  5510. if ac_fn_c_try_compile "$LINENO"
  5511. then :
  5512. echo conftest.$ac_objext > conftest.lst
  5513. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5514. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5515. (eval $lt_ar_try) 2>&5
  5516. ac_status=$?
  5517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5518. test $ac_status = 0; }
  5519. if test 0 -eq "$ac_status"; then
  5520. # Ensure the archiver fails upon bogus file names.
  5521. rm -f conftest.$ac_objext libconftest.a
  5522. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5523. (eval $lt_ar_try) 2>&5
  5524. ac_status=$?
  5525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; }
  5527. if test 0 -ne "$ac_status"; then
  5528. lt_cv_ar_at_file=@
  5529. fi
  5530. fi
  5531. rm -f conftest.* libconftest.a
  5532. fi
  5533. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5534. fi
  5535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5536. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5537. if test no = "$lt_cv_ar_at_file"; then
  5538. archiver_list_spec=
  5539. else
  5540. archiver_list_spec=$lt_cv_ar_at_file
  5541. fi
  5542. if test -n "$ac_tool_prefix"; then
  5543. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5544. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5546. printf %s "checking for $ac_word... " >&6; }
  5547. if test ${ac_cv_prog_STRIP+y}
  5548. then :
  5549. printf %s "(cached) " >&6
  5550. else $as_nop
  5551. if test -n "$STRIP"; then
  5552. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5553. else
  5554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5555. for as_dir in $PATH
  5556. do
  5557. IFS=$as_save_IFS
  5558. case $as_dir in #(((
  5559. '') as_dir=./ ;;
  5560. */) ;;
  5561. *) as_dir=$as_dir/ ;;
  5562. esac
  5563. for ac_exec_ext in '' $ac_executable_extensions; do
  5564. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5565. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5566. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5567. break 2
  5568. fi
  5569. done
  5570. done
  5571. IFS=$as_save_IFS
  5572. fi
  5573. fi
  5574. STRIP=$ac_cv_prog_STRIP
  5575. if test -n "$STRIP"; then
  5576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5577. printf "%s\n" "$STRIP" >&6; }
  5578. else
  5579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5580. printf "%s\n" "no" >&6; }
  5581. fi
  5582. fi
  5583. if test -z "$ac_cv_prog_STRIP"; then
  5584. ac_ct_STRIP=$STRIP
  5585. # Extract the first word of "strip", so it can be a program name with args.
  5586. set dummy strip; ac_word=$2
  5587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5588. printf %s "checking for $ac_word... " >&6; }
  5589. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5590. then :
  5591. printf %s "(cached) " >&6
  5592. else $as_nop
  5593. if test -n "$ac_ct_STRIP"; then
  5594. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5595. else
  5596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5597. for as_dir in $PATH
  5598. do
  5599. IFS=$as_save_IFS
  5600. case $as_dir in #(((
  5601. '') as_dir=./ ;;
  5602. */) ;;
  5603. *) as_dir=$as_dir/ ;;
  5604. esac
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5607. ac_cv_prog_ac_ct_STRIP="strip"
  5608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5617. if test -n "$ac_ct_STRIP"; then
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5619. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5620. else
  5621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. printf "%s\n" "no" >&6; }
  5623. fi
  5624. if test "x$ac_ct_STRIP" = x; then
  5625. STRIP=":"
  5626. else
  5627. case $cross_compiling:$ac_tool_warned in
  5628. yes:)
  5629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5631. ac_tool_warned=yes ;;
  5632. esac
  5633. STRIP=$ac_ct_STRIP
  5634. fi
  5635. else
  5636. STRIP="$ac_cv_prog_STRIP"
  5637. fi
  5638. test -z "$STRIP" && STRIP=:
  5639. if test -n "$ac_tool_prefix"; then
  5640. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5641. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5643. printf %s "checking for $ac_word... " >&6; }
  5644. if test ${ac_cv_prog_RANLIB+y}
  5645. then :
  5646. printf %s "(cached) " >&6
  5647. else $as_nop
  5648. if test -n "$RANLIB"; then
  5649. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5650. else
  5651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5652. for as_dir in $PATH
  5653. do
  5654. IFS=$as_save_IFS
  5655. case $as_dir in #(((
  5656. '') as_dir=./ ;;
  5657. */) ;;
  5658. *) as_dir=$as_dir/ ;;
  5659. esac
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. RANLIB=$ac_cv_prog_RANLIB
  5672. if test -n "$RANLIB"; then
  5673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5674. printf "%s\n" "$RANLIB" >&6; }
  5675. else
  5676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. printf "%s\n" "no" >&6; }
  5678. fi
  5679. fi
  5680. if test -z "$ac_cv_prog_RANLIB"; then
  5681. ac_ct_RANLIB=$RANLIB
  5682. # Extract the first word of "ranlib", so it can be a program name with args.
  5683. set dummy ranlib; ac_word=$2
  5684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5685. printf %s "checking for $ac_word... " >&6; }
  5686. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5687. then :
  5688. printf %s "(cached) " >&6
  5689. else $as_nop
  5690. if test -n "$ac_ct_RANLIB"; then
  5691. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5692. else
  5693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5694. for as_dir in $PATH
  5695. do
  5696. IFS=$as_save_IFS
  5697. case $as_dir in #(((
  5698. '') as_dir=./ ;;
  5699. */) ;;
  5700. *) as_dir=$as_dir/ ;;
  5701. esac
  5702. for ac_exec_ext in '' $ac_executable_extensions; do
  5703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5704. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5706. break 2
  5707. fi
  5708. done
  5709. done
  5710. IFS=$as_save_IFS
  5711. fi
  5712. fi
  5713. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5714. if test -n "$ac_ct_RANLIB"; then
  5715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5716. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5717. else
  5718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. printf "%s\n" "no" >&6; }
  5720. fi
  5721. if test "x$ac_ct_RANLIB" = x; then
  5722. RANLIB=":"
  5723. else
  5724. case $cross_compiling:$ac_tool_warned in
  5725. yes:)
  5726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5727. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5728. ac_tool_warned=yes ;;
  5729. esac
  5730. RANLIB=$ac_ct_RANLIB
  5731. fi
  5732. else
  5733. RANLIB="$ac_cv_prog_RANLIB"
  5734. fi
  5735. test -z "$RANLIB" && RANLIB=:
  5736. # Determine commands to create old-style static archives.
  5737. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5738. old_postinstall_cmds='chmod 644 $oldlib'
  5739. old_postuninstall_cmds=
  5740. if test -n "$RANLIB"; then
  5741. case $host_os in
  5742. bitrig* | openbsd*)
  5743. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5744. ;;
  5745. *)
  5746. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5747. ;;
  5748. esac
  5749. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5750. fi
  5751. case $host_os in
  5752. darwin*)
  5753. lock_old_archive_extraction=yes ;;
  5754. *)
  5755. lock_old_archive_extraction=no ;;
  5756. esac
  5757. for ac_prog in gawk mawk nawk awk
  5758. do
  5759. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5760. set dummy $ac_prog; ac_word=$2
  5761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. printf %s "checking for $ac_word... " >&6; }
  5763. if test ${ac_cv_prog_AWK+y}
  5764. then :
  5765. printf %s "(cached) " >&6
  5766. else $as_nop
  5767. if test -n "$AWK"; then
  5768. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5769. else
  5770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5771. for as_dir in $PATH
  5772. do
  5773. IFS=$as_save_IFS
  5774. case $as_dir in #(((
  5775. '') as_dir=./ ;;
  5776. */) ;;
  5777. *) as_dir=$as_dir/ ;;
  5778. esac
  5779. for ac_exec_ext in '' $ac_executable_extensions; do
  5780. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5781. ac_cv_prog_AWK="$ac_prog"
  5782. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5783. break 2
  5784. fi
  5785. done
  5786. done
  5787. IFS=$as_save_IFS
  5788. fi
  5789. fi
  5790. AWK=$ac_cv_prog_AWK
  5791. if test -n "$AWK"; then
  5792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5793. printf "%s\n" "$AWK" >&6; }
  5794. else
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5796. printf "%s\n" "no" >&6; }
  5797. fi
  5798. test -n "$AWK" && break
  5799. done
  5800. # If no C compiler was specified, use CC.
  5801. LTCC=${LTCC-"$CC"}
  5802. # If no C compiler flags were specified, use CFLAGS.
  5803. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5804. # Allow CC to be a program name with arguments.
  5805. compiler=$CC
  5806. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5808. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5809. if test ${lt_cv_sys_global_symbol_pipe+y}
  5810. then :
  5811. printf %s "(cached) " >&6
  5812. else $as_nop
  5813. # These are sane defaults that work on at least a few old systems.
  5814. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5815. # Character class describing NM global symbol codes.
  5816. symcode='[BCDEGRST]'
  5817. # Regexp to match symbols that can be accessed directly from C.
  5818. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5819. # Define system-specific variables.
  5820. case $host_os in
  5821. aix*)
  5822. symcode='[BCDT]'
  5823. ;;
  5824. cygwin* | mingw* | pw32* | cegcc*)
  5825. symcode='[ABCDGISTW]'
  5826. ;;
  5827. hpux*)
  5828. if test ia64 = "$host_cpu"; then
  5829. symcode='[ABCDEGRST]'
  5830. fi
  5831. ;;
  5832. irix* | nonstopux*)
  5833. symcode='[BCDEGRST]'
  5834. ;;
  5835. osf*)
  5836. symcode='[BCDEGQRST]'
  5837. ;;
  5838. solaris*)
  5839. symcode='[BCDRT]'
  5840. ;;
  5841. sco3.2v5*)
  5842. symcode='[DT]'
  5843. ;;
  5844. sysv4.2uw2*)
  5845. symcode='[DT]'
  5846. ;;
  5847. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5848. symcode='[ABDT]'
  5849. ;;
  5850. sysv4)
  5851. symcode='[DFNSTU]'
  5852. ;;
  5853. esac
  5854. # If we're using GNU nm, then use its standard symbol codes.
  5855. case `$NM -V 2>&1` in
  5856. *GNU* | *'with BFD'*)
  5857. symcode='[ABCDGIRSTW]' ;;
  5858. esac
  5859. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5860. # Gets list of data symbols to import.
  5861. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5862. # Adjust the below global symbol transforms to fixup imported variables.
  5863. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5864. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5865. lt_c_name_lib_hook="\
  5866. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5867. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5868. else
  5869. # Disable hooks by default.
  5870. lt_cv_sys_global_symbol_to_import=
  5871. lt_cdecl_hook=
  5872. lt_c_name_hook=
  5873. lt_c_name_lib_hook=
  5874. fi
  5875. # Transform an extracted symbol line into a proper C declaration.
  5876. # Some systems (esp. on ia64) link data and code symbols differently,
  5877. # so use this general approach.
  5878. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5879. $lt_cdecl_hook\
  5880. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5881. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5882. # Transform an extracted symbol line into symbol name and symbol address
  5883. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5884. $lt_c_name_hook\
  5885. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5886. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5887. # Transform an extracted symbol line into symbol name with lib prefix and
  5888. # symbol address.
  5889. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5890. $lt_c_name_lib_hook\
  5891. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5892. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5893. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5894. # Handle CRLF in mingw tool chain
  5895. opt_cr=
  5896. case $build_os in
  5897. mingw*)
  5898. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5899. ;;
  5900. esac
  5901. # Try without a prefix underscore, then with it.
  5902. for ac_symprfx in "" "_"; do
  5903. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5904. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5905. # Write the raw and C identifiers.
  5906. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5907. # Fake it for dumpbin and say T for any non-static function,
  5908. # D for any global variable and I for any imported variable.
  5909. # Also find C++ and __fastcall symbols from MSVC++,
  5910. # which start with @ or ?.
  5911. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5912. " {last_section=section; section=\$ 3};"\
  5913. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5914. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5915. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5916. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5917. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5918. " \$ 0!~/External *\|/{next};"\
  5919. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5920. " {if(hide[section]) next};"\
  5921. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5922. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5923. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5924. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5925. " ' prfx=^$ac_symprfx"
  5926. else
  5927. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5928. fi
  5929. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5930. # Check to see that the pipe works correctly.
  5931. pipe_works=no
  5932. rm -f conftest*
  5933. cat > conftest.$ac_ext <<_LT_EOF
  5934. #ifdef __cplusplus
  5935. extern "C" {
  5936. #endif
  5937. char nm_test_var;
  5938. void nm_test_func(void);
  5939. void nm_test_func(void){}
  5940. #ifdef __cplusplus
  5941. }
  5942. #endif
  5943. int main(){nm_test_var='a';nm_test_func();return(0);}
  5944. _LT_EOF
  5945. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5946. (eval $ac_compile) 2>&5
  5947. ac_status=$?
  5948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5949. test $ac_status = 0; }; then
  5950. # Now try to grab the symbols.
  5951. nlist=conftest.nm
  5952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5953. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5954. ac_status=$?
  5955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5956. test $ac_status = 0; } && test -s "$nlist"; then
  5957. # Try sorting and uniquifying the output.
  5958. if sort "$nlist" | uniq > "$nlist"T; then
  5959. mv -f "$nlist"T "$nlist"
  5960. else
  5961. rm -f "$nlist"T
  5962. fi
  5963. # Make sure that we snagged all the symbols we need.
  5964. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5965. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5966. cat <<_LT_EOF > conftest.$ac_ext
  5967. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5968. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5969. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5970. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5971. # define LT_DLSYM_CONST
  5972. #elif defined __osf__
  5973. /* This system does not cope well with relocations in const data. */
  5974. # define LT_DLSYM_CONST
  5975. #else
  5976. # define LT_DLSYM_CONST const
  5977. #endif
  5978. #ifdef __cplusplus
  5979. extern "C" {
  5980. #endif
  5981. _LT_EOF
  5982. # Now generate the symbol file.
  5983. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5984. cat <<_LT_EOF >> conftest.$ac_ext
  5985. /* The mapping between symbol names and symbols. */
  5986. LT_DLSYM_CONST struct {
  5987. const char *name;
  5988. void *address;
  5989. }
  5990. lt__PROGRAM__LTX_preloaded_symbols[] =
  5991. {
  5992. { "@PROGRAM@", (void *) 0 },
  5993. _LT_EOF
  5994. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5995. cat <<\_LT_EOF >> conftest.$ac_ext
  5996. {0, (void *) 0}
  5997. };
  5998. /* This works around a problem in FreeBSD linker */
  5999. #ifdef FREEBSD_WORKAROUND
  6000. static const void *lt_preloaded_setup() {
  6001. return lt__PROGRAM__LTX_preloaded_symbols;
  6002. }
  6003. #endif
  6004. #ifdef __cplusplus
  6005. }
  6006. #endif
  6007. _LT_EOF
  6008. # Now try linking the two files.
  6009. mv conftest.$ac_objext conftstm.$ac_objext
  6010. lt_globsym_save_LIBS=$LIBS
  6011. lt_globsym_save_CFLAGS=$CFLAGS
  6012. LIBS=conftstm.$ac_objext
  6013. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6015. (eval $ac_link) 2>&5
  6016. ac_status=$?
  6017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6018. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6019. pipe_works=yes
  6020. fi
  6021. LIBS=$lt_globsym_save_LIBS
  6022. CFLAGS=$lt_globsym_save_CFLAGS
  6023. else
  6024. echo "cannot find nm_test_func in $nlist" >&5
  6025. fi
  6026. else
  6027. echo "cannot find nm_test_var in $nlist" >&5
  6028. fi
  6029. else
  6030. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6031. fi
  6032. else
  6033. echo "$progname: failed program was:" >&5
  6034. cat conftest.$ac_ext >&5
  6035. fi
  6036. rm -rf conftest* conftst*
  6037. # Do not use the global_symbol_pipe unless it works.
  6038. if test yes = "$pipe_works"; then
  6039. break
  6040. else
  6041. lt_cv_sys_global_symbol_pipe=
  6042. fi
  6043. done
  6044. fi
  6045. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6046. lt_cv_sys_global_symbol_to_cdecl=
  6047. fi
  6048. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6050. printf "%s\n" "failed" >&6; }
  6051. else
  6052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6053. printf "%s\n" "ok" >&6; }
  6054. fi
  6055. # Response file support.
  6056. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6057. nm_file_list_spec='@'
  6058. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6059. nm_file_list_spec='@'
  6060. fi
  6061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6062. printf %s "checking for sysroot... " >&6; }
  6063. # Check whether --with-sysroot was given.
  6064. if test ${with_sysroot+y}
  6065. then :
  6066. withval=$with_sysroot;
  6067. else $as_nop
  6068. with_sysroot=no
  6069. fi
  6070. lt_sysroot=
  6071. case $with_sysroot in #(
  6072. yes)
  6073. if test yes = "$GCC"; then
  6074. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6075. fi
  6076. ;; #(
  6077. /*)
  6078. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6079. ;; #(
  6080. no|'')
  6081. ;; #(
  6082. *)
  6083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6084. printf "%s\n" "$with_sysroot" >&6; }
  6085. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6086. ;;
  6087. esac
  6088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6089. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6091. printf %s "checking for a working dd... " >&6; }
  6092. if test ${ac_cv_path_lt_DD+y}
  6093. then :
  6094. printf %s "(cached) " >&6
  6095. else $as_nop
  6096. printf 0123456789abcdef0123456789abcdef >conftest.i
  6097. cat conftest.i conftest.i >conftest2.i
  6098. : ${lt_DD:=$DD}
  6099. if test -z "$lt_DD"; then
  6100. ac_path_lt_DD_found=false
  6101. # Loop through the user's path and test for each of PROGNAME-LIST
  6102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6103. for as_dir in $PATH
  6104. do
  6105. IFS=$as_save_IFS
  6106. case $as_dir in #(((
  6107. '') as_dir=./ ;;
  6108. */) ;;
  6109. *) as_dir=$as_dir/ ;;
  6110. esac
  6111. for ac_prog in dd
  6112. do
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6115. as_fn_executable_p "$ac_path_lt_DD" || continue
  6116. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6117. cmp -s conftest.i conftest.out \
  6118. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6119. fi
  6120. $ac_path_lt_DD_found && break 3
  6121. done
  6122. done
  6123. done
  6124. IFS=$as_save_IFS
  6125. if test -z "$ac_cv_path_lt_DD"; then
  6126. :
  6127. fi
  6128. else
  6129. ac_cv_path_lt_DD=$lt_DD
  6130. fi
  6131. rm -f conftest.i conftest2.i conftest.out
  6132. fi
  6133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6134. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6136. printf %s "checking how to truncate binary pipes... " >&6; }
  6137. if test ${lt_cv_truncate_bin+y}
  6138. then :
  6139. printf %s "(cached) " >&6
  6140. else $as_nop
  6141. printf 0123456789abcdef0123456789abcdef >conftest.i
  6142. cat conftest.i conftest.i >conftest2.i
  6143. lt_cv_truncate_bin=
  6144. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6145. cmp -s conftest.i conftest.out \
  6146. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6147. fi
  6148. rm -f conftest.i conftest2.i conftest.out
  6149. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6150. fi
  6151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6152. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6153. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6154. func_cc_basename ()
  6155. {
  6156. for cc_temp in $*""; do
  6157. case $cc_temp in
  6158. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6159. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6160. \-*) ;;
  6161. *) break;;
  6162. esac
  6163. done
  6164. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6165. }
  6166. # Check whether --enable-libtool-lock was given.
  6167. if test ${enable_libtool_lock+y}
  6168. then :
  6169. enableval=$enable_libtool_lock;
  6170. fi
  6171. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6172. # Some flags need to be propagated to the compiler or linker for good
  6173. # libtool support.
  6174. case $host in
  6175. ia64-*-hpux*)
  6176. # Find out what ABI is being produced by ac_compile, and set mode
  6177. # options accordingly.
  6178. echo 'int i;' > conftest.$ac_ext
  6179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6180. (eval $ac_compile) 2>&5
  6181. ac_status=$?
  6182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6183. test $ac_status = 0; }; then
  6184. case `/usr/bin/file conftest.$ac_objext` in
  6185. *ELF-32*)
  6186. HPUX_IA64_MODE=32
  6187. ;;
  6188. *ELF-64*)
  6189. HPUX_IA64_MODE=64
  6190. ;;
  6191. esac
  6192. fi
  6193. rm -rf conftest*
  6194. ;;
  6195. *-*-irix6*)
  6196. # Find out what ABI is being produced by ac_compile, and set linker
  6197. # options accordingly.
  6198. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6200. (eval $ac_compile) 2>&5
  6201. ac_status=$?
  6202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6203. test $ac_status = 0; }; then
  6204. if test yes = "$lt_cv_prog_gnu_ld"; then
  6205. case `/usr/bin/file conftest.$ac_objext` in
  6206. *32-bit*)
  6207. LD="${LD-ld} -melf32bsmip"
  6208. ;;
  6209. *N32*)
  6210. LD="${LD-ld} -melf32bmipn32"
  6211. ;;
  6212. *64-bit*)
  6213. LD="${LD-ld} -melf64bmip"
  6214. ;;
  6215. esac
  6216. else
  6217. case `/usr/bin/file conftest.$ac_objext` in
  6218. *32-bit*)
  6219. LD="${LD-ld} -32"
  6220. ;;
  6221. *N32*)
  6222. LD="${LD-ld} -n32"
  6223. ;;
  6224. *64-bit*)
  6225. LD="${LD-ld} -64"
  6226. ;;
  6227. esac
  6228. fi
  6229. fi
  6230. rm -rf conftest*
  6231. ;;
  6232. mips64*-*linux*)
  6233. # Find out what ABI is being produced by ac_compile, and set linker
  6234. # options accordingly.
  6235. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6237. (eval $ac_compile) 2>&5
  6238. ac_status=$?
  6239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6240. test $ac_status = 0; }; then
  6241. emul=elf
  6242. case `/usr/bin/file conftest.$ac_objext` in
  6243. *32-bit*)
  6244. emul="${emul}32"
  6245. ;;
  6246. *64-bit*)
  6247. emul="${emul}64"
  6248. ;;
  6249. esac
  6250. case `/usr/bin/file conftest.$ac_objext` in
  6251. *MSB*)
  6252. emul="${emul}btsmip"
  6253. ;;
  6254. *LSB*)
  6255. emul="${emul}ltsmip"
  6256. ;;
  6257. esac
  6258. case `/usr/bin/file conftest.$ac_objext` in
  6259. *N32*)
  6260. emul="${emul}n32"
  6261. ;;
  6262. esac
  6263. LD="${LD-ld} -m $emul"
  6264. fi
  6265. rm -rf conftest*
  6266. ;;
  6267. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6268. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6269. # Find out what ABI is being produced by ac_compile, and set linker
  6270. # options accordingly. Note that the listed cases only cover the
  6271. # situations where additional linker options are needed (such as when
  6272. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6273. # vice versa); the common cases where no linker options are needed do
  6274. # not appear in the list.
  6275. echo 'int i;' > conftest.$ac_ext
  6276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6277. (eval $ac_compile) 2>&5
  6278. ac_status=$?
  6279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6280. test $ac_status = 0; }; then
  6281. case `/usr/bin/file conftest.o` in
  6282. *32-bit*)
  6283. case $host in
  6284. x86_64-*kfreebsd*-gnu)
  6285. LD="${LD-ld} -m elf_i386_fbsd"
  6286. ;;
  6287. x86_64-*linux*)
  6288. case `/usr/bin/file conftest.o` in
  6289. *x86-64*)
  6290. LD="${LD-ld} -m elf32_x86_64"
  6291. ;;
  6292. *)
  6293. LD="${LD-ld} -m elf_i386"
  6294. ;;
  6295. esac
  6296. ;;
  6297. powerpc64le-*linux*)
  6298. LD="${LD-ld} -m elf32lppclinux"
  6299. ;;
  6300. powerpc64-*linux*)
  6301. LD="${LD-ld} -m elf32ppclinux"
  6302. ;;
  6303. s390x-*linux*)
  6304. LD="${LD-ld} -m elf_s390"
  6305. ;;
  6306. sparc64-*linux*)
  6307. LD="${LD-ld} -m elf32_sparc"
  6308. ;;
  6309. esac
  6310. ;;
  6311. *64-bit*)
  6312. case $host in
  6313. x86_64-*kfreebsd*-gnu)
  6314. LD="${LD-ld} -m elf_x86_64_fbsd"
  6315. ;;
  6316. x86_64-*linux*)
  6317. LD="${LD-ld} -m elf_x86_64"
  6318. ;;
  6319. powerpcle-*linux*|powerpc64le-*linux*)
  6320. LD="${LD-ld} -m elf64lppc"
  6321. ;;
  6322. powerpc-*linux*|powerpc64-*linux*)
  6323. LD="${LD-ld} -m elf64ppc"
  6324. ;;
  6325. s390*-*linux*|s390*-*tpf*)
  6326. LD="${LD-ld} -m elf64_s390"
  6327. ;;
  6328. sparc*-*linux*)
  6329. LD="${LD-ld} -m elf64_sparc"
  6330. ;;
  6331. esac
  6332. ;;
  6333. esac
  6334. fi
  6335. rm -rf conftest*
  6336. ;;
  6337. *-*-sco3.2v5*)
  6338. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6339. SAVE_CFLAGS=$CFLAGS
  6340. CFLAGS="$CFLAGS -belf"
  6341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6342. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6343. if test ${lt_cv_cc_needs_belf+y}
  6344. then :
  6345. printf %s "(cached) " >&6
  6346. else $as_nop
  6347. ac_ext=c
  6348. ac_cpp='$CPP $CPPFLAGS'
  6349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6353. /* end confdefs.h. */
  6354. int
  6355. main (void)
  6356. {
  6357. ;
  6358. return 0;
  6359. }
  6360. _ACEOF
  6361. if ac_fn_c_try_link "$LINENO"
  6362. then :
  6363. lt_cv_cc_needs_belf=yes
  6364. else $as_nop
  6365. lt_cv_cc_needs_belf=no
  6366. fi
  6367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6368. conftest$ac_exeext conftest.$ac_ext
  6369. ac_ext=c
  6370. ac_cpp='$CPP $CPPFLAGS'
  6371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6374. fi
  6375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6376. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6377. if test yes != "$lt_cv_cc_needs_belf"; then
  6378. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6379. CFLAGS=$SAVE_CFLAGS
  6380. fi
  6381. ;;
  6382. *-*solaris*)
  6383. # Find out what ABI is being produced by ac_compile, and set linker
  6384. # options accordingly.
  6385. echo 'int i;' > conftest.$ac_ext
  6386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6387. (eval $ac_compile) 2>&5
  6388. ac_status=$?
  6389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6390. test $ac_status = 0; }; then
  6391. case `/usr/bin/file conftest.o` in
  6392. *64-bit*)
  6393. case $lt_cv_prog_gnu_ld in
  6394. yes*)
  6395. case $host in
  6396. i?86-*-solaris*|x86_64-*-solaris*)
  6397. LD="${LD-ld} -m elf_x86_64"
  6398. ;;
  6399. sparc*-*-solaris*)
  6400. LD="${LD-ld} -m elf64_sparc"
  6401. ;;
  6402. esac
  6403. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6404. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6405. LD=${LD-ld}_sol2
  6406. fi
  6407. ;;
  6408. *)
  6409. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6410. LD="${LD-ld} -64"
  6411. fi
  6412. ;;
  6413. esac
  6414. ;;
  6415. esac
  6416. fi
  6417. rm -rf conftest*
  6418. ;;
  6419. esac
  6420. need_locks=$enable_libtool_lock
  6421. if test -n "$ac_tool_prefix"; then
  6422. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6423. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. printf %s "checking for $ac_word... " >&6; }
  6426. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6427. then :
  6428. printf %s "(cached) " >&6
  6429. else $as_nop
  6430. if test -n "$MANIFEST_TOOL"; then
  6431. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6432. else
  6433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6434. for as_dir in $PATH
  6435. do
  6436. IFS=$as_save_IFS
  6437. case $as_dir in #(((
  6438. '') as_dir=./ ;;
  6439. */) ;;
  6440. *) as_dir=$as_dir/ ;;
  6441. esac
  6442. for ac_exec_ext in '' $ac_executable_extensions; do
  6443. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6444. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6446. break 2
  6447. fi
  6448. done
  6449. done
  6450. IFS=$as_save_IFS
  6451. fi
  6452. fi
  6453. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6454. if test -n "$MANIFEST_TOOL"; then
  6455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6456. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6457. else
  6458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6459. printf "%s\n" "no" >&6; }
  6460. fi
  6461. fi
  6462. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6463. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6464. # Extract the first word of "mt", so it can be a program name with args.
  6465. set dummy mt; ac_word=$2
  6466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6467. printf %s "checking for $ac_word... " >&6; }
  6468. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6469. then :
  6470. printf %s "(cached) " >&6
  6471. else $as_nop
  6472. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6473. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6474. else
  6475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6476. for as_dir in $PATH
  6477. do
  6478. IFS=$as_save_IFS
  6479. case $as_dir in #(((
  6480. '') as_dir=./ ;;
  6481. */) ;;
  6482. *) as_dir=$as_dir/ ;;
  6483. esac
  6484. for ac_exec_ext in '' $ac_executable_extensions; do
  6485. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6486. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6488. break 2
  6489. fi
  6490. done
  6491. done
  6492. IFS=$as_save_IFS
  6493. fi
  6494. fi
  6495. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6496. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6498. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6499. else
  6500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6501. printf "%s\n" "no" >&6; }
  6502. fi
  6503. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6504. MANIFEST_TOOL=":"
  6505. else
  6506. case $cross_compiling:$ac_tool_warned in
  6507. yes:)
  6508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6509. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6510. ac_tool_warned=yes ;;
  6511. esac
  6512. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6513. fi
  6514. else
  6515. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6516. fi
  6517. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6519. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6520. if test ${lt_cv_path_mainfest_tool+y}
  6521. then :
  6522. printf %s "(cached) " >&6
  6523. else $as_nop
  6524. lt_cv_path_mainfest_tool=no
  6525. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6526. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6527. cat conftest.err >&5
  6528. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6529. lt_cv_path_mainfest_tool=yes
  6530. fi
  6531. rm -f conftest*
  6532. fi
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6534. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6535. if test yes != "$lt_cv_path_mainfest_tool"; then
  6536. MANIFEST_TOOL=:
  6537. fi
  6538. case $host_os in
  6539. rhapsody* | darwin*)
  6540. if test -n "$ac_tool_prefix"; then
  6541. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6542. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6544. printf %s "checking for $ac_word... " >&6; }
  6545. if test ${ac_cv_prog_DSYMUTIL+y}
  6546. then :
  6547. printf %s "(cached) " >&6
  6548. else $as_nop
  6549. if test -n "$DSYMUTIL"; then
  6550. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6551. else
  6552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6553. for as_dir in $PATH
  6554. do
  6555. IFS=$as_save_IFS
  6556. case $as_dir in #(((
  6557. '') as_dir=./ ;;
  6558. */) ;;
  6559. *) as_dir=$as_dir/ ;;
  6560. esac
  6561. for ac_exec_ext in '' $ac_executable_extensions; do
  6562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6563. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6565. break 2
  6566. fi
  6567. done
  6568. done
  6569. IFS=$as_save_IFS
  6570. fi
  6571. fi
  6572. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6573. if test -n "$DSYMUTIL"; then
  6574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6575. printf "%s\n" "$DSYMUTIL" >&6; }
  6576. else
  6577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6578. printf "%s\n" "no" >&6; }
  6579. fi
  6580. fi
  6581. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6582. ac_ct_DSYMUTIL=$DSYMUTIL
  6583. # Extract the first word of "dsymutil", so it can be a program name with args.
  6584. set dummy dsymutil; ac_word=$2
  6585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6586. printf %s "checking for $ac_word... " >&6; }
  6587. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6588. then :
  6589. printf %s "(cached) " >&6
  6590. else $as_nop
  6591. if test -n "$ac_ct_DSYMUTIL"; then
  6592. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6593. else
  6594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6595. for as_dir in $PATH
  6596. do
  6597. IFS=$as_save_IFS
  6598. case $as_dir in #(((
  6599. '') as_dir=./ ;;
  6600. */) ;;
  6601. *) as_dir=$as_dir/ ;;
  6602. esac
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6605. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. fi
  6613. fi
  6614. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6615. if test -n "$ac_ct_DSYMUTIL"; then
  6616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6617. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6618. else
  6619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6620. printf "%s\n" "no" >&6; }
  6621. fi
  6622. if test "x$ac_ct_DSYMUTIL" = x; then
  6623. DSYMUTIL=":"
  6624. else
  6625. case $cross_compiling:$ac_tool_warned in
  6626. yes:)
  6627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6628. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6629. ac_tool_warned=yes ;;
  6630. esac
  6631. DSYMUTIL=$ac_ct_DSYMUTIL
  6632. fi
  6633. else
  6634. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6635. fi
  6636. if test -n "$ac_tool_prefix"; then
  6637. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6638. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6640. printf %s "checking for $ac_word... " >&6; }
  6641. if test ${ac_cv_prog_NMEDIT+y}
  6642. then :
  6643. printf %s "(cached) " >&6
  6644. else $as_nop
  6645. if test -n "$NMEDIT"; then
  6646. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6647. else
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. case $as_dir in #(((
  6653. '') as_dir=./ ;;
  6654. */) ;;
  6655. *) as_dir=$as_dir/ ;;
  6656. esac
  6657. for ac_exec_ext in '' $ac_executable_extensions; do
  6658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6659. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6661. break 2
  6662. fi
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. fi
  6667. fi
  6668. NMEDIT=$ac_cv_prog_NMEDIT
  6669. if test -n "$NMEDIT"; then
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6671. printf "%s\n" "$NMEDIT" >&6; }
  6672. else
  6673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6674. printf "%s\n" "no" >&6; }
  6675. fi
  6676. fi
  6677. if test -z "$ac_cv_prog_NMEDIT"; then
  6678. ac_ct_NMEDIT=$NMEDIT
  6679. # Extract the first word of "nmedit", so it can be a program name with args.
  6680. set dummy nmedit; ac_word=$2
  6681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6682. printf %s "checking for $ac_word... " >&6; }
  6683. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6684. then :
  6685. printf %s "(cached) " >&6
  6686. else $as_nop
  6687. if test -n "$ac_ct_NMEDIT"; then
  6688. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6689. else
  6690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6691. for as_dir in $PATH
  6692. do
  6693. IFS=$as_save_IFS
  6694. case $as_dir in #(((
  6695. '') as_dir=./ ;;
  6696. */) ;;
  6697. *) as_dir=$as_dir/ ;;
  6698. esac
  6699. for ac_exec_ext in '' $ac_executable_extensions; do
  6700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6701. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6703. break 2
  6704. fi
  6705. done
  6706. done
  6707. IFS=$as_save_IFS
  6708. fi
  6709. fi
  6710. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6711. if test -n "$ac_ct_NMEDIT"; then
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6713. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6714. else
  6715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6716. printf "%s\n" "no" >&6; }
  6717. fi
  6718. if test "x$ac_ct_NMEDIT" = x; then
  6719. NMEDIT=":"
  6720. else
  6721. case $cross_compiling:$ac_tool_warned in
  6722. yes:)
  6723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6724. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6725. ac_tool_warned=yes ;;
  6726. esac
  6727. NMEDIT=$ac_ct_NMEDIT
  6728. fi
  6729. else
  6730. NMEDIT="$ac_cv_prog_NMEDIT"
  6731. fi
  6732. if test -n "$ac_tool_prefix"; then
  6733. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6734. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6736. printf %s "checking for $ac_word... " >&6; }
  6737. if test ${ac_cv_prog_LIPO+y}
  6738. then :
  6739. printf %s "(cached) " >&6
  6740. else $as_nop
  6741. if test -n "$LIPO"; then
  6742. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. case $as_dir in #(((
  6749. '') as_dir=./ ;;
  6750. */) ;;
  6751. *) as_dir=$as_dir/ ;;
  6752. esac
  6753. for ac_exec_ext in '' $ac_executable_extensions; do
  6754. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6755. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6756. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6757. break 2
  6758. fi
  6759. done
  6760. done
  6761. IFS=$as_save_IFS
  6762. fi
  6763. fi
  6764. LIPO=$ac_cv_prog_LIPO
  6765. if test -n "$LIPO"; then
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6767. printf "%s\n" "$LIPO" >&6; }
  6768. else
  6769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6770. printf "%s\n" "no" >&6; }
  6771. fi
  6772. fi
  6773. if test -z "$ac_cv_prog_LIPO"; then
  6774. ac_ct_LIPO=$LIPO
  6775. # Extract the first word of "lipo", so it can be a program name with args.
  6776. set dummy lipo; ac_word=$2
  6777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6778. printf %s "checking for $ac_word... " >&6; }
  6779. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6780. then :
  6781. printf %s "(cached) " >&6
  6782. else $as_nop
  6783. if test -n "$ac_ct_LIPO"; then
  6784. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6785. else
  6786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6787. for as_dir in $PATH
  6788. do
  6789. IFS=$as_save_IFS
  6790. case $as_dir in #(((
  6791. '') as_dir=./ ;;
  6792. */) ;;
  6793. *) as_dir=$as_dir/ ;;
  6794. esac
  6795. for ac_exec_ext in '' $ac_executable_extensions; do
  6796. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6797. ac_cv_prog_ac_ct_LIPO="lipo"
  6798. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6799. break 2
  6800. fi
  6801. done
  6802. done
  6803. IFS=$as_save_IFS
  6804. fi
  6805. fi
  6806. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6807. if test -n "$ac_ct_LIPO"; then
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6809. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6810. else
  6811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6812. printf "%s\n" "no" >&6; }
  6813. fi
  6814. if test "x$ac_ct_LIPO" = x; then
  6815. LIPO=":"
  6816. else
  6817. case $cross_compiling:$ac_tool_warned in
  6818. yes:)
  6819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6820. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6821. ac_tool_warned=yes ;;
  6822. esac
  6823. LIPO=$ac_ct_LIPO
  6824. fi
  6825. else
  6826. LIPO="$ac_cv_prog_LIPO"
  6827. fi
  6828. if test -n "$ac_tool_prefix"; then
  6829. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6830. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6832. printf %s "checking for $ac_word... " >&6; }
  6833. if test ${ac_cv_prog_OTOOL+y}
  6834. then :
  6835. printf %s "(cached) " >&6
  6836. else $as_nop
  6837. if test -n "$OTOOL"; then
  6838. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6839. else
  6840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6841. for as_dir in $PATH
  6842. do
  6843. IFS=$as_save_IFS
  6844. case $as_dir in #(((
  6845. '') as_dir=./ ;;
  6846. */) ;;
  6847. *) as_dir=$as_dir/ ;;
  6848. esac
  6849. for ac_exec_ext in '' $ac_executable_extensions; do
  6850. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6851. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6853. break 2
  6854. fi
  6855. done
  6856. done
  6857. IFS=$as_save_IFS
  6858. fi
  6859. fi
  6860. OTOOL=$ac_cv_prog_OTOOL
  6861. if test -n "$OTOOL"; then
  6862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6863. printf "%s\n" "$OTOOL" >&6; }
  6864. else
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. printf "%s\n" "no" >&6; }
  6867. fi
  6868. fi
  6869. if test -z "$ac_cv_prog_OTOOL"; then
  6870. ac_ct_OTOOL=$OTOOL
  6871. # Extract the first word of "otool", so it can be a program name with args.
  6872. set dummy otool; ac_word=$2
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. printf %s "checking for $ac_word... " >&6; }
  6875. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6876. then :
  6877. printf %s "(cached) " >&6
  6878. else $as_nop
  6879. if test -n "$ac_ct_OTOOL"; then
  6880. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6881. else
  6882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6883. for as_dir in $PATH
  6884. do
  6885. IFS=$as_save_IFS
  6886. case $as_dir in #(((
  6887. '') as_dir=./ ;;
  6888. */) ;;
  6889. *) as_dir=$as_dir/ ;;
  6890. esac
  6891. for ac_exec_ext in '' $ac_executable_extensions; do
  6892. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6893. ac_cv_prog_ac_ct_OTOOL="otool"
  6894. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6895. break 2
  6896. fi
  6897. done
  6898. done
  6899. IFS=$as_save_IFS
  6900. fi
  6901. fi
  6902. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6903. if test -n "$ac_ct_OTOOL"; then
  6904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6905. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6906. else
  6907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6908. printf "%s\n" "no" >&6; }
  6909. fi
  6910. if test "x$ac_ct_OTOOL" = x; then
  6911. OTOOL=":"
  6912. else
  6913. case $cross_compiling:$ac_tool_warned in
  6914. yes:)
  6915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6916. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6917. ac_tool_warned=yes ;;
  6918. esac
  6919. OTOOL=$ac_ct_OTOOL
  6920. fi
  6921. else
  6922. OTOOL="$ac_cv_prog_OTOOL"
  6923. fi
  6924. if test -n "$ac_tool_prefix"; then
  6925. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6926. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6928. printf %s "checking for $ac_word... " >&6; }
  6929. if test ${ac_cv_prog_OTOOL64+y}
  6930. then :
  6931. printf %s "(cached) " >&6
  6932. else $as_nop
  6933. if test -n "$OTOOL64"; then
  6934. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. case $as_dir in #(((
  6941. '') as_dir=./ ;;
  6942. */) ;;
  6943. *) as_dir=$as_dir/ ;;
  6944. esac
  6945. for ac_exec_ext in '' $ac_executable_extensions; do
  6946. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6947. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6949. break 2
  6950. fi
  6951. done
  6952. done
  6953. IFS=$as_save_IFS
  6954. fi
  6955. fi
  6956. OTOOL64=$ac_cv_prog_OTOOL64
  6957. if test -n "$OTOOL64"; then
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6959. printf "%s\n" "$OTOOL64" >&6; }
  6960. else
  6961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6962. printf "%s\n" "no" >&6; }
  6963. fi
  6964. fi
  6965. if test -z "$ac_cv_prog_OTOOL64"; then
  6966. ac_ct_OTOOL64=$OTOOL64
  6967. # Extract the first word of "otool64", so it can be a program name with args.
  6968. set dummy otool64; ac_word=$2
  6969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6970. printf %s "checking for $ac_word... " >&6; }
  6971. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6972. then :
  6973. printf %s "(cached) " >&6
  6974. else $as_nop
  6975. if test -n "$ac_ct_OTOOL64"; then
  6976. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6977. else
  6978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6979. for as_dir in $PATH
  6980. do
  6981. IFS=$as_save_IFS
  6982. case $as_dir in #(((
  6983. '') as_dir=./ ;;
  6984. */) ;;
  6985. *) as_dir=$as_dir/ ;;
  6986. esac
  6987. for ac_exec_ext in '' $ac_executable_extensions; do
  6988. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6989. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6991. break 2
  6992. fi
  6993. done
  6994. done
  6995. IFS=$as_save_IFS
  6996. fi
  6997. fi
  6998. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6999. if test -n "$ac_ct_OTOOL64"; then
  7000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7001. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7002. else
  7003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7004. printf "%s\n" "no" >&6; }
  7005. fi
  7006. if test "x$ac_ct_OTOOL64" = x; then
  7007. OTOOL64=":"
  7008. else
  7009. case $cross_compiling:$ac_tool_warned in
  7010. yes:)
  7011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7012. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7013. ac_tool_warned=yes ;;
  7014. esac
  7015. OTOOL64=$ac_ct_OTOOL64
  7016. fi
  7017. else
  7018. OTOOL64="$ac_cv_prog_OTOOL64"
  7019. fi
  7020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7021. printf %s "checking for -single_module linker flag... " >&6; }
  7022. if test ${lt_cv_apple_cc_single_mod+y}
  7023. then :
  7024. printf %s "(cached) " >&6
  7025. else $as_nop
  7026. lt_cv_apple_cc_single_mod=no
  7027. if test -z "$LT_MULTI_MODULE"; then
  7028. # By default we will add the -single_module flag. You can override
  7029. # by either setting the environment variable LT_MULTI_MODULE
  7030. # non-empty at configure time, or by adding -multi_module to the
  7031. # link flags.
  7032. rm -rf libconftest.dylib*
  7033. echo "int foo(void){return 1;}" > conftest.c
  7034. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7035. -dynamiclib -Wl,-single_module conftest.c" >&5
  7036. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7037. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7038. _lt_result=$?
  7039. # If there is a non-empty error log, and "single_module"
  7040. # appears in it, assume the flag caused a linker warning
  7041. if test -s conftest.err && $GREP single_module conftest.err; then
  7042. cat conftest.err >&5
  7043. # Otherwise, if the output was created with a 0 exit code from
  7044. # the compiler, it worked.
  7045. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7046. lt_cv_apple_cc_single_mod=yes
  7047. else
  7048. cat conftest.err >&5
  7049. fi
  7050. rm -rf libconftest.dylib*
  7051. rm -f conftest.*
  7052. fi
  7053. fi
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7055. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7057. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7058. if test ${lt_cv_ld_exported_symbols_list+y}
  7059. then :
  7060. printf %s "(cached) " >&6
  7061. else $as_nop
  7062. lt_cv_ld_exported_symbols_list=no
  7063. save_LDFLAGS=$LDFLAGS
  7064. echo "_main" > conftest.sym
  7065. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7067. /* end confdefs.h. */
  7068. int
  7069. main (void)
  7070. {
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. if ac_fn_c_try_link "$LINENO"
  7076. then :
  7077. lt_cv_ld_exported_symbols_list=yes
  7078. else $as_nop
  7079. lt_cv_ld_exported_symbols_list=no
  7080. fi
  7081. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7082. conftest$ac_exeext conftest.$ac_ext
  7083. LDFLAGS=$save_LDFLAGS
  7084. fi
  7085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7086. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7088. printf %s "checking for -force_load linker flag... " >&6; }
  7089. if test ${lt_cv_ld_force_load+y}
  7090. then :
  7091. printf %s "(cached) " >&6
  7092. else $as_nop
  7093. lt_cv_ld_force_load=no
  7094. cat > conftest.c << _LT_EOF
  7095. int forced_loaded() { return 2;}
  7096. _LT_EOF
  7097. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7098. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7099. echo "$AR cru libconftest.a conftest.o" >&5
  7100. $AR cru libconftest.a conftest.o 2>&5
  7101. echo "$RANLIB libconftest.a" >&5
  7102. $RANLIB libconftest.a 2>&5
  7103. cat > conftest.c << _LT_EOF
  7104. int main() { return 0;}
  7105. _LT_EOF
  7106. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7107. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7108. _lt_result=$?
  7109. if test -s conftest.err && $GREP force_load conftest.err; then
  7110. cat conftest.err >&5
  7111. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7112. lt_cv_ld_force_load=yes
  7113. else
  7114. cat conftest.err >&5
  7115. fi
  7116. rm -f conftest.err libconftest.a conftest conftest.c
  7117. rm -rf conftest.dSYM
  7118. fi
  7119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7120. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7121. case $host_os in
  7122. rhapsody* | darwin1.[012])
  7123. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7124. darwin1.*)
  7125. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7126. darwin*)
  7127. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7128. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7129. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7130. *)
  7131. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7132. esac
  7133. ;;
  7134. esac
  7135. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7136. _lt_dar_single_mod='$single_module'
  7137. fi
  7138. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7139. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7140. else
  7141. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7142. fi
  7143. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7144. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7145. else
  7146. _lt_dsymutil=
  7147. fi
  7148. ;;
  7149. esac
  7150. # func_munge_path_list VARIABLE PATH
  7151. # -----------------------------------
  7152. # VARIABLE is name of variable containing _space_ separated list of
  7153. # directories to be munged by the contents of PATH, which is string
  7154. # having a format:
  7155. # "DIR[:DIR]:"
  7156. # string "DIR[ DIR]" will be prepended to VARIABLE
  7157. # ":DIR[:DIR]"
  7158. # string "DIR[ DIR]" will be appended to VARIABLE
  7159. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7160. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7161. # "DIRA[ DIRA]" will be appended to VARIABLE
  7162. # "DIR[:DIR]"
  7163. # VARIABLE will be replaced by "DIR[ DIR]"
  7164. func_munge_path_list ()
  7165. {
  7166. case x$2 in
  7167. x)
  7168. ;;
  7169. *:)
  7170. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7171. ;;
  7172. x:*)
  7173. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7174. ;;
  7175. *::*)
  7176. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7177. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7178. ;;
  7179. *)
  7180. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7181. ;;
  7182. esac
  7183. }
  7184. ac_header= ac_cache=
  7185. for ac_item in $ac_header_c_list
  7186. do
  7187. if test $ac_cache; then
  7188. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7189. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7190. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7191. fi
  7192. ac_header= ac_cache=
  7193. elif test $ac_header; then
  7194. ac_cache=$ac_item
  7195. else
  7196. ac_header=$ac_item
  7197. fi
  7198. done
  7199. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7200. then :
  7201. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7202. fi
  7203. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7204. "
  7205. if test "x$ac_cv_header_dlfcn_h" = xyes
  7206. then :
  7207. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7208. fi
  7209. # Set options
  7210. enable_win32_dll=yes
  7211. case $host in
  7212. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7213. if test -n "$ac_tool_prefix"; then
  7214. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7215. set dummy ${ac_tool_prefix}as; ac_word=$2
  7216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7217. printf %s "checking for $ac_word... " >&6; }
  7218. if test ${ac_cv_prog_AS+y}
  7219. then :
  7220. printf %s "(cached) " >&6
  7221. else $as_nop
  7222. if test -n "$AS"; then
  7223. ac_cv_prog_AS="$AS" # Let the user override the test.
  7224. else
  7225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7226. for as_dir in $PATH
  7227. do
  7228. IFS=$as_save_IFS
  7229. case $as_dir in #(((
  7230. '') as_dir=./ ;;
  7231. */) ;;
  7232. *) as_dir=$as_dir/ ;;
  7233. esac
  7234. for ac_exec_ext in '' $ac_executable_extensions; do
  7235. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7236. ac_cv_prog_AS="${ac_tool_prefix}as"
  7237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7238. break 2
  7239. fi
  7240. done
  7241. done
  7242. IFS=$as_save_IFS
  7243. fi
  7244. fi
  7245. AS=$ac_cv_prog_AS
  7246. if test -n "$AS"; then
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7248. printf "%s\n" "$AS" >&6; }
  7249. else
  7250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. printf "%s\n" "no" >&6; }
  7252. fi
  7253. fi
  7254. if test -z "$ac_cv_prog_AS"; then
  7255. ac_ct_AS=$AS
  7256. # Extract the first word of "as", so it can be a program name with args.
  7257. set dummy as; ac_word=$2
  7258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7259. printf %s "checking for $ac_word... " >&6; }
  7260. if test ${ac_cv_prog_ac_ct_AS+y}
  7261. then :
  7262. printf %s "(cached) " >&6
  7263. else $as_nop
  7264. if test -n "$ac_ct_AS"; then
  7265. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7266. else
  7267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7268. for as_dir in $PATH
  7269. do
  7270. IFS=$as_save_IFS
  7271. case $as_dir in #(((
  7272. '') as_dir=./ ;;
  7273. */) ;;
  7274. *) as_dir=$as_dir/ ;;
  7275. esac
  7276. for ac_exec_ext in '' $ac_executable_extensions; do
  7277. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7278. ac_cv_prog_ac_ct_AS="as"
  7279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7280. break 2
  7281. fi
  7282. done
  7283. done
  7284. IFS=$as_save_IFS
  7285. fi
  7286. fi
  7287. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7288. if test -n "$ac_ct_AS"; then
  7289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7290. printf "%s\n" "$ac_ct_AS" >&6; }
  7291. else
  7292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7293. printf "%s\n" "no" >&6; }
  7294. fi
  7295. if test "x$ac_ct_AS" = x; then
  7296. AS="false"
  7297. else
  7298. case $cross_compiling:$ac_tool_warned in
  7299. yes:)
  7300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7301. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7302. ac_tool_warned=yes ;;
  7303. esac
  7304. AS=$ac_ct_AS
  7305. fi
  7306. else
  7307. AS="$ac_cv_prog_AS"
  7308. fi
  7309. if test -n "$ac_tool_prefix"; then
  7310. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7311. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. printf %s "checking for $ac_word... " >&6; }
  7314. if test ${ac_cv_prog_DLLTOOL+y}
  7315. then :
  7316. printf %s "(cached) " >&6
  7317. else $as_nop
  7318. if test -n "$DLLTOOL"; then
  7319. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7320. else
  7321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7322. for as_dir in $PATH
  7323. do
  7324. IFS=$as_save_IFS
  7325. case $as_dir in #(((
  7326. '') as_dir=./ ;;
  7327. */) ;;
  7328. *) as_dir=$as_dir/ ;;
  7329. esac
  7330. for ac_exec_ext in '' $ac_executable_extensions; do
  7331. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7332. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7334. break 2
  7335. fi
  7336. done
  7337. done
  7338. IFS=$as_save_IFS
  7339. fi
  7340. fi
  7341. DLLTOOL=$ac_cv_prog_DLLTOOL
  7342. if test -n "$DLLTOOL"; then
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7344. printf "%s\n" "$DLLTOOL" >&6; }
  7345. else
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7347. printf "%s\n" "no" >&6; }
  7348. fi
  7349. fi
  7350. if test -z "$ac_cv_prog_DLLTOOL"; then
  7351. ac_ct_DLLTOOL=$DLLTOOL
  7352. # Extract the first word of "dlltool", so it can be a program name with args.
  7353. set dummy dlltool; ac_word=$2
  7354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7355. printf %s "checking for $ac_word... " >&6; }
  7356. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7357. then :
  7358. printf %s "(cached) " >&6
  7359. else $as_nop
  7360. if test -n "$ac_ct_DLLTOOL"; then
  7361. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7362. else
  7363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7364. for as_dir in $PATH
  7365. do
  7366. IFS=$as_save_IFS
  7367. case $as_dir in #(((
  7368. '') as_dir=./ ;;
  7369. */) ;;
  7370. *) as_dir=$as_dir/ ;;
  7371. esac
  7372. for ac_exec_ext in '' $ac_executable_extensions; do
  7373. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7374. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7375. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7376. break 2
  7377. fi
  7378. done
  7379. done
  7380. IFS=$as_save_IFS
  7381. fi
  7382. fi
  7383. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7384. if test -n "$ac_ct_DLLTOOL"; then
  7385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7386. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7387. else
  7388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7389. printf "%s\n" "no" >&6; }
  7390. fi
  7391. if test "x$ac_ct_DLLTOOL" = x; then
  7392. DLLTOOL="false"
  7393. else
  7394. case $cross_compiling:$ac_tool_warned in
  7395. yes:)
  7396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7397. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7398. ac_tool_warned=yes ;;
  7399. esac
  7400. DLLTOOL=$ac_ct_DLLTOOL
  7401. fi
  7402. else
  7403. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7404. fi
  7405. if test -n "$ac_tool_prefix"; then
  7406. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7407. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7409. printf %s "checking for $ac_word... " >&6; }
  7410. if test ${ac_cv_prog_OBJDUMP+y}
  7411. then :
  7412. printf %s "(cached) " >&6
  7413. else $as_nop
  7414. if test -n "$OBJDUMP"; then
  7415. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7416. else
  7417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7418. for as_dir in $PATH
  7419. do
  7420. IFS=$as_save_IFS
  7421. case $as_dir in #(((
  7422. '') as_dir=./ ;;
  7423. */) ;;
  7424. *) as_dir=$as_dir/ ;;
  7425. esac
  7426. for ac_exec_ext in '' $ac_executable_extensions; do
  7427. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7428. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7430. break 2
  7431. fi
  7432. done
  7433. done
  7434. IFS=$as_save_IFS
  7435. fi
  7436. fi
  7437. OBJDUMP=$ac_cv_prog_OBJDUMP
  7438. if test -n "$OBJDUMP"; then
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7440. printf "%s\n" "$OBJDUMP" >&6; }
  7441. else
  7442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7443. printf "%s\n" "no" >&6; }
  7444. fi
  7445. fi
  7446. if test -z "$ac_cv_prog_OBJDUMP"; then
  7447. ac_ct_OBJDUMP=$OBJDUMP
  7448. # Extract the first word of "objdump", so it can be a program name with args.
  7449. set dummy objdump; ac_word=$2
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7451. printf %s "checking for $ac_word... " >&6; }
  7452. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7453. then :
  7454. printf %s "(cached) " >&6
  7455. else $as_nop
  7456. if test -n "$ac_ct_OBJDUMP"; then
  7457. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7458. else
  7459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7460. for as_dir in $PATH
  7461. do
  7462. IFS=$as_save_IFS
  7463. case $as_dir in #(((
  7464. '') as_dir=./ ;;
  7465. */) ;;
  7466. *) as_dir=$as_dir/ ;;
  7467. esac
  7468. for ac_exec_ext in '' $ac_executable_extensions; do
  7469. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7470. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7472. break 2
  7473. fi
  7474. done
  7475. done
  7476. IFS=$as_save_IFS
  7477. fi
  7478. fi
  7479. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7480. if test -n "$ac_ct_OBJDUMP"; then
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7482. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7483. else
  7484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7485. printf "%s\n" "no" >&6; }
  7486. fi
  7487. if test "x$ac_ct_OBJDUMP" = x; then
  7488. OBJDUMP="false"
  7489. else
  7490. case $cross_compiling:$ac_tool_warned in
  7491. yes:)
  7492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7493. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7494. ac_tool_warned=yes ;;
  7495. esac
  7496. OBJDUMP=$ac_ct_OBJDUMP
  7497. fi
  7498. else
  7499. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7500. fi
  7501. ;;
  7502. esac
  7503. test -z "$AS" && AS=as
  7504. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7505. test -z "$OBJDUMP" && OBJDUMP=objdump
  7506. enable_dlopen=no
  7507. # Check whether --enable-shared was given.
  7508. if test ${enable_shared+y}
  7509. then :
  7510. enableval=$enable_shared; p=${PACKAGE-default}
  7511. case $enableval in
  7512. yes) enable_shared=yes ;;
  7513. no) enable_shared=no ;;
  7514. *)
  7515. enable_shared=no
  7516. # Look at the argument we got. We use all the common list separators.
  7517. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7518. for pkg in $enableval; do
  7519. IFS=$lt_save_ifs
  7520. if test "X$pkg" = "X$p"; then
  7521. enable_shared=yes
  7522. fi
  7523. done
  7524. IFS=$lt_save_ifs
  7525. ;;
  7526. esac
  7527. else $as_nop
  7528. enable_shared=yes
  7529. fi
  7530. # Check whether --enable-static was given.
  7531. if test ${enable_static+y}
  7532. then :
  7533. enableval=$enable_static; p=${PACKAGE-default}
  7534. case $enableval in
  7535. yes) enable_static=yes ;;
  7536. no) enable_static=no ;;
  7537. *)
  7538. enable_static=no
  7539. # Look at the argument we got. We use all the common list separators.
  7540. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7541. for pkg in $enableval; do
  7542. IFS=$lt_save_ifs
  7543. if test "X$pkg" = "X$p"; then
  7544. enable_static=yes
  7545. fi
  7546. done
  7547. IFS=$lt_save_ifs
  7548. ;;
  7549. esac
  7550. else $as_nop
  7551. enable_static=yes
  7552. fi
  7553. # Check whether --with-pic was given.
  7554. if test ${with_pic+y}
  7555. then :
  7556. withval=$with_pic; lt_p=${PACKAGE-default}
  7557. case $withval in
  7558. yes|no) pic_mode=$withval ;;
  7559. *)
  7560. pic_mode=default
  7561. # Look at the argument we got. We use all the common list separators.
  7562. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7563. for lt_pkg in $withval; do
  7564. IFS=$lt_save_ifs
  7565. if test "X$lt_pkg" = "X$lt_p"; then
  7566. pic_mode=yes
  7567. fi
  7568. done
  7569. IFS=$lt_save_ifs
  7570. ;;
  7571. esac
  7572. else $as_nop
  7573. pic_mode=default
  7574. fi
  7575. # Check whether --enable-fast-install was given.
  7576. if test ${enable_fast_install+y}
  7577. then :
  7578. enableval=$enable_fast_install; p=${PACKAGE-default}
  7579. case $enableval in
  7580. yes) enable_fast_install=yes ;;
  7581. no) enable_fast_install=no ;;
  7582. *)
  7583. enable_fast_install=no
  7584. # Look at the argument we got. We use all the common list separators.
  7585. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7586. for pkg in $enableval; do
  7587. IFS=$lt_save_ifs
  7588. if test "X$pkg" = "X$p"; then
  7589. enable_fast_install=yes
  7590. fi
  7591. done
  7592. IFS=$lt_save_ifs
  7593. ;;
  7594. esac
  7595. else $as_nop
  7596. enable_fast_install=yes
  7597. fi
  7598. shared_archive_member_spec=
  7599. case $host,$enable_shared in
  7600. power*-*-aix[5-9]*,yes)
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7602. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7603. # Check whether --with-aix-soname was given.
  7604. if test ${with_aix_soname+y}
  7605. then :
  7606. withval=$with_aix_soname; case $withval in
  7607. aix|svr4|both)
  7608. ;;
  7609. *)
  7610. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7611. ;;
  7612. esac
  7613. lt_cv_with_aix_soname=$with_aix_soname
  7614. else $as_nop
  7615. if test ${lt_cv_with_aix_soname+y}
  7616. then :
  7617. printf %s "(cached) " >&6
  7618. else $as_nop
  7619. lt_cv_with_aix_soname=aix
  7620. fi
  7621. with_aix_soname=$lt_cv_with_aix_soname
  7622. fi
  7623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7624. printf "%s\n" "$with_aix_soname" >&6; }
  7625. if test aix != "$with_aix_soname"; then
  7626. # For the AIX way of multilib, we name the shared archive member
  7627. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7628. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7629. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7630. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7631. if test 64 = "${OBJECT_MODE-32}"; then
  7632. shared_archive_member_spec=shr_64
  7633. else
  7634. shared_archive_member_spec=shr
  7635. fi
  7636. fi
  7637. ;;
  7638. *)
  7639. with_aix_soname=aix
  7640. ;;
  7641. esac
  7642. # This can be used to rebuild libtool when needed
  7643. LIBTOOL_DEPS=$ltmain
  7644. # Always use our own libtool.
  7645. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7646. test -z "$LN_S" && LN_S="ln -s"
  7647. if test -n "${ZSH_VERSION+set}"; then
  7648. setopt NO_GLOB_SUBST
  7649. fi
  7650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7651. printf %s "checking for objdir... " >&6; }
  7652. if test ${lt_cv_objdir+y}
  7653. then :
  7654. printf %s "(cached) " >&6
  7655. else $as_nop
  7656. rm -f .libs 2>/dev/null
  7657. mkdir .libs 2>/dev/null
  7658. if test -d .libs; then
  7659. lt_cv_objdir=.libs
  7660. else
  7661. # MS-DOS does not allow filenames that begin with a dot.
  7662. lt_cv_objdir=_libs
  7663. fi
  7664. rmdir .libs 2>/dev/null
  7665. fi
  7666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7667. printf "%s\n" "$lt_cv_objdir" >&6; }
  7668. objdir=$lt_cv_objdir
  7669. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7670. case $host_os in
  7671. aix3*)
  7672. # AIX sometimes has problems with the GCC collect2 program. For some
  7673. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7674. # vanish in a puff of smoke.
  7675. if test set != "${COLLECT_NAMES+set}"; then
  7676. COLLECT_NAMES=
  7677. export COLLECT_NAMES
  7678. fi
  7679. ;;
  7680. esac
  7681. # Global variables:
  7682. ofile=libtool
  7683. can_build_shared=yes
  7684. # All known linkers require a '.a' archive for static linking (except MSVC,
  7685. # which needs '.lib').
  7686. libext=a
  7687. with_gnu_ld=$lt_cv_prog_gnu_ld
  7688. old_CC=$CC
  7689. old_CFLAGS=$CFLAGS
  7690. # Set sane defaults for various variables
  7691. test -z "$CC" && CC=cc
  7692. test -z "$LTCC" && LTCC=$CC
  7693. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7694. test -z "$LD" && LD=ld
  7695. test -z "$ac_objext" && ac_objext=o
  7696. func_cc_basename $compiler
  7697. cc_basename=$func_cc_basename_result
  7698. # Only perform the check for file, if the check method requires it
  7699. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7700. case $deplibs_check_method in
  7701. file_magic*)
  7702. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7704. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7705. if test ${lt_cv_path_MAGIC_CMD+y}
  7706. then :
  7707. printf %s "(cached) " >&6
  7708. else $as_nop
  7709. case $MAGIC_CMD in
  7710. [\\/*] | ?:[\\/]*)
  7711. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7712. ;;
  7713. *)
  7714. lt_save_MAGIC_CMD=$MAGIC_CMD
  7715. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7716. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7717. for ac_dir in $ac_dummy; do
  7718. IFS=$lt_save_ifs
  7719. test -z "$ac_dir" && ac_dir=.
  7720. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7721. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7722. if test -n "$file_magic_test_file"; then
  7723. case $deplibs_check_method in
  7724. "file_magic "*)
  7725. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7726. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7727. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7728. $EGREP "$file_magic_regex" > /dev/null; then
  7729. :
  7730. else
  7731. cat <<_LT_EOF 1>&2
  7732. *** Warning: the command libtool uses to detect shared libraries,
  7733. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7734. *** The result is that libtool may fail to recognize shared libraries
  7735. *** as such. This will affect the creation of libtool libraries that
  7736. *** depend on shared libraries, but programs linked with such libtool
  7737. *** libraries will work regardless of this problem. Nevertheless, you
  7738. *** may want to report the problem to your system manager and/or to
  7739. *** bug-libtool@gnu.org
  7740. _LT_EOF
  7741. fi ;;
  7742. esac
  7743. fi
  7744. break
  7745. fi
  7746. done
  7747. IFS=$lt_save_ifs
  7748. MAGIC_CMD=$lt_save_MAGIC_CMD
  7749. ;;
  7750. esac
  7751. fi
  7752. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7753. if test -n "$MAGIC_CMD"; then
  7754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7755. printf "%s\n" "$MAGIC_CMD" >&6; }
  7756. else
  7757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7758. printf "%s\n" "no" >&6; }
  7759. fi
  7760. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7761. if test -n "$ac_tool_prefix"; then
  7762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7763. printf %s "checking for file... " >&6; }
  7764. if test ${lt_cv_path_MAGIC_CMD+y}
  7765. then :
  7766. printf %s "(cached) " >&6
  7767. else $as_nop
  7768. case $MAGIC_CMD in
  7769. [\\/*] | ?:[\\/]*)
  7770. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7771. ;;
  7772. *)
  7773. lt_save_MAGIC_CMD=$MAGIC_CMD
  7774. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7775. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7776. for ac_dir in $ac_dummy; do
  7777. IFS=$lt_save_ifs
  7778. test -z "$ac_dir" && ac_dir=.
  7779. if test -f "$ac_dir/file"; then
  7780. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7781. if test -n "$file_magic_test_file"; then
  7782. case $deplibs_check_method in
  7783. "file_magic "*)
  7784. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7785. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7786. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7787. $EGREP "$file_magic_regex" > /dev/null; then
  7788. :
  7789. else
  7790. cat <<_LT_EOF 1>&2
  7791. *** Warning: the command libtool uses to detect shared libraries,
  7792. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7793. *** The result is that libtool may fail to recognize shared libraries
  7794. *** as such. This will affect the creation of libtool libraries that
  7795. *** depend on shared libraries, but programs linked with such libtool
  7796. *** libraries will work regardless of this problem. Nevertheless, you
  7797. *** may want to report the problem to your system manager and/or to
  7798. *** bug-libtool@gnu.org
  7799. _LT_EOF
  7800. fi ;;
  7801. esac
  7802. fi
  7803. break
  7804. fi
  7805. done
  7806. IFS=$lt_save_ifs
  7807. MAGIC_CMD=$lt_save_MAGIC_CMD
  7808. ;;
  7809. esac
  7810. fi
  7811. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7812. if test -n "$MAGIC_CMD"; then
  7813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7814. printf "%s\n" "$MAGIC_CMD" >&6; }
  7815. else
  7816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7817. printf "%s\n" "no" >&6; }
  7818. fi
  7819. else
  7820. MAGIC_CMD=:
  7821. fi
  7822. fi
  7823. fi
  7824. ;;
  7825. esac
  7826. # Use C for the default configuration in the libtool script
  7827. lt_save_CC=$CC
  7828. ac_ext=c
  7829. ac_cpp='$CPP $CPPFLAGS'
  7830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7833. # Source file extension for C test sources.
  7834. ac_ext=c
  7835. # Object file extension for compiled C test sources.
  7836. objext=o
  7837. objext=$objext
  7838. # Code to be used in simple compile tests
  7839. lt_simple_compile_test_code="int some_variable = 0;"
  7840. # Code to be used in simple link tests
  7841. lt_simple_link_test_code='int main(){return(0);}'
  7842. # If no C compiler was specified, use CC.
  7843. LTCC=${LTCC-"$CC"}
  7844. # If no C compiler flags were specified, use CFLAGS.
  7845. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7846. # Allow CC to be a program name with arguments.
  7847. compiler=$CC
  7848. # Save the default compiler, since it gets overwritten when the other
  7849. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7850. compiler_DEFAULT=$CC
  7851. # save warnings/boilerplate of simple test code
  7852. ac_outfile=conftest.$ac_objext
  7853. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7854. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7855. _lt_compiler_boilerplate=`cat conftest.err`
  7856. $RM conftest*
  7857. ac_outfile=conftest.$ac_objext
  7858. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7859. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7860. _lt_linker_boilerplate=`cat conftest.err`
  7861. $RM -r conftest*
  7862. ## CAVEAT EMPTOR:
  7863. ## There is no encapsulation within the following macros, do not change
  7864. ## the running order or otherwise move them around unless you know exactly
  7865. ## what you are doing...
  7866. if test -n "$compiler"; then
  7867. lt_prog_compiler_no_builtin_flag=
  7868. if test yes = "$GCC"; then
  7869. case $cc_basename in
  7870. nvcc*)
  7871. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7872. *)
  7873. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7874. esac
  7875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7876. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7877. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7878. then :
  7879. printf %s "(cached) " >&6
  7880. else $as_nop
  7881. lt_cv_prog_compiler_rtti_exceptions=no
  7882. ac_outfile=conftest.$ac_objext
  7883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7884. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7885. # Insert the option either (1) after the last *FLAGS variable, or
  7886. # (2) before a word containing "conftest.", or (3) at the end.
  7887. # Note that $ac_compile itself does not contain backslashes and begins
  7888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7889. # The option is referenced via a variable to avoid confusing sed.
  7890. lt_compile=`echo "$ac_compile" | $SED \
  7891. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7892. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7893. -e 's:$: $lt_compiler_flag:'`
  7894. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7895. (eval "$lt_compile" 2>conftest.err)
  7896. ac_status=$?
  7897. cat conftest.err >&5
  7898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7899. if (exit $ac_status) && test -s "$ac_outfile"; then
  7900. # The compiler can only warn and ignore the option if not recognized
  7901. # So say no if there are warnings other than the usual output.
  7902. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7903. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7904. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7905. lt_cv_prog_compiler_rtti_exceptions=yes
  7906. fi
  7907. fi
  7908. $RM conftest*
  7909. fi
  7910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7911. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7912. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7913. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7914. else
  7915. :
  7916. fi
  7917. fi
  7918. lt_prog_compiler_wl=
  7919. lt_prog_compiler_pic=
  7920. lt_prog_compiler_static=
  7921. if test yes = "$GCC"; then
  7922. lt_prog_compiler_wl='-Wl,'
  7923. lt_prog_compiler_static='-static'
  7924. case $host_os in
  7925. aix*)
  7926. # All AIX code is PIC.
  7927. if test ia64 = "$host_cpu"; then
  7928. # AIX 5 now supports IA64 processor
  7929. lt_prog_compiler_static='-Bstatic'
  7930. fi
  7931. lt_prog_compiler_pic='-fPIC'
  7932. ;;
  7933. amigaos*)
  7934. case $host_cpu in
  7935. powerpc)
  7936. # see comment about AmigaOS4 .so support
  7937. lt_prog_compiler_pic='-fPIC'
  7938. ;;
  7939. m68k)
  7940. # FIXME: we need at least 68020 code to build shared libraries, but
  7941. # adding the '-m68020' flag to GCC prevents building anything better,
  7942. # like '-m68040'.
  7943. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7944. ;;
  7945. esac
  7946. ;;
  7947. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7948. # PIC is the default for these OSes.
  7949. ;;
  7950. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7951. # This hack is so that the source file can tell whether it is being
  7952. # built for inclusion in a dll (and should export symbols for example).
  7953. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7954. # (--disable-auto-import) libraries
  7955. lt_prog_compiler_pic='-DDLL_EXPORT'
  7956. case $host_os in
  7957. os2*)
  7958. lt_prog_compiler_static='$wl-static'
  7959. ;;
  7960. esac
  7961. ;;
  7962. darwin* | rhapsody*)
  7963. # PIC is the default on this platform
  7964. # Common symbols not allowed in MH_DYLIB files
  7965. lt_prog_compiler_pic='-fno-common'
  7966. ;;
  7967. haiku*)
  7968. # PIC is the default for Haiku.
  7969. # The "-static" flag exists, but is broken.
  7970. lt_prog_compiler_static=
  7971. ;;
  7972. hpux*)
  7973. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7974. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7975. # sets the default TLS model and affects inlining.
  7976. case $host_cpu in
  7977. hppa*64*)
  7978. # +Z the default
  7979. ;;
  7980. *)
  7981. lt_prog_compiler_pic='-fPIC'
  7982. ;;
  7983. esac
  7984. ;;
  7985. interix[3-9]*)
  7986. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7987. # Instead, we relocate shared libraries at runtime.
  7988. ;;
  7989. msdosdjgpp*)
  7990. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7991. # on systems that don't support them.
  7992. lt_prog_compiler_can_build_shared=no
  7993. enable_shared=no
  7994. ;;
  7995. *nto* | *qnx*)
  7996. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7997. # it will coredump.
  7998. lt_prog_compiler_pic='-fPIC -shared'
  7999. ;;
  8000. sysv4*MP*)
  8001. if test -d /usr/nec; then
  8002. lt_prog_compiler_pic=-Kconform_pic
  8003. fi
  8004. ;;
  8005. *)
  8006. lt_prog_compiler_pic='-fPIC'
  8007. ;;
  8008. esac
  8009. case $cc_basename in
  8010. nvcc*) # Cuda Compiler Driver 2.2
  8011. lt_prog_compiler_wl='-Xlinker '
  8012. if test -n "$lt_prog_compiler_pic"; then
  8013. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8014. fi
  8015. ;;
  8016. esac
  8017. else
  8018. # PORTME Check for flag to pass linker flags through the system compiler.
  8019. case $host_os in
  8020. aix*)
  8021. lt_prog_compiler_wl='-Wl,'
  8022. if test ia64 = "$host_cpu"; then
  8023. # AIX 5 now supports IA64 processor
  8024. lt_prog_compiler_static='-Bstatic'
  8025. else
  8026. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8027. fi
  8028. ;;
  8029. darwin* | rhapsody*)
  8030. # PIC is the default on this platform
  8031. # Common symbols not allowed in MH_DYLIB files
  8032. lt_prog_compiler_pic='-fno-common'
  8033. case $cc_basename in
  8034. nagfor*)
  8035. # NAG Fortran compiler
  8036. lt_prog_compiler_wl='-Wl,-Wl,,'
  8037. lt_prog_compiler_pic='-PIC'
  8038. lt_prog_compiler_static='-Bstatic'
  8039. ;;
  8040. esac
  8041. ;;
  8042. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8043. # This hack is so that the source file can tell whether it is being
  8044. # built for inclusion in a dll (and should export symbols for example).
  8045. lt_prog_compiler_pic='-DDLL_EXPORT'
  8046. case $host_os in
  8047. os2*)
  8048. lt_prog_compiler_static='$wl-static'
  8049. ;;
  8050. esac
  8051. ;;
  8052. hpux9* | hpux10* | hpux11*)
  8053. lt_prog_compiler_wl='-Wl,'
  8054. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8055. # not for PA HP-UX.
  8056. case $host_cpu in
  8057. hppa*64*|ia64*)
  8058. # +Z the default
  8059. ;;
  8060. *)
  8061. lt_prog_compiler_pic='+Z'
  8062. ;;
  8063. esac
  8064. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8065. lt_prog_compiler_static='$wl-a ${wl}archive'
  8066. ;;
  8067. irix5* | irix6* | nonstopux*)
  8068. lt_prog_compiler_wl='-Wl,'
  8069. # PIC (with -KPIC) is the default.
  8070. lt_prog_compiler_static='-non_shared'
  8071. ;;
  8072. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8073. case $cc_basename in
  8074. # old Intel for x86_64, which still supported -KPIC.
  8075. ecc*)
  8076. lt_prog_compiler_wl='-Wl,'
  8077. lt_prog_compiler_pic='-KPIC'
  8078. lt_prog_compiler_static='-static'
  8079. ;;
  8080. # icc used to be incompatible with GCC.
  8081. # ICC 10 doesn't accept -KPIC any more.
  8082. icc* | ifort*)
  8083. lt_prog_compiler_wl='-Wl,'
  8084. lt_prog_compiler_pic='-fPIC'
  8085. lt_prog_compiler_static='-static'
  8086. ;;
  8087. # Lahey Fortran 8.1.
  8088. lf95*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. lt_prog_compiler_pic='--shared'
  8091. lt_prog_compiler_static='--static'
  8092. ;;
  8093. nagfor*)
  8094. # NAG Fortran compiler
  8095. lt_prog_compiler_wl='-Wl,-Wl,,'
  8096. lt_prog_compiler_pic='-PIC'
  8097. lt_prog_compiler_static='-Bstatic'
  8098. ;;
  8099. tcc*)
  8100. # Fabrice Bellard et al's Tiny C Compiler
  8101. lt_prog_compiler_wl='-Wl,'
  8102. lt_prog_compiler_pic='-fPIC'
  8103. lt_prog_compiler_static='-static'
  8104. ;;
  8105. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8106. # Portland Group compilers (*not* the Pentium gcc compiler,
  8107. # which looks to be a dead project)
  8108. lt_prog_compiler_wl='-Wl,'
  8109. lt_prog_compiler_pic='-fpic'
  8110. lt_prog_compiler_static='-Bstatic'
  8111. ;;
  8112. ccc*)
  8113. lt_prog_compiler_wl='-Wl,'
  8114. # All Alpha code is PIC.
  8115. lt_prog_compiler_static='-non_shared'
  8116. ;;
  8117. xl* | bgxl* | bgf* | mpixl*)
  8118. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8119. lt_prog_compiler_wl='-Wl,'
  8120. lt_prog_compiler_pic='-qpic'
  8121. lt_prog_compiler_static='-qstaticlink'
  8122. ;;
  8123. *)
  8124. case `$CC -V 2>&1 | sed 5q` in
  8125. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8126. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8127. lt_prog_compiler_pic='-KPIC'
  8128. lt_prog_compiler_static='-Bstatic'
  8129. lt_prog_compiler_wl=''
  8130. ;;
  8131. *Sun\ F* | *Sun*Fortran*)
  8132. lt_prog_compiler_pic='-KPIC'
  8133. lt_prog_compiler_static='-Bstatic'
  8134. lt_prog_compiler_wl='-Qoption ld '
  8135. ;;
  8136. *Sun\ C*)
  8137. # Sun C 5.9
  8138. lt_prog_compiler_pic='-KPIC'
  8139. lt_prog_compiler_static='-Bstatic'
  8140. lt_prog_compiler_wl='-Wl,'
  8141. ;;
  8142. *Intel*\ [CF]*Compiler*)
  8143. lt_prog_compiler_wl='-Wl,'
  8144. lt_prog_compiler_pic='-fPIC'
  8145. lt_prog_compiler_static='-static'
  8146. ;;
  8147. *Portland\ Group*)
  8148. lt_prog_compiler_wl='-Wl,'
  8149. lt_prog_compiler_pic='-fpic'
  8150. lt_prog_compiler_static='-Bstatic'
  8151. ;;
  8152. esac
  8153. ;;
  8154. esac
  8155. ;;
  8156. newsos6)
  8157. lt_prog_compiler_pic='-KPIC'
  8158. lt_prog_compiler_static='-Bstatic'
  8159. ;;
  8160. *nto* | *qnx*)
  8161. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8162. # it will coredump.
  8163. lt_prog_compiler_pic='-fPIC -shared'
  8164. ;;
  8165. osf3* | osf4* | osf5*)
  8166. lt_prog_compiler_wl='-Wl,'
  8167. # All OSF/1 code is PIC.
  8168. lt_prog_compiler_static='-non_shared'
  8169. ;;
  8170. rdos*)
  8171. lt_prog_compiler_static='-non_shared'
  8172. ;;
  8173. solaris*)
  8174. lt_prog_compiler_pic='-KPIC'
  8175. lt_prog_compiler_static='-Bstatic'
  8176. case $cc_basename in
  8177. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8178. lt_prog_compiler_wl='-Qoption ld ';;
  8179. *)
  8180. lt_prog_compiler_wl='-Wl,';;
  8181. esac
  8182. ;;
  8183. sunos4*)
  8184. lt_prog_compiler_wl='-Qoption ld '
  8185. lt_prog_compiler_pic='-PIC'
  8186. lt_prog_compiler_static='-Bstatic'
  8187. ;;
  8188. sysv4 | sysv4.2uw2* | sysv4.3*)
  8189. lt_prog_compiler_wl='-Wl,'
  8190. lt_prog_compiler_pic='-KPIC'
  8191. lt_prog_compiler_static='-Bstatic'
  8192. ;;
  8193. sysv4*MP*)
  8194. if test -d /usr/nec; then
  8195. lt_prog_compiler_pic='-Kconform_pic'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. fi
  8198. ;;
  8199. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8200. lt_prog_compiler_wl='-Wl,'
  8201. lt_prog_compiler_pic='-KPIC'
  8202. lt_prog_compiler_static='-Bstatic'
  8203. ;;
  8204. unicos*)
  8205. lt_prog_compiler_wl='-Wl,'
  8206. lt_prog_compiler_can_build_shared=no
  8207. ;;
  8208. uts4*)
  8209. lt_prog_compiler_pic='-pic'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. ;;
  8212. *)
  8213. lt_prog_compiler_can_build_shared=no
  8214. ;;
  8215. esac
  8216. fi
  8217. case $host_os in
  8218. # For platforms that do not support PIC, -DPIC is meaningless:
  8219. *djgpp*)
  8220. lt_prog_compiler_pic=
  8221. ;;
  8222. *)
  8223. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8224. ;;
  8225. esac
  8226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8227. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8228. if test ${lt_cv_prog_compiler_pic+y}
  8229. then :
  8230. printf %s "(cached) " >&6
  8231. else $as_nop
  8232. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8233. fi
  8234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8235. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8236. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8237. #
  8238. # Check to make sure the PIC flag actually works.
  8239. #
  8240. if test -n "$lt_prog_compiler_pic"; then
  8241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8242. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8243. if test ${lt_cv_prog_compiler_pic_works+y}
  8244. then :
  8245. printf %s "(cached) " >&6
  8246. else $as_nop
  8247. lt_cv_prog_compiler_pic_works=no
  8248. ac_outfile=conftest.$ac_objext
  8249. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8250. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8251. # Insert the option either (1) after the last *FLAGS variable, or
  8252. # (2) before a word containing "conftest.", or (3) at the end.
  8253. # Note that $ac_compile itself does not contain backslashes and begins
  8254. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8255. # The option is referenced via a variable to avoid confusing sed.
  8256. lt_compile=`echo "$ac_compile" | $SED \
  8257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8259. -e 's:$: $lt_compiler_flag:'`
  8260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8261. (eval "$lt_compile" 2>conftest.err)
  8262. ac_status=$?
  8263. cat conftest.err >&5
  8264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8265. if (exit $ac_status) && test -s "$ac_outfile"; then
  8266. # The compiler can only warn and ignore the option if not recognized
  8267. # So say no if there are warnings other than the usual output.
  8268. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8270. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8271. lt_cv_prog_compiler_pic_works=yes
  8272. fi
  8273. fi
  8274. $RM conftest*
  8275. fi
  8276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8277. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8278. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8279. case $lt_prog_compiler_pic in
  8280. "" | " "*) ;;
  8281. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8282. esac
  8283. else
  8284. lt_prog_compiler_pic=
  8285. lt_prog_compiler_can_build_shared=no
  8286. fi
  8287. fi
  8288. #
  8289. # Check to make sure the static flag actually works.
  8290. #
  8291. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8293. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8294. if test ${lt_cv_prog_compiler_static_works+y}
  8295. then :
  8296. printf %s "(cached) " >&6
  8297. else $as_nop
  8298. lt_cv_prog_compiler_static_works=no
  8299. save_LDFLAGS=$LDFLAGS
  8300. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8301. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8302. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8303. # The linker can only warn and ignore the option if not recognized
  8304. # So say no if there are warnings
  8305. if test -s conftest.err; then
  8306. # Append any errors to the config.log.
  8307. cat conftest.err 1>&5
  8308. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8309. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8310. if diff conftest.exp conftest.er2 >/dev/null; then
  8311. lt_cv_prog_compiler_static_works=yes
  8312. fi
  8313. else
  8314. lt_cv_prog_compiler_static_works=yes
  8315. fi
  8316. fi
  8317. $RM -r conftest*
  8318. LDFLAGS=$save_LDFLAGS
  8319. fi
  8320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8321. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8322. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8323. :
  8324. else
  8325. lt_prog_compiler_static=
  8326. fi
  8327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8328. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8329. if test ${lt_cv_prog_compiler_c_o+y}
  8330. then :
  8331. printf %s "(cached) " >&6
  8332. else $as_nop
  8333. lt_cv_prog_compiler_c_o=no
  8334. $RM -r conftest 2>/dev/null
  8335. mkdir conftest
  8336. cd conftest
  8337. mkdir out
  8338. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8339. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8340. # Insert the option either (1) after the last *FLAGS variable, or
  8341. # (2) before a word containing "conftest.", or (3) at the end.
  8342. # Note that $ac_compile itself does not contain backslashes and begins
  8343. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8344. lt_compile=`echo "$ac_compile" | $SED \
  8345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8347. -e 's:$: $lt_compiler_flag:'`
  8348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8349. (eval "$lt_compile" 2>out/conftest.err)
  8350. ac_status=$?
  8351. cat out/conftest.err >&5
  8352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8354. then
  8355. # The compiler can only warn and ignore the option if not recognized
  8356. # So say no if there are warnings
  8357. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8358. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8359. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8360. lt_cv_prog_compiler_c_o=yes
  8361. fi
  8362. fi
  8363. chmod u+w . 2>&5
  8364. $RM conftest*
  8365. # SGI C++ compiler will create directory out/ii_files/ for
  8366. # template instantiation
  8367. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8368. $RM out/* && rmdir out
  8369. cd ..
  8370. $RM -r conftest
  8371. $RM conftest*
  8372. fi
  8373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8374. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8376. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8377. if test ${lt_cv_prog_compiler_c_o+y}
  8378. then :
  8379. printf %s "(cached) " >&6
  8380. else $as_nop
  8381. lt_cv_prog_compiler_c_o=no
  8382. $RM -r conftest 2>/dev/null
  8383. mkdir conftest
  8384. cd conftest
  8385. mkdir out
  8386. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8387. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8388. # Insert the option either (1) after the last *FLAGS variable, or
  8389. # (2) before a word containing "conftest.", or (3) at the end.
  8390. # Note that $ac_compile itself does not contain backslashes and begins
  8391. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8392. lt_compile=`echo "$ac_compile" | $SED \
  8393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8395. -e 's:$: $lt_compiler_flag:'`
  8396. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8397. (eval "$lt_compile" 2>out/conftest.err)
  8398. ac_status=$?
  8399. cat out/conftest.err >&5
  8400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8401. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8402. then
  8403. # The compiler can only warn and ignore the option if not recognized
  8404. # So say no if there are warnings
  8405. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8406. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8407. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8408. lt_cv_prog_compiler_c_o=yes
  8409. fi
  8410. fi
  8411. chmod u+w . 2>&5
  8412. $RM conftest*
  8413. # SGI C++ compiler will create directory out/ii_files/ for
  8414. # template instantiation
  8415. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8416. $RM out/* && rmdir out
  8417. cd ..
  8418. $RM -r conftest
  8419. $RM conftest*
  8420. fi
  8421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8422. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8423. hard_links=nottested
  8424. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8425. # do not overwrite the value of need_locks provided by the user
  8426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8427. printf %s "checking if we can lock with hard links... " >&6; }
  8428. hard_links=yes
  8429. $RM conftest*
  8430. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8431. touch conftest.a
  8432. ln conftest.a conftest.b 2>&5 || hard_links=no
  8433. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8435. printf "%s\n" "$hard_links" >&6; }
  8436. if test no = "$hard_links"; then
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8438. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8439. need_locks=warn
  8440. fi
  8441. else
  8442. need_locks=no
  8443. fi
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8445. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8446. runpath_var=
  8447. allow_undefined_flag=
  8448. always_export_symbols=no
  8449. archive_cmds=
  8450. archive_expsym_cmds=
  8451. compiler_needs_object=no
  8452. enable_shared_with_static_runtimes=no
  8453. export_dynamic_flag_spec=
  8454. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8455. hardcode_automatic=no
  8456. hardcode_direct=no
  8457. hardcode_direct_absolute=no
  8458. hardcode_libdir_flag_spec=
  8459. hardcode_libdir_separator=
  8460. hardcode_minus_L=no
  8461. hardcode_shlibpath_var=unsupported
  8462. inherit_rpath=no
  8463. link_all_deplibs=unknown
  8464. module_cmds=
  8465. module_expsym_cmds=
  8466. old_archive_from_new_cmds=
  8467. old_archive_from_expsyms_cmds=
  8468. thread_safe_flag_spec=
  8469. whole_archive_flag_spec=
  8470. # include_expsyms should be a list of space-separated symbols to be *always*
  8471. # included in the symbol list
  8472. include_expsyms=
  8473. # exclude_expsyms can be an extended regexp of symbols to exclude
  8474. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8475. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8476. # as well as any symbol that contains 'd'.
  8477. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8478. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8479. # platforms (ab)use it in PIC code, but their linkers get confused if
  8480. # the symbol is explicitly referenced. Since portable code cannot
  8481. # rely on this symbol name, it's probably fine to never include it in
  8482. # preloaded symbol tables.
  8483. # Exclude shared library initialization/finalization symbols.
  8484. extract_expsyms_cmds=
  8485. case $host_os in
  8486. cygwin* | mingw* | pw32* | cegcc*)
  8487. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8488. # When not using gcc, we currently assume that we are using
  8489. # Microsoft Visual C++.
  8490. if test yes != "$GCC"; then
  8491. with_gnu_ld=no
  8492. fi
  8493. ;;
  8494. interix*)
  8495. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8496. with_gnu_ld=yes
  8497. ;;
  8498. openbsd* | bitrig*)
  8499. with_gnu_ld=no
  8500. ;;
  8501. esac
  8502. ld_shlibs=yes
  8503. # On some targets, GNU ld is compatible enough with the native linker
  8504. # that we're better off using the native interface for both.
  8505. lt_use_gnu_ld_interface=no
  8506. if test yes = "$with_gnu_ld"; then
  8507. case $host_os in
  8508. aix*)
  8509. # The AIX port of GNU ld has always aspired to compatibility
  8510. # with the native linker. However, as the warning in the GNU ld
  8511. # block says, versions before 2.19.5* couldn't really create working
  8512. # shared libraries, regardless of the interface used.
  8513. case `$LD -v 2>&1` in
  8514. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8515. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8516. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8517. *)
  8518. lt_use_gnu_ld_interface=yes
  8519. ;;
  8520. esac
  8521. ;;
  8522. *)
  8523. lt_use_gnu_ld_interface=yes
  8524. ;;
  8525. esac
  8526. fi
  8527. if test yes = "$lt_use_gnu_ld_interface"; then
  8528. # If archive_cmds runs LD, not CC, wlarc should be empty
  8529. wlarc='$wl'
  8530. # Set some defaults for GNU ld with shared library support. These
  8531. # are reset later if shared libraries are not supported. Putting them
  8532. # here allows them to be overridden if necessary.
  8533. runpath_var=LD_RUN_PATH
  8534. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8535. export_dynamic_flag_spec='$wl--export-dynamic'
  8536. # ancient GNU ld didn't support --whole-archive et. al.
  8537. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8538. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8539. else
  8540. whole_archive_flag_spec=
  8541. fi
  8542. supports_anon_versioning=no
  8543. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8544. *GNU\ gold*) supports_anon_versioning=yes ;;
  8545. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8546. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8547. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8548. *\ 2.11.*) ;; # other 2.11 versions
  8549. *) supports_anon_versioning=yes ;;
  8550. esac
  8551. # See if GNU ld supports shared libraries.
  8552. case $host_os in
  8553. aix[3-9]*)
  8554. # On AIX/PPC, the GNU linker is very broken
  8555. if test ia64 != "$host_cpu"; then
  8556. ld_shlibs=no
  8557. cat <<_LT_EOF 1>&2
  8558. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8559. *** to be unable to reliably create shared libraries on AIX.
  8560. *** Therefore, libtool is disabling shared libraries support. If you
  8561. *** really care for shared libraries, you may want to install binutils
  8562. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8563. *** You will then need to restart the configuration process.
  8564. _LT_EOF
  8565. fi
  8566. ;;
  8567. amigaos*)
  8568. case $host_cpu in
  8569. powerpc)
  8570. # see comment about AmigaOS4 .so support
  8571. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8572. archive_expsym_cmds=''
  8573. ;;
  8574. m68k)
  8575. 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)'
  8576. hardcode_libdir_flag_spec='-L$libdir'
  8577. hardcode_minus_L=yes
  8578. ;;
  8579. esac
  8580. ;;
  8581. beos*)
  8582. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8583. allow_undefined_flag=unsupported
  8584. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8585. # support --undefined. This deserves some investigation. FIXME
  8586. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8587. else
  8588. ld_shlibs=no
  8589. fi
  8590. ;;
  8591. cygwin* | mingw* | pw32* | cegcc*)
  8592. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8593. # as there is no search path for DLLs.
  8594. hardcode_libdir_flag_spec='-L$libdir'
  8595. export_dynamic_flag_spec='$wl--export-all-symbols'
  8596. allow_undefined_flag=unsupported
  8597. always_export_symbols=no
  8598. enable_shared_with_static_runtimes=yes
  8599. 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'
  8600. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8601. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8602. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8603. # If the export-symbols file already is a .def file, use it as
  8604. # is; otherwise, prepend EXPORTS...
  8605. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8606. cp $export_symbols $output_objdir/$soname.def;
  8607. else
  8608. echo EXPORTS > $output_objdir/$soname.def;
  8609. cat $export_symbols >> $output_objdir/$soname.def;
  8610. fi~
  8611. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8612. else
  8613. ld_shlibs=no
  8614. fi
  8615. ;;
  8616. haiku*)
  8617. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8618. link_all_deplibs=yes
  8619. ;;
  8620. os2*)
  8621. hardcode_libdir_flag_spec='-L$libdir'
  8622. hardcode_minus_L=yes
  8623. allow_undefined_flag=unsupported
  8624. shrext_cmds=.dll
  8625. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8626. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8627. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8628. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8629. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8630. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8631. emximp -o $lib $output_objdir/$libname.def'
  8632. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8633. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8634. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8635. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8636. prefix_cmds="$SED"~
  8637. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8638. prefix_cmds="$prefix_cmds -e 1d";
  8639. fi~
  8640. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8641. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8642. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8643. emximp -o $lib $output_objdir/$libname.def'
  8644. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8645. enable_shared_with_static_runtimes=yes
  8646. file_list_spec='@'
  8647. ;;
  8648. interix[3-9]*)
  8649. hardcode_direct=no
  8650. hardcode_shlibpath_var=no
  8651. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8652. export_dynamic_flag_spec='$wl-E'
  8653. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8654. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8655. # default) and relocated if they conflict, which is a slow very memory
  8656. # consuming and fragmenting process. To avoid this, we pick a random,
  8657. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8658. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8659. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8660. 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'
  8661. ;;
  8662. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8663. tmp_diet=no
  8664. if test linux-dietlibc = "$host_os"; then
  8665. case $cc_basename in
  8666. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8667. esac
  8668. fi
  8669. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8670. && test no = "$tmp_diet"
  8671. then
  8672. tmp_addflag=' $pic_flag'
  8673. tmp_sharedflag='-shared'
  8674. case $cc_basename,$host_cpu in
  8675. pgcc*) # Portland Group C compiler
  8676. 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'
  8677. tmp_addflag=' $pic_flag'
  8678. ;;
  8679. pgf77* | pgf90* | pgf95* | pgfortran*)
  8680. # Portland Group f77 and f90 compilers
  8681. 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'
  8682. tmp_addflag=' $pic_flag -Mnomain' ;;
  8683. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8684. tmp_addflag=' -i_dynamic' ;;
  8685. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8686. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8687. ifc* | ifort*) # Intel Fortran compiler
  8688. tmp_addflag=' -nofor_main' ;;
  8689. lf95*) # Lahey Fortran 8.1
  8690. whole_archive_flag_spec=
  8691. tmp_sharedflag='--shared' ;;
  8692. nagfor*) # NAGFOR 5.3
  8693. tmp_sharedflag='-Wl,-shared' ;;
  8694. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8695. tmp_sharedflag='-qmkshrobj'
  8696. tmp_addflag= ;;
  8697. nvcc*) # Cuda Compiler Driver 2.2
  8698. 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'
  8699. compiler_needs_object=yes
  8700. ;;
  8701. esac
  8702. case `$CC -V 2>&1 | sed 5q` in
  8703. *Sun\ C*) # Sun C 5.9
  8704. 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'
  8705. compiler_needs_object=yes
  8706. tmp_sharedflag='-G' ;;
  8707. *Sun\ F*) # Sun Fortran 8.3
  8708. tmp_sharedflag='-G' ;;
  8709. esac
  8710. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8711. if test yes = "$supports_anon_versioning"; then
  8712. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8713. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8714. echo "local: *; };" >> $output_objdir/$libname.ver~
  8715. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8716. fi
  8717. case $cc_basename in
  8718. tcc*)
  8719. export_dynamic_flag_spec='-rdynamic'
  8720. ;;
  8721. xlf* | bgf* | bgxlf* | mpixlf*)
  8722. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8723. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8724. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8725. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8726. if test yes = "$supports_anon_versioning"; then
  8727. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8728. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8729. echo "local: *; };" >> $output_objdir/$libname.ver~
  8730. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8731. fi
  8732. ;;
  8733. esac
  8734. else
  8735. ld_shlibs=no
  8736. fi
  8737. ;;
  8738. netbsd*)
  8739. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8740. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8741. wlarc=
  8742. else
  8743. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8744. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8745. fi
  8746. ;;
  8747. solaris*)
  8748. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8749. ld_shlibs=no
  8750. cat <<_LT_EOF 1>&2
  8751. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8752. *** create shared libraries on Solaris systems. Therefore, libtool
  8753. *** is disabling shared libraries support. We urge you to upgrade GNU
  8754. *** binutils to release 2.9.1 or newer. Another option is to modify
  8755. *** your PATH or compiler configuration so that the native linker is
  8756. *** used, and then restart.
  8757. _LT_EOF
  8758. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8759. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8760. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8761. else
  8762. ld_shlibs=no
  8763. fi
  8764. ;;
  8765. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8766. case `$LD -v 2>&1` in
  8767. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8768. ld_shlibs=no
  8769. cat <<_LT_EOF 1>&2
  8770. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8771. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8772. *** is disabling shared libraries support. We urge you to upgrade GNU
  8773. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8774. *** your PATH or compiler configuration so that the native linker is
  8775. *** used, and then restart.
  8776. _LT_EOF
  8777. ;;
  8778. *)
  8779. # For security reasons, it is highly recommended that you always
  8780. # use absolute paths for naming shared libraries, and exclude the
  8781. # DT_RUNPATH tag from executables and libraries. But doing so
  8782. # requires that you compile everything twice, which is a pain.
  8783. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8784. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8785. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8786. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8787. else
  8788. ld_shlibs=no
  8789. fi
  8790. ;;
  8791. esac
  8792. ;;
  8793. sunos4*)
  8794. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8795. wlarc=
  8796. hardcode_direct=yes
  8797. hardcode_shlibpath_var=no
  8798. ;;
  8799. *)
  8800. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8801. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8802. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8803. else
  8804. ld_shlibs=no
  8805. fi
  8806. ;;
  8807. esac
  8808. if test no = "$ld_shlibs"; then
  8809. runpath_var=
  8810. hardcode_libdir_flag_spec=
  8811. export_dynamic_flag_spec=
  8812. whole_archive_flag_spec=
  8813. fi
  8814. else
  8815. # PORTME fill in a description of your system's linker (not GNU ld)
  8816. case $host_os in
  8817. aix3*)
  8818. allow_undefined_flag=unsupported
  8819. always_export_symbols=yes
  8820. 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'
  8821. # Note: this linker hardcodes the directories in LIBPATH if there
  8822. # are no directories specified by -L.
  8823. hardcode_minus_L=yes
  8824. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8825. # Neither direct hardcoding nor static linking is supported with a
  8826. # broken collect2.
  8827. hardcode_direct=unsupported
  8828. fi
  8829. ;;
  8830. aix[4-9]*)
  8831. if test ia64 = "$host_cpu"; then
  8832. # On IA64, the linker does run time linking by default, so we don't
  8833. # have to do anything special.
  8834. aix_use_runtimelinking=no
  8835. exp_sym_flag='-Bexport'
  8836. no_entry_flag=
  8837. else
  8838. # If we're using GNU nm, then we don't want the "-C" option.
  8839. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8840. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8841. # weak defined symbols like other global defined symbols, whereas
  8842. # GNU nm marks them as "W".
  8843. # While the 'weak' keyword is ignored in the Export File, we need
  8844. # it in the Import File for the 'aix-soname' feature, so we have
  8845. # to replace the "-B" option with "-P" for AIX nm.
  8846. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8847. 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'
  8848. else
  8849. 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'
  8850. fi
  8851. aix_use_runtimelinking=no
  8852. # Test if we are trying to use run time linking or normal
  8853. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8854. # have runtime linking enabled, and use it for executables.
  8855. # For shared libraries, we enable/disable runtime linking
  8856. # depending on the kind of the shared library created -
  8857. # when "with_aix_soname,aix_use_runtimelinking" is:
  8858. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8859. # "aix,yes" lib.so shared, rtl:yes, for executables
  8860. # lib.a static archive
  8861. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8862. # lib.a(lib.so.V) shared, rtl:no, for executables
  8863. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8864. # lib.a(lib.so.V) shared, rtl:no
  8865. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8866. # lib.a static archive
  8867. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8868. for ld_flag in $LDFLAGS; do
  8869. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8870. aix_use_runtimelinking=yes
  8871. break
  8872. fi
  8873. done
  8874. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8875. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8876. # so we don't have lib.a shared libs to link our executables.
  8877. # We have to force runtime linking in this case.
  8878. aix_use_runtimelinking=yes
  8879. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8880. fi
  8881. ;;
  8882. esac
  8883. exp_sym_flag='-bexport'
  8884. no_entry_flag='-bnoentry'
  8885. fi
  8886. # When large executables or shared objects are built, AIX ld can
  8887. # have problems creating the table of contents. If linking a library
  8888. # or program results in "error TOC overflow" add -mminimal-toc to
  8889. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8890. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8891. archive_cmds=''
  8892. hardcode_direct=yes
  8893. hardcode_direct_absolute=yes
  8894. hardcode_libdir_separator=':'
  8895. link_all_deplibs=yes
  8896. file_list_spec='$wl-f,'
  8897. case $with_aix_soname,$aix_use_runtimelinking in
  8898. aix,*) ;; # traditional, no import file
  8899. svr4,* | *,yes) # use import file
  8900. # The Import File defines what to hardcode.
  8901. hardcode_direct=no
  8902. hardcode_direct_absolute=no
  8903. ;;
  8904. esac
  8905. if test yes = "$GCC"; then
  8906. case $host_os in aix4.[012]|aix4.[012].*)
  8907. # We only want to do this on AIX 4.2 and lower, the check
  8908. # below for broken collect2 doesn't work under 4.3+
  8909. collect2name=`$CC -print-prog-name=collect2`
  8910. if test -f "$collect2name" &&
  8911. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8912. then
  8913. # We have reworked collect2
  8914. :
  8915. else
  8916. # We have old collect2
  8917. hardcode_direct=unsupported
  8918. # It fails to find uninstalled libraries when the uninstalled
  8919. # path is not listed in the libpath. Setting hardcode_minus_L
  8920. # to unsupported forces relinking
  8921. hardcode_minus_L=yes
  8922. hardcode_libdir_flag_spec='-L$libdir'
  8923. hardcode_libdir_separator=
  8924. fi
  8925. ;;
  8926. esac
  8927. shared_flag='-shared'
  8928. if test yes = "$aix_use_runtimelinking"; then
  8929. shared_flag="$shared_flag "'$wl-G'
  8930. fi
  8931. # Need to ensure runtime linking is disabled for the traditional
  8932. # shared library, or the linker may eventually find shared libraries
  8933. # /with/ Import File - we do not want to mix them.
  8934. shared_flag_aix='-shared'
  8935. shared_flag_svr4='-shared $wl-G'
  8936. else
  8937. # not using gcc
  8938. if test ia64 = "$host_cpu"; then
  8939. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8940. # chokes on -Wl,-G. The following line is correct:
  8941. shared_flag='-G'
  8942. else
  8943. if test yes = "$aix_use_runtimelinking"; then
  8944. shared_flag='$wl-G'
  8945. else
  8946. shared_flag='$wl-bM:SRE'
  8947. fi
  8948. shared_flag_aix='$wl-bM:SRE'
  8949. shared_flag_svr4='$wl-G'
  8950. fi
  8951. fi
  8952. export_dynamic_flag_spec='$wl-bexpall'
  8953. # It seems that -bexpall does not export symbols beginning with
  8954. # underscore (_), so it is better to generate a list of symbols to export.
  8955. always_export_symbols=yes
  8956. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8957. # Warning - without using the other runtime loading flags (-brtl),
  8958. # -berok will link without error, but may produce a broken library.
  8959. allow_undefined_flag='-berok'
  8960. # Determine the default libpath from the value encoded in an
  8961. # empty executable.
  8962. if test set = "${lt_cv_aix_libpath+set}"; then
  8963. aix_libpath=$lt_cv_aix_libpath
  8964. else
  8965. if test ${lt_cv_aix_libpath_+y}
  8966. then :
  8967. printf %s "(cached) " >&6
  8968. else $as_nop
  8969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8970. /* end confdefs.h. */
  8971. int
  8972. main (void)
  8973. {
  8974. ;
  8975. return 0;
  8976. }
  8977. _ACEOF
  8978. if ac_fn_c_try_link "$LINENO"
  8979. then :
  8980. lt_aix_libpath_sed='
  8981. /Import File Strings/,/^$/ {
  8982. /^0/ {
  8983. s/^0 *\([^ ]*\) *$/\1/
  8984. p
  8985. }
  8986. }'
  8987. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8988. # Check for a 64-bit object if we didn't find anything.
  8989. if test -z "$lt_cv_aix_libpath_"; then
  8990. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8991. fi
  8992. fi
  8993. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8994. conftest$ac_exeext conftest.$ac_ext
  8995. if test -z "$lt_cv_aix_libpath_"; then
  8996. lt_cv_aix_libpath_=/usr/lib:/lib
  8997. fi
  8998. fi
  8999. aix_libpath=$lt_cv_aix_libpath_
  9000. fi
  9001. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9002. 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
  9003. else
  9004. if test ia64 = "$host_cpu"; then
  9005. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9006. allow_undefined_flag="-z nodefs"
  9007. 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"
  9008. else
  9009. # Determine the default libpath from the value encoded in an
  9010. # empty executable.
  9011. if test set = "${lt_cv_aix_libpath+set}"; then
  9012. aix_libpath=$lt_cv_aix_libpath
  9013. else
  9014. if test ${lt_cv_aix_libpath_+y}
  9015. then :
  9016. printf %s "(cached) " >&6
  9017. else $as_nop
  9018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9019. /* end confdefs.h. */
  9020. int
  9021. main (void)
  9022. {
  9023. ;
  9024. return 0;
  9025. }
  9026. _ACEOF
  9027. if ac_fn_c_try_link "$LINENO"
  9028. then :
  9029. lt_aix_libpath_sed='
  9030. /Import File Strings/,/^$/ {
  9031. /^0/ {
  9032. s/^0 *\([^ ]*\) *$/\1/
  9033. p
  9034. }
  9035. }'
  9036. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9037. # Check for a 64-bit object if we didn't find anything.
  9038. if test -z "$lt_cv_aix_libpath_"; then
  9039. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9040. fi
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. if test -z "$lt_cv_aix_libpath_"; then
  9045. lt_cv_aix_libpath_=/usr/lib:/lib
  9046. fi
  9047. fi
  9048. aix_libpath=$lt_cv_aix_libpath_
  9049. fi
  9050. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9051. # Warning - without using the other run time loading flags,
  9052. # -berok will link without error, but may produce a broken library.
  9053. no_undefined_flag=' $wl-bernotok'
  9054. allow_undefined_flag=' $wl-berok'
  9055. if test yes = "$with_gnu_ld"; then
  9056. # We only use this code for GNU lds that support --whole-archive.
  9057. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9058. else
  9059. # Exported symbols can be pulled into shared objects from archives
  9060. whole_archive_flag_spec='$convenience'
  9061. fi
  9062. archive_cmds_need_lc=yes
  9063. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9064. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9065. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9066. if test svr4 != "$with_aix_soname"; then
  9067. # This is similar to how AIX traditionally builds its shared libraries.
  9068. 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'
  9069. fi
  9070. if test aix != "$with_aix_soname"; then
  9071. 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'
  9072. else
  9073. # used by -dlpreopen to get the symbols
  9074. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9075. fi
  9076. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9077. fi
  9078. fi
  9079. ;;
  9080. amigaos*)
  9081. case $host_cpu in
  9082. powerpc)
  9083. # see comment about AmigaOS4 .so support
  9084. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9085. archive_expsym_cmds=''
  9086. ;;
  9087. m68k)
  9088. 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)'
  9089. hardcode_libdir_flag_spec='-L$libdir'
  9090. hardcode_minus_L=yes
  9091. ;;
  9092. esac
  9093. ;;
  9094. bsdi[45]*)
  9095. export_dynamic_flag_spec=-rdynamic
  9096. ;;
  9097. cygwin* | mingw* | pw32* | cegcc*)
  9098. # When not using gcc, we currently assume that we are using
  9099. # Microsoft Visual C++.
  9100. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9101. # no search path for DLLs.
  9102. case $cc_basename in
  9103. cl*)
  9104. # Native MSVC
  9105. hardcode_libdir_flag_spec=' '
  9106. allow_undefined_flag=unsupported
  9107. always_export_symbols=yes
  9108. file_list_spec='@'
  9109. # Tell ltmain to make .lib files, not .a files.
  9110. libext=lib
  9111. # Tell ltmain to make .dll files, not .so files.
  9112. shrext_cmds=.dll
  9113. # FIXME: Setting linknames here is a bad hack.
  9114. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9115. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9116. cp "$export_symbols" "$output_objdir/$soname.def";
  9117. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9118. else
  9119. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9120. fi~
  9121. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9122. linknames='
  9123. # The linker will not automatically build a static lib if we build a DLL.
  9124. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9125. enable_shared_with_static_runtimes=yes
  9126. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9127. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9128. # Don't use ranlib
  9129. old_postinstall_cmds='chmod 644 $oldlib'
  9130. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9131. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9132. case $lt_outputfile in
  9133. *.exe|*.EXE) ;;
  9134. *)
  9135. lt_outputfile=$lt_outputfile.exe
  9136. lt_tool_outputfile=$lt_tool_outputfile.exe
  9137. ;;
  9138. esac~
  9139. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9140. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9141. $RM "$lt_outputfile.manifest";
  9142. fi'
  9143. ;;
  9144. *)
  9145. # Assume MSVC wrapper
  9146. hardcode_libdir_flag_spec=' '
  9147. allow_undefined_flag=unsupported
  9148. # Tell ltmain to make .lib files, not .a files.
  9149. libext=lib
  9150. # Tell ltmain to make .dll files, not .so files.
  9151. shrext_cmds=.dll
  9152. # FIXME: Setting linknames here is a bad hack.
  9153. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9154. # The linker will automatically build a .lib file if we build a DLL.
  9155. old_archive_from_new_cmds='true'
  9156. # FIXME: Should let the user specify the lib program.
  9157. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9158. enable_shared_with_static_runtimes=yes
  9159. ;;
  9160. esac
  9161. ;;
  9162. darwin* | rhapsody*)
  9163. archive_cmds_need_lc=no
  9164. hardcode_direct=no
  9165. hardcode_automatic=yes
  9166. hardcode_shlibpath_var=unsupported
  9167. if test yes = "$lt_cv_ld_force_load"; then
  9168. 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\"`'
  9169. else
  9170. whole_archive_flag_spec=''
  9171. fi
  9172. link_all_deplibs=yes
  9173. allow_undefined_flag=$_lt_dar_allow_undefined
  9174. case $cc_basename in
  9175. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9176. *) _lt_dar_can_shared=$GCC ;;
  9177. esac
  9178. if test yes = "$_lt_dar_can_shared"; then
  9179. output_verbose_link_cmd=func_echo_all
  9180. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9181. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9182. 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"
  9183. 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"
  9184. else
  9185. ld_shlibs=no
  9186. fi
  9187. ;;
  9188. dgux*)
  9189. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9190. hardcode_libdir_flag_spec='-L$libdir'
  9191. hardcode_shlibpath_var=no
  9192. ;;
  9193. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9194. # support. Future versions do this automatically, but an explicit c++rt0.o
  9195. # does not break anything, and helps significantly (at the cost of a little
  9196. # extra space).
  9197. freebsd2.2*)
  9198. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9199. hardcode_libdir_flag_spec='-R$libdir'
  9200. hardcode_direct=yes
  9201. hardcode_shlibpath_var=no
  9202. ;;
  9203. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9204. freebsd2.*)
  9205. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9206. hardcode_direct=yes
  9207. hardcode_minus_L=yes
  9208. hardcode_shlibpath_var=no
  9209. ;;
  9210. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9211. freebsd* | dragonfly* | midnightbsd*)
  9212. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9213. hardcode_libdir_flag_spec='-R$libdir'
  9214. hardcode_direct=yes
  9215. hardcode_shlibpath_var=no
  9216. ;;
  9217. hpux9*)
  9218. if test yes = "$GCC"; then
  9219. 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'
  9220. else
  9221. 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'
  9222. fi
  9223. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9224. hardcode_libdir_separator=:
  9225. hardcode_direct=yes
  9226. # hardcode_minus_L: Not really in the search PATH,
  9227. # but as the default location of the library.
  9228. hardcode_minus_L=yes
  9229. export_dynamic_flag_spec='$wl-E'
  9230. ;;
  9231. hpux10*)
  9232. if test yes,no = "$GCC,$with_gnu_ld"; then
  9233. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9234. else
  9235. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9236. fi
  9237. if test no = "$with_gnu_ld"; then
  9238. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9239. hardcode_libdir_separator=:
  9240. hardcode_direct=yes
  9241. hardcode_direct_absolute=yes
  9242. export_dynamic_flag_spec='$wl-E'
  9243. # hardcode_minus_L: Not really in the search PATH,
  9244. # but as the default location of the library.
  9245. hardcode_minus_L=yes
  9246. fi
  9247. ;;
  9248. hpux11*)
  9249. if test yes,no = "$GCC,$with_gnu_ld"; then
  9250. case $host_cpu in
  9251. hppa*64*)
  9252. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9253. ;;
  9254. ia64*)
  9255. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9256. ;;
  9257. *)
  9258. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9259. ;;
  9260. esac
  9261. else
  9262. case $host_cpu in
  9263. hppa*64*)
  9264. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9265. ;;
  9266. ia64*)
  9267. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9268. ;;
  9269. *)
  9270. # Older versions of the 11.00 compiler do not understand -b yet
  9271. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9273. printf %s "checking if $CC understands -b... " >&6; }
  9274. if test ${lt_cv_prog_compiler__b+y}
  9275. then :
  9276. printf %s "(cached) " >&6
  9277. else $as_nop
  9278. lt_cv_prog_compiler__b=no
  9279. save_LDFLAGS=$LDFLAGS
  9280. LDFLAGS="$LDFLAGS -b"
  9281. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9282. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9283. # The linker can only warn and ignore the option if not recognized
  9284. # So say no if there are warnings
  9285. if test -s conftest.err; then
  9286. # Append any errors to the config.log.
  9287. cat conftest.err 1>&5
  9288. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9289. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9290. if diff conftest.exp conftest.er2 >/dev/null; then
  9291. lt_cv_prog_compiler__b=yes
  9292. fi
  9293. else
  9294. lt_cv_prog_compiler__b=yes
  9295. fi
  9296. fi
  9297. $RM -r conftest*
  9298. LDFLAGS=$save_LDFLAGS
  9299. fi
  9300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9301. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9302. if test yes = "$lt_cv_prog_compiler__b"; then
  9303. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9304. else
  9305. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9306. fi
  9307. ;;
  9308. esac
  9309. fi
  9310. if test no = "$with_gnu_ld"; then
  9311. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9312. hardcode_libdir_separator=:
  9313. case $host_cpu in
  9314. hppa*64*|ia64*)
  9315. hardcode_direct=no
  9316. hardcode_shlibpath_var=no
  9317. ;;
  9318. *)
  9319. hardcode_direct=yes
  9320. hardcode_direct_absolute=yes
  9321. export_dynamic_flag_spec='$wl-E'
  9322. # hardcode_minus_L: Not really in the search PATH,
  9323. # but as the default location of the library.
  9324. hardcode_minus_L=yes
  9325. ;;
  9326. esac
  9327. fi
  9328. ;;
  9329. irix5* | irix6* | nonstopux*)
  9330. if test yes = "$GCC"; then
  9331. 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'
  9332. # Try to use the -exported_symbol ld option, if it does not
  9333. # work, assume that -exports_file does not work either and
  9334. # implicitly export all symbols.
  9335. # This should be the same for all languages, so no per-tag cache variable.
  9336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9337. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9338. if test ${lt_cv_irix_exported_symbol+y}
  9339. then :
  9340. printf %s "(cached) " >&6
  9341. else $as_nop
  9342. save_LDFLAGS=$LDFLAGS
  9343. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9345. /* end confdefs.h. */
  9346. int foo (void) { return 0; }
  9347. _ACEOF
  9348. if ac_fn_c_try_link "$LINENO"
  9349. then :
  9350. lt_cv_irix_exported_symbol=yes
  9351. else $as_nop
  9352. lt_cv_irix_exported_symbol=no
  9353. fi
  9354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9355. conftest$ac_exeext conftest.$ac_ext
  9356. LDFLAGS=$save_LDFLAGS
  9357. fi
  9358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9359. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9360. if test yes = "$lt_cv_irix_exported_symbol"; then
  9361. 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'
  9362. fi
  9363. else
  9364. 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'
  9365. 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'
  9366. fi
  9367. archive_cmds_need_lc='no'
  9368. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9369. hardcode_libdir_separator=:
  9370. inherit_rpath=yes
  9371. link_all_deplibs=yes
  9372. ;;
  9373. linux*)
  9374. case $cc_basename in
  9375. tcc*)
  9376. # Fabrice Bellard et al's Tiny C Compiler
  9377. ld_shlibs=yes
  9378. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9379. ;;
  9380. esac
  9381. ;;
  9382. netbsd*)
  9383. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9384. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9385. else
  9386. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9387. fi
  9388. hardcode_libdir_flag_spec='-R$libdir'
  9389. hardcode_direct=yes
  9390. hardcode_shlibpath_var=no
  9391. ;;
  9392. newsos6)
  9393. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9394. hardcode_direct=yes
  9395. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9396. hardcode_libdir_separator=:
  9397. hardcode_shlibpath_var=no
  9398. ;;
  9399. *nto* | *qnx*)
  9400. ;;
  9401. openbsd* | bitrig*)
  9402. if test -f /usr/libexec/ld.so; then
  9403. hardcode_direct=yes
  9404. hardcode_shlibpath_var=no
  9405. hardcode_direct_absolute=yes
  9406. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9407. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9408. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9409. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9410. export_dynamic_flag_spec='$wl-E'
  9411. else
  9412. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9413. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9414. fi
  9415. else
  9416. ld_shlibs=no
  9417. fi
  9418. ;;
  9419. os2*)
  9420. hardcode_libdir_flag_spec='-L$libdir'
  9421. hardcode_minus_L=yes
  9422. allow_undefined_flag=unsupported
  9423. shrext_cmds=.dll
  9424. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9425. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9426. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9427. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9428. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9429. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9430. emximp -o $lib $output_objdir/$libname.def'
  9431. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9432. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9433. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9434. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9435. prefix_cmds="$SED"~
  9436. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9437. prefix_cmds="$prefix_cmds -e 1d";
  9438. fi~
  9439. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9440. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9441. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9442. emximp -o $lib $output_objdir/$libname.def'
  9443. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9444. enable_shared_with_static_runtimes=yes
  9445. file_list_spec='@'
  9446. ;;
  9447. osf3*)
  9448. if test yes = "$GCC"; then
  9449. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9450. 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'
  9451. else
  9452. allow_undefined_flag=' -expect_unresolved \*'
  9453. 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'
  9454. fi
  9455. archive_cmds_need_lc='no'
  9456. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9457. hardcode_libdir_separator=:
  9458. ;;
  9459. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9460. if test yes = "$GCC"; then
  9461. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9462. 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'
  9463. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9464. else
  9465. allow_undefined_flag=' -expect_unresolved \*'
  9466. 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'
  9467. 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~
  9468. $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'
  9469. # Both c and cxx compiler support -rpath directly
  9470. hardcode_libdir_flag_spec='-rpath $libdir'
  9471. fi
  9472. archive_cmds_need_lc='no'
  9473. hardcode_libdir_separator=:
  9474. ;;
  9475. solaris*)
  9476. no_undefined_flag=' -z defs'
  9477. if test yes = "$GCC"; then
  9478. wlarc='$wl'
  9479. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9480. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9481. $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'
  9482. else
  9483. case `$CC -V 2>&1` in
  9484. *"Compilers 5.0"*)
  9485. wlarc=''
  9486. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9487. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9488. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9489. ;;
  9490. *)
  9491. wlarc='$wl'
  9492. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9493. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9494. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9495. ;;
  9496. esac
  9497. fi
  9498. hardcode_libdir_flag_spec='-R$libdir'
  9499. hardcode_shlibpath_var=no
  9500. case $host_os in
  9501. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9502. *)
  9503. # The compiler driver will combine and reorder linker options,
  9504. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9505. # but is careful enough not to reorder.
  9506. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9507. if test yes = "$GCC"; then
  9508. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9509. else
  9510. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9511. fi
  9512. ;;
  9513. esac
  9514. link_all_deplibs=yes
  9515. ;;
  9516. sunos4*)
  9517. if test sequent = "$host_vendor"; then
  9518. # Use $CC to link under sequent, because it throws in some extra .o
  9519. # files that make .init and .fini sections work.
  9520. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9521. else
  9522. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9523. fi
  9524. hardcode_libdir_flag_spec='-L$libdir'
  9525. hardcode_direct=yes
  9526. hardcode_minus_L=yes
  9527. hardcode_shlibpath_var=no
  9528. ;;
  9529. sysv4)
  9530. case $host_vendor in
  9531. sni)
  9532. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9533. hardcode_direct=yes # is this really true???
  9534. ;;
  9535. siemens)
  9536. ## LD is ld it makes a PLAMLIB
  9537. ## CC just makes a GrossModule.
  9538. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9539. reload_cmds='$CC -r -o $output$reload_objs'
  9540. hardcode_direct=no
  9541. ;;
  9542. motorola)
  9543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9544. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9545. ;;
  9546. esac
  9547. runpath_var='LD_RUN_PATH'
  9548. hardcode_shlibpath_var=no
  9549. ;;
  9550. sysv4.3*)
  9551. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9552. hardcode_shlibpath_var=no
  9553. export_dynamic_flag_spec='-Bexport'
  9554. ;;
  9555. sysv4*MP*)
  9556. if test -d /usr/nec; then
  9557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9558. hardcode_shlibpath_var=no
  9559. runpath_var=LD_RUN_PATH
  9560. hardcode_runpath_var=yes
  9561. ld_shlibs=yes
  9562. fi
  9563. ;;
  9564. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9565. no_undefined_flag='$wl-z,text'
  9566. archive_cmds_need_lc=no
  9567. hardcode_shlibpath_var=no
  9568. runpath_var='LD_RUN_PATH'
  9569. if test yes = "$GCC"; then
  9570. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9572. else
  9573. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9574. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9575. fi
  9576. ;;
  9577. sysv5* | sco3.2v5* | sco5v6*)
  9578. # Note: We CANNOT use -z defs as we might desire, because we do not
  9579. # link with -lc, and that would cause any symbols used from libc to
  9580. # always be unresolved, which means just about no library would
  9581. # ever link correctly. If we're not using GNU ld we use -z text
  9582. # though, which does catch some bad symbols but isn't as heavy-handed
  9583. # as -z defs.
  9584. no_undefined_flag='$wl-z,text'
  9585. allow_undefined_flag='$wl-z,nodefs'
  9586. archive_cmds_need_lc=no
  9587. hardcode_shlibpath_var=no
  9588. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9589. hardcode_libdir_separator=':'
  9590. link_all_deplibs=yes
  9591. export_dynamic_flag_spec='$wl-Bexport'
  9592. runpath_var='LD_RUN_PATH'
  9593. if test yes = "$GCC"; then
  9594. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9595. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. else
  9597. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9598. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9599. fi
  9600. ;;
  9601. uts4*)
  9602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9603. hardcode_libdir_flag_spec='-L$libdir'
  9604. hardcode_shlibpath_var=no
  9605. ;;
  9606. *)
  9607. ld_shlibs=no
  9608. ;;
  9609. esac
  9610. if test sni = "$host_vendor"; then
  9611. case $host in
  9612. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9613. export_dynamic_flag_spec='$wl-Blargedynsym'
  9614. ;;
  9615. esac
  9616. fi
  9617. fi
  9618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9619. printf "%s\n" "$ld_shlibs" >&6; }
  9620. test no = "$ld_shlibs" && can_build_shared=no
  9621. with_gnu_ld=$with_gnu_ld
  9622. #
  9623. # Do we need to explicitly link libc?
  9624. #
  9625. case "x$archive_cmds_need_lc" in
  9626. x|xyes)
  9627. # Assume -lc should be added
  9628. archive_cmds_need_lc=yes
  9629. if test yes,yes = "$GCC,$enable_shared"; then
  9630. case $archive_cmds in
  9631. *'~'*)
  9632. # FIXME: we may have to deal with multi-command sequences.
  9633. ;;
  9634. '$CC '*)
  9635. # Test whether the compiler implicitly links with -lc since on some
  9636. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9637. # to ld, don't add -lc before -lgcc.
  9638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9639. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9640. if test ${lt_cv_archive_cmds_need_lc+y}
  9641. then :
  9642. printf %s "(cached) " >&6
  9643. else $as_nop
  9644. $RM conftest*
  9645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9647. (eval $ac_compile) 2>&5
  9648. ac_status=$?
  9649. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9650. test $ac_status = 0; } 2>conftest.err; then
  9651. soname=conftest
  9652. lib=conftest
  9653. libobjs=conftest.$ac_objext
  9654. deplibs=
  9655. wl=$lt_prog_compiler_wl
  9656. pic_flag=$lt_prog_compiler_pic
  9657. compiler_flags=-v
  9658. linker_flags=-v
  9659. verstring=
  9660. output_objdir=.
  9661. libname=conftest
  9662. lt_save_allow_undefined_flag=$allow_undefined_flag
  9663. allow_undefined_flag=
  9664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9665. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9666. ac_status=$?
  9667. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9668. test $ac_status = 0; }
  9669. then
  9670. lt_cv_archive_cmds_need_lc=no
  9671. else
  9672. lt_cv_archive_cmds_need_lc=yes
  9673. fi
  9674. allow_undefined_flag=$lt_save_allow_undefined_flag
  9675. else
  9676. cat conftest.err 1>&5
  9677. fi
  9678. $RM conftest*
  9679. fi
  9680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9681. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9682. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9683. ;;
  9684. esac
  9685. fi
  9686. ;;
  9687. esac
  9688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9689. printf %s "checking dynamic linker characteristics... " >&6; }
  9690. if test yes = "$GCC"; then
  9691. case $host_os in
  9692. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9693. *) lt_awk_arg='/^libraries:/' ;;
  9694. esac
  9695. case $host_os in
  9696. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9697. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9698. esac
  9699. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9700. case $lt_search_path_spec in
  9701. *\;*)
  9702. # if the path contains ";" then we assume it to be the separator
  9703. # otherwise default to the standard path separator (i.e. ":") - it is
  9704. # assumed that no part of a normal pathname contains ";" but that should
  9705. # okay in the real world where ";" in dirpaths is itself problematic.
  9706. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9707. ;;
  9708. *)
  9709. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9710. ;;
  9711. esac
  9712. # Ok, now we have the path, separated by spaces, we can step through it
  9713. # and add multilib dir if necessary...
  9714. lt_tmp_lt_search_path_spec=
  9715. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9716. # ...but if some path component already ends with the multilib dir we assume
  9717. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9718. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9719. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9720. lt_multi_os_dir=
  9721. ;;
  9722. esac
  9723. for lt_sys_path in $lt_search_path_spec; do
  9724. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9725. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9726. elif test -n "$lt_multi_os_dir"; then
  9727. test -d "$lt_sys_path" && \
  9728. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9729. fi
  9730. done
  9731. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9732. BEGIN {RS = " "; FS = "/|\n";} {
  9733. lt_foo = "";
  9734. lt_count = 0;
  9735. for (lt_i = NF; lt_i > 0; lt_i--) {
  9736. if ($lt_i != "" && $lt_i != ".") {
  9737. if ($lt_i == "..") {
  9738. lt_count++;
  9739. } else {
  9740. if (lt_count == 0) {
  9741. lt_foo = "/" $lt_i lt_foo;
  9742. } else {
  9743. lt_count--;
  9744. }
  9745. }
  9746. }
  9747. }
  9748. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9749. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9750. }'`
  9751. # AWK program above erroneously prepends '/' to C:/dos/paths
  9752. # for these hosts.
  9753. case $host_os in
  9754. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9755. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9756. esac
  9757. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9758. else
  9759. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9760. fi
  9761. library_names_spec=
  9762. libname_spec='lib$name'
  9763. soname_spec=
  9764. shrext_cmds=.so
  9765. postinstall_cmds=
  9766. postuninstall_cmds=
  9767. finish_cmds=
  9768. finish_eval=
  9769. shlibpath_var=
  9770. shlibpath_overrides_runpath=unknown
  9771. version_type=none
  9772. dynamic_linker="$host_os ld.so"
  9773. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9774. need_lib_prefix=unknown
  9775. hardcode_into_libs=no
  9776. # when you set need_version to no, make sure it does not cause -set_version
  9777. # flags to be left without arguments
  9778. need_version=unknown
  9779. case $host_os in
  9780. aix3*)
  9781. version_type=linux # correct to gnu/linux during the next big refactor
  9782. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9783. shlibpath_var=LIBPATH
  9784. # AIX 3 has no versioning support, so we append a major version to the name.
  9785. soname_spec='$libname$release$shared_ext$major'
  9786. ;;
  9787. aix[4-9]*)
  9788. version_type=linux # correct to gnu/linux during the next big refactor
  9789. need_lib_prefix=no
  9790. need_version=no
  9791. hardcode_into_libs=yes
  9792. if test ia64 = "$host_cpu"; then
  9793. # AIX 5 supports IA64
  9794. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. else
  9797. # With GCC up to 2.95.x, collect2 would create an import file
  9798. # for dependence libraries. The import file would start with
  9799. # the line '#! .'. This would cause the generated library to
  9800. # depend on '.', always an invalid library. This was fixed in
  9801. # development snapshots of GCC prior to 3.0.
  9802. case $host_os in
  9803. aix4 | aix4.[01] | aix4.[01].*)
  9804. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9805. echo ' yes '
  9806. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9807. :
  9808. else
  9809. can_build_shared=no
  9810. fi
  9811. ;;
  9812. esac
  9813. # Using Import Files as archive members, it is possible to support
  9814. # filename-based versioning of shared library archives on AIX. While
  9815. # this would work for both with and without runtime linking, it will
  9816. # prevent static linking of such archives. So we do filename-based
  9817. # shared library versioning with .so extension only, which is used
  9818. # when both runtime linking and shared linking is enabled.
  9819. # Unfortunately, runtime linking may impact performance, so we do
  9820. # not want this to be the default eventually. Also, we use the
  9821. # versioned .so libs for executables only if there is the -brtl
  9822. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9823. # To allow for filename-based versioning support, we need to create
  9824. # libNAME.so.V as an archive file, containing:
  9825. # *) an Import File, referring to the versioned filename of the
  9826. # archive as well as the shared archive member, telling the
  9827. # bitwidth (32 or 64) of that shared object, and providing the
  9828. # list of exported symbols of that shared object, eventually
  9829. # decorated with the 'weak' keyword
  9830. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9831. # it being seen by the linker.
  9832. # At run time we better use the real file rather than another symlink,
  9833. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9834. case $with_aix_soname,$aix_use_runtimelinking in
  9835. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9836. # soname into executable. Probably we can add versioning support to
  9837. # collect2, so additional links can be useful in future.
  9838. aix,yes) # traditional libtool
  9839. dynamic_linker='AIX unversionable lib.so'
  9840. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9841. # instead of lib<name>.a to let people know that these are not
  9842. # typical AIX shared libraries.
  9843. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9844. ;;
  9845. aix,no) # traditional AIX only
  9846. dynamic_linker='AIX lib.a(lib.so.V)'
  9847. # We preserve .a as extension for shared libraries through AIX4.2
  9848. # and later when we are not doing run time linking.
  9849. library_names_spec='$libname$release.a $libname.a'
  9850. soname_spec='$libname$release$shared_ext$major'
  9851. ;;
  9852. svr4,*) # full svr4 only
  9853. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9854. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9855. # We do not specify a path in Import Files, so LIBPATH fires.
  9856. shlibpath_overrides_runpath=yes
  9857. ;;
  9858. *,yes) # both, prefer svr4
  9859. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9860. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9861. # unpreferred sharedlib libNAME.a needs extra handling
  9862. 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"'
  9863. 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"'
  9864. # We do not specify a path in Import Files, so LIBPATH fires.
  9865. shlibpath_overrides_runpath=yes
  9866. ;;
  9867. *,no) # both, prefer aix
  9868. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9869. library_names_spec='$libname$release.a $libname.a'
  9870. soname_spec='$libname$release$shared_ext$major'
  9871. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9872. 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)'
  9873. 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"'
  9874. ;;
  9875. esac
  9876. shlibpath_var=LIBPATH
  9877. fi
  9878. ;;
  9879. amigaos*)
  9880. case $host_cpu in
  9881. powerpc)
  9882. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9883. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9884. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9885. ;;
  9886. m68k)
  9887. library_names_spec='$libname.ixlibrary $libname.a'
  9888. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9889. 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'
  9890. ;;
  9891. esac
  9892. ;;
  9893. beos*)
  9894. library_names_spec='$libname$shared_ext'
  9895. dynamic_linker="$host_os ld.so"
  9896. shlibpath_var=LIBRARY_PATH
  9897. ;;
  9898. bsdi[45]*)
  9899. version_type=linux # correct to gnu/linux during the next big refactor
  9900. need_version=no
  9901. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9902. soname_spec='$libname$release$shared_ext$major'
  9903. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9904. shlibpath_var=LD_LIBRARY_PATH
  9905. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9906. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9907. # the default ld.so.conf also contains /usr/contrib/lib and
  9908. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9909. # libtool to hard-code these into programs
  9910. ;;
  9911. cygwin* | mingw* | pw32* | cegcc*)
  9912. version_type=windows
  9913. shrext_cmds=.dll
  9914. need_version=no
  9915. need_lib_prefix=no
  9916. case $GCC,$cc_basename in
  9917. yes,*)
  9918. # gcc
  9919. library_names_spec='$libname.dll.a'
  9920. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9921. postinstall_cmds='base_file=`basename \$file`~
  9922. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9923. dldir=$destdir/`dirname \$dlpath`~
  9924. test -d \$dldir || mkdir -p \$dldir~
  9925. $install_prog $dir/$dlname \$dldir/$dlname~
  9926. chmod a+x \$dldir/$dlname~
  9927. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9928. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9929. fi'
  9930. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9931. dlpath=$dir/\$dldll~
  9932. $RM \$dlpath'
  9933. shlibpath_overrides_runpath=yes
  9934. case $host_os in
  9935. cygwin*)
  9936. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9937. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9938. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9939. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9940. ;;
  9941. mingw* | cegcc*)
  9942. # MinGW DLLs use traditional 'lib' prefix
  9943. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9944. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9945. ;;
  9946. pw32*)
  9947. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9948. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9949. ;;
  9950. esac
  9951. dynamic_linker='Win32 ld.exe'
  9952. ;;
  9953. *,cl*)
  9954. # Native MSVC
  9955. libname_spec='$name'
  9956. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9957. library_names_spec='$libname.dll.lib'
  9958. case $build_os in
  9959. mingw*)
  9960. sys_lib_search_path_spec=
  9961. lt_save_ifs=$IFS
  9962. IFS=';'
  9963. for lt_path in $LIB
  9964. do
  9965. IFS=$lt_save_ifs
  9966. # Let DOS variable expansion print the short 8.3 style file name.
  9967. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9968. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9969. done
  9970. IFS=$lt_save_ifs
  9971. # Convert to MSYS style.
  9972. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9973. ;;
  9974. cygwin*)
  9975. # Convert to unix form, then to dos form, then back to unix form
  9976. # but this time dos style (no spaces!) so that the unix form looks
  9977. # like /cygdrive/c/PROGRA~1:/cygdr...
  9978. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9979. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9980. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9981. ;;
  9982. *)
  9983. sys_lib_search_path_spec=$LIB
  9984. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9985. # It is most probably a Windows format PATH.
  9986. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9987. else
  9988. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9989. fi
  9990. # FIXME: find the short name or the path components, as spaces are
  9991. # common. (e.g. "Program Files" -> "PROGRA~1")
  9992. ;;
  9993. esac
  9994. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9995. postinstall_cmds='base_file=`basename \$file`~
  9996. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9997. dldir=$destdir/`dirname \$dlpath`~
  9998. test -d \$dldir || mkdir -p \$dldir~
  9999. $install_prog $dir/$dlname \$dldir/$dlname'
  10000. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10001. dlpath=$dir/\$dldll~
  10002. $RM \$dlpath'
  10003. shlibpath_overrides_runpath=yes
  10004. dynamic_linker='Win32 link.exe'
  10005. ;;
  10006. *)
  10007. # Assume MSVC wrapper
  10008. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10009. dynamic_linker='Win32 ld.exe'
  10010. ;;
  10011. esac
  10012. # FIXME: first we should search . and the directory the executable is in
  10013. shlibpath_var=PATH
  10014. ;;
  10015. darwin* | rhapsody*)
  10016. dynamic_linker="$host_os dyld"
  10017. version_type=darwin
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10021. soname_spec='$libname$release$major$shared_ext'
  10022. shlibpath_overrides_runpath=yes
  10023. shlibpath_var=DYLD_LIBRARY_PATH
  10024. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10025. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10026. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10027. ;;
  10028. dgux*)
  10029. version_type=linux # correct to gnu/linux during the next big refactor
  10030. need_lib_prefix=no
  10031. need_version=no
  10032. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10033. soname_spec='$libname$release$shared_ext$major'
  10034. shlibpath_var=LD_LIBRARY_PATH
  10035. ;;
  10036. freebsd* | dragonfly* | midnightbsd*)
  10037. # DragonFly does not have aout. When/if they implement a new
  10038. # versioning mechanism, adjust this.
  10039. if test -x /usr/bin/objformat; then
  10040. objformat=`/usr/bin/objformat`
  10041. else
  10042. case $host_os in
  10043. freebsd[23].*) objformat=aout ;;
  10044. *) objformat=elf ;;
  10045. esac
  10046. fi
  10047. version_type=freebsd-$objformat
  10048. case $version_type in
  10049. freebsd-elf*)
  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. need_version=no
  10053. need_lib_prefix=no
  10054. ;;
  10055. freebsd-*)
  10056. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10057. need_version=yes
  10058. ;;
  10059. esac
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. case $host_os in
  10062. freebsd2.*)
  10063. shlibpath_overrides_runpath=yes
  10064. ;;
  10065. freebsd3.[01]* | freebsdelf3.[01]*)
  10066. shlibpath_overrides_runpath=yes
  10067. hardcode_into_libs=yes
  10068. ;;
  10069. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10070. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10071. shlibpath_overrides_runpath=no
  10072. hardcode_into_libs=yes
  10073. ;;
  10074. *) # from 4.6 on, and DragonFly
  10075. shlibpath_overrides_runpath=yes
  10076. hardcode_into_libs=yes
  10077. ;;
  10078. esac
  10079. ;;
  10080. haiku*)
  10081. version_type=linux # correct to gnu/linux during the next big refactor
  10082. need_lib_prefix=no
  10083. need_version=no
  10084. dynamic_linker="$host_os runtime_loader"
  10085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10086. soname_spec='$libname$release$shared_ext$major'
  10087. shlibpath_var=LIBRARY_PATH
  10088. shlibpath_overrides_runpath=no
  10089. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10090. hardcode_into_libs=yes
  10091. ;;
  10092. hpux9* | hpux10* | hpux11*)
  10093. # Give a soname corresponding to the major version so that dld.sl refuses to
  10094. # link against other versions.
  10095. version_type=sunos
  10096. need_lib_prefix=no
  10097. need_version=no
  10098. case $host_cpu in
  10099. ia64*)
  10100. shrext_cmds='.so'
  10101. hardcode_into_libs=yes
  10102. dynamic_linker="$host_os dld.so"
  10103. shlibpath_var=LD_LIBRARY_PATH
  10104. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10106. soname_spec='$libname$release$shared_ext$major'
  10107. if test 32 = "$HPUX_IA64_MODE"; then
  10108. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10109. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10110. else
  10111. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10112. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10113. fi
  10114. ;;
  10115. hppa*64*)
  10116. shrext_cmds='.sl'
  10117. hardcode_into_libs=yes
  10118. dynamic_linker="$host_os dld.sl"
  10119. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10120. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10122. soname_spec='$libname$release$shared_ext$major'
  10123. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10124. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10125. ;;
  10126. *)
  10127. shrext_cmds='.sl'
  10128. dynamic_linker="$host_os dld.sl"
  10129. shlibpath_var=SHLIB_PATH
  10130. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10131. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10132. soname_spec='$libname$release$shared_ext$major'
  10133. ;;
  10134. esac
  10135. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10136. postinstall_cmds='chmod 555 $lib'
  10137. # or fails outright, so override atomically:
  10138. install_override_mode=555
  10139. ;;
  10140. interix[3-9]*)
  10141. version_type=linux # correct to gnu/linux during the next big refactor
  10142. need_lib_prefix=no
  10143. need_version=no
  10144. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10145. soname_spec='$libname$release$shared_ext$major'
  10146. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10147. shlibpath_var=LD_LIBRARY_PATH
  10148. shlibpath_overrides_runpath=no
  10149. hardcode_into_libs=yes
  10150. ;;
  10151. irix5* | irix6* | nonstopux*)
  10152. case $host_os in
  10153. nonstopux*) version_type=nonstopux ;;
  10154. *)
  10155. if test yes = "$lt_cv_prog_gnu_ld"; then
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. else
  10158. version_type=irix
  10159. fi ;;
  10160. esac
  10161. need_lib_prefix=no
  10162. need_version=no
  10163. soname_spec='$libname$release$shared_ext$major'
  10164. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10165. case $host_os in
  10166. irix5* | nonstopux*)
  10167. libsuff= shlibsuff=
  10168. ;;
  10169. *)
  10170. case $LD in # libtool.m4 will add one of these switches to LD
  10171. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10172. libsuff= shlibsuff= libmagic=32-bit;;
  10173. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10174. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10175. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10176. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10177. *) libsuff= shlibsuff= libmagic=never-match;;
  10178. esac
  10179. ;;
  10180. esac
  10181. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10182. shlibpath_overrides_runpath=no
  10183. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10184. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10185. hardcode_into_libs=yes
  10186. ;;
  10187. # No shared lib support for Linux oldld, aout, or coff.
  10188. linux*oldld* | linux*aout* | linux*coff*)
  10189. dynamic_linker=no
  10190. ;;
  10191. linux*android*)
  10192. version_type=none # Android doesn't support versioned libraries.
  10193. need_lib_prefix=no
  10194. need_version=no
  10195. library_names_spec='$libname$release$shared_ext'
  10196. soname_spec='$libname$release$shared_ext'
  10197. finish_cmds=
  10198. shlibpath_var=LD_LIBRARY_PATH
  10199. shlibpath_overrides_runpath=yes
  10200. # This implies no fast_install, which is unacceptable.
  10201. # Some rework will be needed to allow for fast_install
  10202. # before this can be enabled.
  10203. hardcode_into_libs=yes
  10204. dynamic_linker='Android linker'
  10205. # Don't embed -rpath directories since the linker doesn't support them.
  10206. hardcode_libdir_flag_spec='-L$libdir'
  10207. ;;
  10208. # This must be glibc/ELF.
  10209. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10210. version_type=linux # correct to gnu/linux during the next big refactor
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10214. soname_spec='$libname$release$shared_ext$major'
  10215. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. shlibpath_overrides_runpath=no
  10218. # Some binutils ld are patched to set DT_RUNPATH
  10219. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10220. then :
  10221. printf %s "(cached) " >&6
  10222. else $as_nop
  10223. lt_cv_shlibpath_overrides_runpath=no
  10224. save_LDFLAGS=$LDFLAGS
  10225. save_libdir=$libdir
  10226. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10227. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10229. /* end confdefs.h. */
  10230. int
  10231. main (void)
  10232. {
  10233. ;
  10234. return 0;
  10235. }
  10236. _ACEOF
  10237. if ac_fn_c_try_link "$LINENO"
  10238. then :
  10239. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10240. then :
  10241. lt_cv_shlibpath_overrides_runpath=yes
  10242. fi
  10243. fi
  10244. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10245. conftest$ac_exeext conftest.$ac_ext
  10246. LDFLAGS=$save_LDFLAGS
  10247. libdir=$save_libdir
  10248. fi
  10249. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10250. # This implies no fast_install, which is unacceptable.
  10251. # Some rework will be needed to allow for fast_install
  10252. # before this can be enabled.
  10253. hardcode_into_libs=yes
  10254. # Add ABI-specific directories to the system library path.
  10255. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10256. # Ideally, we could use ldconfig to report *all* directores which are
  10257. # searched for libraries, however this is still not possible. Aside from not
  10258. # being certain /sbin/ldconfig is available, command
  10259. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10260. # even though it is searched at run-time. Try to do the best guess by
  10261. # appending ld.so.conf contents (and includes) to the search path.
  10262. if test -f /etc/ld.so.conf; then
  10263. 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' ' '`
  10264. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10265. fi
  10266. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10267. # powerpc, because MkLinux only supported shared libraries with the
  10268. # GNU dynamic linker. Since this was broken with cross compilers,
  10269. # most powerpc-linux boxes support dynamic linking these days and
  10270. # people can always --disable-shared, the test was removed, and we
  10271. # assume the GNU/Linux dynamic linker is in use.
  10272. dynamic_linker='GNU/Linux ld.so'
  10273. ;;
  10274. netbsd*)
  10275. version_type=sunos
  10276. need_lib_prefix=no
  10277. need_version=no
  10278. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10279. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10280. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10281. dynamic_linker='NetBSD (a.out) ld.so'
  10282. else
  10283. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10284. soname_spec='$libname$release$shared_ext$major'
  10285. dynamic_linker='NetBSD ld.elf_so'
  10286. fi
  10287. shlibpath_var=LD_LIBRARY_PATH
  10288. shlibpath_overrides_runpath=yes
  10289. hardcode_into_libs=yes
  10290. ;;
  10291. newsos6)
  10292. version_type=linux # correct to gnu/linux during the next big refactor
  10293. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10294. shlibpath_var=LD_LIBRARY_PATH
  10295. shlibpath_overrides_runpath=yes
  10296. ;;
  10297. *nto* | *qnx*)
  10298. version_type=qnx
  10299. need_lib_prefix=no
  10300. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  10304. shlibpath_overrides_runpath=no
  10305. hardcode_into_libs=yes
  10306. dynamic_linker='ldqnx.so'
  10307. ;;
  10308. openbsd* | bitrig*)
  10309. version_type=sunos
  10310. sys_lib_dlsearch_path_spec=/usr/lib
  10311. need_lib_prefix=no
  10312. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10313. need_version=no
  10314. else
  10315. need_version=yes
  10316. fi
  10317. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10318. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10319. shlibpath_var=LD_LIBRARY_PATH
  10320. shlibpath_overrides_runpath=yes
  10321. ;;
  10322. os2*)
  10323. libname_spec='$name'
  10324. shrext_cmds=.dll
  10325. need_lib_prefix=no
  10326. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10327. # SDL customization: removed versioning support.
  10328. # version_type=windows
  10329. # need_version=no
  10330. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10331. # v=$($ECHO $release$versuffix | tr -d .-);
  10332. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10333. # $ECHO $n$v`$shared_ext'
  10334. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10335. library_names_spec='${libname}_dll.$libext'
  10336. dynamic_linker='OS/2 ld.exe'
  10337. shlibpath_var=BEGINLIBPATH
  10338. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10339. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10340. postinstall_cmds='base_file=`basename \$file`~
  10341. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10342. dldir=$destdir/`dirname \$dlpath`~
  10343. test -d \$dldir || mkdir -p \$dldir~
  10344. $install_prog $dir/$dlname \$dldir/$dlname~
  10345. chmod a+x \$dldir/$dlname~
  10346. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10347. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10348. fi'
  10349. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10350. dlpath=$dir/\$dldll~
  10351. $RM \$dlpath'
  10352. ;;
  10353. osf3* | osf4* | osf5*)
  10354. version_type=osf
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. soname_spec='$libname$release$shared_ext$major'
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. shlibpath_var=LD_LIBRARY_PATH
  10360. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10361. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10362. ;;
  10363. rdos*)
  10364. dynamic_linker=no
  10365. ;;
  10366. solaris*)
  10367. version_type=linux # correct to gnu/linux during the next big refactor
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10371. soname_spec='$libname$release$shared_ext$major'
  10372. shlibpath_var=LD_LIBRARY_PATH
  10373. shlibpath_overrides_runpath=yes
  10374. hardcode_into_libs=yes
  10375. # ldd complains unless libraries are executable
  10376. postinstall_cmds='chmod +x $lib'
  10377. ;;
  10378. sunos4*)
  10379. version_type=sunos
  10380. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10381. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10382. shlibpath_var=LD_LIBRARY_PATH
  10383. shlibpath_overrides_runpath=yes
  10384. if test yes = "$with_gnu_ld"; then
  10385. need_lib_prefix=no
  10386. fi
  10387. need_version=yes
  10388. ;;
  10389. sysv4 | sysv4.3*)
  10390. version_type=linux # correct to gnu/linux during the next big refactor
  10391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10392. soname_spec='$libname$release$shared_ext$major'
  10393. shlibpath_var=LD_LIBRARY_PATH
  10394. case $host_vendor in
  10395. sni)
  10396. shlibpath_overrides_runpath=no
  10397. need_lib_prefix=no
  10398. runpath_var=LD_RUN_PATH
  10399. ;;
  10400. siemens)
  10401. need_lib_prefix=no
  10402. ;;
  10403. motorola)
  10404. need_lib_prefix=no
  10405. need_version=no
  10406. shlibpath_overrides_runpath=no
  10407. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10408. ;;
  10409. esac
  10410. ;;
  10411. sysv4*MP*)
  10412. if test -d /usr/nec; then
  10413. version_type=linux # correct to gnu/linux during the next big refactor
  10414. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10415. soname_spec='$libname$shared_ext.$major'
  10416. shlibpath_var=LD_LIBRARY_PATH
  10417. fi
  10418. ;;
  10419. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10420. version_type=sco
  10421. need_lib_prefix=no
  10422. need_version=no
  10423. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10424. soname_spec='$libname$release$shared_ext$major'
  10425. shlibpath_var=LD_LIBRARY_PATH
  10426. shlibpath_overrides_runpath=yes
  10427. hardcode_into_libs=yes
  10428. if test yes = "$with_gnu_ld"; then
  10429. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10430. else
  10431. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10432. case $host_os in
  10433. sco3.2v5*)
  10434. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10435. ;;
  10436. esac
  10437. fi
  10438. sys_lib_dlsearch_path_spec='/usr/lib'
  10439. ;;
  10440. tpf*)
  10441. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10442. version_type=linux # correct to gnu/linux during the next big refactor
  10443. need_lib_prefix=no
  10444. need_version=no
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=no
  10448. hardcode_into_libs=yes
  10449. ;;
  10450. uts4*)
  10451. version_type=linux # correct to gnu/linux during the next big refactor
  10452. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10453. soname_spec='$libname$release$shared_ext$major'
  10454. shlibpath_var=LD_LIBRARY_PATH
  10455. ;;
  10456. *)
  10457. dynamic_linker=no
  10458. ;;
  10459. esac
  10460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10461. printf "%s\n" "$dynamic_linker" >&6; }
  10462. test no = "$dynamic_linker" && can_build_shared=no
  10463. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10464. if test yes = "$GCC"; then
  10465. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10466. fi
  10467. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10468. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10469. fi
  10470. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10471. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10472. fi
  10473. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10474. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10475. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10476. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10477. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10478. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10480. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10481. hardcode_action=
  10482. if test -n "$hardcode_libdir_flag_spec" ||
  10483. test -n "$runpath_var" ||
  10484. test yes = "$hardcode_automatic"; then
  10485. # We can hardcode non-existent directories.
  10486. if test no != "$hardcode_direct" &&
  10487. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10488. # have to relink, otherwise we might link with an installed library
  10489. # when we should be linking with a yet-to-be-installed one
  10490. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10491. test no != "$hardcode_minus_L"; then
  10492. # Linking always hardcodes the temporary library directory.
  10493. hardcode_action=relink
  10494. else
  10495. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10496. hardcode_action=immediate
  10497. fi
  10498. else
  10499. # We cannot hardcode anything, or else we can only hardcode existing
  10500. # directories.
  10501. hardcode_action=unsupported
  10502. fi
  10503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10504. printf "%s\n" "$hardcode_action" >&6; }
  10505. if test relink = "$hardcode_action" ||
  10506. test yes = "$inherit_rpath"; then
  10507. # Fast installation is not supported
  10508. enable_fast_install=no
  10509. elif test yes = "$shlibpath_overrides_runpath" ||
  10510. test no = "$enable_shared"; then
  10511. # Fast installation is not necessary
  10512. enable_fast_install=needless
  10513. fi
  10514. if test yes != "$enable_dlopen"; then
  10515. enable_dlopen=unknown
  10516. enable_dlopen_self=unknown
  10517. enable_dlopen_self_static=unknown
  10518. else
  10519. lt_cv_dlopen=no
  10520. lt_cv_dlopen_libs=
  10521. case $host_os in
  10522. beos*)
  10523. lt_cv_dlopen=load_add_on
  10524. lt_cv_dlopen_libs=
  10525. lt_cv_dlopen_self=yes
  10526. ;;
  10527. mingw* | pw32* | cegcc*)
  10528. lt_cv_dlopen=LoadLibrary
  10529. lt_cv_dlopen_libs=
  10530. ;;
  10531. cygwin*)
  10532. lt_cv_dlopen=dlopen
  10533. lt_cv_dlopen_libs=
  10534. ;;
  10535. darwin*)
  10536. # if libdl is installed we need to link against it
  10537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10538. printf %s "checking for dlopen in -ldl... " >&6; }
  10539. if test ${ac_cv_lib_dl_dlopen+y}
  10540. then :
  10541. printf %s "(cached) " >&6
  10542. else $as_nop
  10543. ac_check_lib_save_LIBS=$LIBS
  10544. LIBS="-ldl $LIBS"
  10545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10546. /* end confdefs.h. */
  10547. /* Override any GCC internal prototype to avoid an error.
  10548. Use char because int might match the return type of a GCC
  10549. builtin and then its argument prototype would still apply. */
  10550. char dlopen ();
  10551. int
  10552. main (void)
  10553. {
  10554. return dlopen ();
  10555. ;
  10556. return 0;
  10557. }
  10558. _ACEOF
  10559. if ac_fn_c_try_link "$LINENO"
  10560. then :
  10561. ac_cv_lib_dl_dlopen=yes
  10562. else $as_nop
  10563. ac_cv_lib_dl_dlopen=no
  10564. fi
  10565. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10566. conftest$ac_exeext conftest.$ac_ext
  10567. LIBS=$ac_check_lib_save_LIBS
  10568. fi
  10569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10570. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10571. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10572. then :
  10573. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10574. else $as_nop
  10575. lt_cv_dlopen=dyld
  10576. lt_cv_dlopen_libs=
  10577. lt_cv_dlopen_self=yes
  10578. fi
  10579. ;;
  10580. tpf*)
  10581. # Don't try to run any link tests for TPF. We know it's impossible
  10582. # because TPF is a cross-compiler, and we know how we open DSOs.
  10583. lt_cv_dlopen=dlopen
  10584. lt_cv_dlopen_libs=
  10585. lt_cv_dlopen_self=no
  10586. ;;
  10587. *)
  10588. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10589. if test "x$ac_cv_func_shl_load" = xyes
  10590. then :
  10591. lt_cv_dlopen=shl_load
  10592. else $as_nop
  10593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10594. printf %s "checking for shl_load in -ldld... " >&6; }
  10595. if test ${ac_cv_lib_dld_shl_load+y}
  10596. then :
  10597. printf %s "(cached) " >&6
  10598. else $as_nop
  10599. ac_check_lib_save_LIBS=$LIBS
  10600. LIBS="-ldld $LIBS"
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. /* Override any GCC internal prototype to avoid an error.
  10604. Use char because int might match the return type of a GCC
  10605. builtin and then its argument prototype would still apply. */
  10606. char shl_load ();
  10607. int
  10608. main (void)
  10609. {
  10610. return shl_load ();
  10611. ;
  10612. return 0;
  10613. }
  10614. _ACEOF
  10615. if ac_fn_c_try_link "$LINENO"
  10616. then :
  10617. ac_cv_lib_dld_shl_load=yes
  10618. else $as_nop
  10619. ac_cv_lib_dld_shl_load=no
  10620. fi
  10621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10622. conftest$ac_exeext conftest.$ac_ext
  10623. LIBS=$ac_check_lib_save_LIBS
  10624. fi
  10625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10626. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10627. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10628. then :
  10629. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10630. else $as_nop
  10631. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10632. if test "x$ac_cv_func_dlopen" = xyes
  10633. then :
  10634. lt_cv_dlopen=dlopen
  10635. else $as_nop
  10636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10637. printf %s "checking for dlopen in -ldl... " >&6; }
  10638. if test ${ac_cv_lib_dl_dlopen+y}
  10639. then :
  10640. printf %s "(cached) " >&6
  10641. else $as_nop
  10642. ac_check_lib_save_LIBS=$LIBS
  10643. LIBS="-ldl $LIBS"
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. /* Override any GCC internal prototype to avoid an error.
  10647. Use char because int might match the return type of a GCC
  10648. builtin and then its argument prototype would still apply. */
  10649. char dlopen ();
  10650. int
  10651. main (void)
  10652. {
  10653. return dlopen ();
  10654. ;
  10655. return 0;
  10656. }
  10657. _ACEOF
  10658. if ac_fn_c_try_link "$LINENO"
  10659. then :
  10660. ac_cv_lib_dl_dlopen=yes
  10661. else $as_nop
  10662. ac_cv_lib_dl_dlopen=no
  10663. fi
  10664. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10665. conftest$ac_exeext conftest.$ac_ext
  10666. LIBS=$ac_check_lib_save_LIBS
  10667. fi
  10668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10669. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10670. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10671. then :
  10672. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10673. else $as_nop
  10674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10675. printf %s "checking for dlopen in -lsvld... " >&6; }
  10676. if test ${ac_cv_lib_svld_dlopen+y}
  10677. then :
  10678. printf %s "(cached) " >&6
  10679. else $as_nop
  10680. ac_check_lib_save_LIBS=$LIBS
  10681. LIBS="-lsvld $LIBS"
  10682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10683. /* end confdefs.h. */
  10684. /* Override any GCC internal prototype to avoid an error.
  10685. Use char because int might match the return type of a GCC
  10686. builtin and then its argument prototype would still apply. */
  10687. char dlopen ();
  10688. int
  10689. main (void)
  10690. {
  10691. return dlopen ();
  10692. ;
  10693. return 0;
  10694. }
  10695. _ACEOF
  10696. if ac_fn_c_try_link "$LINENO"
  10697. then :
  10698. ac_cv_lib_svld_dlopen=yes
  10699. else $as_nop
  10700. ac_cv_lib_svld_dlopen=no
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10703. conftest$ac_exeext conftest.$ac_ext
  10704. LIBS=$ac_check_lib_save_LIBS
  10705. fi
  10706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10707. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10708. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10709. then :
  10710. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10711. else $as_nop
  10712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10713. printf %s "checking for dld_link in -ldld... " >&6; }
  10714. if test ${ac_cv_lib_dld_dld_link+y}
  10715. then :
  10716. printf %s "(cached) " >&6
  10717. else $as_nop
  10718. ac_check_lib_save_LIBS=$LIBS
  10719. LIBS="-ldld $LIBS"
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. /* Override any GCC internal prototype to avoid an error.
  10723. Use char because int might match the return type of a GCC
  10724. builtin and then its argument prototype would still apply. */
  10725. char dld_link ();
  10726. int
  10727. main (void)
  10728. {
  10729. return dld_link ();
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_c_try_link "$LINENO"
  10735. then :
  10736. ac_cv_lib_dld_dld_link=yes
  10737. else $as_nop
  10738. ac_cv_lib_dld_dld_link=no
  10739. fi
  10740. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10741. conftest$ac_exeext conftest.$ac_ext
  10742. LIBS=$ac_check_lib_save_LIBS
  10743. fi
  10744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10745. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10746. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10747. then :
  10748. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10749. fi
  10750. fi
  10751. fi
  10752. fi
  10753. fi
  10754. fi
  10755. ;;
  10756. esac
  10757. if test no = "$lt_cv_dlopen"; then
  10758. enable_dlopen=no
  10759. else
  10760. enable_dlopen=yes
  10761. fi
  10762. case $lt_cv_dlopen in
  10763. dlopen)
  10764. save_CPPFLAGS=$CPPFLAGS
  10765. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10766. save_LDFLAGS=$LDFLAGS
  10767. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10768. save_LIBS=$LIBS
  10769. LIBS="$lt_cv_dlopen_libs $LIBS"
  10770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10771. printf %s "checking whether a program can dlopen itself... " >&6; }
  10772. if test ${lt_cv_dlopen_self+y}
  10773. then :
  10774. printf %s "(cached) " >&6
  10775. else $as_nop
  10776. if test yes = "$cross_compiling"; then :
  10777. lt_cv_dlopen_self=cross
  10778. else
  10779. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10780. lt_status=$lt_dlunknown
  10781. cat > conftest.$ac_ext <<_LT_EOF
  10782. #line $LINENO "configure"
  10783. #include "confdefs.h"
  10784. #if HAVE_DLFCN_H
  10785. #include <dlfcn.h>
  10786. #endif
  10787. #include <stdio.h>
  10788. #ifdef RTLD_GLOBAL
  10789. # define LT_DLGLOBAL RTLD_GLOBAL
  10790. #else
  10791. # ifdef DL_GLOBAL
  10792. # define LT_DLGLOBAL DL_GLOBAL
  10793. # else
  10794. # define LT_DLGLOBAL 0
  10795. # endif
  10796. #endif
  10797. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10798. find out it does not work in some platform. */
  10799. #ifndef LT_DLLAZY_OR_NOW
  10800. # ifdef RTLD_LAZY
  10801. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10802. # else
  10803. # ifdef DL_LAZY
  10804. # define LT_DLLAZY_OR_NOW DL_LAZY
  10805. # else
  10806. # ifdef RTLD_NOW
  10807. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10808. # else
  10809. # ifdef DL_NOW
  10810. # define LT_DLLAZY_OR_NOW DL_NOW
  10811. # else
  10812. # define LT_DLLAZY_OR_NOW 0
  10813. # endif
  10814. # endif
  10815. # endif
  10816. # endif
  10817. #endif
  10818. /* When -fvisibility=hidden is used, assume the code has been annotated
  10819. correspondingly for the symbols needed. */
  10820. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10821. int fnord () __attribute__((visibility("default")));
  10822. #endif
  10823. int fnord () { return 42; }
  10824. int main ()
  10825. {
  10826. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10827. int status = $lt_dlunknown;
  10828. if (self)
  10829. {
  10830. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10831. else
  10832. {
  10833. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10834. else puts (dlerror ());
  10835. }
  10836. /* dlclose (self); */
  10837. }
  10838. else
  10839. puts (dlerror ());
  10840. return status;
  10841. }
  10842. _LT_EOF
  10843. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10844. (eval $ac_link) 2>&5
  10845. ac_status=$?
  10846. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10847. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10848. (./conftest; exit; ) >&5 2>/dev/null
  10849. lt_status=$?
  10850. case x$lt_status in
  10851. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10852. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10853. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10854. esac
  10855. else :
  10856. # compilation failed
  10857. lt_cv_dlopen_self=no
  10858. fi
  10859. fi
  10860. rm -fr conftest*
  10861. fi
  10862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10863. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10864. if test yes = "$lt_cv_dlopen_self"; then
  10865. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10867. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10868. if test ${lt_cv_dlopen_self_static+y}
  10869. then :
  10870. printf %s "(cached) " >&6
  10871. else $as_nop
  10872. if test yes = "$cross_compiling"; then :
  10873. lt_cv_dlopen_self_static=cross
  10874. else
  10875. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10876. lt_status=$lt_dlunknown
  10877. cat > conftest.$ac_ext <<_LT_EOF
  10878. #line $LINENO "configure"
  10879. #include "confdefs.h"
  10880. #if HAVE_DLFCN_H
  10881. #include <dlfcn.h>
  10882. #endif
  10883. #include <stdio.h>
  10884. #ifdef RTLD_GLOBAL
  10885. # define LT_DLGLOBAL RTLD_GLOBAL
  10886. #else
  10887. # ifdef DL_GLOBAL
  10888. # define LT_DLGLOBAL DL_GLOBAL
  10889. # else
  10890. # define LT_DLGLOBAL 0
  10891. # endif
  10892. #endif
  10893. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10894. find out it does not work in some platform. */
  10895. #ifndef LT_DLLAZY_OR_NOW
  10896. # ifdef RTLD_LAZY
  10897. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10898. # else
  10899. # ifdef DL_LAZY
  10900. # define LT_DLLAZY_OR_NOW DL_LAZY
  10901. # else
  10902. # ifdef RTLD_NOW
  10903. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10904. # else
  10905. # ifdef DL_NOW
  10906. # define LT_DLLAZY_OR_NOW DL_NOW
  10907. # else
  10908. # define LT_DLLAZY_OR_NOW 0
  10909. # endif
  10910. # endif
  10911. # endif
  10912. # endif
  10913. #endif
  10914. /* When -fvisibility=hidden is used, assume the code has been annotated
  10915. correspondingly for the symbols needed. */
  10916. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10917. int fnord () __attribute__((visibility("default")));
  10918. #endif
  10919. int fnord () { return 42; }
  10920. int main ()
  10921. {
  10922. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10923. int status = $lt_dlunknown;
  10924. if (self)
  10925. {
  10926. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10927. else
  10928. {
  10929. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10930. else puts (dlerror ());
  10931. }
  10932. /* dlclose (self); */
  10933. }
  10934. else
  10935. puts (dlerror ());
  10936. return status;
  10937. }
  10938. _LT_EOF
  10939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10940. (eval $ac_link) 2>&5
  10941. ac_status=$?
  10942. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10943. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10944. (./conftest; exit; ) >&5 2>/dev/null
  10945. lt_status=$?
  10946. case x$lt_status in
  10947. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10948. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10949. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10950. esac
  10951. else :
  10952. # compilation failed
  10953. lt_cv_dlopen_self_static=no
  10954. fi
  10955. fi
  10956. rm -fr conftest*
  10957. fi
  10958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10959. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10960. fi
  10961. CPPFLAGS=$save_CPPFLAGS
  10962. LDFLAGS=$save_LDFLAGS
  10963. LIBS=$save_LIBS
  10964. ;;
  10965. esac
  10966. case $lt_cv_dlopen_self in
  10967. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10968. *) enable_dlopen_self=unknown ;;
  10969. esac
  10970. case $lt_cv_dlopen_self_static in
  10971. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10972. *) enable_dlopen_self_static=unknown ;;
  10973. esac
  10974. fi
  10975. striplib=
  10976. old_striplib=
  10977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10978. printf %s "checking whether stripping libraries is possible... " >&6; }
  10979. if test -z "$STRIP"; then
  10980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10981. printf "%s\n" "no" >&6; }
  10982. else
  10983. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10984. old_striplib="$STRIP --strip-debug"
  10985. striplib="$STRIP --strip-unneeded"
  10986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10987. printf "%s\n" "yes" >&6; }
  10988. else
  10989. case $host_os in
  10990. darwin*)
  10991. # FIXME - insert some real tests, host_os isn't really good enough
  10992. striplib="$STRIP -x"
  10993. old_striplib="$STRIP -S"
  10994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10995. printf "%s\n" "yes" >&6; }
  10996. ;;
  10997. freebsd*)
  10998. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10999. old_striplib="$STRIP --strip-debug"
  11000. striplib="$STRIP --strip-unneeded"
  11001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11002. printf "%s\n" "yes" >&6; }
  11003. else
  11004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11005. printf "%s\n" "no" >&6; }
  11006. fi
  11007. ;;
  11008. *)
  11009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11010. printf "%s\n" "no" >&6; }
  11011. ;;
  11012. esac
  11013. fi
  11014. fi
  11015. # Report what library types will actually be built
  11016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11017. printf %s "checking if libtool supports shared libraries... " >&6; }
  11018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11019. printf "%s\n" "$can_build_shared" >&6; }
  11020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11021. printf %s "checking whether to build shared libraries... " >&6; }
  11022. test no = "$can_build_shared" && enable_shared=no
  11023. # On AIX, shared libraries and static libraries use the same namespace, and
  11024. # are all built from PIC.
  11025. case $host_os in
  11026. aix3*)
  11027. test yes = "$enable_shared" && enable_static=no
  11028. if test -n "$RANLIB"; then
  11029. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11030. postinstall_cmds='$RANLIB $lib'
  11031. fi
  11032. ;;
  11033. aix[4-9]*)
  11034. if test ia64 != "$host_cpu"; then
  11035. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11036. yes,aix,yes) ;; # shared object as lib.so file only
  11037. yes,svr4,*) ;; # shared object as lib.so archive member only
  11038. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11039. esac
  11040. fi
  11041. ;;
  11042. esac
  11043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11044. printf "%s\n" "$enable_shared" >&6; }
  11045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11046. printf %s "checking whether to build static libraries... " >&6; }
  11047. # Make sure either enable_shared or enable_static is yes.
  11048. test yes = "$enable_shared" || enable_static=yes
  11049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11050. printf "%s\n" "$enable_static" >&6; }
  11051. fi
  11052. ac_ext=c
  11053. ac_cpp='$CPP $CPPFLAGS'
  11054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11057. CC=$lt_save_CC
  11058. ac_config_commands="$ac_config_commands libtool"
  11059. # Only expand once:
  11060. if test -n "$ac_tool_prefix"; then
  11061. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11062. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11064. printf %s "checking for $ac_word... " >&6; }
  11065. if test ${ac_cv_prog_RC+y}
  11066. then :
  11067. printf %s "(cached) " >&6
  11068. else $as_nop
  11069. if test -n "$RC"; then
  11070. ac_cv_prog_RC="$RC" # Let the user override the test.
  11071. else
  11072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11073. for as_dir in $PATH
  11074. do
  11075. IFS=$as_save_IFS
  11076. case $as_dir in #(((
  11077. '') as_dir=./ ;;
  11078. */) ;;
  11079. *) as_dir=$as_dir/ ;;
  11080. esac
  11081. for ac_exec_ext in '' $ac_executable_extensions; do
  11082. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11083. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11085. break 2
  11086. fi
  11087. done
  11088. done
  11089. IFS=$as_save_IFS
  11090. fi
  11091. fi
  11092. RC=$ac_cv_prog_RC
  11093. if test -n "$RC"; then
  11094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11095. printf "%s\n" "$RC" >&6; }
  11096. else
  11097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11098. printf "%s\n" "no" >&6; }
  11099. fi
  11100. fi
  11101. if test -z "$ac_cv_prog_RC"; then
  11102. ac_ct_RC=$RC
  11103. # Extract the first word of "windres", so it can be a program name with args.
  11104. set dummy windres; ac_word=$2
  11105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11106. printf %s "checking for $ac_word... " >&6; }
  11107. if test ${ac_cv_prog_ac_ct_RC+y}
  11108. then :
  11109. printf %s "(cached) " >&6
  11110. else $as_nop
  11111. if test -n "$ac_ct_RC"; then
  11112. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11113. else
  11114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11115. for as_dir in $PATH
  11116. do
  11117. IFS=$as_save_IFS
  11118. case $as_dir in #(((
  11119. '') as_dir=./ ;;
  11120. */) ;;
  11121. *) as_dir=$as_dir/ ;;
  11122. esac
  11123. for ac_exec_ext in '' $ac_executable_extensions; do
  11124. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11125. ac_cv_prog_ac_ct_RC="windres"
  11126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11127. break 2
  11128. fi
  11129. done
  11130. done
  11131. IFS=$as_save_IFS
  11132. fi
  11133. fi
  11134. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11135. if test -n "$ac_ct_RC"; then
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11137. printf "%s\n" "$ac_ct_RC" >&6; }
  11138. else
  11139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11140. printf "%s\n" "no" >&6; }
  11141. fi
  11142. if test "x$ac_ct_RC" = x; then
  11143. RC=""
  11144. else
  11145. case $cross_compiling:$ac_tool_warned in
  11146. yes:)
  11147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11148. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11149. ac_tool_warned=yes ;;
  11150. esac
  11151. RC=$ac_ct_RC
  11152. fi
  11153. else
  11154. RC="$ac_cv_prog_RC"
  11155. fi
  11156. # Source file extension for RC test sources.
  11157. ac_ext=rc
  11158. # Object file extension for compiled RC test sources.
  11159. objext=o
  11160. objext_RC=$objext
  11161. # Code to be used in simple compile tests
  11162. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11163. # Code to be used in simple link tests
  11164. lt_simple_link_test_code=$lt_simple_compile_test_code
  11165. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11166. # If no C compiler was specified, use CC.
  11167. LTCC=${LTCC-"$CC"}
  11168. # If no C compiler flags were specified, use CFLAGS.
  11169. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11170. # Allow CC to be a program name with arguments.
  11171. compiler=$CC
  11172. # save warnings/boilerplate of simple test code
  11173. ac_outfile=conftest.$ac_objext
  11174. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11175. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11176. _lt_compiler_boilerplate=`cat conftest.err`
  11177. $RM conftest*
  11178. ac_outfile=conftest.$ac_objext
  11179. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11180. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11181. _lt_linker_boilerplate=`cat conftest.err`
  11182. $RM -r conftest*
  11183. # Allow CC to be a program name with arguments.
  11184. lt_save_CC=$CC
  11185. lt_save_CFLAGS=$CFLAGS
  11186. lt_save_GCC=$GCC
  11187. GCC=
  11188. CC=${RC-"windres"}
  11189. CFLAGS=
  11190. compiler=$CC
  11191. compiler_RC=$CC
  11192. func_cc_basename $compiler
  11193. cc_basename=$func_cc_basename_result
  11194. lt_cv_prog_compiler_c_o_RC=yes
  11195. if test -n "$compiler"; then
  11196. :
  11197. fi
  11198. GCC=$lt_save_GCC
  11199. ac_ext=c
  11200. ac_cpp='$CPP $CPPFLAGS'
  11201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11204. CC=$lt_save_CC
  11205. CFLAGS=$lt_save_CFLAGS
  11206. # For historical reasons, the library name redundantly includes the major
  11207. # version twice: libSDL3-3.0.so.0.
  11208. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11209. LT_RELEASE=3.0
  11210. # Increment this if there is an incompatible change - but if that happens,
  11211. # we should rename the library from SDL2 to SDL3, at which point this would
  11212. # reset to 0 anyway.
  11213. LT_MAJOR=0
  11214. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11215. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11216. LT_REVISION=$SDL_INTERFACE_AGE
  11217. for ac_prog in gawk mawk nawk awk
  11218. do
  11219. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11220. set dummy $ac_prog; ac_word=$2
  11221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11222. printf %s "checking for $ac_word... " >&6; }
  11223. if test ${ac_cv_prog_AWK+y}
  11224. then :
  11225. printf %s "(cached) " >&6
  11226. else $as_nop
  11227. if test -n "$AWK"; then
  11228. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11229. else
  11230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11231. for as_dir in $PATH
  11232. do
  11233. IFS=$as_save_IFS
  11234. case $as_dir in #(((
  11235. '') as_dir=./ ;;
  11236. */) ;;
  11237. *) as_dir=$as_dir/ ;;
  11238. esac
  11239. for ac_exec_ext in '' $ac_executable_extensions; do
  11240. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11241. ac_cv_prog_AWK="$ac_prog"
  11242. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11243. break 2
  11244. fi
  11245. done
  11246. done
  11247. IFS=$as_save_IFS
  11248. fi
  11249. fi
  11250. AWK=$ac_cv_prog_AWK
  11251. if test -n "$AWK"; then
  11252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11253. printf "%s\n" "$AWK" >&6; }
  11254. else
  11255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11256. printf "%s\n" "no" >&6; }
  11257. fi
  11258. test -n "$AWK" && break
  11259. done
  11260. ac_ext=c
  11261. ac_cpp='$CPP $CPPFLAGS'
  11262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11265. if test -n "$ac_tool_prefix"; then
  11266. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11267. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11269. printf %s "checking for $ac_word... " >&6; }
  11270. if test ${ac_cv_prog_CC+y}
  11271. then :
  11272. printf %s "(cached) " >&6
  11273. else $as_nop
  11274. if test -n "$CC"; then
  11275. ac_cv_prog_CC="$CC" # Let the user override the test.
  11276. else
  11277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11278. for as_dir in $PATH
  11279. do
  11280. IFS=$as_save_IFS
  11281. case $as_dir in #(((
  11282. '') as_dir=./ ;;
  11283. */) ;;
  11284. *) as_dir=$as_dir/ ;;
  11285. esac
  11286. for ac_exec_ext in '' $ac_executable_extensions; do
  11287. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11288. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11289. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11290. break 2
  11291. fi
  11292. done
  11293. done
  11294. IFS=$as_save_IFS
  11295. fi
  11296. fi
  11297. CC=$ac_cv_prog_CC
  11298. if test -n "$CC"; then
  11299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11300. printf "%s\n" "$CC" >&6; }
  11301. else
  11302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11303. printf "%s\n" "no" >&6; }
  11304. fi
  11305. fi
  11306. if test -z "$ac_cv_prog_CC"; then
  11307. ac_ct_CC=$CC
  11308. # Extract the first word of "gcc", so it can be a program name with args.
  11309. set dummy gcc; ac_word=$2
  11310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11311. printf %s "checking for $ac_word... " >&6; }
  11312. if test ${ac_cv_prog_ac_ct_CC+y}
  11313. then :
  11314. printf %s "(cached) " >&6
  11315. else $as_nop
  11316. if test -n "$ac_ct_CC"; then
  11317. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11318. else
  11319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11320. for as_dir in $PATH
  11321. do
  11322. IFS=$as_save_IFS
  11323. case $as_dir in #(((
  11324. '') as_dir=./ ;;
  11325. */) ;;
  11326. *) as_dir=$as_dir/ ;;
  11327. esac
  11328. for ac_exec_ext in '' $ac_executable_extensions; do
  11329. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11330. ac_cv_prog_ac_ct_CC="gcc"
  11331. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11332. break 2
  11333. fi
  11334. done
  11335. done
  11336. IFS=$as_save_IFS
  11337. fi
  11338. fi
  11339. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11340. if test -n "$ac_ct_CC"; then
  11341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11342. printf "%s\n" "$ac_ct_CC" >&6; }
  11343. else
  11344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11345. printf "%s\n" "no" >&6; }
  11346. fi
  11347. if test "x$ac_ct_CC" = x; then
  11348. CC=""
  11349. else
  11350. case $cross_compiling:$ac_tool_warned in
  11351. yes:)
  11352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11353. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11354. ac_tool_warned=yes ;;
  11355. esac
  11356. CC=$ac_ct_CC
  11357. fi
  11358. else
  11359. CC="$ac_cv_prog_CC"
  11360. fi
  11361. if test -z "$CC"; then
  11362. if test -n "$ac_tool_prefix"; then
  11363. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11364. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11366. printf %s "checking for $ac_word... " >&6; }
  11367. if test ${ac_cv_prog_CC+y}
  11368. then :
  11369. printf %s "(cached) " >&6
  11370. else $as_nop
  11371. if test -n "$CC"; then
  11372. ac_cv_prog_CC="$CC" # Let the user override the test.
  11373. else
  11374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11375. for as_dir in $PATH
  11376. do
  11377. IFS=$as_save_IFS
  11378. case $as_dir in #(((
  11379. '') as_dir=./ ;;
  11380. */) ;;
  11381. *) as_dir=$as_dir/ ;;
  11382. esac
  11383. for ac_exec_ext in '' $ac_executable_extensions; do
  11384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11385. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11387. break 2
  11388. fi
  11389. done
  11390. done
  11391. IFS=$as_save_IFS
  11392. fi
  11393. fi
  11394. CC=$ac_cv_prog_CC
  11395. if test -n "$CC"; then
  11396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11397. printf "%s\n" "$CC" >&6; }
  11398. else
  11399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11400. printf "%s\n" "no" >&6; }
  11401. fi
  11402. fi
  11403. fi
  11404. if test -z "$CC"; then
  11405. # Extract the first word of "cc", so it can be a program name with args.
  11406. set dummy cc; ac_word=$2
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11408. printf %s "checking for $ac_word... " >&6; }
  11409. if test ${ac_cv_prog_CC+y}
  11410. then :
  11411. printf %s "(cached) " >&6
  11412. else $as_nop
  11413. if test -n "$CC"; then
  11414. ac_cv_prog_CC="$CC" # Let the user override the test.
  11415. else
  11416. ac_prog_rejected=no
  11417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11418. for as_dir in $PATH
  11419. do
  11420. IFS=$as_save_IFS
  11421. case $as_dir in #(((
  11422. '') as_dir=./ ;;
  11423. */) ;;
  11424. *) as_dir=$as_dir/ ;;
  11425. esac
  11426. for ac_exec_ext in '' $ac_executable_extensions; do
  11427. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11428. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11429. ac_prog_rejected=yes
  11430. continue
  11431. fi
  11432. ac_cv_prog_CC="cc"
  11433. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11434. break 2
  11435. fi
  11436. done
  11437. done
  11438. IFS=$as_save_IFS
  11439. if test $ac_prog_rejected = yes; then
  11440. # We found a bogon in the path, so make sure we never use it.
  11441. set dummy $ac_cv_prog_CC
  11442. shift
  11443. if test $# != 0; then
  11444. # We chose a different compiler from the bogus one.
  11445. # However, it has the same basename, so the bogon will be chosen
  11446. # first if we set CC to just the basename; use the full file name.
  11447. shift
  11448. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11449. fi
  11450. fi
  11451. fi
  11452. fi
  11453. CC=$ac_cv_prog_CC
  11454. if test -n "$CC"; then
  11455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11456. printf "%s\n" "$CC" >&6; }
  11457. else
  11458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459. printf "%s\n" "no" >&6; }
  11460. fi
  11461. fi
  11462. if test -z "$CC"; then
  11463. if test -n "$ac_tool_prefix"; then
  11464. for ac_prog in cl.exe
  11465. do
  11466. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11467. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11469. printf %s "checking for $ac_word... " >&6; }
  11470. if test ${ac_cv_prog_CC+y}
  11471. then :
  11472. printf %s "(cached) " >&6
  11473. else $as_nop
  11474. if test -n "$CC"; then
  11475. ac_cv_prog_CC="$CC" # Let the user override the test.
  11476. else
  11477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11478. for as_dir in $PATH
  11479. do
  11480. IFS=$as_save_IFS
  11481. case $as_dir in #(((
  11482. '') as_dir=./ ;;
  11483. */) ;;
  11484. *) as_dir=$as_dir/ ;;
  11485. esac
  11486. for ac_exec_ext in '' $ac_executable_extensions; do
  11487. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11488. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11490. break 2
  11491. fi
  11492. done
  11493. done
  11494. IFS=$as_save_IFS
  11495. fi
  11496. fi
  11497. CC=$ac_cv_prog_CC
  11498. if test -n "$CC"; then
  11499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11500. printf "%s\n" "$CC" >&6; }
  11501. else
  11502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11503. printf "%s\n" "no" >&6; }
  11504. fi
  11505. test -n "$CC" && break
  11506. done
  11507. fi
  11508. if test -z "$CC"; then
  11509. ac_ct_CC=$CC
  11510. for ac_prog in cl.exe
  11511. do
  11512. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11513. set dummy $ac_prog; ac_word=$2
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11515. printf %s "checking for $ac_word... " >&6; }
  11516. if test ${ac_cv_prog_ac_ct_CC+y}
  11517. then :
  11518. printf %s "(cached) " >&6
  11519. else $as_nop
  11520. if test -n "$ac_ct_CC"; then
  11521. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11522. else
  11523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11524. for as_dir in $PATH
  11525. do
  11526. IFS=$as_save_IFS
  11527. case $as_dir in #(((
  11528. '') as_dir=./ ;;
  11529. */) ;;
  11530. *) as_dir=$as_dir/ ;;
  11531. esac
  11532. for ac_exec_ext in '' $ac_executable_extensions; do
  11533. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11534. ac_cv_prog_ac_ct_CC="$ac_prog"
  11535. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11536. break 2
  11537. fi
  11538. done
  11539. done
  11540. IFS=$as_save_IFS
  11541. fi
  11542. fi
  11543. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11544. if test -n "$ac_ct_CC"; then
  11545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11546. printf "%s\n" "$ac_ct_CC" >&6; }
  11547. else
  11548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11549. printf "%s\n" "no" >&6; }
  11550. fi
  11551. test -n "$ac_ct_CC" && break
  11552. done
  11553. if test "x$ac_ct_CC" = x; then
  11554. CC=""
  11555. else
  11556. case $cross_compiling:$ac_tool_warned in
  11557. yes:)
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11559. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11560. ac_tool_warned=yes ;;
  11561. esac
  11562. CC=$ac_ct_CC
  11563. fi
  11564. fi
  11565. fi
  11566. if test -z "$CC"; then
  11567. if test -n "$ac_tool_prefix"; then
  11568. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11569. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11571. printf %s "checking for $ac_word... " >&6; }
  11572. if test ${ac_cv_prog_CC+y}
  11573. then :
  11574. printf %s "(cached) " >&6
  11575. else $as_nop
  11576. if test -n "$CC"; then
  11577. ac_cv_prog_CC="$CC" # Let the user override the test.
  11578. else
  11579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11580. for as_dir in $PATH
  11581. do
  11582. IFS=$as_save_IFS
  11583. case $as_dir in #(((
  11584. '') as_dir=./ ;;
  11585. */) ;;
  11586. *) as_dir=$as_dir/ ;;
  11587. esac
  11588. for ac_exec_ext in '' $ac_executable_extensions; do
  11589. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11590. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11592. break 2
  11593. fi
  11594. done
  11595. done
  11596. IFS=$as_save_IFS
  11597. fi
  11598. fi
  11599. CC=$ac_cv_prog_CC
  11600. if test -n "$CC"; then
  11601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11602. printf "%s\n" "$CC" >&6; }
  11603. else
  11604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11605. printf "%s\n" "no" >&6; }
  11606. fi
  11607. fi
  11608. if test -z "$ac_cv_prog_CC"; then
  11609. ac_ct_CC=$CC
  11610. # Extract the first word of "clang", so it can be a program name with args.
  11611. set dummy clang; ac_word=$2
  11612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11613. printf %s "checking for $ac_word... " >&6; }
  11614. if test ${ac_cv_prog_ac_ct_CC+y}
  11615. then :
  11616. printf %s "(cached) " >&6
  11617. else $as_nop
  11618. if test -n "$ac_ct_CC"; then
  11619. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11620. else
  11621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11622. for as_dir in $PATH
  11623. do
  11624. IFS=$as_save_IFS
  11625. case $as_dir in #(((
  11626. '') as_dir=./ ;;
  11627. */) ;;
  11628. *) as_dir=$as_dir/ ;;
  11629. esac
  11630. for ac_exec_ext in '' $ac_executable_extensions; do
  11631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11632. ac_cv_prog_ac_ct_CC="clang"
  11633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11634. break 2
  11635. fi
  11636. done
  11637. done
  11638. IFS=$as_save_IFS
  11639. fi
  11640. fi
  11641. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11642. if test -n "$ac_ct_CC"; then
  11643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11644. printf "%s\n" "$ac_ct_CC" >&6; }
  11645. else
  11646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11647. printf "%s\n" "no" >&6; }
  11648. fi
  11649. if test "x$ac_ct_CC" = x; then
  11650. CC=""
  11651. else
  11652. case $cross_compiling:$ac_tool_warned in
  11653. yes:)
  11654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11655. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11656. ac_tool_warned=yes ;;
  11657. esac
  11658. CC=$ac_ct_CC
  11659. fi
  11660. else
  11661. CC="$ac_cv_prog_CC"
  11662. fi
  11663. fi
  11664. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11665. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11666. as_fn_error $? "no acceptable C compiler found in \$PATH
  11667. See \`config.log' for more details" "$LINENO" 5; }
  11668. # Provide some information about the compiler.
  11669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11670. set X $ac_compile
  11671. ac_compiler=$2
  11672. for ac_option in --version -v -V -qversion -version; do
  11673. { { ac_try="$ac_compiler $ac_option >&5"
  11674. case "(($ac_try" in
  11675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11676. *) ac_try_echo=$ac_try;;
  11677. esac
  11678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11679. printf "%s\n" "$ac_try_echo"; } >&5
  11680. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11681. ac_status=$?
  11682. if test -s conftest.err; then
  11683. sed '10a\
  11684. ... rest of stderr output deleted ...
  11685. 10q' conftest.err >conftest.er1
  11686. cat conftest.er1 >&5
  11687. fi
  11688. rm -f conftest.er1 conftest.err
  11689. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11690. test $ac_status = 0; }
  11691. done
  11692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11693. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11694. if test ${ac_cv_c_compiler_gnu+y}
  11695. then :
  11696. printf %s "(cached) " >&6
  11697. else $as_nop
  11698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11699. /* end confdefs.h. */
  11700. int
  11701. main (void)
  11702. {
  11703. #ifndef __GNUC__
  11704. choke me
  11705. #endif
  11706. ;
  11707. return 0;
  11708. }
  11709. _ACEOF
  11710. if ac_fn_c_try_compile "$LINENO"
  11711. then :
  11712. ac_compiler_gnu=yes
  11713. else $as_nop
  11714. ac_compiler_gnu=no
  11715. fi
  11716. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11717. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11718. fi
  11719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11720. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11722. if test $ac_compiler_gnu = yes; then
  11723. GCC=yes
  11724. else
  11725. GCC=
  11726. fi
  11727. ac_test_CFLAGS=${CFLAGS+y}
  11728. ac_save_CFLAGS=$CFLAGS
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11730. printf %s "checking whether $CC accepts -g... " >&6; }
  11731. if test ${ac_cv_prog_cc_g+y}
  11732. then :
  11733. printf %s "(cached) " >&6
  11734. else $as_nop
  11735. ac_save_c_werror_flag=$ac_c_werror_flag
  11736. ac_c_werror_flag=yes
  11737. ac_cv_prog_cc_g=no
  11738. CFLAGS="-g"
  11739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11740. /* end confdefs.h. */
  11741. int
  11742. main (void)
  11743. {
  11744. ;
  11745. return 0;
  11746. }
  11747. _ACEOF
  11748. if ac_fn_c_try_compile "$LINENO"
  11749. then :
  11750. ac_cv_prog_cc_g=yes
  11751. else $as_nop
  11752. CFLAGS=""
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. int
  11756. main (void)
  11757. {
  11758. ;
  11759. return 0;
  11760. }
  11761. _ACEOF
  11762. if ac_fn_c_try_compile "$LINENO"
  11763. then :
  11764. else $as_nop
  11765. ac_c_werror_flag=$ac_save_c_werror_flag
  11766. CFLAGS="-g"
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. int
  11770. main (void)
  11771. {
  11772. ;
  11773. return 0;
  11774. }
  11775. _ACEOF
  11776. if ac_fn_c_try_compile "$LINENO"
  11777. then :
  11778. ac_cv_prog_cc_g=yes
  11779. fi
  11780. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11781. fi
  11782. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11783. fi
  11784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11785. ac_c_werror_flag=$ac_save_c_werror_flag
  11786. fi
  11787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11788. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11789. if test $ac_test_CFLAGS; then
  11790. CFLAGS=$ac_save_CFLAGS
  11791. elif test $ac_cv_prog_cc_g = yes; then
  11792. if test "$GCC" = yes; then
  11793. CFLAGS="-g -O2"
  11794. else
  11795. CFLAGS="-g"
  11796. fi
  11797. else
  11798. if test "$GCC" = yes; then
  11799. CFLAGS="-O2"
  11800. else
  11801. CFLAGS=
  11802. fi
  11803. fi
  11804. ac_prog_cc_stdc=no
  11805. if test x$ac_prog_cc_stdc = xno
  11806. then :
  11807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11808. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11809. if test ${ac_cv_prog_cc_c11+y}
  11810. then :
  11811. printf %s "(cached) " >&6
  11812. else $as_nop
  11813. ac_cv_prog_cc_c11=no
  11814. ac_save_CC=$CC
  11815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11816. /* end confdefs.h. */
  11817. $ac_c_conftest_c11_program
  11818. _ACEOF
  11819. for ac_arg in '' -std=gnu11
  11820. do
  11821. CC="$ac_save_CC $ac_arg"
  11822. if ac_fn_c_try_compile "$LINENO"
  11823. then :
  11824. ac_cv_prog_cc_c11=$ac_arg
  11825. fi
  11826. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11827. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11828. done
  11829. rm -f conftest.$ac_ext
  11830. CC=$ac_save_CC
  11831. fi
  11832. if test "x$ac_cv_prog_cc_c11" = xno
  11833. then :
  11834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11835. printf "%s\n" "unsupported" >&6; }
  11836. else $as_nop
  11837. if test "x$ac_cv_prog_cc_c11" = x
  11838. then :
  11839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11840. printf "%s\n" "none needed" >&6; }
  11841. else $as_nop
  11842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11843. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11844. CC="$CC $ac_cv_prog_cc_c11"
  11845. fi
  11846. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11847. ac_prog_cc_stdc=c11
  11848. fi
  11849. fi
  11850. if test x$ac_prog_cc_stdc = xno
  11851. then :
  11852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11853. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11854. if test ${ac_cv_prog_cc_c99+y}
  11855. then :
  11856. printf %s "(cached) " >&6
  11857. else $as_nop
  11858. ac_cv_prog_cc_c99=no
  11859. ac_save_CC=$CC
  11860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11861. /* end confdefs.h. */
  11862. $ac_c_conftest_c99_program
  11863. _ACEOF
  11864. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11865. do
  11866. CC="$ac_save_CC $ac_arg"
  11867. if ac_fn_c_try_compile "$LINENO"
  11868. then :
  11869. ac_cv_prog_cc_c99=$ac_arg
  11870. fi
  11871. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11872. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11873. done
  11874. rm -f conftest.$ac_ext
  11875. CC=$ac_save_CC
  11876. fi
  11877. if test "x$ac_cv_prog_cc_c99" = xno
  11878. then :
  11879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11880. printf "%s\n" "unsupported" >&6; }
  11881. else $as_nop
  11882. if test "x$ac_cv_prog_cc_c99" = x
  11883. then :
  11884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11885. printf "%s\n" "none needed" >&6; }
  11886. else $as_nop
  11887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11888. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11889. CC="$CC $ac_cv_prog_cc_c99"
  11890. fi
  11891. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11892. ac_prog_cc_stdc=c99
  11893. fi
  11894. fi
  11895. if test x$ac_prog_cc_stdc = xno
  11896. then :
  11897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11898. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11899. if test ${ac_cv_prog_cc_c89+y}
  11900. then :
  11901. printf %s "(cached) " >&6
  11902. else $as_nop
  11903. ac_cv_prog_cc_c89=no
  11904. ac_save_CC=$CC
  11905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11906. /* end confdefs.h. */
  11907. $ac_c_conftest_c89_program
  11908. _ACEOF
  11909. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11910. do
  11911. CC="$ac_save_CC $ac_arg"
  11912. if ac_fn_c_try_compile "$LINENO"
  11913. then :
  11914. ac_cv_prog_cc_c89=$ac_arg
  11915. fi
  11916. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11917. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11918. done
  11919. rm -f conftest.$ac_ext
  11920. CC=$ac_save_CC
  11921. fi
  11922. if test "x$ac_cv_prog_cc_c89" = xno
  11923. then :
  11924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11925. printf "%s\n" "unsupported" >&6; }
  11926. else $as_nop
  11927. if test "x$ac_cv_prog_cc_c89" = x
  11928. then :
  11929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11930. printf "%s\n" "none needed" >&6; }
  11931. else $as_nop
  11932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11933. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11934. CC="$CC $ac_cv_prog_cc_c89"
  11935. fi
  11936. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11937. ac_prog_cc_stdc=c89
  11938. fi
  11939. fi
  11940. ac_ext=c
  11941. ac_cpp='$CPP $CPPFLAGS'
  11942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11945. ac_ext=cpp
  11946. ac_cpp='$CXXCPP $CPPFLAGS'
  11947. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11948. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11949. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11950. if test -z "$CXX"; then
  11951. if test -n "$CCC"; then
  11952. CXX=$CCC
  11953. else
  11954. if test -n "$ac_tool_prefix"; then
  11955. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11956. do
  11957. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11958. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11960. printf %s "checking for $ac_word... " >&6; }
  11961. if test ${ac_cv_prog_CXX+y}
  11962. then :
  11963. printf %s "(cached) " >&6
  11964. else $as_nop
  11965. if test -n "$CXX"; then
  11966. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11967. else
  11968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11969. for as_dir in $PATH
  11970. do
  11971. IFS=$as_save_IFS
  11972. case $as_dir in #(((
  11973. '') as_dir=./ ;;
  11974. */) ;;
  11975. *) as_dir=$as_dir/ ;;
  11976. esac
  11977. for ac_exec_ext in '' $ac_executable_extensions; do
  11978. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11979. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11981. break 2
  11982. fi
  11983. done
  11984. done
  11985. IFS=$as_save_IFS
  11986. fi
  11987. fi
  11988. CXX=$ac_cv_prog_CXX
  11989. if test -n "$CXX"; then
  11990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11991. printf "%s\n" "$CXX" >&6; }
  11992. else
  11993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11994. printf "%s\n" "no" >&6; }
  11995. fi
  11996. test -n "$CXX" && break
  11997. done
  11998. fi
  11999. if test -z "$CXX"; then
  12000. ac_ct_CXX=$CXX
  12001. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12002. do
  12003. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12004. set dummy $ac_prog; ac_word=$2
  12005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12006. printf %s "checking for $ac_word... " >&6; }
  12007. if test ${ac_cv_prog_ac_ct_CXX+y}
  12008. then :
  12009. printf %s "(cached) " >&6
  12010. else $as_nop
  12011. if test -n "$ac_ct_CXX"; then
  12012. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12013. else
  12014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12015. for as_dir in $PATH
  12016. do
  12017. IFS=$as_save_IFS
  12018. case $as_dir in #(((
  12019. '') as_dir=./ ;;
  12020. */) ;;
  12021. *) as_dir=$as_dir/ ;;
  12022. esac
  12023. for ac_exec_ext in '' $ac_executable_extensions; do
  12024. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12025. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12027. break 2
  12028. fi
  12029. done
  12030. done
  12031. IFS=$as_save_IFS
  12032. fi
  12033. fi
  12034. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12035. if test -n "$ac_ct_CXX"; then
  12036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12037. printf "%s\n" "$ac_ct_CXX" >&6; }
  12038. else
  12039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12040. printf "%s\n" "no" >&6; }
  12041. fi
  12042. test -n "$ac_ct_CXX" && break
  12043. done
  12044. if test "x$ac_ct_CXX" = x; then
  12045. CXX="g++"
  12046. else
  12047. case $cross_compiling:$ac_tool_warned in
  12048. yes:)
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12050. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12051. ac_tool_warned=yes ;;
  12052. esac
  12053. CXX=$ac_ct_CXX
  12054. fi
  12055. fi
  12056. fi
  12057. fi
  12058. # Provide some information about the compiler.
  12059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12060. set X $ac_compile
  12061. ac_compiler=$2
  12062. for ac_option in --version -v -V -qversion; do
  12063. { { ac_try="$ac_compiler $ac_option >&5"
  12064. case "(($ac_try" in
  12065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12066. *) ac_try_echo=$ac_try;;
  12067. esac
  12068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12069. printf "%s\n" "$ac_try_echo"; } >&5
  12070. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12071. ac_status=$?
  12072. if test -s conftest.err; then
  12073. sed '10a\
  12074. ... rest of stderr output deleted ...
  12075. 10q' conftest.err >conftest.er1
  12076. cat conftest.er1 >&5
  12077. fi
  12078. rm -f conftest.er1 conftest.err
  12079. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12080. test $ac_status = 0; }
  12081. done
  12082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12083. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12084. if test ${ac_cv_cxx_compiler_gnu+y}
  12085. then :
  12086. printf %s "(cached) " >&6
  12087. else $as_nop
  12088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12089. /* end confdefs.h. */
  12090. int
  12091. main (void)
  12092. {
  12093. #ifndef __GNUC__
  12094. choke me
  12095. #endif
  12096. ;
  12097. return 0;
  12098. }
  12099. _ACEOF
  12100. if ac_fn_cxx_try_compile "$LINENO"
  12101. then :
  12102. ac_compiler_gnu=yes
  12103. else $as_nop
  12104. ac_compiler_gnu=no
  12105. fi
  12106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12107. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12108. fi
  12109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12110. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12111. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12112. if test $ac_compiler_gnu = yes; then
  12113. GXX=yes
  12114. else
  12115. GXX=
  12116. fi
  12117. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12118. ac_save_CXXFLAGS=$CXXFLAGS
  12119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12120. printf %s "checking whether $CXX accepts -g... " >&6; }
  12121. if test ${ac_cv_prog_cxx_g+y}
  12122. then :
  12123. printf %s "(cached) " >&6
  12124. else $as_nop
  12125. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12126. ac_cxx_werror_flag=yes
  12127. ac_cv_prog_cxx_g=no
  12128. CXXFLAGS="-g"
  12129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12130. /* end confdefs.h. */
  12131. int
  12132. main (void)
  12133. {
  12134. ;
  12135. return 0;
  12136. }
  12137. _ACEOF
  12138. if ac_fn_cxx_try_compile "$LINENO"
  12139. then :
  12140. ac_cv_prog_cxx_g=yes
  12141. else $as_nop
  12142. CXXFLAGS=""
  12143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12144. /* end confdefs.h. */
  12145. int
  12146. main (void)
  12147. {
  12148. ;
  12149. return 0;
  12150. }
  12151. _ACEOF
  12152. if ac_fn_cxx_try_compile "$LINENO"
  12153. then :
  12154. else $as_nop
  12155. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12156. CXXFLAGS="-g"
  12157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12158. /* end confdefs.h. */
  12159. int
  12160. main (void)
  12161. {
  12162. ;
  12163. return 0;
  12164. }
  12165. _ACEOF
  12166. if ac_fn_cxx_try_compile "$LINENO"
  12167. then :
  12168. ac_cv_prog_cxx_g=yes
  12169. fi
  12170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12171. fi
  12172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12173. fi
  12174. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12175. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12176. fi
  12177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12178. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12179. if test $ac_test_CXXFLAGS; then
  12180. CXXFLAGS=$ac_save_CXXFLAGS
  12181. elif test $ac_cv_prog_cxx_g = yes; then
  12182. if test "$GXX" = yes; then
  12183. CXXFLAGS="-g -O2"
  12184. else
  12185. CXXFLAGS="-g"
  12186. fi
  12187. else
  12188. if test "$GXX" = yes; then
  12189. CXXFLAGS="-O2"
  12190. else
  12191. CXXFLAGS=
  12192. fi
  12193. fi
  12194. ac_prog_cxx_stdcxx=no
  12195. if test x$ac_prog_cxx_stdcxx = xno
  12196. then :
  12197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12198. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12199. if test ${ac_cv_prog_cxx_11+y}
  12200. then :
  12201. printf %s "(cached) " >&6
  12202. else $as_nop
  12203. ac_cv_prog_cxx_11=no
  12204. ac_save_CXX=$CXX
  12205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12206. /* end confdefs.h. */
  12207. $ac_cxx_conftest_cxx11_program
  12208. _ACEOF
  12209. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12210. do
  12211. CXX="$ac_save_CXX $ac_arg"
  12212. if ac_fn_cxx_try_compile "$LINENO"
  12213. then :
  12214. ac_cv_prog_cxx_cxx11=$ac_arg
  12215. fi
  12216. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12217. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12218. done
  12219. rm -f conftest.$ac_ext
  12220. CXX=$ac_save_CXX
  12221. fi
  12222. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12223. then :
  12224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12225. printf "%s\n" "unsupported" >&6; }
  12226. else $as_nop
  12227. if test "x$ac_cv_prog_cxx_cxx11" = x
  12228. then :
  12229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12230. printf "%s\n" "none needed" >&6; }
  12231. else $as_nop
  12232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12233. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12234. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12235. fi
  12236. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12237. ac_prog_cxx_stdcxx=cxx11
  12238. fi
  12239. fi
  12240. if test x$ac_prog_cxx_stdcxx = xno
  12241. then :
  12242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12243. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12244. if test ${ac_cv_prog_cxx_98+y}
  12245. then :
  12246. printf %s "(cached) " >&6
  12247. else $as_nop
  12248. ac_cv_prog_cxx_98=no
  12249. ac_save_CXX=$CXX
  12250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12251. /* end confdefs.h. */
  12252. $ac_cxx_conftest_cxx98_program
  12253. _ACEOF
  12254. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12255. do
  12256. CXX="$ac_save_CXX $ac_arg"
  12257. if ac_fn_cxx_try_compile "$LINENO"
  12258. then :
  12259. ac_cv_prog_cxx_cxx98=$ac_arg
  12260. fi
  12261. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12262. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12263. done
  12264. rm -f conftest.$ac_ext
  12265. CXX=$ac_save_CXX
  12266. fi
  12267. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12268. then :
  12269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12270. printf "%s\n" "unsupported" >&6; }
  12271. else $as_nop
  12272. if test "x$ac_cv_prog_cxx_cxx98" = x
  12273. then :
  12274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12275. printf "%s\n" "none needed" >&6; }
  12276. else $as_nop
  12277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12278. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12279. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12280. fi
  12281. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12282. ac_prog_cxx_stdcxx=cxx98
  12283. fi
  12284. fi
  12285. ac_ext=c
  12286. ac_cpp='$CPP $CPPFLAGS'
  12287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12290. func_stripname_cnf ()
  12291. {
  12292. case $2 in
  12293. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12294. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12295. esac
  12296. } # func_stripname_cnf
  12297. if test -n "$CXX" && ( test no != "$CXX" &&
  12298. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12299. (test g++ != "$CXX"))); then
  12300. ac_ext=cpp
  12301. ac_cpp='$CXXCPP $CPPFLAGS'
  12302. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12303. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12304. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12306. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12307. if test -z "$CXXCPP"; then
  12308. if test ${ac_cv_prog_CXXCPP+y}
  12309. then :
  12310. printf %s "(cached) " >&6
  12311. else $as_nop
  12312. # Double quotes because $CXX needs to be expanded
  12313. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12314. do
  12315. ac_preproc_ok=false
  12316. for ac_cxx_preproc_warn_flag in '' yes
  12317. do
  12318. # Use a header file that comes with gcc, so configuring glibc
  12319. # with a fresh cross-compiler works.
  12320. # On the NeXT, cc -E runs the code through the compiler's parser,
  12321. # not just through cpp. "Syntax error" is here to catch this case.
  12322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12323. /* end confdefs.h. */
  12324. #include <limits.h>
  12325. Syntax error
  12326. _ACEOF
  12327. if ac_fn_cxx_try_cpp "$LINENO"
  12328. then :
  12329. else $as_nop
  12330. # Broken: fails on valid input.
  12331. continue
  12332. fi
  12333. rm -f conftest.err conftest.i conftest.$ac_ext
  12334. # OK, works on sane cases. Now check whether nonexistent headers
  12335. # can be detected and how.
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. #include <ac_nonexistent.h>
  12339. _ACEOF
  12340. if ac_fn_cxx_try_cpp "$LINENO"
  12341. then :
  12342. # Broken: success on invalid input.
  12343. continue
  12344. else $as_nop
  12345. # Passes both tests.
  12346. ac_preproc_ok=:
  12347. break
  12348. fi
  12349. rm -f conftest.err conftest.i conftest.$ac_ext
  12350. done
  12351. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12352. rm -f conftest.i conftest.err conftest.$ac_ext
  12353. if $ac_preproc_ok
  12354. then :
  12355. break
  12356. fi
  12357. done
  12358. ac_cv_prog_CXXCPP=$CXXCPP
  12359. fi
  12360. CXXCPP=$ac_cv_prog_CXXCPP
  12361. else
  12362. ac_cv_prog_CXXCPP=$CXXCPP
  12363. fi
  12364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12365. printf "%s\n" "$CXXCPP" >&6; }
  12366. ac_preproc_ok=false
  12367. for ac_cxx_preproc_warn_flag in '' yes
  12368. do
  12369. # Use a header file that comes with gcc, so configuring glibc
  12370. # with a fresh cross-compiler works.
  12371. # On the NeXT, cc -E runs the code through the compiler's parser,
  12372. # not just through cpp. "Syntax error" is here to catch this case.
  12373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12374. /* end confdefs.h. */
  12375. #include <limits.h>
  12376. Syntax error
  12377. _ACEOF
  12378. if ac_fn_cxx_try_cpp "$LINENO"
  12379. then :
  12380. else $as_nop
  12381. # Broken: fails on valid input.
  12382. continue
  12383. fi
  12384. rm -f conftest.err conftest.i conftest.$ac_ext
  12385. # OK, works on sane cases. Now check whether nonexistent headers
  12386. # can be detected and how.
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. #include <ac_nonexistent.h>
  12390. _ACEOF
  12391. if ac_fn_cxx_try_cpp "$LINENO"
  12392. then :
  12393. # Broken: success on invalid input.
  12394. continue
  12395. else $as_nop
  12396. # Passes both tests.
  12397. ac_preproc_ok=:
  12398. break
  12399. fi
  12400. rm -f conftest.err conftest.i conftest.$ac_ext
  12401. done
  12402. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12403. rm -f conftest.i conftest.err conftest.$ac_ext
  12404. if $ac_preproc_ok
  12405. then :
  12406. else $as_nop
  12407. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12408. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12409. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12410. See \`config.log' for more details" "$LINENO" 5; }
  12411. fi
  12412. ac_ext=c
  12413. ac_cpp='$CPP $CPPFLAGS'
  12414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12417. else
  12418. _lt_caught_CXX_error=yes
  12419. fi
  12420. ac_ext=cpp
  12421. ac_cpp='$CXXCPP $CPPFLAGS'
  12422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12425. archive_cmds_need_lc_CXX=no
  12426. allow_undefined_flag_CXX=
  12427. always_export_symbols_CXX=no
  12428. archive_expsym_cmds_CXX=
  12429. compiler_needs_object_CXX=no
  12430. export_dynamic_flag_spec_CXX=
  12431. hardcode_direct_CXX=no
  12432. hardcode_direct_absolute_CXX=no
  12433. hardcode_libdir_flag_spec_CXX=
  12434. hardcode_libdir_separator_CXX=
  12435. hardcode_minus_L_CXX=no
  12436. hardcode_shlibpath_var_CXX=unsupported
  12437. hardcode_automatic_CXX=no
  12438. inherit_rpath_CXX=no
  12439. module_cmds_CXX=
  12440. module_expsym_cmds_CXX=
  12441. link_all_deplibs_CXX=unknown
  12442. old_archive_cmds_CXX=$old_archive_cmds
  12443. reload_flag_CXX=$reload_flag
  12444. reload_cmds_CXX=$reload_cmds
  12445. no_undefined_flag_CXX=
  12446. whole_archive_flag_spec_CXX=
  12447. enable_shared_with_static_runtimes_CXX=no
  12448. # Source file extension for C++ test sources.
  12449. ac_ext=cpp
  12450. # Object file extension for compiled C++ test sources.
  12451. objext=o
  12452. objext_CXX=$objext
  12453. # No sense in running all these tests if we already determined that
  12454. # the CXX compiler isn't working. Some variables (like enable_shared)
  12455. # are currently assumed to apply to all compilers on this platform,
  12456. # and will be corrupted by setting them based on a non-working compiler.
  12457. if test yes != "$_lt_caught_CXX_error"; then
  12458. # Code to be used in simple compile tests
  12459. lt_simple_compile_test_code="int some_variable = 0;"
  12460. # Code to be used in simple link tests
  12461. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12462. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12463. # If no C compiler was specified, use CC.
  12464. LTCC=${LTCC-"$CC"}
  12465. # If no C compiler flags were specified, use CFLAGS.
  12466. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12467. # Allow CC to be a program name with arguments.
  12468. compiler=$CC
  12469. # save warnings/boilerplate of simple test code
  12470. ac_outfile=conftest.$ac_objext
  12471. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12472. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12473. _lt_compiler_boilerplate=`cat conftest.err`
  12474. $RM conftest*
  12475. ac_outfile=conftest.$ac_objext
  12476. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12477. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12478. _lt_linker_boilerplate=`cat conftest.err`
  12479. $RM -r conftest*
  12480. # Allow CC to be a program name with arguments.
  12481. lt_save_CC=$CC
  12482. lt_save_CFLAGS=$CFLAGS
  12483. lt_save_LD=$LD
  12484. lt_save_GCC=$GCC
  12485. GCC=$GXX
  12486. lt_save_with_gnu_ld=$with_gnu_ld
  12487. lt_save_path_LD=$lt_cv_path_LD
  12488. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12489. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12490. else
  12491. $as_unset lt_cv_prog_gnu_ld
  12492. fi
  12493. if test -n "${lt_cv_path_LDCXX+set}"; then
  12494. lt_cv_path_LD=$lt_cv_path_LDCXX
  12495. else
  12496. $as_unset lt_cv_path_LD
  12497. fi
  12498. test -z "${LDCXX+set}" || LD=$LDCXX
  12499. CC=${CXX-"c++"}
  12500. CFLAGS=$CXXFLAGS
  12501. compiler=$CC
  12502. compiler_CXX=$CC
  12503. func_cc_basename $compiler
  12504. cc_basename=$func_cc_basename_result
  12505. if test -n "$compiler"; then
  12506. # We don't want -fno-exception when compiling C++ code, so set the
  12507. # no_builtin_flag separately
  12508. if test yes = "$GXX"; then
  12509. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12510. else
  12511. lt_prog_compiler_no_builtin_flag_CXX=
  12512. fi
  12513. if test yes = "$GXX"; then
  12514. # Set up default GNU C++ configuration
  12515. # Check whether --with-gnu-ld was given.
  12516. if test ${with_gnu_ld+y}
  12517. then :
  12518. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12519. else $as_nop
  12520. with_gnu_ld=no
  12521. fi
  12522. ac_prog=ld
  12523. if test yes = "$GCC"; then
  12524. # Check if gcc -print-prog-name=ld gives a path.
  12525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12526. printf %s "checking for ld used by $CC... " >&6; }
  12527. case $host in
  12528. *-*-mingw*)
  12529. # gcc leaves a trailing carriage return, which upsets mingw
  12530. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12531. *)
  12532. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12533. esac
  12534. case $ac_prog in
  12535. # Accept absolute paths.
  12536. [\\/]* | ?:[\\/]*)
  12537. re_direlt='/[^/][^/]*/\.\./'
  12538. # Canonicalize the pathname of ld
  12539. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12540. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12541. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12542. done
  12543. test -z "$LD" && LD=$ac_prog
  12544. ;;
  12545. "")
  12546. # If it fails, then pretend we aren't using GCC.
  12547. ac_prog=ld
  12548. ;;
  12549. *)
  12550. # If it is relative, then search for the first ld in PATH.
  12551. with_gnu_ld=unknown
  12552. ;;
  12553. esac
  12554. elif test yes = "$with_gnu_ld"; then
  12555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12556. printf %s "checking for GNU ld... " >&6; }
  12557. else
  12558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12559. printf %s "checking for non-GNU ld... " >&6; }
  12560. fi
  12561. if test ${lt_cv_path_LD+y}
  12562. then :
  12563. printf %s "(cached) " >&6
  12564. else $as_nop
  12565. if test -z "$LD"; then
  12566. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12567. for ac_dir in $PATH; do
  12568. IFS=$lt_save_ifs
  12569. test -z "$ac_dir" && ac_dir=.
  12570. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12571. lt_cv_path_LD=$ac_dir/$ac_prog
  12572. # Check to see if the program is GNU ld. I'd rather use --version,
  12573. # but apparently some variants of GNU ld only accept -v.
  12574. # Break only if it was the GNU/non-GNU ld that we prefer.
  12575. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12576. *GNU* | *'with BFD'*)
  12577. test no != "$with_gnu_ld" && break
  12578. ;;
  12579. *)
  12580. test yes != "$with_gnu_ld" && break
  12581. ;;
  12582. esac
  12583. fi
  12584. done
  12585. IFS=$lt_save_ifs
  12586. else
  12587. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12588. fi
  12589. fi
  12590. LD=$lt_cv_path_LD
  12591. if test -n "$LD"; then
  12592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12593. printf "%s\n" "$LD" >&6; }
  12594. else
  12595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12596. printf "%s\n" "no" >&6; }
  12597. fi
  12598. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12600. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12601. if test ${lt_cv_prog_gnu_ld+y}
  12602. then :
  12603. printf %s "(cached) " >&6
  12604. else $as_nop
  12605. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12606. case `$LD -v 2>&1 </dev/null` in
  12607. *GNU* | *'with BFD'*)
  12608. lt_cv_prog_gnu_ld=yes
  12609. ;;
  12610. *)
  12611. lt_cv_prog_gnu_ld=no
  12612. ;;
  12613. esac
  12614. fi
  12615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12616. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12617. with_gnu_ld=$lt_cv_prog_gnu_ld
  12618. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12619. # archiving commands below assume that GNU ld is being used.
  12620. if test yes = "$with_gnu_ld"; then
  12621. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12622. 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'
  12623. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12624. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12625. # If archive_cmds runs LD, not CC, wlarc should be empty
  12626. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12627. # investigate it a little bit more. (MM)
  12628. wlarc='$wl'
  12629. # ancient GNU ld didn't support --whole-archive et. al.
  12630. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12631. $GREP 'no-whole-archive' > /dev/null; then
  12632. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12633. else
  12634. whole_archive_flag_spec_CXX=
  12635. fi
  12636. else
  12637. with_gnu_ld=no
  12638. wlarc=
  12639. # A generic and very simple default shared library creation
  12640. # command for GNU C++ for the case where it uses the native
  12641. # linker, instead of GNU ld. If possible, this setting should
  12642. # overridden to take advantage of the native linker features on
  12643. # the platform it is being used on.
  12644. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12645. fi
  12646. # Commands to make compiler produce verbose output that lists
  12647. # what "hidden" libraries, object files and flags are used when
  12648. # linking a shared library.
  12649. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12650. else
  12651. GXX=no
  12652. with_gnu_ld=no
  12653. wlarc=
  12654. fi
  12655. # PORTME: fill in a description of your system's C++ link characteristics
  12656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12657. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12658. ld_shlibs_CXX=yes
  12659. case $host_os in
  12660. aix3*)
  12661. # FIXME: insert proper C++ library support
  12662. ld_shlibs_CXX=no
  12663. ;;
  12664. aix[4-9]*)
  12665. if test ia64 = "$host_cpu"; then
  12666. # On IA64, the linker does run time linking by default, so we don't
  12667. # have to do anything special.
  12668. aix_use_runtimelinking=no
  12669. exp_sym_flag='-Bexport'
  12670. no_entry_flag=
  12671. else
  12672. aix_use_runtimelinking=no
  12673. # Test if we are trying to use run time linking or normal
  12674. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12675. # have runtime linking enabled, and use it for executables.
  12676. # For shared libraries, we enable/disable runtime linking
  12677. # depending on the kind of the shared library created -
  12678. # when "with_aix_soname,aix_use_runtimelinking" is:
  12679. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12680. # "aix,yes" lib.so shared, rtl:yes, for executables
  12681. # lib.a static archive
  12682. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12683. # lib.a(lib.so.V) shared, rtl:no, for executables
  12684. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12685. # lib.a(lib.so.V) shared, rtl:no
  12686. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12687. # lib.a static archive
  12688. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12689. for ld_flag in $LDFLAGS; do
  12690. case $ld_flag in
  12691. *-brtl*)
  12692. aix_use_runtimelinking=yes
  12693. break
  12694. ;;
  12695. esac
  12696. done
  12697. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12698. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12699. # so we don't have lib.a shared libs to link our executables.
  12700. # We have to force runtime linking in this case.
  12701. aix_use_runtimelinking=yes
  12702. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12703. fi
  12704. ;;
  12705. esac
  12706. exp_sym_flag='-bexport'
  12707. no_entry_flag='-bnoentry'
  12708. fi
  12709. # When large executables or shared objects are built, AIX ld can
  12710. # have problems creating the table of contents. If linking a library
  12711. # or program results in "error TOC overflow" add -mminimal-toc to
  12712. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12713. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12714. archive_cmds_CXX=''
  12715. hardcode_direct_CXX=yes
  12716. hardcode_direct_absolute_CXX=yes
  12717. hardcode_libdir_separator_CXX=':'
  12718. link_all_deplibs_CXX=yes
  12719. file_list_spec_CXX='$wl-f,'
  12720. case $with_aix_soname,$aix_use_runtimelinking in
  12721. aix,*) ;; # no import file
  12722. svr4,* | *,yes) # use import file
  12723. # The Import File defines what to hardcode.
  12724. hardcode_direct_CXX=no
  12725. hardcode_direct_absolute_CXX=no
  12726. ;;
  12727. esac
  12728. if test yes = "$GXX"; then
  12729. case $host_os in aix4.[012]|aix4.[012].*)
  12730. # We only want to do this on AIX 4.2 and lower, the check
  12731. # below for broken collect2 doesn't work under 4.3+
  12732. collect2name=`$CC -print-prog-name=collect2`
  12733. if test -f "$collect2name" &&
  12734. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12735. then
  12736. # We have reworked collect2
  12737. :
  12738. else
  12739. # We have old collect2
  12740. hardcode_direct_CXX=unsupported
  12741. # It fails to find uninstalled libraries when the uninstalled
  12742. # path is not listed in the libpath. Setting hardcode_minus_L
  12743. # to unsupported forces relinking
  12744. hardcode_minus_L_CXX=yes
  12745. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12746. hardcode_libdir_separator_CXX=
  12747. fi
  12748. esac
  12749. shared_flag='-shared'
  12750. if test yes = "$aix_use_runtimelinking"; then
  12751. shared_flag=$shared_flag' $wl-G'
  12752. fi
  12753. # Need to ensure runtime linking is disabled for the traditional
  12754. # shared library, or the linker may eventually find shared libraries
  12755. # /with/ Import File - we do not want to mix them.
  12756. shared_flag_aix='-shared'
  12757. shared_flag_svr4='-shared $wl-G'
  12758. else
  12759. # not using gcc
  12760. if test ia64 = "$host_cpu"; then
  12761. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12762. # chokes on -Wl,-G. The following line is correct:
  12763. shared_flag='-G'
  12764. else
  12765. if test yes = "$aix_use_runtimelinking"; then
  12766. shared_flag='$wl-G'
  12767. else
  12768. shared_flag='$wl-bM:SRE'
  12769. fi
  12770. shared_flag_aix='$wl-bM:SRE'
  12771. shared_flag_svr4='$wl-G'
  12772. fi
  12773. fi
  12774. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12775. # It seems that -bexpall does not export symbols beginning with
  12776. # underscore (_), so it is better to generate a list of symbols to
  12777. # export.
  12778. always_export_symbols_CXX=yes
  12779. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12780. # Warning - without using the other runtime loading flags (-brtl),
  12781. # -berok will link without error, but may produce a broken library.
  12782. # The "-G" linker flag allows undefined symbols.
  12783. no_undefined_flag_CXX='-bernotok'
  12784. # Determine the default libpath from the value encoded in an empty
  12785. # executable.
  12786. if test set = "${lt_cv_aix_libpath+set}"; then
  12787. aix_libpath=$lt_cv_aix_libpath
  12788. else
  12789. if test ${lt_cv_aix_libpath__CXX+y}
  12790. then :
  12791. printf %s "(cached) " >&6
  12792. else $as_nop
  12793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12794. /* end confdefs.h. */
  12795. int
  12796. main (void)
  12797. {
  12798. ;
  12799. return 0;
  12800. }
  12801. _ACEOF
  12802. if ac_fn_cxx_try_link "$LINENO"
  12803. then :
  12804. lt_aix_libpath_sed='
  12805. /Import File Strings/,/^$/ {
  12806. /^0/ {
  12807. s/^0 *\([^ ]*\) *$/\1/
  12808. p
  12809. }
  12810. }'
  12811. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12812. # Check for a 64-bit object if we didn't find anything.
  12813. if test -z "$lt_cv_aix_libpath__CXX"; then
  12814. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12815. fi
  12816. fi
  12817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12818. conftest$ac_exeext conftest.$ac_ext
  12819. if test -z "$lt_cv_aix_libpath__CXX"; then
  12820. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12821. fi
  12822. fi
  12823. aix_libpath=$lt_cv_aix_libpath__CXX
  12824. fi
  12825. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12826. 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
  12827. else
  12828. if test ia64 = "$host_cpu"; then
  12829. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12830. allow_undefined_flag_CXX="-z nodefs"
  12831. 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"
  12832. else
  12833. # Determine the default libpath from the value encoded in an
  12834. # empty executable.
  12835. if test set = "${lt_cv_aix_libpath+set}"; then
  12836. aix_libpath=$lt_cv_aix_libpath
  12837. else
  12838. if test ${lt_cv_aix_libpath__CXX+y}
  12839. then :
  12840. printf %s "(cached) " >&6
  12841. else $as_nop
  12842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12843. /* end confdefs.h. */
  12844. int
  12845. main (void)
  12846. {
  12847. ;
  12848. return 0;
  12849. }
  12850. _ACEOF
  12851. if ac_fn_cxx_try_link "$LINENO"
  12852. then :
  12853. lt_aix_libpath_sed='
  12854. /Import File Strings/,/^$/ {
  12855. /^0/ {
  12856. s/^0 *\([^ ]*\) *$/\1/
  12857. p
  12858. }
  12859. }'
  12860. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12861. # Check for a 64-bit object if we didn't find anything.
  12862. if test -z "$lt_cv_aix_libpath__CXX"; then
  12863. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12864. fi
  12865. fi
  12866. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12867. conftest$ac_exeext conftest.$ac_ext
  12868. if test -z "$lt_cv_aix_libpath__CXX"; then
  12869. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12870. fi
  12871. fi
  12872. aix_libpath=$lt_cv_aix_libpath__CXX
  12873. fi
  12874. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12875. # Warning - without using the other run time loading flags,
  12876. # -berok will link without error, but may produce a broken library.
  12877. no_undefined_flag_CXX=' $wl-bernotok'
  12878. allow_undefined_flag_CXX=' $wl-berok'
  12879. if test yes = "$with_gnu_ld"; then
  12880. # We only use this code for GNU lds that support --whole-archive.
  12881. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12882. else
  12883. # Exported symbols can be pulled into shared objects from archives
  12884. whole_archive_flag_spec_CXX='$convenience'
  12885. fi
  12886. archive_cmds_need_lc_CXX=yes
  12887. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12888. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12889. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12890. if test svr4 != "$with_aix_soname"; then
  12891. # This is similar to how AIX traditionally builds its shared
  12892. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12893. 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'
  12894. fi
  12895. if test aix != "$with_aix_soname"; then
  12896. 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'
  12897. else
  12898. # used by -dlpreopen to get the symbols
  12899. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12900. fi
  12901. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12902. fi
  12903. fi
  12904. ;;
  12905. beos*)
  12906. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12907. allow_undefined_flag_CXX=unsupported
  12908. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12909. # support --undefined. This deserves some investigation. FIXME
  12910. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12911. else
  12912. ld_shlibs_CXX=no
  12913. fi
  12914. ;;
  12915. chorus*)
  12916. case $cc_basename in
  12917. *)
  12918. # FIXME: insert proper C++ library support
  12919. ld_shlibs_CXX=no
  12920. ;;
  12921. esac
  12922. ;;
  12923. cygwin* | mingw* | pw32* | cegcc*)
  12924. case $GXX,$cc_basename in
  12925. ,cl* | no,cl*)
  12926. # Native MSVC
  12927. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12928. # no search path for DLLs.
  12929. hardcode_libdir_flag_spec_CXX=' '
  12930. allow_undefined_flag_CXX=unsupported
  12931. always_export_symbols_CXX=yes
  12932. file_list_spec_CXX='@'
  12933. # Tell ltmain to make .lib files, not .a files.
  12934. libext=lib
  12935. # Tell ltmain to make .dll files, not .so files.
  12936. shrext_cmds=.dll
  12937. # FIXME: Setting linknames here is a bad hack.
  12938. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12939. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12940. cp "$export_symbols" "$output_objdir/$soname.def";
  12941. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12942. else
  12943. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12944. fi~
  12945. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12946. linknames='
  12947. # The linker will not automatically build a static lib if we build a DLL.
  12948. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12949. enable_shared_with_static_runtimes_CXX=yes
  12950. # Don't use ranlib
  12951. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12952. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12953. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12954. case $lt_outputfile in
  12955. *.exe|*.EXE) ;;
  12956. *)
  12957. lt_outputfile=$lt_outputfile.exe
  12958. lt_tool_outputfile=$lt_tool_outputfile.exe
  12959. ;;
  12960. esac~
  12961. func_to_tool_file "$lt_outputfile"~
  12962. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12963. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12964. $RM "$lt_outputfile.manifest";
  12965. fi'
  12966. ;;
  12967. *)
  12968. # g++
  12969. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12970. # as there is no search path for DLLs.
  12971. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12972. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12973. allow_undefined_flag_CXX=unsupported
  12974. always_export_symbols_CXX=no
  12975. enable_shared_with_static_runtimes_CXX=yes
  12976. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12977. 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'
  12978. # If the export-symbols file already is a .def file, use it as
  12979. # is; otherwise, prepend EXPORTS...
  12980. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12981. cp $export_symbols $output_objdir/$soname.def;
  12982. else
  12983. echo EXPORTS > $output_objdir/$soname.def;
  12984. cat $export_symbols >> $output_objdir/$soname.def;
  12985. fi~
  12986. $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'
  12987. else
  12988. ld_shlibs_CXX=no
  12989. fi
  12990. ;;
  12991. esac
  12992. ;;
  12993. darwin* | rhapsody*)
  12994. archive_cmds_need_lc_CXX=no
  12995. hardcode_direct_CXX=no
  12996. hardcode_automatic_CXX=yes
  12997. hardcode_shlibpath_var_CXX=unsupported
  12998. if test yes = "$lt_cv_ld_force_load"; then
  12999. 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\"`'
  13000. else
  13001. whole_archive_flag_spec_CXX=''
  13002. fi
  13003. link_all_deplibs_CXX=yes
  13004. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13005. case $cc_basename in
  13006. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13007. *) _lt_dar_can_shared=$GCC ;;
  13008. esac
  13009. if test yes = "$_lt_dar_can_shared"; then
  13010. output_verbose_link_cmd=func_echo_all
  13011. 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"
  13012. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13013. 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"
  13014. 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"
  13015. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13016. 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"
  13017. 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"
  13018. fi
  13019. else
  13020. ld_shlibs_CXX=no
  13021. fi
  13022. ;;
  13023. os2*)
  13024. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13025. hardcode_minus_L_CXX=yes
  13026. allow_undefined_flag_CXX=unsupported
  13027. shrext_cmds=.dll
  13028. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13029. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13030. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13031. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13032. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13033. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13034. emximp -o $lib $output_objdir/$libname.def'
  13035. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13036. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13037. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13038. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13039. prefix_cmds="$SED"~
  13040. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13041. prefix_cmds="$prefix_cmds -e 1d";
  13042. fi~
  13043. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13044. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13045. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13046. emximp -o $lib $output_objdir/$libname.def'
  13047. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13048. enable_shared_with_static_runtimes_CXX=yes
  13049. file_list_spec_CXX='@'
  13050. ;;
  13051. dgux*)
  13052. case $cc_basename in
  13053. ec++*)
  13054. # FIXME: insert proper C++ library support
  13055. ld_shlibs_CXX=no
  13056. ;;
  13057. ghcx*)
  13058. # Green Hills C++ Compiler
  13059. # FIXME: insert proper C++ library support
  13060. ld_shlibs_CXX=no
  13061. ;;
  13062. *)
  13063. # FIXME: insert proper C++ library support
  13064. ld_shlibs_CXX=no
  13065. ;;
  13066. esac
  13067. ;;
  13068. freebsd2.*)
  13069. # C++ shared libraries reported to be fairly broken before
  13070. # switch to ELF
  13071. ld_shlibs_CXX=no
  13072. ;;
  13073. freebsd-elf*)
  13074. archive_cmds_need_lc_CXX=no
  13075. ;;
  13076. freebsd* | dragonfly* | midnightbsd*)
  13077. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13078. # conventions
  13079. ld_shlibs_CXX=yes
  13080. ;;
  13081. haiku*)
  13082. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13083. link_all_deplibs_CXX=yes
  13084. ;;
  13085. hpux9*)
  13086. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13087. hardcode_libdir_separator_CXX=:
  13088. export_dynamic_flag_spec_CXX='$wl-E'
  13089. hardcode_direct_CXX=yes
  13090. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13091. # but as the default
  13092. # location of the library.
  13093. case $cc_basename in
  13094. CC*)
  13095. # FIXME: insert proper C++ library support
  13096. ld_shlibs_CXX=no
  13097. ;;
  13098. aCC*)
  13099. 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'
  13100. # Commands to make compiler produce verbose output that lists
  13101. # what "hidden" libraries, object files and flags are used when
  13102. # linking a shared library.
  13103. #
  13104. # There doesn't appear to be a way to prevent this compiler from
  13105. # explicitly linking system object files so we need to strip them
  13106. # from the output so that they don't get included in the library
  13107. # dependencies.
  13108. 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"'
  13109. ;;
  13110. *)
  13111. if test yes = "$GXX"; then
  13112. 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'
  13113. else
  13114. # FIXME: insert proper C++ library support
  13115. ld_shlibs_CXX=no
  13116. fi
  13117. ;;
  13118. esac
  13119. ;;
  13120. hpux10*|hpux11*)
  13121. if test no = "$with_gnu_ld"; then
  13122. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13123. hardcode_libdir_separator_CXX=:
  13124. case $host_cpu in
  13125. hppa*64*|ia64*)
  13126. ;;
  13127. *)
  13128. export_dynamic_flag_spec_CXX='$wl-E'
  13129. ;;
  13130. esac
  13131. fi
  13132. case $host_cpu in
  13133. hppa*64*|ia64*)
  13134. hardcode_direct_CXX=no
  13135. hardcode_shlibpath_var_CXX=no
  13136. ;;
  13137. *)
  13138. hardcode_direct_CXX=yes
  13139. hardcode_direct_absolute_CXX=yes
  13140. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13141. # but as the default
  13142. # location of the library.
  13143. ;;
  13144. esac
  13145. case $cc_basename in
  13146. CC*)
  13147. # FIXME: insert proper C++ library support
  13148. ld_shlibs_CXX=no
  13149. ;;
  13150. aCC*)
  13151. case $host_cpu in
  13152. hppa*64*)
  13153. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13154. ;;
  13155. ia64*)
  13156. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13157. ;;
  13158. *)
  13159. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13160. ;;
  13161. esac
  13162. # Commands to make compiler produce verbose output that lists
  13163. # what "hidden" libraries, object files and flags are used when
  13164. # linking a shared library.
  13165. #
  13166. # There doesn't appear to be a way to prevent this compiler from
  13167. # explicitly linking system object files so we need to strip them
  13168. # from the output so that they don't get included in the library
  13169. # dependencies.
  13170. 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"'
  13171. ;;
  13172. *)
  13173. if test yes = "$GXX"; then
  13174. if test no = "$with_gnu_ld"; then
  13175. case $host_cpu in
  13176. hppa*64*)
  13177. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13178. ;;
  13179. ia64*)
  13180. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13181. ;;
  13182. *)
  13183. 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'
  13184. ;;
  13185. esac
  13186. fi
  13187. else
  13188. # FIXME: insert proper C++ library support
  13189. ld_shlibs_CXX=no
  13190. fi
  13191. ;;
  13192. esac
  13193. ;;
  13194. interix[3-9]*)
  13195. hardcode_direct_CXX=no
  13196. hardcode_shlibpath_var_CXX=no
  13197. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13198. export_dynamic_flag_spec_CXX='$wl-E'
  13199. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13200. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13201. # default) and relocated if they conflict, which is a slow very memory
  13202. # consuming and fragmenting process. To avoid this, we pick a random,
  13203. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13204. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13205. 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'
  13206. 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'
  13207. ;;
  13208. irix5* | irix6*)
  13209. case $cc_basename in
  13210. CC*)
  13211. # SGI C++
  13212. 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'
  13213. # Archives containing C++ object files must be created using
  13214. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13215. # necessary to make sure instantiated templates are included
  13216. # in the archive.
  13217. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13218. ;;
  13219. *)
  13220. if test yes = "$GXX"; then
  13221. if test no = "$with_gnu_ld"; then
  13222. 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'
  13223. else
  13224. 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'
  13225. fi
  13226. fi
  13227. link_all_deplibs_CXX=yes
  13228. ;;
  13229. esac
  13230. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13231. hardcode_libdir_separator_CXX=:
  13232. inherit_rpath_CXX=yes
  13233. ;;
  13234. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13235. case $cc_basename in
  13236. KCC*)
  13237. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13238. # KCC will only create a shared library if the output file
  13239. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13240. # to its proper name (with version) after linking.
  13241. 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'
  13242. 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'
  13243. # Commands to make compiler produce verbose output that lists
  13244. # what "hidden" libraries, object files and flags are used when
  13245. # linking a shared library.
  13246. #
  13247. # There doesn't appear to be a way to prevent this compiler from
  13248. # explicitly linking system object files so we need to strip them
  13249. # from the output so that they don't get included in the library
  13250. # dependencies.
  13251. 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"'
  13252. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13253. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13254. # Archives containing C++ object files must be created using
  13255. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13256. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13257. ;;
  13258. icpc* | ecpc* )
  13259. # Intel C++
  13260. with_gnu_ld=yes
  13261. # version 8.0 and above of icpc choke on multiply defined symbols
  13262. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13263. # earlier do not add the objects themselves.
  13264. case `$CC -V 2>&1` in
  13265. *"Version 7."*)
  13266. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13267. 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'
  13268. ;;
  13269. *) # Version 8.0 or newer
  13270. tmp_idyn=
  13271. case $host_cpu in
  13272. ia64*) tmp_idyn=' -i_dynamic';;
  13273. esac
  13274. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13275. 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'
  13276. ;;
  13277. esac
  13278. archive_cmds_need_lc_CXX=no
  13279. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13280. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13281. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13282. ;;
  13283. pgCC* | pgcpp*)
  13284. # Portland Group C++ compiler
  13285. case `$CC -V` in
  13286. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13287. prelink_cmds_CXX='tpldir=Template.dir~
  13288. rm -rf $tpldir~
  13289. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13290. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13291. old_archive_cmds_CXX='tpldir=Template.dir~
  13292. rm -rf $tpldir~
  13293. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13294. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13295. $RANLIB $oldlib'
  13296. archive_cmds_CXX='tpldir=Template.dir~
  13297. rm -rf $tpldir~
  13298. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13299. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13300. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13301. rm -rf $tpldir~
  13302. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13303. $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'
  13304. ;;
  13305. *) # Version 6 and above use weak symbols
  13306. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13307. 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'
  13308. ;;
  13309. esac
  13310. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13311. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13312. 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'
  13313. ;;
  13314. cxx*)
  13315. # Compaq C++
  13316. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13317. 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'
  13318. runpath_var=LD_RUN_PATH
  13319. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13320. hardcode_libdir_separator_CXX=:
  13321. # Commands to make compiler produce verbose output that lists
  13322. # what "hidden" libraries, object files and flags are used when
  13323. # linking a shared library.
  13324. #
  13325. # There doesn't appear to be a way to prevent this compiler from
  13326. # explicitly linking system object files so we need to strip them
  13327. # from the output so that they don't get included in the library
  13328. # dependencies.
  13329. 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'
  13330. ;;
  13331. xl* | mpixl* | bgxl*)
  13332. # IBM XL 8.0 on PPC, with GNU ld
  13333. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13334. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13335. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13336. if test yes = "$supports_anon_versioning"; then
  13337. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13338. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13339. echo "local: *; };" >> $output_objdir/$libname.ver~
  13340. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13341. fi
  13342. ;;
  13343. *)
  13344. case `$CC -V 2>&1 | sed 5q` in
  13345. *Sun\ C*)
  13346. # Sun C++ 5.9
  13347. no_undefined_flag_CXX=' -zdefs'
  13348. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13349. 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'
  13350. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13351. 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'
  13352. compiler_needs_object_CXX=yes
  13353. # Not sure whether something based on
  13354. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13355. # would be better.
  13356. output_verbose_link_cmd='func_echo_all'
  13357. # Archives containing C++ object files must be created using
  13358. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13359. # necessary to make sure instantiated templates are included
  13360. # in the archive.
  13361. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13362. ;;
  13363. esac
  13364. ;;
  13365. esac
  13366. ;;
  13367. lynxos*)
  13368. # FIXME: insert proper C++ library support
  13369. ld_shlibs_CXX=no
  13370. ;;
  13371. m88k*)
  13372. # FIXME: insert proper C++ library support
  13373. ld_shlibs_CXX=no
  13374. ;;
  13375. mvs*)
  13376. case $cc_basename in
  13377. cxx*)
  13378. # FIXME: insert proper C++ library support
  13379. ld_shlibs_CXX=no
  13380. ;;
  13381. *)
  13382. # FIXME: insert proper C++ library support
  13383. ld_shlibs_CXX=no
  13384. ;;
  13385. esac
  13386. ;;
  13387. netbsd*)
  13388. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13389. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13390. wlarc=
  13391. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13392. hardcode_direct_CXX=yes
  13393. hardcode_shlibpath_var_CXX=no
  13394. fi
  13395. # Workaround some broken pre-1.5 toolchains
  13396. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13397. ;;
  13398. *nto* | *qnx*)
  13399. ld_shlibs_CXX=yes
  13400. ;;
  13401. openbsd* | bitrig*)
  13402. if test -f /usr/libexec/ld.so; then
  13403. hardcode_direct_CXX=yes
  13404. hardcode_shlibpath_var_CXX=no
  13405. hardcode_direct_absolute_CXX=yes
  13406. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13407. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13408. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13409. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13410. export_dynamic_flag_spec_CXX='$wl-E'
  13411. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13412. fi
  13413. output_verbose_link_cmd=func_echo_all
  13414. else
  13415. ld_shlibs_CXX=no
  13416. fi
  13417. ;;
  13418. osf3* | osf4* | osf5*)
  13419. case $cc_basename in
  13420. KCC*)
  13421. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13422. # KCC will only create a shared library if the output file
  13423. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13424. # to its proper name (with version) after linking.
  13425. 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'
  13426. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13427. hardcode_libdir_separator_CXX=:
  13428. # Archives containing C++ object files must be created using
  13429. # the KAI C++ compiler.
  13430. case $host in
  13431. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13432. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13433. esac
  13434. ;;
  13435. RCC*)
  13436. # Rational C++ 2.4.1
  13437. # FIXME: insert proper C++ library support
  13438. ld_shlibs_CXX=no
  13439. ;;
  13440. cxx*)
  13441. case $host in
  13442. osf3*)
  13443. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13444. 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'
  13445. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13446. ;;
  13447. *)
  13448. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13449. 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'
  13450. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13451. echo "-hidden">> $lib.exp~
  13452. $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~
  13453. $RM $lib.exp'
  13454. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13455. ;;
  13456. esac
  13457. hardcode_libdir_separator_CXX=:
  13458. # Commands to make compiler produce verbose output that lists
  13459. # what "hidden" libraries, object files and flags are used when
  13460. # linking a shared library.
  13461. #
  13462. # There doesn't appear to be a way to prevent this compiler from
  13463. # explicitly linking system object files so we need to strip them
  13464. # from the output so that they don't get included in the library
  13465. # dependencies.
  13466. 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"'
  13467. ;;
  13468. *)
  13469. if test yes,no = "$GXX,$with_gnu_ld"; then
  13470. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13471. case $host in
  13472. osf3*)
  13473. 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'
  13474. ;;
  13475. *)
  13476. 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'
  13477. ;;
  13478. esac
  13479. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13480. hardcode_libdir_separator_CXX=:
  13481. # Commands to make compiler produce verbose output that lists
  13482. # what "hidden" libraries, object files and flags are used when
  13483. # linking a shared library.
  13484. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13485. else
  13486. # FIXME: insert proper C++ library support
  13487. ld_shlibs_CXX=no
  13488. fi
  13489. ;;
  13490. esac
  13491. ;;
  13492. psos*)
  13493. # FIXME: insert proper C++ library support
  13494. ld_shlibs_CXX=no
  13495. ;;
  13496. sunos4*)
  13497. case $cc_basename in
  13498. CC*)
  13499. # Sun C++ 4.x
  13500. # FIXME: insert proper C++ library support
  13501. ld_shlibs_CXX=no
  13502. ;;
  13503. lcc*)
  13504. # Lucid
  13505. # FIXME: insert proper C++ library support
  13506. ld_shlibs_CXX=no
  13507. ;;
  13508. *)
  13509. # FIXME: insert proper C++ library support
  13510. ld_shlibs_CXX=no
  13511. ;;
  13512. esac
  13513. ;;
  13514. solaris*)
  13515. case $cc_basename in
  13516. CC* | sunCC*)
  13517. # Sun C++ 4.2, 5.x and Centerline C++
  13518. archive_cmds_need_lc_CXX=yes
  13519. no_undefined_flag_CXX=' -zdefs'
  13520. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13521. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13522. $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'
  13523. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13524. hardcode_shlibpath_var_CXX=no
  13525. case $host_os in
  13526. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13527. *)
  13528. # The compiler driver will combine and reorder linker options,
  13529. # but understands '-z linker_flag'.
  13530. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13531. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13532. ;;
  13533. esac
  13534. link_all_deplibs_CXX=yes
  13535. output_verbose_link_cmd='func_echo_all'
  13536. # Archives containing C++ object files must be created using
  13537. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13538. # necessary to make sure instantiated templates are included
  13539. # in the archive.
  13540. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13541. ;;
  13542. gcx*)
  13543. # Green Hills C++ Compiler
  13544. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13545. # The C++ compiler must be used to create the archive.
  13546. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13547. ;;
  13548. *)
  13549. # GNU C++ compiler with Solaris linker
  13550. if test yes,no = "$GXX,$with_gnu_ld"; then
  13551. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13552. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13553. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13554. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13555. $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'
  13556. # Commands to make compiler produce verbose output that lists
  13557. # what "hidden" libraries, object files and flags are used when
  13558. # linking a shared library.
  13559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13560. else
  13561. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13562. # platform.
  13563. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13564. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13565. $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'
  13566. # Commands to make compiler produce verbose output that lists
  13567. # what "hidden" libraries, object files and flags are used when
  13568. # linking a shared library.
  13569. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13570. fi
  13571. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13572. case $host_os in
  13573. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13574. *)
  13575. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13576. ;;
  13577. esac
  13578. fi
  13579. ;;
  13580. esac
  13581. ;;
  13582. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13583. no_undefined_flag_CXX='$wl-z,text'
  13584. archive_cmds_need_lc_CXX=no
  13585. hardcode_shlibpath_var_CXX=no
  13586. runpath_var='LD_RUN_PATH'
  13587. case $cc_basename in
  13588. CC*)
  13589. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13590. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13591. ;;
  13592. *)
  13593. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13594. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13595. ;;
  13596. esac
  13597. ;;
  13598. sysv5* | sco3.2v5* | sco5v6*)
  13599. # Note: We CANNOT use -z defs as we might desire, because we do not
  13600. # link with -lc, and that would cause any symbols used from libc to
  13601. # always be unresolved, which means just about no library would
  13602. # ever link correctly. If we're not using GNU ld we use -z text
  13603. # though, which does catch some bad symbols but isn't as heavy-handed
  13604. # as -z defs.
  13605. no_undefined_flag_CXX='$wl-z,text'
  13606. allow_undefined_flag_CXX='$wl-z,nodefs'
  13607. archive_cmds_need_lc_CXX=no
  13608. hardcode_shlibpath_var_CXX=no
  13609. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13610. hardcode_libdir_separator_CXX=':'
  13611. link_all_deplibs_CXX=yes
  13612. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13613. runpath_var='LD_RUN_PATH'
  13614. case $cc_basename in
  13615. CC*)
  13616. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13617. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13618. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13619. '"$old_archive_cmds_CXX"
  13620. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13621. '"$reload_cmds_CXX"
  13622. ;;
  13623. *)
  13624. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13625. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13626. ;;
  13627. esac
  13628. ;;
  13629. tandem*)
  13630. case $cc_basename in
  13631. NCC*)
  13632. # NonStop-UX NCC 3.20
  13633. # FIXME: insert proper C++ library support
  13634. ld_shlibs_CXX=no
  13635. ;;
  13636. *)
  13637. # FIXME: insert proper C++ library support
  13638. ld_shlibs_CXX=no
  13639. ;;
  13640. esac
  13641. ;;
  13642. vxworks*)
  13643. # FIXME: insert proper C++ library support
  13644. ld_shlibs_CXX=no
  13645. ;;
  13646. *)
  13647. # FIXME: insert proper C++ library support
  13648. ld_shlibs_CXX=no
  13649. ;;
  13650. esac
  13651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13652. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13653. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13654. GCC_CXX=$GXX
  13655. LD_CXX=$LD
  13656. ## CAVEAT EMPTOR:
  13657. ## There is no encapsulation within the following macros, do not change
  13658. ## the running order or otherwise move them around unless you know exactly
  13659. ## what you are doing...
  13660. # Dependencies to place before and after the object being linked:
  13661. predep_objects_CXX=
  13662. postdep_objects_CXX=
  13663. predeps_CXX=
  13664. postdeps_CXX=
  13665. compiler_lib_search_path_CXX=
  13666. cat > conftest.$ac_ext <<_LT_EOF
  13667. class Foo
  13668. {
  13669. public:
  13670. Foo (void) { a = 0; }
  13671. private:
  13672. int a;
  13673. };
  13674. _LT_EOF
  13675. _lt_libdeps_save_CFLAGS=$CFLAGS
  13676. case "$CC $CFLAGS " in #(
  13677. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13678. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13679. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13680. esac
  13681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13682. (eval $ac_compile) 2>&5
  13683. ac_status=$?
  13684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13685. test $ac_status = 0; }; then
  13686. # Parse the compiler output and extract the necessary
  13687. # objects, libraries and library flags.
  13688. # Sentinel used to keep track of whether or not we are before
  13689. # the conftest object file.
  13690. pre_test_object_deps_done=no
  13691. for p in `eval "$output_verbose_link_cmd"`; do
  13692. case $prev$p in
  13693. -L* | -R* | -l*)
  13694. # Some compilers place space between "-{L,R}" and the path.
  13695. # Remove the space.
  13696. if test x-L = "x$p" ||
  13697. test x-R = "x$p" ||
  13698. test x-l = "x$p"; then
  13699. prev=$p
  13700. continue
  13701. fi
  13702. # Expand the sysroot to ease extracting the directories later.
  13703. if test -z "$prev"; then
  13704. case $p in
  13705. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13706. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13707. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13708. esac
  13709. fi
  13710. case $p in
  13711. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13712. esac
  13713. if test no = "$pre_test_object_deps_done"; then
  13714. case $prev in
  13715. -L | -R)
  13716. # Internal compiler library paths should come after those
  13717. # provided the user. The postdeps already come after the
  13718. # user supplied libs so there is no need to process them.
  13719. if test -z "$compiler_lib_search_path_CXX"; then
  13720. compiler_lib_search_path_CXX=$prev$p
  13721. else
  13722. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13723. fi
  13724. ;;
  13725. # The "-l" case would never come before the object being
  13726. # linked, so don't bother handling this case.
  13727. esac
  13728. else
  13729. if test -z "$postdeps_CXX"; then
  13730. postdeps_CXX=$prev$p
  13731. else
  13732. postdeps_CXX="${postdeps_CXX} $prev$p"
  13733. fi
  13734. fi
  13735. prev=
  13736. ;;
  13737. *.lto.$objext) ;; # Ignore GCC LTO objects
  13738. *.$objext)
  13739. # This assumes that the test object file only shows up
  13740. # once in the compiler output.
  13741. if test "$p" = "conftest.$objext"; then
  13742. pre_test_object_deps_done=yes
  13743. continue
  13744. fi
  13745. if test no = "$pre_test_object_deps_done"; then
  13746. if test -z "$predep_objects_CXX"; then
  13747. predep_objects_CXX=$p
  13748. else
  13749. predep_objects_CXX="$predep_objects_CXX $p"
  13750. fi
  13751. else
  13752. if test -z "$postdep_objects_CXX"; then
  13753. postdep_objects_CXX=$p
  13754. else
  13755. postdep_objects_CXX="$postdep_objects_CXX $p"
  13756. fi
  13757. fi
  13758. ;;
  13759. *) ;; # Ignore the rest.
  13760. esac
  13761. done
  13762. # Clean up.
  13763. rm -f a.out a.exe
  13764. else
  13765. echo "libtool.m4: error: problem compiling CXX test program"
  13766. fi
  13767. $RM -f confest.$objext
  13768. CFLAGS=$_lt_libdeps_save_CFLAGS
  13769. # PORTME: override above test on systems where it is broken
  13770. case $host_os in
  13771. interix[3-9]*)
  13772. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13773. # hack all around it, let's just trust "g++" to DTRT.
  13774. predep_objects_CXX=
  13775. postdep_objects_CXX=
  13776. postdeps_CXX=
  13777. ;;
  13778. esac
  13779. case " $postdeps_CXX " in
  13780. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13781. esac
  13782. compiler_lib_search_dirs_CXX=
  13783. if test -n "${compiler_lib_search_path_CXX}"; then
  13784. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13785. fi
  13786. lt_prog_compiler_wl_CXX=
  13787. lt_prog_compiler_pic_CXX=
  13788. lt_prog_compiler_static_CXX=
  13789. # C++ specific cases for pic, static, wl, etc.
  13790. if test yes = "$GXX"; then
  13791. lt_prog_compiler_wl_CXX='-Wl,'
  13792. lt_prog_compiler_static_CXX='-static'
  13793. case $host_os in
  13794. aix*)
  13795. # All AIX code is PIC.
  13796. if test ia64 = "$host_cpu"; then
  13797. # AIX 5 now supports IA64 processor
  13798. lt_prog_compiler_static_CXX='-Bstatic'
  13799. fi
  13800. lt_prog_compiler_pic_CXX='-fPIC'
  13801. ;;
  13802. amigaos*)
  13803. case $host_cpu in
  13804. powerpc)
  13805. # see comment about AmigaOS4 .so support
  13806. lt_prog_compiler_pic_CXX='-fPIC'
  13807. ;;
  13808. m68k)
  13809. # FIXME: we need at least 68020 code to build shared libraries, but
  13810. # adding the '-m68020' flag to GCC prevents building anything better,
  13811. # like '-m68040'.
  13812. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13813. ;;
  13814. esac
  13815. ;;
  13816. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13817. # PIC is the default for these OSes.
  13818. ;;
  13819. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13820. # This hack is so that the source file can tell whether it is being
  13821. # built for inclusion in a dll (and should export symbols for example).
  13822. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13823. # (--disable-auto-import) libraries
  13824. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13825. case $host_os in
  13826. os2*)
  13827. lt_prog_compiler_static_CXX='$wl-static'
  13828. ;;
  13829. esac
  13830. ;;
  13831. darwin* | rhapsody*)
  13832. # PIC is the default on this platform
  13833. # Common symbols not allowed in MH_DYLIB files
  13834. lt_prog_compiler_pic_CXX='-fno-common'
  13835. ;;
  13836. *djgpp*)
  13837. # DJGPP does not support shared libraries at all
  13838. lt_prog_compiler_pic_CXX=
  13839. ;;
  13840. haiku*)
  13841. # PIC is the default for Haiku.
  13842. # The "-static" flag exists, but is broken.
  13843. lt_prog_compiler_static_CXX=
  13844. ;;
  13845. interix[3-9]*)
  13846. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13847. # Instead, we relocate shared libraries at runtime.
  13848. ;;
  13849. sysv4*MP*)
  13850. if test -d /usr/nec; then
  13851. lt_prog_compiler_pic_CXX=-Kconform_pic
  13852. fi
  13853. ;;
  13854. hpux*)
  13855. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13856. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13857. # sets the default TLS model and affects inlining.
  13858. case $host_cpu in
  13859. hppa*64*)
  13860. ;;
  13861. *)
  13862. lt_prog_compiler_pic_CXX='-fPIC'
  13863. ;;
  13864. esac
  13865. ;;
  13866. *qnx* | *nto*)
  13867. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13868. # it will coredump.
  13869. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13870. ;;
  13871. *)
  13872. lt_prog_compiler_pic_CXX='-fPIC'
  13873. ;;
  13874. esac
  13875. else
  13876. case $host_os in
  13877. aix[4-9]*)
  13878. # All AIX code is PIC.
  13879. if test ia64 = "$host_cpu"; then
  13880. # AIX 5 now supports IA64 processor
  13881. lt_prog_compiler_static_CXX='-Bstatic'
  13882. else
  13883. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13884. fi
  13885. ;;
  13886. chorus*)
  13887. case $cc_basename in
  13888. cxch68*)
  13889. # Green Hills C++ Compiler
  13890. # _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"
  13891. ;;
  13892. esac
  13893. ;;
  13894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13895. # This hack is so that the source file can tell whether it is being
  13896. # built for inclusion in a dll (and should export symbols for example).
  13897. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13898. ;;
  13899. dgux*)
  13900. case $cc_basename in
  13901. ec++*)
  13902. lt_prog_compiler_pic_CXX='-KPIC'
  13903. ;;
  13904. ghcx*)
  13905. # Green Hills C++ Compiler
  13906. lt_prog_compiler_pic_CXX='-pic'
  13907. ;;
  13908. *)
  13909. ;;
  13910. esac
  13911. ;;
  13912. freebsd* | dragonfly* | midnightbsd*)
  13913. # FreeBSD uses GNU C++
  13914. ;;
  13915. hpux9* | hpux10* | hpux11*)
  13916. case $cc_basename in
  13917. CC*)
  13918. lt_prog_compiler_wl_CXX='-Wl,'
  13919. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13920. if test ia64 != "$host_cpu"; then
  13921. lt_prog_compiler_pic_CXX='+Z'
  13922. fi
  13923. ;;
  13924. aCC*)
  13925. lt_prog_compiler_wl_CXX='-Wl,'
  13926. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13927. case $host_cpu in
  13928. hppa*64*|ia64*)
  13929. # +Z the default
  13930. ;;
  13931. *)
  13932. lt_prog_compiler_pic_CXX='+Z'
  13933. ;;
  13934. esac
  13935. ;;
  13936. *)
  13937. ;;
  13938. esac
  13939. ;;
  13940. interix*)
  13941. # This is c89, which is MS Visual C++ (no shared libs)
  13942. # Anyone wants to do a port?
  13943. ;;
  13944. irix5* | irix6* | nonstopux*)
  13945. case $cc_basename in
  13946. CC*)
  13947. lt_prog_compiler_wl_CXX='-Wl,'
  13948. lt_prog_compiler_static_CXX='-non_shared'
  13949. # CC pic flag -KPIC is the default.
  13950. ;;
  13951. *)
  13952. ;;
  13953. esac
  13954. ;;
  13955. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13956. case $cc_basename in
  13957. KCC*)
  13958. # KAI C++ Compiler
  13959. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13960. lt_prog_compiler_pic_CXX='-fPIC'
  13961. ;;
  13962. ecpc* )
  13963. # old Intel C++ for x86_64, which still supported -KPIC.
  13964. lt_prog_compiler_wl_CXX='-Wl,'
  13965. lt_prog_compiler_pic_CXX='-KPIC'
  13966. lt_prog_compiler_static_CXX='-static'
  13967. ;;
  13968. icpc* )
  13969. # Intel C++, used to be incompatible with GCC.
  13970. # ICC 10 doesn't accept -KPIC any more.
  13971. lt_prog_compiler_wl_CXX='-Wl,'
  13972. lt_prog_compiler_pic_CXX='-fPIC'
  13973. lt_prog_compiler_static_CXX='-static'
  13974. ;;
  13975. pgCC* | pgcpp*)
  13976. # Portland Group C++ compiler
  13977. lt_prog_compiler_wl_CXX='-Wl,'
  13978. lt_prog_compiler_pic_CXX='-fpic'
  13979. lt_prog_compiler_static_CXX='-Bstatic'
  13980. ;;
  13981. cxx*)
  13982. # Compaq C++
  13983. # Make sure the PIC flag is empty. It appears that all Alpha
  13984. # Linux and Compaq Tru64 Unix objects are PIC.
  13985. lt_prog_compiler_pic_CXX=
  13986. lt_prog_compiler_static_CXX='-non_shared'
  13987. ;;
  13988. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13989. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13990. lt_prog_compiler_wl_CXX='-Wl,'
  13991. lt_prog_compiler_pic_CXX='-qpic'
  13992. lt_prog_compiler_static_CXX='-qstaticlink'
  13993. ;;
  13994. *)
  13995. case `$CC -V 2>&1 | sed 5q` in
  13996. *Sun\ C*)
  13997. # Sun C++ 5.9
  13998. lt_prog_compiler_pic_CXX='-KPIC'
  13999. lt_prog_compiler_static_CXX='-Bstatic'
  14000. lt_prog_compiler_wl_CXX='-Qoption ld '
  14001. ;;
  14002. esac
  14003. ;;
  14004. esac
  14005. ;;
  14006. lynxos*)
  14007. ;;
  14008. m88k*)
  14009. ;;
  14010. mvs*)
  14011. case $cc_basename in
  14012. cxx*)
  14013. lt_prog_compiler_pic_CXX='-W c,exportall'
  14014. ;;
  14015. *)
  14016. ;;
  14017. esac
  14018. ;;
  14019. netbsd*)
  14020. ;;
  14021. *qnx* | *nto*)
  14022. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14023. # it will coredump.
  14024. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14025. ;;
  14026. osf3* | osf4* | osf5*)
  14027. case $cc_basename in
  14028. KCC*)
  14029. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14030. ;;
  14031. RCC*)
  14032. # Rational C++ 2.4.1
  14033. lt_prog_compiler_pic_CXX='-pic'
  14034. ;;
  14035. cxx*)
  14036. # Digital/Compaq C++
  14037. lt_prog_compiler_wl_CXX='-Wl,'
  14038. # Make sure the PIC flag is empty. It appears that all Alpha
  14039. # Linux and Compaq Tru64 Unix objects are PIC.
  14040. lt_prog_compiler_pic_CXX=
  14041. lt_prog_compiler_static_CXX='-non_shared'
  14042. ;;
  14043. *)
  14044. ;;
  14045. esac
  14046. ;;
  14047. psos*)
  14048. ;;
  14049. solaris*)
  14050. case $cc_basename in
  14051. CC* | sunCC*)
  14052. # Sun C++ 4.2, 5.x and Centerline C++
  14053. lt_prog_compiler_pic_CXX='-KPIC'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. lt_prog_compiler_wl_CXX='-Qoption ld '
  14056. ;;
  14057. gcx*)
  14058. # Green Hills C++ Compiler
  14059. lt_prog_compiler_pic_CXX='-PIC'
  14060. ;;
  14061. *)
  14062. ;;
  14063. esac
  14064. ;;
  14065. sunos4*)
  14066. case $cc_basename in
  14067. CC*)
  14068. # Sun C++ 4.x
  14069. lt_prog_compiler_pic_CXX='-pic'
  14070. lt_prog_compiler_static_CXX='-Bstatic'
  14071. ;;
  14072. lcc*)
  14073. # Lucid
  14074. lt_prog_compiler_pic_CXX='-pic'
  14075. ;;
  14076. *)
  14077. ;;
  14078. esac
  14079. ;;
  14080. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14081. case $cc_basename in
  14082. CC*)
  14083. lt_prog_compiler_wl_CXX='-Wl,'
  14084. lt_prog_compiler_pic_CXX='-KPIC'
  14085. lt_prog_compiler_static_CXX='-Bstatic'
  14086. ;;
  14087. esac
  14088. ;;
  14089. tandem*)
  14090. case $cc_basename in
  14091. NCC*)
  14092. # NonStop-UX NCC 3.20
  14093. lt_prog_compiler_pic_CXX='-KPIC'
  14094. ;;
  14095. *)
  14096. ;;
  14097. esac
  14098. ;;
  14099. vxworks*)
  14100. ;;
  14101. *)
  14102. lt_prog_compiler_can_build_shared_CXX=no
  14103. ;;
  14104. esac
  14105. fi
  14106. case $host_os in
  14107. # For platforms that do not support PIC, -DPIC is meaningless:
  14108. *djgpp*)
  14109. lt_prog_compiler_pic_CXX=
  14110. ;;
  14111. *)
  14112. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14113. ;;
  14114. esac
  14115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14116. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14117. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14118. then :
  14119. printf %s "(cached) " >&6
  14120. else $as_nop
  14121. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14122. fi
  14123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14124. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14125. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14126. #
  14127. # Check to make sure the PIC flag actually works.
  14128. #
  14129. if test -n "$lt_prog_compiler_pic_CXX"; then
  14130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14131. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14132. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14133. then :
  14134. printf %s "(cached) " >&6
  14135. else $as_nop
  14136. lt_cv_prog_compiler_pic_works_CXX=no
  14137. ac_outfile=conftest.$ac_objext
  14138. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14139. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14140. # Insert the option either (1) after the last *FLAGS variable, or
  14141. # (2) before a word containing "conftest.", or (3) at the end.
  14142. # Note that $ac_compile itself does not contain backslashes and begins
  14143. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14144. # The option is referenced via a variable to avoid confusing sed.
  14145. lt_compile=`echo "$ac_compile" | $SED \
  14146. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14147. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14148. -e 's:$: $lt_compiler_flag:'`
  14149. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14150. (eval "$lt_compile" 2>conftest.err)
  14151. ac_status=$?
  14152. cat conftest.err >&5
  14153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14154. if (exit $ac_status) && test -s "$ac_outfile"; then
  14155. # The compiler can only warn and ignore the option if not recognized
  14156. # So say no if there are warnings other than the usual output.
  14157. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14158. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14159. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14160. lt_cv_prog_compiler_pic_works_CXX=yes
  14161. fi
  14162. fi
  14163. $RM conftest*
  14164. fi
  14165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14166. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14167. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14168. case $lt_prog_compiler_pic_CXX in
  14169. "" | " "*) ;;
  14170. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14171. esac
  14172. else
  14173. lt_prog_compiler_pic_CXX=
  14174. lt_prog_compiler_can_build_shared_CXX=no
  14175. fi
  14176. fi
  14177. #
  14178. # Check to make sure the static flag actually works.
  14179. #
  14180. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14182. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14183. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14184. then :
  14185. printf %s "(cached) " >&6
  14186. else $as_nop
  14187. lt_cv_prog_compiler_static_works_CXX=no
  14188. save_LDFLAGS=$LDFLAGS
  14189. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14190. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14191. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14192. # The linker can only warn and ignore the option if not recognized
  14193. # So say no if there are warnings
  14194. if test -s conftest.err; then
  14195. # Append any errors to the config.log.
  14196. cat conftest.err 1>&5
  14197. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14198. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14199. if diff conftest.exp conftest.er2 >/dev/null; then
  14200. lt_cv_prog_compiler_static_works_CXX=yes
  14201. fi
  14202. else
  14203. lt_cv_prog_compiler_static_works_CXX=yes
  14204. fi
  14205. fi
  14206. $RM -r conftest*
  14207. LDFLAGS=$save_LDFLAGS
  14208. fi
  14209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14210. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14211. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14212. :
  14213. else
  14214. lt_prog_compiler_static_CXX=
  14215. fi
  14216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14217. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14218. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14219. then :
  14220. printf %s "(cached) " >&6
  14221. else $as_nop
  14222. lt_cv_prog_compiler_c_o_CXX=no
  14223. $RM -r conftest 2>/dev/null
  14224. mkdir conftest
  14225. cd conftest
  14226. mkdir out
  14227. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14228. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14229. # Insert the option either (1) after the last *FLAGS variable, or
  14230. # (2) before a word containing "conftest.", or (3) at the end.
  14231. # Note that $ac_compile itself does not contain backslashes and begins
  14232. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14233. lt_compile=`echo "$ac_compile" | $SED \
  14234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14236. -e 's:$: $lt_compiler_flag:'`
  14237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14238. (eval "$lt_compile" 2>out/conftest.err)
  14239. ac_status=$?
  14240. cat out/conftest.err >&5
  14241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14242. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14243. then
  14244. # The compiler can only warn and ignore the option if not recognized
  14245. # So say no if there are warnings
  14246. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14247. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14248. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14249. lt_cv_prog_compiler_c_o_CXX=yes
  14250. fi
  14251. fi
  14252. chmod u+w . 2>&5
  14253. $RM conftest*
  14254. # SGI C++ compiler will create directory out/ii_files/ for
  14255. # template instantiation
  14256. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14257. $RM out/* && rmdir out
  14258. cd ..
  14259. $RM -r conftest
  14260. $RM conftest*
  14261. fi
  14262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14263. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14265. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14266. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14267. then :
  14268. printf %s "(cached) " >&6
  14269. else $as_nop
  14270. lt_cv_prog_compiler_c_o_CXX=no
  14271. $RM -r conftest 2>/dev/null
  14272. mkdir conftest
  14273. cd conftest
  14274. mkdir out
  14275. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14276. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14277. # Insert the option either (1) after the last *FLAGS variable, or
  14278. # (2) before a word containing "conftest.", or (3) at the end.
  14279. # Note that $ac_compile itself does not contain backslashes and begins
  14280. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14281. lt_compile=`echo "$ac_compile" | $SED \
  14282. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14283. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14284. -e 's:$: $lt_compiler_flag:'`
  14285. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14286. (eval "$lt_compile" 2>out/conftest.err)
  14287. ac_status=$?
  14288. cat out/conftest.err >&5
  14289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14290. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14291. then
  14292. # The compiler can only warn and ignore the option if not recognized
  14293. # So say no if there are warnings
  14294. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14295. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14296. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14297. lt_cv_prog_compiler_c_o_CXX=yes
  14298. fi
  14299. fi
  14300. chmod u+w . 2>&5
  14301. $RM conftest*
  14302. # SGI C++ compiler will create directory out/ii_files/ for
  14303. # template instantiation
  14304. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14305. $RM out/* && rmdir out
  14306. cd ..
  14307. $RM -r conftest
  14308. $RM conftest*
  14309. fi
  14310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14311. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14312. hard_links=nottested
  14313. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14314. # do not overwrite the value of need_locks provided by the user
  14315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14316. printf %s "checking if we can lock with hard links... " >&6; }
  14317. hard_links=yes
  14318. $RM conftest*
  14319. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14320. touch conftest.a
  14321. ln conftest.a conftest.b 2>&5 || hard_links=no
  14322. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14324. printf "%s\n" "$hard_links" >&6; }
  14325. if test no = "$hard_links"; then
  14326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14327. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14328. need_locks=warn
  14329. fi
  14330. else
  14331. need_locks=no
  14332. fi
  14333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14334. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14335. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14336. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14337. case $host_os in
  14338. aix[4-9]*)
  14339. # If we're using GNU nm, then we don't want the "-C" option.
  14340. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14341. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14342. # weak defined symbols like other global defined symbols, whereas
  14343. # GNU nm marks them as "W".
  14344. # While the 'weak' keyword is ignored in the Export File, we need
  14345. # it in the Import File for the 'aix-soname' feature, so we have
  14346. # to replace the "-B" option with "-P" for AIX nm.
  14347. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14348. 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'
  14349. else
  14350. 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'
  14351. fi
  14352. ;;
  14353. pw32*)
  14354. export_symbols_cmds_CXX=$ltdll_cmds
  14355. ;;
  14356. cygwin* | mingw* | cegcc*)
  14357. case $cc_basename in
  14358. cl*)
  14359. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14360. ;;
  14361. *)
  14362. 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'
  14363. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14364. ;;
  14365. esac
  14366. ;;
  14367. *)
  14368. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14369. ;;
  14370. esac
  14371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14372. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14373. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14374. with_gnu_ld_CXX=$with_gnu_ld
  14375. #
  14376. # Do we need to explicitly link libc?
  14377. #
  14378. case "x$archive_cmds_need_lc_CXX" in
  14379. x|xyes)
  14380. # Assume -lc should be added
  14381. archive_cmds_need_lc_CXX=yes
  14382. if test yes,yes = "$GCC,$enable_shared"; then
  14383. case $archive_cmds_CXX in
  14384. *'~'*)
  14385. # FIXME: we may have to deal with multi-command sequences.
  14386. ;;
  14387. '$CC '*)
  14388. # Test whether the compiler implicitly links with -lc since on some
  14389. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14390. # to ld, don't add -lc before -lgcc.
  14391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14392. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14393. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14394. then :
  14395. printf %s "(cached) " >&6
  14396. else $as_nop
  14397. $RM conftest*
  14398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14400. (eval $ac_compile) 2>&5
  14401. ac_status=$?
  14402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14403. test $ac_status = 0; } 2>conftest.err; then
  14404. soname=conftest
  14405. lib=conftest
  14406. libobjs=conftest.$ac_objext
  14407. deplibs=
  14408. wl=$lt_prog_compiler_wl_CXX
  14409. pic_flag=$lt_prog_compiler_pic_CXX
  14410. compiler_flags=-v
  14411. linker_flags=-v
  14412. verstring=
  14413. output_objdir=.
  14414. libname=conftest
  14415. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14416. allow_undefined_flag_CXX=
  14417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14418. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14419. ac_status=$?
  14420. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14421. test $ac_status = 0; }
  14422. then
  14423. lt_cv_archive_cmds_need_lc_CXX=no
  14424. else
  14425. lt_cv_archive_cmds_need_lc_CXX=yes
  14426. fi
  14427. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14428. else
  14429. cat conftest.err 1>&5
  14430. fi
  14431. $RM conftest*
  14432. fi
  14433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14434. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14435. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14436. ;;
  14437. esac
  14438. fi
  14439. ;;
  14440. esac
  14441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14442. printf %s "checking dynamic linker characteristics... " >&6; }
  14443. library_names_spec=
  14444. libname_spec='lib$name'
  14445. soname_spec=
  14446. shrext_cmds=.so
  14447. postinstall_cmds=
  14448. postuninstall_cmds=
  14449. finish_cmds=
  14450. finish_eval=
  14451. shlibpath_var=
  14452. shlibpath_overrides_runpath=unknown
  14453. version_type=none
  14454. dynamic_linker="$host_os ld.so"
  14455. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14456. need_lib_prefix=unknown
  14457. hardcode_into_libs=no
  14458. # when you set need_version to no, make sure it does not cause -set_version
  14459. # flags to be left without arguments
  14460. need_version=unknown
  14461. case $host_os in
  14462. aix3*)
  14463. version_type=linux # correct to gnu/linux during the next big refactor
  14464. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14465. shlibpath_var=LIBPATH
  14466. # AIX 3 has no versioning support, so we append a major version to the name.
  14467. soname_spec='$libname$release$shared_ext$major'
  14468. ;;
  14469. aix[4-9]*)
  14470. version_type=linux # correct to gnu/linux during the next big refactor
  14471. need_lib_prefix=no
  14472. need_version=no
  14473. hardcode_into_libs=yes
  14474. if test ia64 = "$host_cpu"; then
  14475. # AIX 5 supports IA64
  14476. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14477. shlibpath_var=LD_LIBRARY_PATH
  14478. else
  14479. # With GCC up to 2.95.x, collect2 would create an import file
  14480. # for dependence libraries. The import file would start with
  14481. # the line '#! .'. This would cause the generated library to
  14482. # depend on '.', always an invalid library. This was fixed in
  14483. # development snapshots of GCC prior to 3.0.
  14484. case $host_os in
  14485. aix4 | aix4.[01] | aix4.[01].*)
  14486. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14487. echo ' yes '
  14488. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14489. :
  14490. else
  14491. can_build_shared=no
  14492. fi
  14493. ;;
  14494. esac
  14495. # Using Import Files as archive members, it is possible to support
  14496. # filename-based versioning of shared library archives on AIX. While
  14497. # this would work for both with and without runtime linking, it will
  14498. # prevent static linking of such archives. So we do filename-based
  14499. # shared library versioning with .so extension only, which is used
  14500. # when both runtime linking and shared linking is enabled.
  14501. # Unfortunately, runtime linking may impact performance, so we do
  14502. # not want this to be the default eventually. Also, we use the
  14503. # versioned .so libs for executables only if there is the -brtl
  14504. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14505. # To allow for filename-based versioning support, we need to create
  14506. # libNAME.so.V as an archive file, containing:
  14507. # *) an Import File, referring to the versioned filename of the
  14508. # archive as well as the shared archive member, telling the
  14509. # bitwidth (32 or 64) of that shared object, and providing the
  14510. # list of exported symbols of that shared object, eventually
  14511. # decorated with the 'weak' keyword
  14512. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14513. # it being seen by the linker.
  14514. # At run time we better use the real file rather than another symlink,
  14515. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14516. case $with_aix_soname,$aix_use_runtimelinking in
  14517. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14518. # soname into executable. Probably we can add versioning support to
  14519. # collect2, so additional links can be useful in future.
  14520. aix,yes) # traditional libtool
  14521. dynamic_linker='AIX unversionable lib.so'
  14522. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14523. # instead of lib<name>.a to let people know that these are not
  14524. # typical AIX shared libraries.
  14525. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14526. ;;
  14527. aix,no) # traditional AIX only
  14528. dynamic_linker='AIX lib.a(lib.so.V)'
  14529. # We preserve .a as extension for shared libraries through AIX4.2
  14530. # and later when we are not doing run time linking.
  14531. library_names_spec='$libname$release.a $libname.a'
  14532. soname_spec='$libname$release$shared_ext$major'
  14533. ;;
  14534. svr4,*) # full svr4 only
  14535. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14536. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14537. # We do not specify a path in Import Files, so LIBPATH fires.
  14538. shlibpath_overrides_runpath=yes
  14539. ;;
  14540. *,yes) # both, prefer svr4
  14541. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14542. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14543. # unpreferred sharedlib libNAME.a needs extra handling
  14544. 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"'
  14545. 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"'
  14546. # We do not specify a path in Import Files, so LIBPATH fires.
  14547. shlibpath_overrides_runpath=yes
  14548. ;;
  14549. *,no) # both, prefer aix
  14550. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14551. library_names_spec='$libname$release.a $libname.a'
  14552. soname_spec='$libname$release$shared_ext$major'
  14553. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14554. 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)'
  14555. 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"'
  14556. ;;
  14557. esac
  14558. shlibpath_var=LIBPATH
  14559. fi
  14560. ;;
  14561. amigaos*)
  14562. case $host_cpu in
  14563. powerpc)
  14564. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14565. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14567. ;;
  14568. m68k)
  14569. library_names_spec='$libname.ixlibrary $libname.a'
  14570. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14571. 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'
  14572. ;;
  14573. esac
  14574. ;;
  14575. beos*)
  14576. library_names_spec='$libname$shared_ext'
  14577. dynamic_linker="$host_os ld.so"
  14578. shlibpath_var=LIBRARY_PATH
  14579. ;;
  14580. bsdi[45]*)
  14581. version_type=linux # correct to gnu/linux during the next big refactor
  14582. need_version=no
  14583. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14584. soname_spec='$libname$release$shared_ext$major'
  14585. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14586. shlibpath_var=LD_LIBRARY_PATH
  14587. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14588. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14589. # the default ld.so.conf also contains /usr/contrib/lib and
  14590. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14591. # libtool to hard-code these into programs
  14592. ;;
  14593. cygwin* | mingw* | pw32* | cegcc*)
  14594. version_type=windows
  14595. shrext_cmds=.dll
  14596. need_version=no
  14597. need_lib_prefix=no
  14598. case $GCC,$cc_basename in
  14599. yes,*)
  14600. # gcc
  14601. library_names_spec='$libname.dll.a'
  14602. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14603. postinstall_cmds='base_file=`basename \$file`~
  14604. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14605. dldir=$destdir/`dirname \$dlpath`~
  14606. test -d \$dldir || mkdir -p \$dldir~
  14607. $install_prog $dir/$dlname \$dldir/$dlname~
  14608. chmod a+x \$dldir/$dlname~
  14609. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14610. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14611. fi'
  14612. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14613. dlpath=$dir/\$dldll~
  14614. $RM \$dlpath'
  14615. shlibpath_overrides_runpath=yes
  14616. case $host_os in
  14617. cygwin*)
  14618. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14619. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14620. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14621. ;;
  14622. mingw* | cegcc*)
  14623. # MinGW DLLs use traditional 'lib' prefix
  14624. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14625. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14626. ;;
  14627. pw32*)
  14628. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14629. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14630. ;;
  14631. esac
  14632. dynamic_linker='Win32 ld.exe'
  14633. ;;
  14634. *,cl*)
  14635. # Native MSVC
  14636. libname_spec='$name'
  14637. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14638. library_names_spec='$libname.dll.lib'
  14639. case $build_os in
  14640. mingw*)
  14641. sys_lib_search_path_spec=
  14642. lt_save_ifs=$IFS
  14643. IFS=';'
  14644. for lt_path in $LIB
  14645. do
  14646. IFS=$lt_save_ifs
  14647. # Let DOS variable expansion print the short 8.3 style file name.
  14648. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14649. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14650. done
  14651. IFS=$lt_save_ifs
  14652. # Convert to MSYS style.
  14653. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14654. ;;
  14655. cygwin*)
  14656. # Convert to unix form, then to dos form, then back to unix form
  14657. # but this time dos style (no spaces!) so that the unix form looks
  14658. # like /cygdrive/c/PROGRA~1:/cygdr...
  14659. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14660. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14661. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14662. ;;
  14663. *)
  14664. sys_lib_search_path_spec=$LIB
  14665. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14666. # It is most probably a Windows format PATH.
  14667. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14668. else
  14669. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14670. fi
  14671. # FIXME: find the short name or the path components, as spaces are
  14672. # common. (e.g. "Program Files" -> "PROGRA~1")
  14673. ;;
  14674. esac
  14675. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14676. postinstall_cmds='base_file=`basename \$file`~
  14677. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14678. dldir=$destdir/`dirname \$dlpath`~
  14679. test -d \$dldir || mkdir -p \$dldir~
  14680. $install_prog $dir/$dlname \$dldir/$dlname'
  14681. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14682. dlpath=$dir/\$dldll~
  14683. $RM \$dlpath'
  14684. shlibpath_overrides_runpath=yes
  14685. dynamic_linker='Win32 link.exe'
  14686. ;;
  14687. *)
  14688. # Assume MSVC wrapper
  14689. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14690. dynamic_linker='Win32 ld.exe'
  14691. ;;
  14692. esac
  14693. # FIXME: first we should search . and the directory the executable is in
  14694. shlibpath_var=PATH
  14695. ;;
  14696. darwin* | rhapsody*)
  14697. dynamic_linker="$host_os dyld"
  14698. version_type=darwin
  14699. need_lib_prefix=no
  14700. need_version=no
  14701. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14702. soname_spec='$libname$release$major$shared_ext'
  14703. shlibpath_overrides_runpath=yes
  14704. shlibpath_var=DYLD_LIBRARY_PATH
  14705. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14706. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14707. ;;
  14708. dgux*)
  14709. version_type=linux # correct to gnu/linux during the next big refactor
  14710. need_lib_prefix=no
  14711. need_version=no
  14712. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14713. soname_spec='$libname$release$shared_ext$major'
  14714. shlibpath_var=LD_LIBRARY_PATH
  14715. ;;
  14716. freebsd* | dragonfly* | midnightbsd*)
  14717. # DragonFly does not have aout. When/if they implement a new
  14718. # versioning mechanism, adjust this.
  14719. if test -x /usr/bin/objformat; then
  14720. objformat=`/usr/bin/objformat`
  14721. else
  14722. case $host_os in
  14723. freebsd[23].*) objformat=aout ;;
  14724. *) objformat=elf ;;
  14725. esac
  14726. fi
  14727. version_type=freebsd-$objformat
  14728. case $version_type in
  14729. freebsd-elf*)
  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. need_version=no
  14733. need_lib_prefix=no
  14734. ;;
  14735. freebsd-*)
  14736. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14737. need_version=yes
  14738. ;;
  14739. esac
  14740. shlibpath_var=LD_LIBRARY_PATH
  14741. case $host_os in
  14742. freebsd2.*)
  14743. shlibpath_overrides_runpath=yes
  14744. ;;
  14745. freebsd3.[01]* | freebsdelf3.[01]*)
  14746. shlibpath_overrides_runpath=yes
  14747. hardcode_into_libs=yes
  14748. ;;
  14749. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14750. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14751. shlibpath_overrides_runpath=no
  14752. hardcode_into_libs=yes
  14753. ;;
  14754. *) # from 4.6 on, and DragonFly
  14755. shlibpath_overrides_runpath=yes
  14756. hardcode_into_libs=yes
  14757. ;;
  14758. esac
  14759. ;;
  14760. haiku*)
  14761. version_type=linux # correct to gnu/linux during the next big refactor
  14762. need_lib_prefix=no
  14763. need_version=no
  14764. dynamic_linker="$host_os runtime_loader"
  14765. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14766. soname_spec='$libname$release$shared_ext$major'
  14767. shlibpath_var=LIBRARY_PATH
  14768. shlibpath_overrides_runpath=no
  14769. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14770. hardcode_into_libs=yes
  14771. ;;
  14772. hpux9* | hpux10* | hpux11*)
  14773. # Give a soname corresponding to the major version so that dld.sl refuses to
  14774. # link against other versions.
  14775. version_type=sunos
  14776. need_lib_prefix=no
  14777. need_version=no
  14778. case $host_cpu in
  14779. ia64*)
  14780. shrext_cmds='.so'
  14781. hardcode_into_libs=yes
  14782. dynamic_linker="$host_os dld.so"
  14783. shlibpath_var=LD_LIBRARY_PATH
  14784. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14786. soname_spec='$libname$release$shared_ext$major'
  14787. if test 32 = "$HPUX_IA64_MODE"; then
  14788. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14789. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14790. else
  14791. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14792. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14793. fi
  14794. ;;
  14795. hppa*64*)
  14796. shrext_cmds='.sl'
  14797. hardcode_into_libs=yes
  14798. dynamic_linker="$host_os dld.sl"
  14799. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14800. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14801. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14802. soname_spec='$libname$release$shared_ext$major'
  14803. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14804. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14805. ;;
  14806. *)
  14807. shrext_cmds='.sl'
  14808. dynamic_linker="$host_os dld.sl"
  14809. shlibpath_var=SHLIB_PATH
  14810. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14811. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14812. soname_spec='$libname$release$shared_ext$major'
  14813. ;;
  14814. esac
  14815. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14816. postinstall_cmds='chmod 555 $lib'
  14817. # or fails outright, so override atomically:
  14818. install_override_mode=555
  14819. ;;
  14820. interix[3-9]*)
  14821. version_type=linux # correct to gnu/linux during the next big refactor
  14822. need_lib_prefix=no
  14823. need_version=no
  14824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14825. soname_spec='$libname$release$shared_ext$major'
  14826. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14827. shlibpath_var=LD_LIBRARY_PATH
  14828. shlibpath_overrides_runpath=no
  14829. hardcode_into_libs=yes
  14830. ;;
  14831. irix5* | irix6* | nonstopux*)
  14832. case $host_os in
  14833. nonstopux*) version_type=nonstopux ;;
  14834. *)
  14835. if test yes = "$lt_cv_prog_gnu_ld"; then
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. else
  14838. version_type=irix
  14839. fi ;;
  14840. esac
  14841. need_lib_prefix=no
  14842. need_version=no
  14843. soname_spec='$libname$release$shared_ext$major'
  14844. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14845. case $host_os in
  14846. irix5* | nonstopux*)
  14847. libsuff= shlibsuff=
  14848. ;;
  14849. *)
  14850. case $LD in # libtool.m4 will add one of these switches to LD
  14851. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14852. libsuff= shlibsuff= libmagic=32-bit;;
  14853. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14854. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14855. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14856. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14857. *) libsuff= shlibsuff= libmagic=never-match;;
  14858. esac
  14859. ;;
  14860. esac
  14861. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14862. shlibpath_overrides_runpath=no
  14863. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14864. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14865. hardcode_into_libs=yes
  14866. ;;
  14867. # No shared lib support for Linux oldld, aout, or coff.
  14868. linux*oldld* | linux*aout* | linux*coff*)
  14869. dynamic_linker=no
  14870. ;;
  14871. linux*android*)
  14872. version_type=none # Android doesn't support versioned libraries.
  14873. need_lib_prefix=no
  14874. need_version=no
  14875. library_names_spec='$libname$release$shared_ext'
  14876. soname_spec='$libname$release$shared_ext'
  14877. finish_cmds=
  14878. shlibpath_var=LD_LIBRARY_PATH
  14879. shlibpath_overrides_runpath=yes
  14880. # This implies no fast_install, which is unacceptable.
  14881. # Some rework will be needed to allow for fast_install
  14882. # before this can be enabled.
  14883. hardcode_into_libs=yes
  14884. dynamic_linker='Android linker'
  14885. # Don't embed -rpath directories since the linker doesn't support them.
  14886. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14887. ;;
  14888. # This must be glibc/ELF.
  14889. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14890. version_type=linux # correct to gnu/linux during the next big refactor
  14891. need_lib_prefix=no
  14892. need_version=no
  14893. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14894. soname_spec='$libname$release$shared_ext$major'
  14895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14896. shlibpath_var=LD_LIBRARY_PATH
  14897. shlibpath_overrides_runpath=no
  14898. # Some binutils ld are patched to set DT_RUNPATH
  14899. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14900. then :
  14901. printf %s "(cached) " >&6
  14902. else $as_nop
  14903. lt_cv_shlibpath_overrides_runpath=no
  14904. save_LDFLAGS=$LDFLAGS
  14905. save_libdir=$libdir
  14906. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14907. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14909. /* end confdefs.h. */
  14910. int
  14911. main (void)
  14912. {
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. if ac_fn_cxx_try_link "$LINENO"
  14918. then :
  14919. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14920. then :
  14921. lt_cv_shlibpath_overrides_runpath=yes
  14922. fi
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14925. conftest$ac_exeext conftest.$ac_ext
  14926. LDFLAGS=$save_LDFLAGS
  14927. libdir=$save_libdir
  14928. fi
  14929. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14930. # This implies no fast_install, which is unacceptable.
  14931. # Some rework will be needed to allow for fast_install
  14932. # before this can be enabled.
  14933. hardcode_into_libs=yes
  14934. # Add ABI-specific directories to the system library path.
  14935. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14936. # Ideally, we could use ldconfig to report *all* directores which are
  14937. # searched for libraries, however this is still not possible. Aside from not
  14938. # being certain /sbin/ldconfig is available, command
  14939. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14940. # even though it is searched at run-time. Try to do the best guess by
  14941. # appending ld.so.conf contents (and includes) to the search path.
  14942. if test -f /etc/ld.so.conf; then
  14943. 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' ' '`
  14944. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14945. fi
  14946. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14947. # powerpc, because MkLinux only supported shared libraries with the
  14948. # GNU dynamic linker. Since this was broken with cross compilers,
  14949. # most powerpc-linux boxes support dynamic linking these days and
  14950. # people can always --disable-shared, the test was removed, and we
  14951. # assume the GNU/Linux dynamic linker is in use.
  14952. dynamic_linker='GNU/Linux ld.so'
  14953. ;;
  14954. netbsd*)
  14955. version_type=sunos
  14956. need_lib_prefix=no
  14957. need_version=no
  14958. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14959. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14960. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14961. dynamic_linker='NetBSD (a.out) ld.so'
  14962. else
  14963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14964. soname_spec='$libname$release$shared_ext$major'
  14965. dynamic_linker='NetBSD ld.elf_so'
  14966. fi
  14967. shlibpath_var=LD_LIBRARY_PATH
  14968. shlibpath_overrides_runpath=yes
  14969. hardcode_into_libs=yes
  14970. ;;
  14971. newsos6)
  14972. version_type=linux # correct to gnu/linux during the next big refactor
  14973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14974. shlibpath_var=LD_LIBRARY_PATH
  14975. shlibpath_overrides_runpath=yes
  14976. ;;
  14977. *nto* | *qnx*)
  14978. version_type=qnx
  14979. need_lib_prefix=no
  14980. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  14984. shlibpath_overrides_runpath=no
  14985. hardcode_into_libs=yes
  14986. dynamic_linker='ldqnx.so'
  14987. ;;
  14988. openbsd* | bitrig*)
  14989. version_type=sunos
  14990. sys_lib_dlsearch_path_spec=/usr/lib
  14991. need_lib_prefix=no
  14992. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14993. need_version=no
  14994. else
  14995. need_version=yes
  14996. fi
  14997. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14998. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14999. shlibpath_var=LD_LIBRARY_PATH
  15000. shlibpath_overrides_runpath=yes
  15001. ;;
  15002. os2*)
  15003. libname_spec='$name'
  15004. shrext_cmds=.dll
  15005. need_lib_prefix=no
  15006. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15007. # SDL customization: removed versioning support.
  15008. # version_type=windows
  15009. # need_version=no
  15010. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15011. # v=$($ECHO $release$versuffix | tr -d .-);
  15012. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15013. # $ECHO $n$v`$shared_ext'
  15014. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15015. library_names_spec='${libname}_dll.$libext'
  15016. dynamic_linker='OS/2 ld.exe'
  15017. shlibpath_var=BEGINLIBPATH
  15018. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15019. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15020. postinstall_cmds='base_file=`basename \$file`~
  15021. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15022. dldir=$destdir/`dirname \$dlpath`~
  15023. test -d \$dldir || mkdir -p \$dldir~
  15024. $install_prog $dir/$dlname \$dldir/$dlname~
  15025. chmod a+x \$dldir/$dlname~
  15026. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15027. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15028. fi'
  15029. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15030. dlpath=$dir/\$dldll~
  15031. $RM \$dlpath'
  15032. ;;
  15033. osf3* | osf4* | osf5*)
  15034. version_type=osf
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. soname_spec='$libname$release$shared_ext$major'
  15038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15041. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15042. ;;
  15043. rdos*)
  15044. dynamic_linker=no
  15045. ;;
  15046. solaris*)
  15047. version_type=linux # correct to gnu/linux during the next big refactor
  15048. need_lib_prefix=no
  15049. need_version=no
  15050. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15051. soname_spec='$libname$release$shared_ext$major'
  15052. shlibpath_var=LD_LIBRARY_PATH
  15053. shlibpath_overrides_runpath=yes
  15054. hardcode_into_libs=yes
  15055. # ldd complains unless libraries are executable
  15056. postinstall_cmds='chmod +x $lib'
  15057. ;;
  15058. sunos4*)
  15059. version_type=sunos
  15060. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15061. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15062. shlibpath_var=LD_LIBRARY_PATH
  15063. shlibpath_overrides_runpath=yes
  15064. if test yes = "$with_gnu_ld"; then
  15065. need_lib_prefix=no
  15066. fi
  15067. need_version=yes
  15068. ;;
  15069. sysv4 | sysv4.3*)
  15070. version_type=linux # correct to gnu/linux during the next big refactor
  15071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15072. soname_spec='$libname$release$shared_ext$major'
  15073. shlibpath_var=LD_LIBRARY_PATH
  15074. case $host_vendor in
  15075. sni)
  15076. shlibpath_overrides_runpath=no
  15077. need_lib_prefix=no
  15078. runpath_var=LD_RUN_PATH
  15079. ;;
  15080. siemens)
  15081. need_lib_prefix=no
  15082. ;;
  15083. motorola)
  15084. need_lib_prefix=no
  15085. need_version=no
  15086. shlibpath_overrides_runpath=no
  15087. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15088. ;;
  15089. esac
  15090. ;;
  15091. sysv4*MP*)
  15092. if test -d /usr/nec; then
  15093. version_type=linux # correct to gnu/linux during the next big refactor
  15094. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15095. soname_spec='$libname$shared_ext.$major'
  15096. shlibpath_var=LD_LIBRARY_PATH
  15097. fi
  15098. ;;
  15099. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15100. version_type=sco
  15101. need_lib_prefix=no
  15102. need_version=no
  15103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15104. soname_spec='$libname$release$shared_ext$major'
  15105. shlibpath_var=LD_LIBRARY_PATH
  15106. shlibpath_overrides_runpath=yes
  15107. hardcode_into_libs=yes
  15108. if test yes = "$with_gnu_ld"; then
  15109. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15110. else
  15111. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15112. case $host_os in
  15113. sco3.2v5*)
  15114. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15115. ;;
  15116. esac
  15117. fi
  15118. sys_lib_dlsearch_path_spec='/usr/lib'
  15119. ;;
  15120. tpf*)
  15121. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15122. version_type=linux # correct to gnu/linux during the next big refactor
  15123. need_lib_prefix=no
  15124. need_version=no
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=no
  15128. hardcode_into_libs=yes
  15129. ;;
  15130. uts4*)
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15133. soname_spec='$libname$release$shared_ext$major'
  15134. shlibpath_var=LD_LIBRARY_PATH
  15135. ;;
  15136. *)
  15137. dynamic_linker=no
  15138. ;;
  15139. esac
  15140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15141. printf "%s\n" "$dynamic_linker" >&6; }
  15142. test no = "$dynamic_linker" && can_build_shared=no
  15143. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15144. if test yes = "$GCC"; then
  15145. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15146. fi
  15147. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15148. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15149. fi
  15150. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15151. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15152. fi
  15153. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15154. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15155. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15156. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15157. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15158. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15160. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15161. hardcode_action_CXX=
  15162. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15163. test -n "$runpath_var_CXX" ||
  15164. test yes = "$hardcode_automatic_CXX"; then
  15165. # We can hardcode non-existent directories.
  15166. if test no != "$hardcode_direct_CXX" &&
  15167. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15168. # have to relink, otherwise we might link with an installed library
  15169. # when we should be linking with a yet-to-be-installed one
  15170. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15171. test no != "$hardcode_minus_L_CXX"; then
  15172. # Linking always hardcodes the temporary library directory.
  15173. hardcode_action_CXX=relink
  15174. else
  15175. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15176. hardcode_action_CXX=immediate
  15177. fi
  15178. else
  15179. # We cannot hardcode anything, or else we can only hardcode existing
  15180. # directories.
  15181. hardcode_action_CXX=unsupported
  15182. fi
  15183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15184. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15185. if test relink = "$hardcode_action_CXX" ||
  15186. test yes = "$inherit_rpath_CXX"; then
  15187. # Fast installation is not supported
  15188. enable_fast_install=no
  15189. elif test yes = "$shlibpath_overrides_runpath" ||
  15190. test no = "$enable_shared"; then
  15191. # Fast installation is not necessary
  15192. enable_fast_install=needless
  15193. fi
  15194. fi # test -n "$compiler"
  15195. CC=$lt_save_CC
  15196. CFLAGS=$lt_save_CFLAGS
  15197. LDCXX=$LD
  15198. LD=$lt_save_LD
  15199. GCC=$lt_save_GCC
  15200. with_gnu_ld=$lt_save_with_gnu_ld
  15201. lt_cv_path_LDCXX=$lt_cv_path_LD
  15202. lt_cv_path_LD=$lt_save_path_LD
  15203. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15204. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15205. fi # test yes != "$_lt_caught_CXX_error"
  15206. ac_ext=c
  15207. ac_cpp='$CPP $CPPFLAGS'
  15208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15212. printf %s "checking for egrep... " >&6; }
  15213. if test ${ac_cv_path_EGREP+y}
  15214. then :
  15215. printf %s "(cached) " >&6
  15216. else $as_nop
  15217. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15218. then ac_cv_path_EGREP="$GREP -E"
  15219. else
  15220. if test -z "$EGREP"; then
  15221. ac_path_EGREP_found=false
  15222. # Loop through the user's path and test for each of PROGNAME-LIST
  15223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15224. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15225. do
  15226. IFS=$as_save_IFS
  15227. case $as_dir in #(((
  15228. '') as_dir=./ ;;
  15229. */) ;;
  15230. *) as_dir=$as_dir/ ;;
  15231. esac
  15232. for ac_prog in egrep
  15233. do
  15234. for ac_exec_ext in '' $ac_executable_extensions; do
  15235. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15236. as_fn_executable_p "$ac_path_EGREP" || continue
  15237. # Check for GNU ac_path_EGREP and select it if it is found.
  15238. # Check for GNU $ac_path_EGREP
  15239. case `"$ac_path_EGREP" --version 2>&1` in
  15240. *GNU*)
  15241. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15242. *)
  15243. ac_count=0
  15244. printf %s 0123456789 >"conftest.in"
  15245. while :
  15246. do
  15247. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15248. mv "conftest.tmp" "conftest.in"
  15249. cp "conftest.in" "conftest.nl"
  15250. printf "%s\n" 'EGREP' >> "conftest.nl"
  15251. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15252. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15253. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15254. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15255. # Best one so far, save it but keep looking for a better one
  15256. ac_cv_path_EGREP="$ac_path_EGREP"
  15257. ac_path_EGREP_max=$ac_count
  15258. fi
  15259. # 10*(2^10) chars as input seems more than enough
  15260. test $ac_count -gt 10 && break
  15261. done
  15262. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15263. esac
  15264. $ac_path_EGREP_found && break 3
  15265. done
  15266. done
  15267. done
  15268. IFS=$as_save_IFS
  15269. if test -z "$ac_cv_path_EGREP"; then
  15270. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15271. fi
  15272. else
  15273. ac_cv_path_EGREP=$EGREP
  15274. fi
  15275. fi
  15276. fi
  15277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15278. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15279. EGREP="$ac_cv_path_EGREP"
  15280. # Find a good install program. We prefer a C program (faster),
  15281. # so one script is as good as another. But avoid the broken or
  15282. # incompatible versions:
  15283. # SysV /etc/install, /usr/sbin/install
  15284. # SunOS /usr/etc/install
  15285. # IRIX /sbin/install
  15286. # AIX /bin/install
  15287. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15288. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15289. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15290. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15291. # OS/2's system install, which has a completely different semantic
  15292. # ./install, which can be erroneously created by make from ./install.sh.
  15293. # Reject install programs that cannot install multiple files.
  15294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15295. printf %s "checking for a BSD-compatible install... " >&6; }
  15296. if test -z "$INSTALL"; then
  15297. if test ${ac_cv_path_install+y}
  15298. then :
  15299. printf %s "(cached) " >&6
  15300. else $as_nop
  15301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15302. for as_dir in $PATH
  15303. do
  15304. IFS=$as_save_IFS
  15305. case $as_dir in #(((
  15306. '') as_dir=./ ;;
  15307. */) ;;
  15308. *) as_dir=$as_dir/ ;;
  15309. esac
  15310. # Account for fact that we put trailing slashes in our PATH walk.
  15311. case $as_dir in #((
  15312. ./ | /[cC]/* | \
  15313. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15314. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15315. /usr/ucb/* ) ;;
  15316. *)
  15317. # OSF1 and SCO ODT 3.0 have their own names for install.
  15318. # Don't use installbsd from OSF since it installs stuff as root
  15319. # by default.
  15320. for ac_prog in ginstall scoinst install; do
  15321. for ac_exec_ext in '' $ac_executable_extensions; do
  15322. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15323. if test $ac_prog = install &&
  15324. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15325. # AIX install. It has an incompatible calling convention.
  15326. :
  15327. elif test $ac_prog = install &&
  15328. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15329. # program-specific install script used by HP pwplus--don't use.
  15330. :
  15331. else
  15332. rm -rf conftest.one conftest.two conftest.dir
  15333. echo one > conftest.one
  15334. echo two > conftest.two
  15335. mkdir conftest.dir
  15336. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15337. test -s conftest.one && test -s conftest.two &&
  15338. test -s conftest.dir/conftest.one &&
  15339. test -s conftest.dir/conftest.two
  15340. then
  15341. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15342. break 3
  15343. fi
  15344. fi
  15345. fi
  15346. done
  15347. done
  15348. ;;
  15349. esac
  15350. done
  15351. IFS=$as_save_IFS
  15352. rm -rf conftest.one conftest.two conftest.dir
  15353. fi
  15354. if test ${ac_cv_path_install+y}; then
  15355. INSTALL=$ac_cv_path_install
  15356. else
  15357. # As a last resort, use the slow shell script. Don't cache a
  15358. # value for INSTALL within a source directory, because that will
  15359. # break other packages using the cache if that directory is
  15360. # removed, or if the value is a relative name.
  15361. INSTALL=$ac_install_sh
  15362. fi
  15363. fi
  15364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15365. printf "%s\n" "$INSTALL" >&6; }
  15366. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15367. # It thinks the first close brace ends the variable substitution.
  15368. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15369. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15370. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15372. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15373. set x ${MAKE-make}
  15374. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15375. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15376. then :
  15377. printf %s "(cached) " >&6
  15378. else $as_nop
  15379. cat >conftest.make <<\_ACEOF
  15380. SHELL = /bin/sh
  15381. all:
  15382. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15383. _ACEOF
  15384. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15385. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15386. *@@@%%%=?*=@@@%%%*)
  15387. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15388. *)
  15389. eval ac_cv_prog_make_${ac_make}_set=no;;
  15390. esac
  15391. rm -f conftest.make
  15392. fi
  15393. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15395. printf "%s\n" "yes" >&6; }
  15396. SET_MAKE=
  15397. else
  15398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15399. printf "%s\n" "no" >&6; }
  15400. SET_MAKE="MAKE=${MAKE-make}"
  15401. fi
  15402. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15403. if test -n "$ac_tool_prefix"; then
  15404. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15405. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15407. printf %s "checking for $ac_word... " >&6; }
  15408. if test ${ac_cv_path_PKG_CONFIG+y}
  15409. then :
  15410. printf %s "(cached) " >&6
  15411. else $as_nop
  15412. case $PKG_CONFIG in
  15413. [\\/]* | ?:[\\/]*)
  15414. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15415. ;;
  15416. *)
  15417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15418. for as_dir in $PATH
  15419. do
  15420. IFS=$as_save_IFS
  15421. case $as_dir in #(((
  15422. '') as_dir=./ ;;
  15423. */) ;;
  15424. *) as_dir=$as_dir/ ;;
  15425. esac
  15426. for ac_exec_ext in '' $ac_executable_extensions; do
  15427. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15428. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15430. break 2
  15431. fi
  15432. done
  15433. done
  15434. IFS=$as_save_IFS
  15435. ;;
  15436. esac
  15437. fi
  15438. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15439. if test -n "$PKG_CONFIG"; then
  15440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15441. printf "%s\n" "$PKG_CONFIG" >&6; }
  15442. else
  15443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15444. printf "%s\n" "no" >&6; }
  15445. fi
  15446. fi
  15447. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15448. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15449. # Extract the first word of "pkg-config", so it can be a program name with args.
  15450. set dummy pkg-config; ac_word=$2
  15451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15452. printf %s "checking for $ac_word... " >&6; }
  15453. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15454. then :
  15455. printf %s "(cached) " >&6
  15456. else $as_nop
  15457. case $ac_pt_PKG_CONFIG in
  15458. [\\/]* | ?:[\\/]*)
  15459. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15460. ;;
  15461. *)
  15462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15463. for as_dir in $PATH
  15464. do
  15465. IFS=$as_save_IFS
  15466. case $as_dir in #(((
  15467. '') as_dir=./ ;;
  15468. */) ;;
  15469. *) as_dir=$as_dir/ ;;
  15470. esac
  15471. for ac_exec_ext in '' $ac_executable_extensions; do
  15472. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15473. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15474. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15475. break 2
  15476. fi
  15477. done
  15478. done
  15479. IFS=$as_save_IFS
  15480. ;;
  15481. esac
  15482. fi
  15483. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15484. if test -n "$ac_pt_PKG_CONFIG"; then
  15485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15486. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15487. else
  15488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15489. printf "%s\n" "no" >&6; }
  15490. fi
  15491. if test "x$ac_pt_PKG_CONFIG" = x; then
  15492. PKG_CONFIG=""
  15493. else
  15494. case $cross_compiling:$ac_tool_warned in
  15495. yes:)
  15496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15497. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15498. ac_tool_warned=yes ;;
  15499. esac
  15500. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15501. fi
  15502. else
  15503. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15504. fi
  15505. fi
  15506. if test -n "$PKG_CONFIG"; then
  15507. _pkg_min_version=0.9.0
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15509. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15510. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15512. printf "%s\n" "yes" >&6; }
  15513. else
  15514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15515. printf "%s\n" "no" >&6; }
  15516. PKG_CONFIG=""
  15517. fi
  15518. fi
  15519. if test -z "$AWK" ; then
  15520. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15521. fi
  15522. for ac_prog in gsort sort
  15523. do
  15524. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15525. set dummy $ac_prog; ac_word=$2
  15526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15527. printf %s "checking for $ac_word... " >&6; }
  15528. if test ${ac_cv_prog_SORT+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else $as_nop
  15532. if test -n "$SORT"; then
  15533. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15534. else
  15535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15536. for as_dir in $PATH
  15537. do
  15538. IFS=$as_save_IFS
  15539. case $as_dir in #(((
  15540. '') as_dir=./ ;;
  15541. */) ;;
  15542. *) as_dir=$as_dir/ ;;
  15543. esac
  15544. for ac_exec_ext in '' $ac_executable_extensions; do
  15545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15546. ac_cv_prog_SORT="$ac_prog"
  15547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15548. break 2
  15549. fi
  15550. done
  15551. done
  15552. IFS=$as_save_IFS
  15553. fi
  15554. fi
  15555. SORT=$ac_cv_prog_SORT
  15556. if test -n "$SORT"; then
  15557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15558. printf "%s\n" "$SORT" >&6; }
  15559. else
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15561. printf "%s\n" "no" >&6; }
  15562. fi
  15563. test -n "$SORT" && break
  15564. done
  15565. test -n "$SORT" || SORT="false"
  15566. if ! "$SORT" -V </dev/null >/dev/null
  15567. then :
  15568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15569. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15570. fi
  15571. # Check whether --enable-largefile was given.
  15572. if test ${enable_largefile+y}
  15573. then :
  15574. enableval=$enable_largefile;
  15575. fi
  15576. if test "$enable_largefile" != no; then
  15577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15578. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15579. if test ${ac_cv_sys_largefile_CC+y}
  15580. then :
  15581. printf %s "(cached) " >&6
  15582. else $as_nop
  15583. ac_cv_sys_largefile_CC=no
  15584. if test "$GCC" != yes; then
  15585. ac_save_CC=$CC
  15586. while :; do
  15587. # IRIX 6.2 and later do not support large files by default,
  15588. # so use the C compiler's -n32 option if that helps.
  15589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15590. /* end confdefs.h. */
  15591. #include <sys/types.h>
  15592. /* Check that off_t can represent 2**63 - 1 correctly.
  15593. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15594. since some C++ compilers masquerading as C compilers
  15595. incorrectly reject 9223372036854775807. */
  15596. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15597. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15598. && LARGE_OFF_T % 2147483647 == 1)
  15599. ? 1 : -1];
  15600. int
  15601. main (void)
  15602. {
  15603. ;
  15604. return 0;
  15605. }
  15606. _ACEOF
  15607. if ac_fn_c_try_compile "$LINENO"
  15608. then :
  15609. break
  15610. fi
  15611. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15612. CC="$CC -n32"
  15613. if ac_fn_c_try_compile "$LINENO"
  15614. then :
  15615. ac_cv_sys_largefile_CC=' -n32'; break
  15616. fi
  15617. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15618. break
  15619. done
  15620. CC=$ac_save_CC
  15621. rm -f conftest.$ac_ext
  15622. fi
  15623. fi
  15624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15625. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15626. if test "$ac_cv_sys_largefile_CC" != no; then
  15627. CC=$CC$ac_cv_sys_largefile_CC
  15628. fi
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15630. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15631. if test ${ac_cv_sys_file_offset_bits+y}
  15632. then :
  15633. printf %s "(cached) " >&6
  15634. else $as_nop
  15635. while :; do
  15636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15637. /* end confdefs.h. */
  15638. #include <sys/types.h>
  15639. /* Check that off_t can represent 2**63 - 1 correctly.
  15640. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15641. since some C++ compilers masquerading as C compilers
  15642. incorrectly reject 9223372036854775807. */
  15643. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15644. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15645. && LARGE_OFF_T % 2147483647 == 1)
  15646. ? 1 : -1];
  15647. int
  15648. main (void)
  15649. {
  15650. ;
  15651. return 0;
  15652. }
  15653. _ACEOF
  15654. if ac_fn_c_try_compile "$LINENO"
  15655. then :
  15656. ac_cv_sys_file_offset_bits=no; break
  15657. fi
  15658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15660. /* end confdefs.h. */
  15661. #define _FILE_OFFSET_BITS 64
  15662. #include <sys/types.h>
  15663. /* Check that off_t can represent 2**63 - 1 correctly.
  15664. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15665. since some C++ compilers masquerading as C compilers
  15666. incorrectly reject 9223372036854775807. */
  15667. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15668. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15669. && LARGE_OFF_T % 2147483647 == 1)
  15670. ? 1 : -1];
  15671. int
  15672. main (void)
  15673. {
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_compile "$LINENO"
  15679. then :
  15680. ac_cv_sys_file_offset_bits=64; break
  15681. fi
  15682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15683. ac_cv_sys_file_offset_bits=unknown
  15684. break
  15685. done
  15686. fi
  15687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15688. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15689. case $ac_cv_sys_file_offset_bits in #(
  15690. no | unknown) ;;
  15691. *)
  15692. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15693. ;;
  15694. esac
  15695. rm -rf conftest*
  15696. if test $ac_cv_sys_file_offset_bits = unknown; then
  15697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15698. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15699. if test ${ac_cv_sys_large_files+y}
  15700. then :
  15701. printf %s "(cached) " >&6
  15702. else $as_nop
  15703. while :; do
  15704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15705. /* end confdefs.h. */
  15706. #include <sys/types.h>
  15707. /* Check that off_t can represent 2**63 - 1 correctly.
  15708. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15709. since some C++ compilers masquerading as C compilers
  15710. incorrectly reject 9223372036854775807. */
  15711. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15712. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15713. && LARGE_OFF_T % 2147483647 == 1)
  15714. ? 1 : -1];
  15715. int
  15716. main (void)
  15717. {
  15718. ;
  15719. return 0;
  15720. }
  15721. _ACEOF
  15722. if ac_fn_c_try_compile "$LINENO"
  15723. then :
  15724. ac_cv_sys_large_files=no; break
  15725. fi
  15726. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15728. /* end confdefs.h. */
  15729. #define _LARGE_FILES 1
  15730. #include <sys/types.h>
  15731. /* Check that off_t can represent 2**63 - 1 correctly.
  15732. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15733. since some C++ compilers masquerading as C compilers
  15734. incorrectly reject 9223372036854775807. */
  15735. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15736. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15737. && LARGE_OFF_T % 2147483647 == 1)
  15738. ? 1 : -1];
  15739. int
  15740. main (void)
  15741. {
  15742. ;
  15743. return 0;
  15744. }
  15745. _ACEOF
  15746. if ac_fn_c_try_compile "$LINENO"
  15747. then :
  15748. ac_cv_sys_large_files=1; break
  15749. fi
  15750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15751. ac_cv_sys_large_files=unknown
  15752. break
  15753. done
  15754. fi
  15755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15756. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15757. case $ac_cv_sys_large_files in #(
  15758. no | unknown) ;;
  15759. *)
  15760. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15761. ;;
  15762. esac
  15763. rm -rf conftest*
  15764. fi
  15765. fi
  15766. case "$host" in
  15767. *-*-mingw*)
  15768. # Except on msys, where make can't handle full pathnames (bug 1972)
  15769. ;;
  15770. *)
  15771. srcdir=`cd $srcdir && pwd`
  15772. ;;
  15773. esac
  15774. INCLUDE="-I$srcdir/include"
  15775. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15776. case "$host" in
  15777. *-*-haiku*)
  15778. LINKER='$(CXX)'
  15779. LIBTOOLLINKERTAG='CXX'
  15780. ;;
  15781. *)
  15782. LINKER='$(CC)'
  15783. LIBTOOLLINKERTAG='CC'
  15784. ;;
  15785. esac
  15786. if test x$srcdir != x.; then
  15787. INCLUDE="-Iinclude $INCLUDE"
  15788. elif test -d .git; then
  15789. as_fn_error $? "
  15790. *** When building from a git clone you should configure and build in a
  15791. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15792. " "$LINENO" 5
  15793. fi
  15794. BASE_CFLAGS=""
  15795. BASE_LDFLAGS=""
  15796. case "$host" in
  15797. *-*-cygwin*)
  15798. # We build SDL on cygwin without the UNIX emulation layer
  15799. save_CFLAGS="$CFLAGS"
  15800. have_no_cygwin=no
  15801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15802. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15803. CFLAGS="$save_CFLAGS -mno-cygwin"
  15804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15805. /* end confdefs.h. */
  15806. int
  15807. main (void)
  15808. {
  15809. ;
  15810. return 0;
  15811. }
  15812. _ACEOF
  15813. if ac_fn_c_try_compile "$LINENO"
  15814. then :
  15815. have_no_cygwin=yes
  15816. fi
  15817. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15819. printf "%s\n" "$have_no_cygwin" >&6; }
  15820. CFLAGS="$save_CFLAGS"
  15821. if test x$have_no_cygwin = xyes; then
  15822. BASE_CFLAGS="-mno-cygwin"
  15823. BASE_LDFLAGS="-mno-cygwin"
  15824. fi
  15825. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15826. ;;
  15827. esac
  15828. # Uncomment the following line if you want to force SDL and applications
  15829. # built with it to be compiled for a particular architecture.
  15830. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15831. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15832. # The default optimization for SDL is -O3 (Bug #31)
  15833. if test "x$orig_CFLAGS" = x; then
  15834. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15835. fi
  15836. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15837. BUILD_LDFLAGS="$LDFLAGS"
  15838. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15839. ## These are common directories to find software packages
  15840. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15841. # if test -d $path/include; then
  15842. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15843. # fi
  15844. # if test -d $path/lib; then
  15845. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15846. # fi
  15847. #done
  15848. SDL_CFLAGS="$BASE_CFLAGS"
  15849. SDL_LIBS="-lSDL3"
  15850. if test "x$BASE_LDFLAGS" != x; then
  15851. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15852. fi
  15853. if test "x$EXTRA_CFLAGS" != x; then
  15854. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15855. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15856. fi
  15857. if test "x$EXTRA_LDFLAGS" != x; then
  15858. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15859. fi
  15860. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15861. find_lib()
  15862. {
  15863. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15864. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15865. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15866. if test "$cross_compiling" = yes; then
  15867. host_lib_path=""
  15868. else
  15869. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15870. fi
  15871. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15872. 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`
  15873. if test x$lib != x; then
  15874. echo $lib
  15875. return
  15876. fi
  15877. done
  15878. }
  15879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15880. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15881. if test ${ac_cv_c_const+y}
  15882. then :
  15883. printf %s "(cached) " >&6
  15884. else $as_nop
  15885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15886. /* end confdefs.h. */
  15887. int
  15888. main (void)
  15889. {
  15890. #ifndef __cplusplus
  15891. /* Ultrix mips cc rejects this sort of thing. */
  15892. typedef int charset[2];
  15893. const charset cs = { 0, 0 };
  15894. /* SunOS 4.1.1 cc rejects this. */
  15895. char const *const *pcpcc;
  15896. char **ppc;
  15897. /* NEC SVR4.0.2 mips cc rejects this. */
  15898. struct point {int x, y;};
  15899. static struct point const zero = {0,0};
  15900. /* IBM XL C 1.02.0.0 rejects this.
  15901. It does not let you subtract one const X* pointer from another in
  15902. an arm of an if-expression whose if-part is not a constant
  15903. expression */
  15904. const char *g = "string";
  15905. pcpcc = &g + (g ? g-g : 0);
  15906. /* HPUX 7.0 cc rejects these. */
  15907. ++pcpcc;
  15908. ppc = (char**) pcpcc;
  15909. pcpcc = (char const *const *) ppc;
  15910. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15911. char tx;
  15912. char *t = &tx;
  15913. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15914. *t++ = 0;
  15915. if (s) return 0;
  15916. }
  15917. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15918. int x[] = {25, 17};
  15919. const int *foo = &x[0];
  15920. ++foo;
  15921. }
  15922. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15923. typedef const int *iptr;
  15924. iptr p = 0;
  15925. ++p;
  15926. }
  15927. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15928. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15929. struct s { int j; const int *ap[3]; } bx;
  15930. struct s *b = &bx; b->j = 5;
  15931. }
  15932. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15933. const int foo = 10;
  15934. if (!foo) return 0;
  15935. }
  15936. return !cs[0] && !zero.x;
  15937. #endif
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. if ac_fn_c_try_compile "$LINENO"
  15943. then :
  15944. ac_cv_c_const=yes
  15945. else $as_nop
  15946. ac_cv_c_const=no
  15947. fi
  15948. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15949. fi
  15950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15951. printf "%s\n" "$ac_cv_c_const" >&6; }
  15952. if test $ac_cv_c_const = no; then
  15953. printf "%s\n" "#define const /**/" >>confdefs.h
  15954. fi
  15955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15956. printf %s "checking for inline... " >&6; }
  15957. if test ${ac_cv_c_inline+y}
  15958. then :
  15959. printf %s "(cached) " >&6
  15960. else $as_nop
  15961. ac_cv_c_inline=no
  15962. for ac_kw in inline __inline__ __inline; do
  15963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15964. /* end confdefs.h. */
  15965. #ifndef __cplusplus
  15966. typedef int foo_t;
  15967. static $ac_kw foo_t static_foo (void) {return 0; }
  15968. $ac_kw foo_t foo (void) {return 0; }
  15969. #endif
  15970. _ACEOF
  15971. if ac_fn_c_try_compile "$LINENO"
  15972. then :
  15973. ac_cv_c_inline=$ac_kw
  15974. fi
  15975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15976. test "$ac_cv_c_inline" != no && break
  15977. done
  15978. fi
  15979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15980. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15981. case $ac_cv_c_inline in
  15982. inline | yes) ;;
  15983. *)
  15984. case $ac_cv_c_inline in
  15985. no) ac_val=;;
  15986. *) ac_val=$ac_cv_c_inline;;
  15987. esac
  15988. cat >>confdefs.h <<_ACEOF
  15989. #ifndef __cplusplus
  15990. #define inline $ac_val
  15991. #endif
  15992. _ACEOF
  15993. ;;
  15994. esac
  15995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  15996. printf %s "checking for working volatile... " >&6; }
  15997. if test ${ac_cv_c_volatile+y}
  15998. then :
  15999. printf %s "(cached) " >&6
  16000. else $as_nop
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. int
  16004. main (void)
  16005. {
  16006. volatile int x;
  16007. int * volatile y = (int *) 0;
  16008. return !x && !y;
  16009. ;
  16010. return 0;
  16011. }
  16012. _ACEOF
  16013. if ac_fn_c_try_compile "$LINENO"
  16014. then :
  16015. ac_cv_c_volatile=yes
  16016. else $as_nop
  16017. ac_cv_c_volatile=no
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16020. fi
  16021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16022. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16023. if test $ac_cv_c_volatile = no; then
  16024. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16025. fi
  16026. # Check whether --enable-assertions was given.
  16027. if test ${enable_assertions+y}
  16028. then :
  16029. enableval=$enable_assertions;
  16030. else $as_nop
  16031. enable_assertions=auto
  16032. fi
  16033. case "$enable_assertions" in
  16034. auto) # Use optimization settings to determine assertion level
  16035. ;;
  16036. disabled)
  16037. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16038. ;;
  16039. release)
  16040. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16041. ;;
  16042. enabled)
  16043. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16044. ;;
  16045. paranoid)
  16046. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16047. ;;
  16048. *)
  16049. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16050. ;;
  16051. esac
  16052. 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"
  16053. # Check whether --enable-dependency-tracking was given.
  16054. if test ${enable_dependency_tracking+y}
  16055. then :
  16056. enableval=$enable_dependency_tracking;
  16057. else $as_nop
  16058. enable_dependency_tracking=yes
  16059. fi
  16060. if test x$enable_dependency_tracking = xyes; then
  16061. have_gcc_mmd_mt=no
  16062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16063. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16065. /* end confdefs.h. */
  16066. #if !defined(__GNUC__) || __GNUC__ < 3
  16067. #error Dependency tracking requires GCC 3.0 or newer
  16068. #endif
  16069. int
  16070. main (void)
  16071. {
  16072. ;
  16073. return 0;
  16074. }
  16075. _ACEOF
  16076. if ac_fn_c_try_compile "$LINENO"
  16077. then :
  16078. have_gcc_mmd_mt=yes
  16079. fi
  16080. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16082. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16083. if test x$have_gcc_mmd_mt = xyes; then
  16084. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16085. fi
  16086. fi
  16087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16088. printf %s "checking for linker option --no-undefined... " >&6; }
  16089. have_no_undefined=no
  16090. case "$host" in
  16091. *-*-openbsd*)
  16092. ;;
  16093. *)
  16094. save_LDFLAGS="$LDFLAGS"
  16095. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16097. /* end confdefs.h. */
  16098. int
  16099. main (void)
  16100. {
  16101. ;
  16102. return 0;
  16103. }
  16104. _ACEOF
  16105. if ac_fn_c_try_link "$LINENO"
  16106. then :
  16107. have_no_undefined=yes
  16108. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16109. fi
  16110. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16111. conftest$ac_exeext conftest.$ac_ext
  16112. LDFLAGS="$save_LDFLAGS"
  16113. ;;
  16114. esac
  16115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16116. printf "%s\n" "$have_no_undefined" >&6; }
  16117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16118. printf %s "checking for linker option --dynamicbase... " >&6; }
  16119. have_dynamicbase=no
  16120. case "$host" in
  16121. *)
  16122. save_LDFLAGS="$LDFLAGS"
  16123. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16125. /* end confdefs.h. */
  16126. int
  16127. main (void)
  16128. {
  16129. ;
  16130. return 0;
  16131. }
  16132. _ACEOF
  16133. if ac_fn_c_try_link "$LINENO"
  16134. then :
  16135. have_dynamicbase=yes
  16136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16137. fi
  16138. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16139. conftest$ac_exeext conftest.$ac_ext
  16140. LDFLAGS="$save_LDFLAGS"
  16141. ;;
  16142. esac
  16143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16144. printf "%s\n" "$have_dynamicbase" >&6; }
  16145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16146. printf %s "checking for linker option --nxcompat... " >&6; }
  16147. have_nxcompat=no
  16148. case "$host" in
  16149. *)
  16150. save_LDFLAGS="$LDFLAGS"
  16151. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. int
  16155. main (void)
  16156. {
  16157. ;
  16158. return 0;
  16159. }
  16160. _ACEOF
  16161. if ac_fn_c_try_link "$LINENO"
  16162. then :
  16163. have_nxcompat=yes
  16164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16165. fi
  16166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16167. conftest$ac_exeext conftest.$ac_ext
  16168. LDFLAGS="$save_LDFLAGS"
  16169. ;;
  16170. esac
  16171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16172. printf "%s\n" "$have_nxcompat" >&6; }
  16173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16174. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16175. have_high_entropy_va=no
  16176. case "$host" in
  16177. *)
  16178. save_LDFLAGS="$LDFLAGS"
  16179. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16181. /* end confdefs.h. */
  16182. int
  16183. main (void)
  16184. {
  16185. ;
  16186. return 0;
  16187. }
  16188. _ACEOF
  16189. if ac_fn_c_try_link "$LINENO"
  16190. then :
  16191. have_high_entropy_va=yes
  16192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16193. fi
  16194. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16195. conftest$ac_exeext conftest.$ac_ext
  16196. LDFLAGS="$save_LDFLAGS"
  16197. ;;
  16198. esac
  16199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16200. printf "%s\n" "$have_high_entropy_va" >&6; }
  16201. # Check whether --enable-libc was given.
  16202. if test ${enable_libc+y}
  16203. then :
  16204. enableval=$enable_libc;
  16205. else $as_nop
  16206. enable_libc=yes
  16207. fi
  16208. # Check whether --enable-system-iconv was given.
  16209. if test ${enable_system_iconv+y}
  16210. then :
  16211. enableval=$enable_system_iconv;
  16212. else $as_nop
  16213. enable_system_iconv=yes
  16214. fi
  16215. if test x$enable_libc = xyes; then
  16216. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16217. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16218. if test "x$ac_cv_header_sys_types_h" = xyes
  16219. then :
  16220. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16221. fi
  16222. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16223. if test "x$ac_cv_header_stdio_h" = xyes
  16224. then :
  16225. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16226. fi
  16227. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16228. if test "x$ac_cv_header_stdlib_h" = xyes
  16229. then :
  16230. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16231. fi
  16232. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16233. if test "x$ac_cv_header_stddef_h" = xyes
  16234. then :
  16235. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16236. fi
  16237. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16238. if test "x$ac_cv_header_stdarg_h" = xyes
  16239. then :
  16240. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16241. fi
  16242. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16243. if test "x$ac_cv_header_malloc_h" = xyes
  16244. then :
  16245. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16246. fi
  16247. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16248. if test "x$ac_cv_header_memory_h" = xyes
  16249. then :
  16250. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16251. fi
  16252. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16253. if test "x$ac_cv_header_string_h" = xyes
  16254. then :
  16255. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16256. fi
  16257. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16258. if test "x$ac_cv_header_strings_h" = xyes
  16259. then :
  16260. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16261. fi
  16262. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16263. if test "x$ac_cv_header_wchar_h" = xyes
  16264. then :
  16265. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16266. fi
  16267. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16268. if test "x$ac_cv_header_inttypes_h" = xyes
  16269. then :
  16270. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16271. fi
  16272. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16273. if test "x$ac_cv_header_stdint_h" = xyes
  16274. then :
  16275. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16276. fi
  16277. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16278. if test "x$ac_cv_header_limits_h" = xyes
  16279. then :
  16280. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16281. fi
  16282. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16283. if test "x$ac_cv_header_ctype_h" = xyes
  16284. then :
  16285. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16286. fi
  16287. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16288. if test "x$ac_cv_header_math_h" = xyes
  16289. then :
  16290. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16291. fi
  16292. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16293. if test "x$ac_cv_header_float_h" = xyes
  16294. then :
  16295. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16296. fi
  16297. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16298. if test "x$ac_cv_header_iconv_h" = xyes
  16299. then :
  16300. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16301. fi
  16302. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16303. if test "x$ac_cv_header_signal_h" = xyes
  16304. then :
  16305. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16306. fi
  16307. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16308. if test "x$ac_cv_header_linux_input_h" = xyes
  16309. then :
  16310. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16311. fi
  16312. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16313. if test "x$ac_cv_type_size_t" = xyes
  16314. then :
  16315. else $as_nop
  16316. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16317. fi
  16318. ac_ext=c
  16319. ac_cpp='$CPP $CPPFLAGS'
  16320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16324. printf %s "checking how to run the C preprocessor... " >&6; }
  16325. # On Suns, sometimes $CPP names a directory.
  16326. if test -n "$CPP" && test -d "$CPP"; then
  16327. CPP=
  16328. fi
  16329. if test -z "$CPP"; then
  16330. if test ${ac_cv_prog_CPP+y}
  16331. then :
  16332. printf %s "(cached) " >&6
  16333. else $as_nop
  16334. # Double quotes because $CC needs to be expanded
  16335. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16336. do
  16337. ac_preproc_ok=false
  16338. for ac_c_preproc_warn_flag in '' yes
  16339. do
  16340. # Use a header file that comes with gcc, so configuring glibc
  16341. # with a fresh cross-compiler works.
  16342. # On the NeXT, cc -E runs the code through the compiler's parser,
  16343. # not just through cpp. "Syntax error" is here to catch this case.
  16344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16345. /* end confdefs.h. */
  16346. #include <limits.h>
  16347. Syntax error
  16348. _ACEOF
  16349. if ac_fn_c_try_cpp "$LINENO"
  16350. then :
  16351. else $as_nop
  16352. # Broken: fails on valid input.
  16353. continue
  16354. fi
  16355. rm -f conftest.err conftest.i conftest.$ac_ext
  16356. # OK, works on sane cases. Now check whether nonexistent headers
  16357. # can be detected and how.
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. #include <ac_nonexistent.h>
  16361. _ACEOF
  16362. if ac_fn_c_try_cpp "$LINENO"
  16363. then :
  16364. # Broken: success on invalid input.
  16365. continue
  16366. else $as_nop
  16367. # Passes both tests.
  16368. ac_preproc_ok=:
  16369. break
  16370. fi
  16371. rm -f conftest.err conftest.i conftest.$ac_ext
  16372. done
  16373. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16374. rm -f conftest.i conftest.err conftest.$ac_ext
  16375. if $ac_preproc_ok
  16376. then :
  16377. break
  16378. fi
  16379. done
  16380. ac_cv_prog_CPP=$CPP
  16381. fi
  16382. CPP=$ac_cv_prog_CPP
  16383. else
  16384. ac_cv_prog_CPP=$CPP
  16385. fi
  16386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16387. printf "%s\n" "$CPP" >&6; }
  16388. ac_preproc_ok=false
  16389. for ac_c_preproc_warn_flag in '' yes
  16390. do
  16391. # Use a header file that comes with gcc, so configuring glibc
  16392. # with a fresh cross-compiler works.
  16393. # On the NeXT, cc -E runs the code through the compiler's parser,
  16394. # not just through cpp. "Syntax error" is here to catch this case.
  16395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16396. /* end confdefs.h. */
  16397. #include <limits.h>
  16398. Syntax error
  16399. _ACEOF
  16400. if ac_fn_c_try_cpp "$LINENO"
  16401. then :
  16402. else $as_nop
  16403. # Broken: fails on valid input.
  16404. continue
  16405. fi
  16406. rm -f conftest.err conftest.i conftest.$ac_ext
  16407. # OK, works on sane cases. Now check whether nonexistent headers
  16408. # can be detected and how.
  16409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16410. /* end confdefs.h. */
  16411. #include <ac_nonexistent.h>
  16412. _ACEOF
  16413. if ac_fn_c_try_cpp "$LINENO"
  16414. then :
  16415. # Broken: success on invalid input.
  16416. continue
  16417. else $as_nop
  16418. # Passes both tests.
  16419. ac_preproc_ok=:
  16420. break
  16421. fi
  16422. rm -f conftest.err conftest.i conftest.$ac_ext
  16423. done
  16424. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16425. rm -f conftest.i conftest.err conftest.$ac_ext
  16426. if $ac_preproc_ok
  16427. then :
  16428. else $as_nop
  16429. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16430. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16431. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16432. See \`config.log' for more details" "$LINENO" 5; }
  16433. fi
  16434. ac_ext=c
  16435. ac_cpp='$CPP $CPPFLAGS'
  16436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16440. printf %s "checking for M_PI in math.h... " >&6; }
  16441. if test ${ac_cv_define_M_PI+y}
  16442. then :
  16443. printf %s "(cached) " >&6
  16444. else $as_nop
  16445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16446. /* end confdefs.h. */
  16447. #include <math.h>
  16448. #ifdef M_PI
  16449. YES_IS_DEFINED
  16450. #endif
  16451. _ACEOF
  16452. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16453. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16454. then :
  16455. ac_cv_define_M_PI=yes
  16456. else $as_nop
  16457. ac_cv_define_M_PI=no
  16458. fi
  16459. rm -rf conftest*
  16460. fi
  16461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16462. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16463. if test "$ac_cv_define_M_PI" = "yes" ; then
  16464. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16465. fi
  16466. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16467. # for constant arguments. Useless!
  16468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16469. printf %s "checking for working alloca.h... " >&6; }
  16470. if test ${ac_cv_working_alloca_h+y}
  16471. then :
  16472. printf %s "(cached) " >&6
  16473. else $as_nop
  16474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16475. /* end confdefs.h. */
  16476. #include <alloca.h>
  16477. int
  16478. main (void)
  16479. {
  16480. char *p = (char *) alloca (2 * sizeof (int));
  16481. if (p) return 0;
  16482. ;
  16483. return 0;
  16484. }
  16485. _ACEOF
  16486. if ac_fn_c_try_link "$LINENO"
  16487. then :
  16488. ac_cv_working_alloca_h=yes
  16489. else $as_nop
  16490. ac_cv_working_alloca_h=no
  16491. fi
  16492. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16493. conftest$ac_exeext conftest.$ac_ext
  16494. fi
  16495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16496. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16497. if test $ac_cv_working_alloca_h = yes; then
  16498. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16499. fi
  16500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16501. printf %s "checking for alloca... " >&6; }
  16502. if test ${ac_cv_func_alloca_works+y}
  16503. then :
  16504. printf %s "(cached) " >&6
  16505. else $as_nop
  16506. if test $ac_cv_working_alloca_h = yes; then
  16507. ac_cv_func_alloca_works=yes
  16508. else
  16509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. /* end confdefs.h. */
  16511. #include <stdlib.h>
  16512. #include <stddef.h>
  16513. #ifndef alloca
  16514. # ifdef __GNUC__
  16515. # define alloca __builtin_alloca
  16516. # elif defined _MSC_VER
  16517. # include <malloc.h>
  16518. # define alloca _alloca
  16519. # else
  16520. # ifdef __cplusplus
  16521. extern "C"
  16522. # endif
  16523. void *alloca (size_t);
  16524. # endif
  16525. #endif
  16526. int
  16527. main (void)
  16528. {
  16529. char *p = (char *) alloca (1);
  16530. if (p) return 0;
  16531. ;
  16532. return 0;
  16533. }
  16534. _ACEOF
  16535. if ac_fn_c_try_link "$LINENO"
  16536. then :
  16537. ac_cv_func_alloca_works=yes
  16538. else $as_nop
  16539. ac_cv_func_alloca_works=no
  16540. fi
  16541. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16542. conftest$ac_exeext conftest.$ac_ext
  16543. fi
  16544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16545. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16546. fi
  16547. if test $ac_cv_func_alloca_works = yes; then
  16548. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16549. else
  16550. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16551. # that cause trouble. Some versions do not even contain alloca or
  16552. # contain a buggy version. If you still want to use their alloca,
  16553. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16554. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16555. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16557. printf %s "checking stack direction for C alloca... " >&6; }
  16558. if test ${ac_cv_c_stack_direction+y}
  16559. then :
  16560. printf %s "(cached) " >&6
  16561. else $as_nop
  16562. if test "$cross_compiling" = yes
  16563. then :
  16564. ac_cv_c_stack_direction=0
  16565. else $as_nop
  16566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16567. /* end confdefs.h. */
  16568. $ac_includes_default
  16569. int
  16570. find_stack_direction (int *addr, int depth)
  16571. {
  16572. int dir, dummy = 0;
  16573. if (! addr)
  16574. addr = &dummy;
  16575. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16576. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16577. return dir + dummy;
  16578. }
  16579. int
  16580. main (int argc, char **argv)
  16581. {
  16582. return find_stack_direction (0, argc + !argv + 20) < 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_run "$LINENO"
  16586. then :
  16587. ac_cv_c_stack_direction=1
  16588. else $as_nop
  16589. ac_cv_c_stack_direction=-1
  16590. fi
  16591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16593. fi
  16594. fi
  16595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16596. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16597. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16598. fi
  16599. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16600. if test "x$ac_cv_func_mprotect" = xyes
  16601. then :
  16602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16603. /* end confdefs.h. */
  16604. #include <sys/types.h>
  16605. #include <sys/mman.h>
  16606. int
  16607. main (void)
  16608. {
  16609. ;
  16610. return 0;
  16611. }
  16612. _ACEOF
  16613. if ac_fn_c_try_compile "$LINENO"
  16614. then :
  16615. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16616. fi
  16617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16618. fi
  16619. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16620. if test "x$ac_cv_func_malloc" = xyes
  16621. then :
  16622. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16623. fi
  16624. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16625. if test "x$ac_cv_func_calloc" = xyes
  16626. then :
  16627. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16628. fi
  16629. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16630. if test "x$ac_cv_func_realloc" = xyes
  16631. then :
  16632. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16633. fi
  16634. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16635. if test "x$ac_cv_func_free" = xyes
  16636. then :
  16637. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16638. fi
  16639. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16640. if test "x$ac_cv_func_getenv" = xyes
  16641. then :
  16642. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16643. fi
  16644. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16645. if test "x$ac_cv_func_setenv" = xyes
  16646. then :
  16647. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16648. fi
  16649. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16650. if test "x$ac_cv_func_putenv" = xyes
  16651. then :
  16652. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16653. fi
  16654. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16655. if test "x$ac_cv_func_unsetenv" = xyes
  16656. then :
  16657. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16658. fi
  16659. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16660. if test "x$ac_cv_func_bsearch" = xyes
  16661. then :
  16662. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16663. fi
  16664. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16665. if test "x$ac_cv_func_qsort" = xyes
  16666. then :
  16667. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16668. fi
  16669. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16670. if test "x$ac_cv_func_abs" = xyes
  16671. then :
  16672. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16673. fi
  16674. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16675. if test "x$ac_cv_func_bcopy" = xyes
  16676. then :
  16677. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16678. fi
  16679. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16680. if test "x$ac_cv_func_memset" = xyes
  16681. then :
  16682. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16683. fi
  16684. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16685. if test "x$ac_cv_func_memcmp" = xyes
  16686. then :
  16687. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16688. fi
  16689. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16690. if test "x$ac_cv_func_memcpy" = xyes
  16691. then :
  16692. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16693. fi
  16694. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16695. if test "x$ac_cv_func_memmove" = xyes
  16696. then :
  16697. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16698. fi
  16699. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16700. if test "x$ac_cv_func_wcslen" = xyes
  16701. then :
  16702. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16703. fi
  16704. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16705. if test "x$ac_cv_func_wcslcpy" = xyes
  16706. then :
  16707. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16708. fi
  16709. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16710. if test "x$ac_cv_func_wcslcat" = xyes
  16711. then :
  16712. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16713. fi
  16714. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16715. if test "x$ac_cv_func__wcsdup" = xyes
  16716. then :
  16717. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16718. fi
  16719. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16720. if test "x$ac_cv_func_wcsdup" = xyes
  16721. then :
  16722. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16723. fi
  16724. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16725. if test "x$ac_cv_func_wcsstr" = xyes
  16726. then :
  16727. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16728. fi
  16729. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16730. if test "x$ac_cv_func_wcscmp" = xyes
  16731. then :
  16732. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16733. fi
  16734. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16735. if test "x$ac_cv_func_wcsncmp" = xyes
  16736. then :
  16737. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16738. fi
  16739. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16740. if test "x$ac_cv_func_wcscasecmp" = xyes
  16741. then :
  16742. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16743. fi
  16744. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16745. if test "x$ac_cv_func__wcsicmp" = xyes
  16746. then :
  16747. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16748. fi
  16749. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16750. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16751. then :
  16752. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16753. fi
  16754. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16755. if test "x$ac_cv_func__wcsnicmp" = xyes
  16756. then :
  16757. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16758. fi
  16759. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16760. if test "x$ac_cv_func_strlen" = xyes
  16761. then :
  16762. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16763. fi
  16764. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16765. if test "x$ac_cv_func_strlcpy" = xyes
  16766. then :
  16767. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16768. fi
  16769. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16770. if test "x$ac_cv_func_strlcat" = xyes
  16771. then :
  16772. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16773. fi
  16774. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16775. if test "x$ac_cv_func__strrev" = xyes
  16776. then :
  16777. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16778. fi
  16779. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16780. if test "x$ac_cv_func__strupr" = xyes
  16781. then :
  16782. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16783. fi
  16784. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16785. if test "x$ac_cv_func__strlwr" = xyes
  16786. then :
  16787. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16788. fi
  16789. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16790. if test "x$ac_cv_func_index" = xyes
  16791. then :
  16792. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16793. fi
  16794. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16795. if test "x$ac_cv_func_rindex" = xyes
  16796. then :
  16797. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16798. fi
  16799. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16800. if test "x$ac_cv_func_strchr" = xyes
  16801. then :
  16802. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16803. fi
  16804. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16805. if test "x$ac_cv_func_strrchr" = xyes
  16806. then :
  16807. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16808. fi
  16809. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16810. if test "x$ac_cv_func_strstr" = xyes
  16811. then :
  16812. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16813. fi
  16814. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16815. if test "x$ac_cv_func_strtok_r" = xyes
  16816. then :
  16817. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16820. if test "x$ac_cv_func_itoa" = xyes
  16821. then :
  16822. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16823. fi
  16824. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16825. if test "x$ac_cv_func__ltoa" = xyes
  16826. then :
  16827. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16828. fi
  16829. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16830. if test "x$ac_cv_func__uitoa" = xyes
  16831. then :
  16832. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16833. fi
  16834. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16835. if test "x$ac_cv_func__ultoa" = xyes
  16836. then :
  16837. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16840. if test "x$ac_cv_func_strtod" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16845. if test "x$ac_cv_func_strtol" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16850. if test "x$ac_cv_func_strtoul" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16855. if test "x$ac_cv_func__i64toa" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16860. if test "x$ac_cv_func__ui64toa" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16865. if test "x$ac_cv_func_strtoll" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16870. if test "x$ac_cv_func_strtoull" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16875. if test "x$ac_cv_func_atoi" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16880. if test "x$ac_cv_func_atof" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16885. if test "x$ac_cv_func_strcmp" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16890. if test "x$ac_cv_func_strncmp" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16895. if test "x$ac_cv_func__stricmp" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16900. if test "x$ac_cv_func_strcasecmp" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16905. if test "x$ac_cv_func__strnicmp" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16910. if test "x$ac_cv_func_strncasecmp" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16915. if test "x$ac_cv_func_strcasestr" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16920. if test "x$ac_cv_func_vsscanf" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16925. if test "x$ac_cv_func_vsnprintf" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16930. if test "x$ac_cv_func_fopen64" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16935. if test "x$ac_cv_func_fseeko" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16940. if test "x$ac_cv_func_fseeko64" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16945. if test "x$ac_cv_func_sigaction" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16950. if test "x$ac_cv_func_setjmp" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16955. if test "x$ac_cv_func_nanosleep" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16960. if test "x$ac_cv_func_sysconf" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16965. if test "x$ac_cv_func_sysctlbyname" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16970. if test "x$ac_cv_func_getauxval" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16975. if test "x$ac_cv_func_elf_aux_info" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16980. if test "x$ac_cv_func_poll" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  16985. if test "x$ac_cv_func__Exit" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  16988. fi
  16989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16990. printf %s "checking for pow in -lm... " >&6; }
  16991. if test ${ac_cv_lib_m_pow+y}
  16992. then :
  16993. printf %s "(cached) " >&6
  16994. else $as_nop
  16995. ac_check_lib_save_LIBS=$LIBS
  16996. LIBS="-lm $LIBS"
  16997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16998. /* end confdefs.h. */
  16999. /* Override any GCC internal prototype to avoid an error.
  17000. Use char because int might match the return type of a GCC
  17001. builtin and then its argument prototype would still apply. */
  17002. char pow ();
  17003. int
  17004. main (void)
  17005. {
  17006. return pow ();
  17007. ;
  17008. return 0;
  17009. }
  17010. _ACEOF
  17011. if ac_fn_c_try_link "$LINENO"
  17012. then :
  17013. ac_cv_lib_m_pow=yes
  17014. else $as_nop
  17015. ac_cv_lib_m_pow=no
  17016. fi
  17017. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17018. conftest$ac_exeext conftest.$ac_ext
  17019. LIBS=$ac_check_lib_save_LIBS
  17020. fi
  17021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17022. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17023. if test "x$ac_cv_lib_m_pow" = xyes
  17024. then :
  17025. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17026. fi
  17027. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17028. if test "x$ac_cv_func_acos" = xyes
  17029. then :
  17030. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17031. fi
  17032. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17033. if test "x$ac_cv_func_acosf" = xyes
  17034. then :
  17035. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17036. fi
  17037. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17038. if test "x$ac_cv_func_asin" = xyes
  17039. then :
  17040. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17041. fi
  17042. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17043. if test "x$ac_cv_func_asinf" = xyes
  17044. then :
  17045. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17046. fi
  17047. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17048. if test "x$ac_cv_func_atan" = xyes
  17049. then :
  17050. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17051. fi
  17052. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17053. if test "x$ac_cv_func_atanf" = xyes
  17054. then :
  17055. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17056. fi
  17057. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17058. if test "x$ac_cv_func_atan2" = xyes
  17059. then :
  17060. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17061. fi
  17062. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17063. if test "x$ac_cv_func_atan2f" = xyes
  17064. then :
  17065. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17066. fi
  17067. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17068. if test "x$ac_cv_func_ceil" = xyes
  17069. then :
  17070. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17071. fi
  17072. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17073. if test "x$ac_cv_func_ceilf" = xyes
  17074. then :
  17075. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17076. fi
  17077. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17078. if test "x$ac_cv_func_copysign" = xyes
  17079. then :
  17080. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17081. fi
  17082. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17083. if test "x$ac_cv_func_copysignf" = xyes
  17084. then :
  17085. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17086. fi
  17087. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17088. if test "x$ac_cv_func_cos" = xyes
  17089. then :
  17090. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17091. fi
  17092. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17093. if test "x$ac_cv_func_cosf" = xyes
  17094. then :
  17095. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17096. fi
  17097. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17098. if test "x$ac_cv_func_exp" = xyes
  17099. then :
  17100. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17101. fi
  17102. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17103. if test "x$ac_cv_func_expf" = xyes
  17104. then :
  17105. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17106. fi
  17107. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17108. if test "x$ac_cv_func_fabs" = xyes
  17109. then :
  17110. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17111. fi
  17112. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17113. if test "x$ac_cv_func_fabsf" = xyes
  17114. then :
  17115. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17118. if test "x$ac_cv_func_floor" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17123. if test "x$ac_cv_func_floorf" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17128. if test "x$ac_cv_func_trunc" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17133. if test "x$ac_cv_func_truncf" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17138. if test "x$ac_cv_func_fmod" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17143. if test "x$ac_cv_func_fmodf" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17146. fi
  17147. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17148. if test "x$ac_cv_func_log" = xyes
  17149. then :
  17150. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17151. fi
  17152. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17153. if test "x$ac_cv_func_logf" = xyes
  17154. then :
  17155. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17156. fi
  17157. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17158. if test "x$ac_cv_func_log10" = xyes
  17159. then :
  17160. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17161. fi
  17162. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17163. if test "x$ac_cv_func_log10f" = xyes
  17164. then :
  17165. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17166. fi
  17167. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17168. if test "x$ac_cv_func_lround" = xyes
  17169. then :
  17170. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17171. fi
  17172. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17173. if test "x$ac_cv_func_lroundf" = xyes
  17174. then :
  17175. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17178. if test "x$ac_cv_func_pow" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17183. if test "x$ac_cv_func_powf" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17188. if test "x$ac_cv_func_round" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17193. if test "x$ac_cv_func_roundf" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17198. if test "x$ac_cv_func_scalbn" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17201. fi
  17202. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17203. if test "x$ac_cv_func_scalbnf" = xyes
  17204. then :
  17205. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17206. fi
  17207. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17208. if test "x$ac_cv_func_sin" = xyes
  17209. then :
  17210. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17211. fi
  17212. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17213. if test "x$ac_cv_func_sinf" = xyes
  17214. then :
  17215. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17216. fi
  17217. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17218. if test "x$ac_cv_func_sqrt" = xyes
  17219. then :
  17220. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17221. fi
  17222. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17223. if test "x$ac_cv_func_sqrtf" = xyes
  17224. then :
  17225. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17226. fi
  17227. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17228. if test "x$ac_cv_func_tan" = xyes
  17229. then :
  17230. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17233. if test "x$ac_cv_func_tanf" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17236. fi
  17237. if test x$enable_system_iconv = xyes; then
  17238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17239. printf %s "checking for iconv_open in -liconv... " >&6; }
  17240. if test ${ac_cv_lib_iconv_iconv_open+y}
  17241. then :
  17242. printf %s "(cached) " >&6
  17243. else $as_nop
  17244. ac_check_lib_save_LIBS=$LIBS
  17245. LIBS="-liconv $LIBS"
  17246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17247. /* end confdefs.h. */
  17248. /* Override any GCC internal prototype to avoid an error.
  17249. Use char because int might match the return type of a GCC
  17250. builtin and then its argument prototype would still apply. */
  17251. char iconv_open ();
  17252. int
  17253. main (void)
  17254. {
  17255. return iconv_open ();
  17256. ;
  17257. return 0;
  17258. }
  17259. _ACEOF
  17260. if ac_fn_c_try_link "$LINENO"
  17261. then :
  17262. ac_cv_lib_iconv_iconv_open=yes
  17263. else $as_nop
  17264. ac_cv_lib_iconv_iconv_open=no
  17265. fi
  17266. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17267. conftest$ac_exeext conftest.$ac_ext
  17268. LIBS=$ac_check_lib_save_LIBS
  17269. fi
  17270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17271. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17272. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17273. then :
  17274. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17275. fi
  17276. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17277. if test "x$ac_cv_func_iconv" = xyes
  17278. then :
  17279. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17280. fi
  17281. fi
  17282. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17283. "
  17284. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17289. if test "x$ac_cv_header_libunwind_h" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17292. fi
  17293. fi
  17294. # Check whether --enable-gcc-atomics was given.
  17295. if test ${enable_gcc_atomics+y}
  17296. then :
  17297. enableval=$enable_gcc_atomics;
  17298. else $as_nop
  17299. enable_gcc_atomics=yes
  17300. fi
  17301. if test x$enable_gcc_atomics = xyes; then
  17302. have_gcc_atomics=no
  17303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17304. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17306. /* end confdefs.h. */
  17307. int
  17308. main (void)
  17309. {
  17310. int a;
  17311. void *x, *y, *z;
  17312. __sync_lock_test_and_set(&a, 4);
  17313. __sync_lock_test_and_set(&x, y);
  17314. __sync_fetch_and_add(&a, 1);
  17315. __sync_bool_compare_and_swap(&a, 5, 10);
  17316. __sync_bool_compare_and_swap(&x, y, z);
  17317. ;
  17318. return 0;
  17319. }
  17320. _ACEOF
  17321. if ac_fn_c_try_link "$LINENO"
  17322. then :
  17323. have_gcc_atomics=yes
  17324. fi
  17325. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17326. conftest$ac_exeext conftest.$ac_ext
  17327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17328. printf "%s\n" "$have_gcc_atomics" >&6; }
  17329. if test x$have_gcc_atomics = xyes; then
  17330. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17331. else
  17332. # See if we have the minimum operation needed for GCC atomics
  17333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17334. /* end confdefs.h. */
  17335. int
  17336. main (void)
  17337. {
  17338. int a;
  17339. __sync_lock_test_and_set(&a, 1);
  17340. __sync_lock_release(&a);
  17341. ;
  17342. return 0;
  17343. }
  17344. _ACEOF
  17345. if ac_fn_c_try_link "$LINENO"
  17346. then :
  17347. have_gcc_sync_lock_test_and_set=yes
  17348. fi
  17349. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17350. conftest$ac_exeext conftest.$ac_ext
  17351. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17352. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17353. fi
  17354. fi
  17355. fi
  17356. # Standard C sources
  17357. SOURCES="$SOURCES $srcdir/src/*.c"
  17358. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17359. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17360. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17361. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17362. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17363. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17364. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17365. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17366. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17367. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17368. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17369. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17370. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17371. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17372. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17373. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17374. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17375. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17376. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17377. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17378. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17380. case "$host" in
  17381. *-*-emscripten*)
  17382. default_atomic=no
  17383. ;;
  17384. *)
  17385. default_atomic=yes
  17386. ;;
  17387. esac
  17388. # Check whether --enable-atomic was given.
  17389. if test ${enable_atomic+y}
  17390. then :
  17391. enableval=$enable_atomic;
  17392. else $as_nop
  17393. enable_atomic=$default_atomic
  17394. fi
  17395. if test x$enable_atomic != xyes; then
  17396. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17397. else
  17398. SUMMARY_modules="${SUMMARY_modules} atomic"
  17399. fi
  17400. # Check whether --enable-audio was given.
  17401. if test ${enable_audio+y}
  17402. then :
  17403. enableval=$enable_audio;
  17404. else $as_nop
  17405. enable_audio=yes
  17406. fi
  17407. if test x$enable_audio != xyes; then
  17408. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17409. else
  17410. SUMMARY_modules="${SUMMARY_modules} audio"
  17411. fi
  17412. # Check whether --enable-video was given.
  17413. if test ${enable_video+y}
  17414. then :
  17415. enableval=$enable_video;
  17416. else $as_nop
  17417. enable_video=yes
  17418. fi
  17419. if test x$enable_video != xyes; then
  17420. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17421. else
  17422. SUMMARY_modules="${SUMMARY_modules} video"
  17423. fi
  17424. # Check whether --enable-render was given.
  17425. if test ${enable_render+y}
  17426. then :
  17427. enableval=$enable_render;
  17428. else $as_nop
  17429. enable_render=yes
  17430. fi
  17431. if test x$enable_render != xyes; then
  17432. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17433. else
  17434. SUMMARY_modules="${SUMMARY_modules} render"
  17435. fi
  17436. # Check whether --enable-events was given.
  17437. if test ${enable_events+y}
  17438. then :
  17439. enableval=$enable_events;
  17440. else $as_nop
  17441. enable_events=yes
  17442. fi
  17443. if test x$enable_events != xyes; then
  17444. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17445. else
  17446. SUMMARY_modules="${SUMMARY_modules} events"
  17447. fi
  17448. # Check whether --enable-joystick was given.
  17449. if test ${enable_joystick+y}
  17450. then :
  17451. enableval=$enable_joystick;
  17452. else $as_nop
  17453. enable_joystick=yes
  17454. fi
  17455. if test x$enable_joystick != xyes; then
  17456. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17457. else
  17458. SUMMARY_modules="${SUMMARY_modules} joystick"
  17459. fi
  17460. # Check whether --enable-haptic was given.
  17461. if test ${enable_haptic+y}
  17462. then :
  17463. enableval=$enable_haptic;
  17464. else $as_nop
  17465. enable_haptic=yes
  17466. fi
  17467. if test x$enable_haptic != xyes; then
  17468. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17469. else
  17470. SUMMARY_modules="${SUMMARY_modules} haptic"
  17471. fi
  17472. # Check whether --enable-hidapi was given.
  17473. if test ${enable_hidapi+y}
  17474. then :
  17475. enableval=$enable_hidapi;
  17476. else $as_nop
  17477. enable_hidapi=yes
  17478. fi
  17479. if test x$enable_hidapi != xyes; then
  17480. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17481. else
  17482. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17483. fi
  17484. # Check whether --enable-sensor was given.
  17485. if test ${enable_sensor+y}
  17486. then :
  17487. enableval=$enable_sensor;
  17488. else $as_nop
  17489. enable_sensor=yes
  17490. fi
  17491. if test x$enable_sensor != xyes; then
  17492. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17493. else
  17494. SUMMARY_modules="${SUMMARY_modules} sensor"
  17495. fi
  17496. # Check whether --enable-power was given.
  17497. if test ${enable_power+y}
  17498. then :
  17499. enableval=$enable_power;
  17500. else $as_nop
  17501. enable_power=yes
  17502. fi
  17503. if test x$enable_power != xyes; then
  17504. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17505. else
  17506. SUMMARY_modules="${SUMMARY_modules} power"
  17507. fi
  17508. # Check whether --enable-filesystem was given.
  17509. if test ${enable_filesystem+y}
  17510. then :
  17511. enableval=$enable_filesystem;
  17512. else $as_nop
  17513. enable_filesystem=yes
  17514. fi
  17515. if test x$enable_filesystem != xyes; then
  17516. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17517. else
  17518. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17519. fi
  17520. # Many subsystems depend on threads, so leave them enabled by default
  17521. #AC_ARG_ENABLE(threads,
  17522. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17523. # , enable_threads=yes)
  17524. enable_threads=yes
  17525. if test x$enable_threads != xyes; then
  17526. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17527. else
  17528. SUMMARY_modules="${SUMMARY_modules} threads"
  17529. fi
  17530. # Check whether --enable-timers was given.
  17531. if test ${enable_timers+y}
  17532. then :
  17533. enableval=$enable_timers;
  17534. else $as_nop
  17535. enable_timers=yes
  17536. fi
  17537. if test x$enable_timers != xyes; then
  17538. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17539. else
  17540. SUMMARY_modules="${SUMMARY_modules} timers"
  17541. fi
  17542. # Check whether --enable-file was given.
  17543. if test ${enable_file+y}
  17544. then :
  17545. enableval=$enable_file;
  17546. else $as_nop
  17547. enable_file=yes
  17548. fi
  17549. if test x$enable_file != xyes; then
  17550. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17551. else
  17552. SUMMARY_modules="${SUMMARY_modules} file"
  17553. fi
  17554. # Check whether --enable-misc was given.
  17555. if test ${enable_misc+y}
  17556. then :
  17557. enableval=$enable_misc;
  17558. else $as_nop
  17559. enable_misc=yes
  17560. fi
  17561. if test x$enable_misc != xyes; then
  17562. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17563. else
  17564. SUMMARY_modules="${SUMMARY_modules} misc"
  17565. fi
  17566. # Check whether --enable-locale was given.
  17567. if test ${enable_locale+y}
  17568. then :
  17569. enableval=$enable_locale;
  17570. else $as_nop
  17571. enable_locale=yes
  17572. fi
  17573. if test x$enable_locale != xyes; then
  17574. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17575. else
  17576. SUMMARY_modules="${SUMMARY_modules} locale"
  17577. fi
  17578. # Check whether --enable-loadso was given.
  17579. if test ${enable_loadso+y}
  17580. then :
  17581. enableval=$enable_loadso;
  17582. else $as_nop
  17583. enable_loadso=yes
  17584. fi
  17585. if test x$enable_loadso != xyes; then
  17586. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17587. else
  17588. SUMMARY_modules="${SUMMARY_modules} loadso"
  17589. fi
  17590. # Check whether --enable-cpuinfo was given.
  17591. if test ${enable_cpuinfo+y}
  17592. then :
  17593. enableval=$enable_cpuinfo;
  17594. else $as_nop
  17595. enable_cpuinfo=yes
  17596. fi
  17597. if test x$enable_cpuinfo != xyes; then
  17598. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17599. else
  17600. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17601. fi
  17602. # Check whether --enable-assembly was given.
  17603. if test ${enable_assembly+y}
  17604. then :
  17605. enableval=$enable_assembly;
  17606. else $as_nop
  17607. enable_assembly=yes
  17608. fi
  17609. if test x$enable_assembly = xyes; then
  17610. SUMMARY_modules="${SUMMARY_modules} assembly"
  17611. # Make sure that we don't generate floating point code that would
  17612. # cause illegal instruction exceptions on older processors
  17613. case "$host" in
  17614. *-*-darwin*)
  17615. # Don't need to worry about Apple hardware, it's all SSE capable
  17616. default_ssemath=yes
  17617. ;;
  17618. *64-*-*)
  17619. # x86 64-bit architectures all have SSE instructions
  17620. default_ssemath=yes
  17621. ;;
  17622. *)
  17623. default_ssemath=no
  17624. ;;
  17625. esac
  17626. # Check whether --enable-ssemath was given.
  17627. if test ${enable_ssemath+y}
  17628. then :
  17629. enableval=$enable_ssemath;
  17630. else $as_nop
  17631. enable_ssemath=$default_ssemath
  17632. fi
  17633. if test x$enable_ssemath = xno; then
  17634. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17635. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17636. fi
  17637. fi
  17638. # Check whether --enable-mmx was given.
  17639. if test ${enable_mmx+y}
  17640. then :
  17641. enableval=$enable_mmx;
  17642. else $as_nop
  17643. enable_mmx=yes
  17644. fi
  17645. if test x$enable_mmx = xyes; then
  17646. save_CFLAGS="$CFLAGS"
  17647. have_gcc_mmx=no
  17648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17649. printf %s "checking for GCC -mmmx option... " >&6; }
  17650. mmx_CFLAGS="-mmmx"
  17651. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17653. /* end confdefs.h. */
  17654. #ifdef __MINGW32__
  17655. #include <_mingw.h>
  17656. #ifdef __MINGW64_VERSION_MAJOR
  17657. #include <intrin.h>
  17658. #else
  17659. #include <mmintrin.h>
  17660. #endif
  17661. #else
  17662. #include <mmintrin.h>
  17663. #endif
  17664. #ifndef __MMX__
  17665. #error Assembler CPP flag not enabled
  17666. #endif
  17667. int
  17668. main (void)
  17669. {
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. if ac_fn_c_try_compile "$LINENO"
  17675. then :
  17676. have_gcc_mmx=yes
  17677. fi
  17678. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17680. printf "%s\n" "$have_gcc_mmx" >&6; }
  17681. CFLAGS="$save_CFLAGS"
  17682. if test x$have_gcc_mmx = xyes; then
  17683. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17684. SUMMARY_math="${SUMMARY_math} mmx"
  17685. fi
  17686. fi
  17687. # Check whether --enable-3dnow was given.
  17688. if test ${enable_3dnow+y}
  17689. then :
  17690. enableval=$enable_3dnow;
  17691. else $as_nop
  17692. enable_3dnow=yes
  17693. fi
  17694. if test x$enable_3dnow = xyes; then
  17695. save_CFLAGS="$CFLAGS"
  17696. have_gcc_3dnow=no
  17697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17698. printf %s "checking for GCC -m3dnow option... " >&6; }
  17699. amd3dnow_CFLAGS="-m3dnow"
  17700. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17702. /* end confdefs.h. */
  17703. #include <mm3dnow.h>
  17704. #ifndef __3dNOW__
  17705. #error Assembler CPP flag not enabled
  17706. #endif
  17707. int
  17708. main (void)
  17709. {
  17710. void *p = 0;
  17711. _m_prefetch(p);
  17712. ;
  17713. return 0;
  17714. }
  17715. _ACEOF
  17716. if ac_fn_c_try_link "$LINENO"
  17717. then :
  17718. have_gcc_3dnow=yes
  17719. fi
  17720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17721. conftest$ac_exeext conftest.$ac_ext
  17722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17723. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17724. CFLAGS="$save_CFLAGS"
  17725. if test x$have_gcc_3dnow = xyes; then
  17726. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17727. SUMMARY_math="${SUMMARY_math} 3dnow"
  17728. fi
  17729. fi
  17730. # Check whether --enable-sse was given.
  17731. if test ${enable_sse+y}
  17732. then :
  17733. enableval=$enable_sse;
  17734. else $as_nop
  17735. enable_sse=yes
  17736. fi
  17737. if test x$enable_sse = xyes; then
  17738. save_CFLAGS="$CFLAGS"
  17739. have_gcc_sse=no
  17740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17741. printf %s "checking for GCC -msse option... " >&6; }
  17742. sse_CFLAGS="-msse"
  17743. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17745. /* end confdefs.h. */
  17746. #ifdef __MINGW32__
  17747. #include <_mingw.h>
  17748. #ifdef __MINGW64_VERSION_MAJOR
  17749. #include <intrin.h>
  17750. #else
  17751. #include <xmmintrin.h>
  17752. #endif
  17753. #else
  17754. #include <xmmintrin.h>
  17755. #endif
  17756. #ifndef __SSE__
  17757. #error Assembler CPP flag not enabled
  17758. #endif
  17759. int
  17760. main (void)
  17761. {
  17762. ;
  17763. return 0;
  17764. }
  17765. _ACEOF
  17766. if ac_fn_c_try_compile "$LINENO"
  17767. then :
  17768. have_gcc_sse=yes
  17769. fi
  17770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17772. printf "%s\n" "$have_gcc_sse" >&6; }
  17773. CFLAGS="$save_CFLAGS"
  17774. if test x$have_gcc_sse = xyes; then
  17775. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17776. SUMMARY_math="${SUMMARY_math} sse"
  17777. fi
  17778. fi
  17779. # Check whether --enable-sse2 was given.
  17780. if test ${enable_sse2+y}
  17781. then :
  17782. enableval=$enable_sse2;
  17783. else $as_nop
  17784. enable_sse2=$default_ssemath
  17785. fi
  17786. if test x$enable_sse2 = xyes; then
  17787. save_CFLAGS="$CFLAGS"
  17788. have_gcc_sse2=no
  17789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17790. printf %s "checking for GCC -msse2 option... " >&6; }
  17791. sse2_CFLAGS="-msse2"
  17792. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17794. /* end confdefs.h. */
  17795. #ifdef __MINGW32__
  17796. #include <_mingw.h>
  17797. #ifdef __MINGW64_VERSION_MAJOR
  17798. #include <intrin.h>
  17799. #else
  17800. #include <emmintrin.h>
  17801. #endif
  17802. #else
  17803. #include <emmintrin.h>
  17804. #endif
  17805. #ifndef __SSE2__
  17806. #error Assembler CPP flag not enabled
  17807. #endif
  17808. int
  17809. main (void)
  17810. {
  17811. ;
  17812. return 0;
  17813. }
  17814. _ACEOF
  17815. if ac_fn_c_try_compile "$LINENO"
  17816. then :
  17817. have_gcc_sse2=yes
  17818. fi
  17819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17821. printf "%s\n" "$have_gcc_sse2" >&6; }
  17822. CFLAGS="$save_CFLAGS"
  17823. if test x$have_gcc_sse2 = xyes; then
  17824. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17825. SUMMARY_math="${SUMMARY_math} sse2"
  17826. fi
  17827. fi
  17828. # Check whether --enable-sse3 was given.
  17829. if test ${enable_sse3+y}
  17830. then :
  17831. enableval=$enable_sse3;
  17832. else $as_nop
  17833. enable_sse3=$default_ssemath
  17834. fi
  17835. if test x$enable_sse3 = xyes; then
  17836. save_CFLAGS="$CFLAGS"
  17837. have_gcc_sse3=no
  17838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17839. printf %s "checking for GCC -msse3 option... " >&6; }
  17840. sse3_CFLAGS="-msse3"
  17841. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17843. /* end confdefs.h. */
  17844. #ifdef __MINGW32__
  17845. #include <_mingw.h>
  17846. #ifdef __MINGW64_VERSION_MAJOR
  17847. #include <intrin.h>
  17848. #else
  17849. #include <pmmintrin.h>
  17850. #endif
  17851. #else
  17852. #include <pmmintrin.h>
  17853. #endif
  17854. #ifndef __SSE2__
  17855. #error Assembler CPP flag not enabled
  17856. #endif
  17857. int
  17858. main (void)
  17859. {
  17860. ;
  17861. return 0;
  17862. }
  17863. _ACEOF
  17864. if ac_fn_c_try_compile "$LINENO"
  17865. then :
  17866. have_gcc_sse3=yes
  17867. fi
  17868. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17870. printf "%s\n" "$have_gcc_sse3" >&6; }
  17871. CFLAGS="$save_CFLAGS"
  17872. if test x$have_gcc_sse3 = xyes; then
  17873. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17874. SUMMARY_math="${SUMMARY_math} sse3"
  17875. fi
  17876. fi
  17877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17878. printf %s "checking for immintrin.h... " >&6; }
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. #include <immintrin.h>
  17882. int
  17883. main (void)
  17884. {
  17885. ;
  17886. return 0;
  17887. }
  17888. _ACEOF
  17889. if ac_fn_c_try_compile "$LINENO"
  17890. then :
  17891. have_immintrin_h_hdr=yes
  17892. else $as_nop
  17893. have_immintrin_h_hdr=no
  17894. fi
  17895. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17897. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17898. if test x$have_immintrin_h_hdr = xyes; then
  17899. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17900. fi
  17901. # Check whether --enable-altivec was given.
  17902. if test ${enable_altivec+y}
  17903. then :
  17904. enableval=$enable_altivec;
  17905. else $as_nop
  17906. enable_altivec=yes
  17907. fi
  17908. if test x$enable_altivec = xyes; then
  17909. save_CFLAGS="$CFLAGS"
  17910. have_gcc_altivec=no
  17911. have_altivec_h_hdr=no
  17912. altivec_CFLAGS="-maltivec"
  17913. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17915. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17917. /* end confdefs.h. */
  17918. #include <altivec.h>
  17919. vector unsigned int vzero() {
  17920. return vec_splat_u32(0);
  17921. }
  17922. int
  17923. main (void)
  17924. {
  17925. ;
  17926. return 0;
  17927. }
  17928. _ACEOF
  17929. if ac_fn_c_try_compile "$LINENO"
  17930. then :
  17931. have_gcc_altivec=yes
  17932. have_altivec_h_hdr=yes
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17936. printf "%s\n" "$have_gcc_altivec" >&6; }
  17937. if test x$have_gcc_altivec = xno; then
  17938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17939. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17941. /* end confdefs.h. */
  17942. vector unsigned int vzero() {
  17943. return vec_splat_u32(0);
  17944. }
  17945. int
  17946. main (void)
  17947. {
  17948. ;
  17949. return 0;
  17950. }
  17951. _ACEOF
  17952. if ac_fn_c_try_compile "$LINENO"
  17953. then :
  17954. have_gcc_altivec=yes
  17955. fi
  17956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17958. printf "%s\n" "$have_gcc_altivec" >&6; }
  17959. fi
  17960. if test x$have_gcc_altivec = xno; then
  17961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17962. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17963. altivec_CFLAGS="-faltivec"
  17964. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17966. /* end confdefs.h. */
  17967. #include <altivec.h>
  17968. vector unsigned int vzero() {
  17969. return vec_splat_u32(0);
  17970. }
  17971. int
  17972. main (void)
  17973. {
  17974. ;
  17975. return 0;
  17976. }
  17977. _ACEOF
  17978. if ac_fn_c_try_compile "$LINENO"
  17979. then :
  17980. have_gcc_altivec=yes
  17981. have_altivec_h_hdr=yes
  17982. fi
  17983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17985. printf "%s\n" "$have_gcc_altivec" >&6; }
  17986. fi
  17987. if test x$have_gcc_altivec = xno; then
  17988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  17989. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  17990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17991. /* end confdefs.h. */
  17992. vector unsigned int vzero() {
  17993. return vec_splat_u32(0);
  17994. }
  17995. int
  17996. main (void)
  17997. {
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_compile "$LINENO"
  18003. then :
  18004. have_gcc_altivec=yes
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18008. printf "%s\n" "$have_gcc_altivec" >&6; }
  18009. fi
  18010. CFLAGS="$save_CFLAGS"
  18011. if test x$have_gcc_altivec = xyes; then
  18012. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18013. if test x$have_altivec_h_hdr = xyes; then
  18014. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18015. fi
  18016. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18017. SUMMARY_math="${SUMMARY_math} altivec"
  18018. fi
  18019. fi
  18020. fi
  18021. # Check whether --enable-lsx was given.
  18022. if test ${enable_lsx+y}
  18023. then :
  18024. enableval=$enable_lsx;
  18025. else $as_nop
  18026. enable_lsx=yes
  18027. fi
  18028. if test x$enable_lsx = xyes; then
  18029. save_CFLAGS="$CFLAGS"
  18030. have_gcc_lsx=no
  18031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18032. printf %s "checking for GCC -mlsx option... " >&6; }
  18033. lsx_CFLAGS="-mlsx"
  18034. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18036. /* end confdefs.h. */
  18037. #ifndef __loongarch_sx
  18038. #error Assembler CPP flag not enabled
  18039. #endif
  18040. int
  18041. main (void)
  18042. {
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. if ac_fn_c_try_compile "$LINENO"
  18048. then :
  18049. have_gcc_lsx=yes
  18050. fi
  18051. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18053. printf "%s\n" "$have_gcc_lsx" >&6; }
  18054. CFLAGS="$save_CFLAGS"
  18055. if test x$have_gcc_lsx = xyes; then
  18056. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18057. SUMMARY_math="${SUMMARY_math} lsx"
  18058. fi
  18059. fi
  18060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18061. printf %s "checking for lsxintrin.h... " >&6; }
  18062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18063. /* end confdefs.h. */
  18064. #include <lsxintrin.h>
  18065. int
  18066. main (void)
  18067. {
  18068. ;
  18069. return 0;
  18070. }
  18071. _ACEOF
  18072. if ac_fn_c_try_compile "$LINENO"
  18073. then :
  18074. have_lsxintrin_h_hdr=yes
  18075. else $as_nop
  18076. have_lsxintrin_h_hdr=no
  18077. fi
  18078. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18080. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18081. if test x$have_lsxintrin_h_hdr = xyes; then
  18082. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18083. fi
  18084. # Check whether --enable-lasx was given.
  18085. if test ${enable_lasx+y}
  18086. then :
  18087. enableval=$enable_lasx;
  18088. else $as_nop
  18089. enable_LASX=yes
  18090. fi
  18091. if test x$enable_LASX = xyes; then
  18092. save_CFLAGS="$CFLAGS"
  18093. have_gcc_lasx=no
  18094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18095. printf %s "checking for GCC -mlasx option... " >&6; }
  18096. lasx_CFLAGS="-mlasx"
  18097. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. #ifndef __loongarch_asx
  18101. #error Assembler CPP flag not enabled
  18102. #endif
  18103. int
  18104. main (void)
  18105. {
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_compile "$LINENO"
  18111. then :
  18112. have_gcc_lasx=yes
  18113. fi
  18114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18116. printf "%s\n" "$have_gcc_lasx" >&6; }
  18117. CFLAGS="$save_CFLAGS"
  18118. if test x$have_gcc_lasx = xyes; then
  18119. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18120. SUMMARY_math="${SUMMARY_math} lasx"
  18121. fi
  18122. fi
  18123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18124. printf %s "checking for lasxintrin.h... " >&6; }
  18125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18126. /* end confdefs.h. */
  18127. #include <lasxintrin.h>
  18128. int
  18129. main (void)
  18130. {
  18131. ;
  18132. return 0;
  18133. }
  18134. _ACEOF
  18135. if ac_fn_c_try_compile "$LINENO"
  18136. then :
  18137. have_lasxintrin_h_hdr=yes
  18138. else $as_nop
  18139. have_lasxintrin_h_hdr=no
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18143. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18144. if test x$have_lasxintrin_h_hdr = xyes; then
  18145. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18146. fi
  18147. CheckOSS()
  18148. {
  18149. # Check whether --enable-oss was given.
  18150. if test ${enable_oss+y}
  18151. then :
  18152. enableval=$enable_oss;
  18153. else $as_nop
  18154. enable_oss=maybe
  18155. fi
  18156. if test x$enable_oss = xmaybe; then
  18157. enable_oss=yes
  18158. fi
  18159. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18161. printf %s "checking for OSS audio support... " >&6; }
  18162. have_oss=no
  18163. if test x$have_oss != xyes; then
  18164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18165. /* end confdefs.h. */
  18166. #include <sys/soundcard.h>
  18167. int
  18168. main (void)
  18169. {
  18170. int arg = SNDCTL_DSP_SETFRAGMENT;
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_compile "$LINENO"
  18176. then :
  18177. have_oss=yes
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18180. fi
  18181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18182. printf "%s\n" "$have_oss" >&6; }
  18183. if test x$have_oss = xyes; then
  18184. SUMMARY_audio="${SUMMARY_audio} oss"
  18185. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18186. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18187. have_audio=yes
  18188. # We may need to link with ossaudio emulation library
  18189. case "$host" in
  18190. *-*-netbsd*)
  18191. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18192. esac
  18193. fi
  18194. fi
  18195. }
  18196. CheckALSA()
  18197. {
  18198. # Check whether --enable-alsa was given.
  18199. if test ${enable_alsa+y}
  18200. then :
  18201. enableval=$enable_alsa;
  18202. else $as_nop
  18203. enable_alsa=yes
  18204. fi
  18205. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18206. alsa_save_CFLAGS="$CFLAGS"
  18207. alsa_save_LDFLAGS="$LDFLAGS"
  18208. alsa_save_LIBS="$LIBS"
  18209. alsa_found=yes
  18210. # Check whether --with-alsa-prefix was given.
  18211. if test ${with_alsa_prefix+y}
  18212. then :
  18213. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18214. else $as_nop
  18215. alsa_prefix=""
  18216. fi
  18217. # Check whether --with-alsa-inc-prefix was given.
  18218. if test ${with_alsa_inc_prefix+y}
  18219. then :
  18220. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18221. else $as_nop
  18222. alsa_inc_prefix=""
  18223. fi
  18224. # Check whether --enable-alsatest was given.
  18225. if test ${enable_alsatest+y}
  18226. then :
  18227. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18228. else $as_nop
  18229. enable_alsatest=yes
  18230. fi
  18231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18232. printf %s "checking for ALSA CFLAGS... " >&6; }
  18233. if test "$alsa_inc_prefix" != "" ; then
  18234. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18235. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18236. fi
  18237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18238. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18240. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18241. if test "$alsa_prefix" != "" ; then
  18242. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18243. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18244. fi
  18245. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18246. LIBS=`echo $LIBS | sed 's/-lm//'`
  18247. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18248. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18249. LIBS=`echo $LIBS | sed 's/ //'`
  18250. LIBS="$ALSA_LIBS $LIBS"
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18252. printf "%s\n" "$ALSA_LIBS" >&6; }
  18253. min_alsa_version=1.0.11
  18254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18255. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18256. no_alsa=""
  18257. alsa_min_major_version=`echo $min_alsa_version | \
  18258. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18259. alsa_min_minor_version=`echo $min_alsa_version | \
  18260. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18261. alsa_min_micro_version=`echo $min_alsa_version | \
  18262. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18263. ac_ext=c
  18264. ac_cpp='$CPP $CPPFLAGS'
  18265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18269. /* end confdefs.h. */
  18270. #include <alsa/asoundlib.h>
  18271. int
  18272. main (void)
  18273. {
  18274. /* ensure backward compatibility */
  18275. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18276. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18277. #endif
  18278. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18279. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18280. #endif
  18281. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18282. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18283. #endif
  18284. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18285. exit(0);
  18286. # else
  18287. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18288. # error not present
  18289. # endif
  18290. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18291. exit(0);
  18292. # else
  18293. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18294. # error not present
  18295. # endif
  18296. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18297. # error not present
  18298. # endif
  18299. # endif
  18300. # endif
  18301. exit(0);
  18302. ;
  18303. return 0;
  18304. }
  18305. _ACEOF
  18306. if ac_fn_c_try_compile "$LINENO"
  18307. then :
  18308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18309. printf "%s\n" "found." >&6; }
  18310. else $as_nop
  18311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18312. printf "%s\n" "not present." >&6; }
  18313. alsa_found=no
  18314. fi
  18315. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18316. ac_ext=c
  18317. ac_cpp='$CPP $CPPFLAGS'
  18318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18321. if test "x$enable_alsatest" = "xyes"; then
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18323. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18324. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18325. then :
  18326. printf %s "(cached) " >&6
  18327. else $as_nop
  18328. ac_check_lib_save_LIBS=$LIBS
  18329. LIBS="-lasound $LIBS"
  18330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18331. /* end confdefs.h. */
  18332. /* Override any GCC internal prototype to avoid an error.
  18333. Use char because int might match the return type of a GCC
  18334. builtin and then its argument prototype would still apply. */
  18335. char snd_ctl_open ();
  18336. int
  18337. main (void)
  18338. {
  18339. return snd_ctl_open ();
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_link "$LINENO"
  18345. then :
  18346. ac_cv_lib_asound_snd_ctl_open=yes
  18347. else $as_nop
  18348. ac_cv_lib_asound_snd_ctl_open=no
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18351. conftest$ac_exeext conftest.$ac_ext
  18352. LIBS=$ac_check_lib_save_LIBS
  18353. fi
  18354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18355. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18356. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18357. then :
  18358. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18359. LIBS="-lasound $LIBS"
  18360. else $as_nop
  18361. alsa_found=no
  18362. fi
  18363. fi
  18364. if test "x$alsa_found" = "xyes" ; then
  18365. have_alsa=yes
  18366. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18367. LIBS=`echo $LIBS | sed 's/ //'`
  18368. LIBS="-lasound $LIBS"
  18369. fi
  18370. if test "x$alsa_found" = "xno" ; then
  18371. have_alsa=no
  18372. CFLAGS="$alsa_save_CFLAGS"
  18373. LDFLAGS="$alsa_save_LDFLAGS"
  18374. LIBS="$alsa_save_LIBS"
  18375. ALSA_CFLAGS=""
  18376. ALSA_LIBS=""
  18377. fi
  18378. # Restore all flags from before the ALSA detection runs
  18379. CFLAGS="$alsa_save_CFLAGS"
  18380. LDFLAGS="$alsa_save_LDFLAGS"
  18381. LIBS="$alsa_save_LIBS"
  18382. if test x$have_alsa = xyes; then
  18383. # Check whether --enable-alsa-shared was given.
  18384. if test ${enable_alsa_shared+y}
  18385. then :
  18386. enableval=$enable_alsa_shared;
  18387. else $as_nop
  18388. enable_alsa_shared=yes
  18389. fi
  18390. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18391. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18392. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18393. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18394. if test x$have_loadso != xyes && \
  18395. test x$enable_alsa_shared = xyes; then
  18396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18397. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18398. fi
  18399. if test x$have_loadso = xyes && \
  18400. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18401. echo "-- dynamic libasound -> $alsa_lib"
  18402. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18403. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18404. else
  18405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18406. SUMMARY_audio="${SUMMARY_audio} alsa"
  18407. fi
  18408. have_audio=yes
  18409. fi
  18410. fi
  18411. }
  18412. CheckPipewire()
  18413. {
  18414. # Check whether --enable-pipewire was given.
  18415. if test ${enable_pipewire+y}
  18416. then :
  18417. enableval=$enable_pipewire;
  18418. else $as_nop
  18419. enable_pipewire=yes
  18420. fi
  18421. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18422. pkg_failed=no
  18423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18424. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18425. if test -n "$PIPEWIRE_CFLAGS"; then
  18426. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18427. elif test -n "$PKG_CONFIG"; then
  18428. if test -n "$PKG_CONFIG" && \
  18429. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18430. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18431. ac_status=$?
  18432. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18433. test $ac_status = 0; }; then
  18434. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18435. test "x$?" != "x0" && pkg_failed=yes
  18436. else
  18437. pkg_failed=yes
  18438. fi
  18439. else
  18440. pkg_failed=untried
  18441. fi
  18442. if test -n "$PIPEWIRE_LIBS"; then
  18443. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18444. elif test -n "$PKG_CONFIG"; then
  18445. if test -n "$PKG_CONFIG" && \
  18446. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18447. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18448. ac_status=$?
  18449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18450. test $ac_status = 0; }; then
  18451. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18452. test "x$?" != "x0" && pkg_failed=yes
  18453. else
  18454. pkg_failed=yes
  18455. fi
  18456. else
  18457. pkg_failed=untried
  18458. fi
  18459. if test $pkg_failed = yes; then
  18460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18461. printf "%s\n" "no" >&6; }
  18462. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18463. _pkg_short_errors_supported=yes
  18464. else
  18465. _pkg_short_errors_supported=no
  18466. fi
  18467. if test $_pkg_short_errors_supported = yes; then
  18468. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18469. else
  18470. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18471. fi
  18472. # Put the nasty error message in config.log where it belongs
  18473. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18474. audio_pipewire=no
  18475. elif test $pkg_failed = untried; then
  18476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18477. printf "%s\n" "no" >&6; }
  18478. audio_pipewire=no
  18479. else
  18480. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18481. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18483. printf "%s\n" "yes" >&6; }
  18484. audio_pipewire=yes
  18485. fi
  18486. if test x$audio_pipewire = xyes; then
  18487. # Check whether --enable-pipewire-shared was given.
  18488. if test ${enable_pipewire_shared+y}
  18489. then :
  18490. enableval=$enable_pipewire_shared;
  18491. else $as_nop
  18492. enable_pipewire_shared=yes
  18493. fi
  18494. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18495. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18496. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18497. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18498. if test x$have_loadso != xyes && \
  18499. test x$enable_pipewire_shared = xyes; then
  18500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18501. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18502. fi
  18503. if test x$have_loadso = xyes && \
  18504. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18505. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18506. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18507. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18508. else
  18509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18510. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18511. fi
  18512. have_audio=yes
  18513. fi
  18514. fi
  18515. }
  18516. CheckPulseAudio()
  18517. {
  18518. # Check whether --enable-pulseaudio was given.
  18519. if test ${enable_pulseaudio+y}
  18520. then :
  18521. enableval=$enable_pulseaudio;
  18522. else $as_nop
  18523. enable_pulseaudio=yes
  18524. fi
  18525. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18526. pkg_failed=no
  18527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18528. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18529. if test -n "$PULSEAUDIO_CFLAGS"; then
  18530. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18531. elif test -n "$PKG_CONFIG"; then
  18532. if test -n "$PKG_CONFIG" && \
  18533. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18534. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18535. ac_status=$?
  18536. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18537. test $ac_status = 0; }; then
  18538. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18539. test "x$?" != "x0" && pkg_failed=yes
  18540. else
  18541. pkg_failed=yes
  18542. fi
  18543. else
  18544. pkg_failed=untried
  18545. fi
  18546. if test -n "$PULSEAUDIO_LIBS"; then
  18547. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18548. elif test -n "$PKG_CONFIG"; then
  18549. if test -n "$PKG_CONFIG" && \
  18550. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18551. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18552. ac_status=$?
  18553. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18554. test $ac_status = 0; }; then
  18555. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18556. test "x$?" != "x0" && pkg_failed=yes
  18557. else
  18558. pkg_failed=yes
  18559. fi
  18560. else
  18561. pkg_failed=untried
  18562. fi
  18563. if test $pkg_failed = yes; then
  18564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18565. printf "%s\n" "no" >&6; }
  18566. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18567. _pkg_short_errors_supported=yes
  18568. else
  18569. _pkg_short_errors_supported=no
  18570. fi
  18571. if test $_pkg_short_errors_supported = yes; then
  18572. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18573. else
  18574. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18575. fi
  18576. # Put the nasty error message in config.log where it belongs
  18577. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18578. audio_pulseaudio=no
  18579. elif test $pkg_failed = untried; then
  18580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18581. printf "%s\n" "no" >&6; }
  18582. audio_pulseaudio=no
  18583. else
  18584. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18585. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18587. printf "%s\n" "yes" >&6; }
  18588. audio_pulseaudio=yes
  18589. fi
  18590. if test x$audio_pulseaudio = xyes; then
  18591. # Check whether --enable-pulseaudio-shared was given.
  18592. if test ${enable_pulseaudio_shared+y}
  18593. then :
  18594. enableval=$enable_pulseaudio_shared;
  18595. else $as_nop
  18596. enable_pulseaudio_shared=yes
  18597. fi
  18598. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18599. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18600. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18601. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18602. if test x$have_loadso != xyes && \
  18603. test x$enable_pulseaudio_shared = xyes; then
  18604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18605. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18606. fi
  18607. if test x$have_loadso = xyes && \
  18608. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18609. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18610. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18611. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18612. case "$host" in
  18613. # On Solaris, pulseaudio must be linked deferred explicitly
  18614. # to prevent undefined symbol failures.
  18615. *-*-solaris*)
  18616. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18618. esac
  18619. else
  18620. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18621. SUMMARY_audio="${SUMMARY_audio} pulse"
  18622. fi
  18623. have_audio=yes
  18624. fi
  18625. fi
  18626. }
  18627. CheckDiskAudio()
  18628. {
  18629. # Check whether --enable-diskaudio was given.
  18630. if test ${enable_diskaudio+y}
  18631. then :
  18632. enableval=$enable_diskaudio;
  18633. else $as_nop
  18634. enable_diskaudio=yes
  18635. fi
  18636. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18637. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18638. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18639. SUMMARY_audio="${SUMMARY_audio} disk"
  18640. have_audio=yes
  18641. fi
  18642. }
  18643. CheckDummyAudio()
  18644. {
  18645. # Check whether --enable-dummyaudio was given.
  18646. if test ${enable_dummyaudio+y}
  18647. then :
  18648. enableval=$enable_dummyaudio;
  18649. else $as_nop
  18650. enable_dummyaudio=yes
  18651. fi
  18652. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18653. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18654. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18655. SUMMARY_audio="${SUMMARY_audio} dummy"
  18656. have_audio=yes
  18657. fi
  18658. }
  18659. CheckLibSampleRate()
  18660. {
  18661. # Check whether --enable-libsamplerate was given.
  18662. if test ${enable_libsamplerate+y}
  18663. then :
  18664. enableval=$enable_libsamplerate;
  18665. else $as_nop
  18666. enable_libsamplerate=yes
  18667. fi
  18668. if test x$enable_libsamplerate = xyes; then
  18669. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18670. if test "x$ac_cv_header_samplerate_h" = xyes
  18671. then :
  18672. have_samplerate_h_hdr=yes
  18673. else $as_nop
  18674. have_samplerate_h_hdr=no
  18675. fi
  18676. if test x$have_samplerate_h_hdr = xyes; then
  18677. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18678. # Check whether --enable-libsamplerate-shared was given.
  18679. if test ${enable_libsamplerate_shared+y}
  18680. then :
  18681. enableval=$enable_libsamplerate_shared;
  18682. else $as_nop
  18683. enable_libsamplerate_shared=yes
  18684. fi
  18685. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18686. if test x$have_loadso != xyes && \
  18687. test x$enable_libsamplerate_shared = xyes; then
  18688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18689. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18690. fi
  18691. if test x$have_loadso = xyes && \
  18692. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18693. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18694. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18695. else
  18696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18697. fi
  18698. fi
  18699. fi
  18700. }
  18701. CheckARM()
  18702. {
  18703. # Check whether --enable-arm-simd was given.
  18704. if test ${enable_arm_simd+y}
  18705. then :
  18706. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18707. else $as_nop
  18708. enable_arm_simd=no
  18709. fi
  18710. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18711. save_CFLAGS="$CFLAGS"
  18712. have_arm_simd=no
  18713. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18715. printf %s "checking for ARM SIMD... " >&6; }
  18716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18717. /* end confdefs.h. */
  18718. .text
  18719. .arch armv6
  18720. .object_arch armv4
  18721. .arm
  18722. .altmacro
  18723. #ifndef __ARM_EABI__
  18724. #error EABI is required (to be sure that calling conventions are compatible)
  18725. #endif
  18726. pld [r0]
  18727. uqadd8 r0, r0, r0
  18728. _ACEOF
  18729. if ac_fn_c_try_compile "$LINENO"
  18730. then :
  18731. have_arm_simd=yes
  18732. fi
  18733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18735. printf "%s\n" "$have_arm_simd" >&6; }
  18736. CFLAGS="$save_CFLAGS"
  18737. if test x$have_arm_simd = xyes; then
  18738. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18739. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18740. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18741. fi
  18742. fi
  18743. }
  18744. CheckNEON()
  18745. {
  18746. # Check whether --enable-arm-neon was given.
  18747. if test ${enable_arm_neon+y}
  18748. then :
  18749. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18750. else $as_nop
  18751. enable_arm_neon=no
  18752. fi
  18753. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18754. save_CFLAGS="$CFLAGS"
  18755. have_arm_neon=no
  18756. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18758. printf %s "checking for ARM NEON... " >&6; }
  18759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18760. /* end confdefs.h. */
  18761. .text
  18762. .fpu neon
  18763. .arch armv7a
  18764. .object_arch armv4
  18765. .eabi_attribute 10, 0
  18766. .arm
  18767. .altmacro
  18768. #ifndef __ARM_EABI__
  18769. #error EABI is required (to be sure that calling conventions are compatible)
  18770. #endif
  18771. pld [r0]
  18772. vmovn.u16 d0, q0
  18773. _ACEOF
  18774. if ac_fn_c_try_compile "$LINENO"
  18775. then :
  18776. have_arm_neon=yes
  18777. fi
  18778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  18780. printf "%s\n" "$have_arm_neon" >&6; }
  18781. CFLAGS="$save_CFLAGS"
  18782. if test x$have_arm_neon = xyes; then
  18783. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  18784. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  18785. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  18786. fi
  18787. fi
  18788. }
  18789. CheckObjectiveCARC()
  18790. {
  18791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  18792. printf %s "checking for clang -fobjc-arc option... " >&6; }
  18793. have_clang_objc_arc=no
  18794. save_CFLAGS="$CFLAGS"
  18795. CFLAGS="$save_CFLAGS -fobjc-arc"
  18796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18797. /* end confdefs.h. */
  18798. int x = 0;
  18799. int
  18800. main (void)
  18801. {
  18802. ;
  18803. return 0;
  18804. }
  18805. _ACEOF
  18806. if ac_fn_c_try_compile "$LINENO"
  18807. then :
  18808. have_clang_objc_arc=yes
  18809. fi
  18810. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  18812. printf "%s\n" "$have_clang_objc_arc" >&6; }
  18813. CFLAGS="$save_CFLAGS"
  18814. if test x$have_clang_objc_arc = xyes; then
  18815. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  18816. fi
  18817. }
  18818. CheckGDwarf4()
  18819. {
  18820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  18821. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  18822. have_gcc_gdwarf4=no
  18823. save_CFLAGS="$CFLAGS"
  18824. CFLAGS="$save_CFLAGS -gdwarf-4"
  18825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18826. /* end confdefs.h. */
  18827. int x = 0;
  18828. int
  18829. main (void)
  18830. {
  18831. ;
  18832. return 0;
  18833. }
  18834. _ACEOF
  18835. if ac_fn_c_try_compile "$LINENO"
  18836. then :
  18837. have_gcc_gdwarf4=yes
  18838. fi
  18839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  18841. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  18842. CFLAGS="$save_CFLAGS"
  18843. if test x$have_gcc_gdwarf4 = xyes; then
  18844. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  18845. fi
  18846. }
  18847. CheckVisibilityHidden()
  18848. {
  18849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18850. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  18851. have_gcc_fvisibility=no
  18852. visibility_CFLAGS="-fvisibility=hidden"
  18853. save_CFLAGS="$CFLAGS"
  18854. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18856. /* end confdefs.h. */
  18857. #if !defined(__GNUC__) || __GNUC__ < 4
  18858. #error SDL only uses visibility attributes in GCC 4 or newer
  18859. #endif
  18860. int
  18861. main (void)
  18862. {
  18863. ;
  18864. return 0;
  18865. }
  18866. _ACEOF
  18867. if ac_fn_c_try_compile "$LINENO"
  18868. then :
  18869. have_gcc_fvisibility=yes
  18870. fi
  18871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18873. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  18874. CFLAGS="$save_CFLAGS"
  18875. if test x$have_gcc_fvisibility = xyes; then
  18876. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18877. fi
  18878. }
  18879. CheckNoStrictAliasing()
  18880. {
  18881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  18882. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  18883. have_gcc_no_strict_aliasing=no
  18884. save_CFLAGS="$CFLAGS"
  18885. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  18886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18887. /* end confdefs.h. */
  18888. int x = 0;
  18889. int
  18890. main (void)
  18891. {
  18892. ;
  18893. return 0;
  18894. }
  18895. _ACEOF
  18896. if ac_fn_c_try_compile "$LINENO"
  18897. then :
  18898. have_gcc_no_strict_aliasing=yes
  18899. fi
  18900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  18902. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  18903. CFLAGS="$save_CFLAGS"
  18904. if test x$have_gcc_no_strict_aliasing = xyes; then
  18905. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  18906. fi
  18907. }
  18908. CheckStackBoundary()
  18909. {
  18910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  18911. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  18912. have_gcc_preferred_stack_boundary=no
  18913. save_CFLAGS="$CFLAGS"
  18914. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  18915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18916. /* end confdefs.h. */
  18917. int x = 0;
  18918. int
  18919. main (void)
  18920. {
  18921. ;
  18922. return 0;
  18923. }
  18924. _ACEOF
  18925. if ac_fn_c_try_compile "$LINENO"
  18926. then :
  18927. have_gcc_preferred_stack_boundary=yes
  18928. fi
  18929. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18931. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  18932. CFLAGS="$save_CFLAGS"
  18933. if test x$have_gcc_preferred_stack_boundary = xyes; then
  18934. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18935. fi
  18936. }
  18937. CheckWerror()
  18938. {
  18939. # Check whether --enable-werror was given.
  18940. if test ${enable_werror+y}
  18941. then :
  18942. enableval=$enable_werror; enable_werror=$enableval
  18943. else $as_nop
  18944. enable_werror=no
  18945. fi
  18946. if test x$enable_werror = xyes; then
  18947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  18948. printf %s "checking for GCC -Werror option... " >&6; }
  18949. have_gcc_werror=no
  18950. save_CFLAGS="$CFLAGS"
  18951. CFLAGS="$save_CFLAGS -Werror"
  18952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18953. /* end confdefs.h. */
  18954. int x = 0;
  18955. int
  18956. main (void)
  18957. {
  18958. ;
  18959. return 0;
  18960. }
  18961. _ACEOF
  18962. if ac_fn_c_try_compile "$LINENO"
  18963. then :
  18964. have_gcc_werror=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_gcc_werror" >&5
  18968. printf "%s\n" "$have_gcc_werror" >&6; }
  18969. CFLAGS="$save_CFLAGS"
  18970. if test x$have_gcc_werror = xyes; then
  18971. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  18972. fi
  18973. fi
  18974. }
  18975. CheckNoErrorDeprecatedDeclarationsWerror()
  18976. {
  18977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  18978. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  18979. have_gcc_no_werror_deprecated_declarations=no
  18980. save_CFLAGS="$CFLAGS"
  18981. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  18982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18983. /* end confdefs.h. */
  18984. int x = 0;
  18985. int
  18986. main (void)
  18987. {
  18988. ;
  18989. return 0;
  18990. }
  18991. _ACEOF
  18992. if ac_fn_c_try_compile "$LINENO"
  18993. then :
  18994. have_gcc_no_werror_deprecated_declarations=yes
  18995. fi
  18996. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  18998. printf "%s\n" "$have_gcc_werror" >&6; }
  18999. CFLAGS="$save_CFLAGS"
  19000. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19001. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19002. fi
  19003. }
  19004. CheckDeclarationAfterStatement()
  19005. {
  19006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19007. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19008. have_gcc_declaration_after_statement=no
  19009. save_CFLAGS="$CFLAGS"
  19010. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19012. /* end confdefs.h. */
  19013. int x = 0;
  19014. int
  19015. main (void)
  19016. {
  19017. ;
  19018. return 0;
  19019. }
  19020. _ACEOF
  19021. if ac_fn_c_try_compile "$LINENO"
  19022. then :
  19023. have_gcc_declaration_after_statement=yes
  19024. fi
  19025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19027. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19028. CFLAGS="$save_CFLAGS"
  19029. if test x$have_gcc_declaration_after_statement = xyes; then
  19030. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19031. fi
  19032. }
  19033. CheckWarnAll()
  19034. {
  19035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19036. printf %s "checking for GCC -Wall option... " >&6; }
  19037. have_gcc_Wall=no
  19038. save_CFLAGS="$CFLAGS"
  19039. CFLAGS="$save_CFLAGS -Wall"
  19040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19041. /* end confdefs.h. */
  19042. int x = 0;
  19043. int
  19044. main (void)
  19045. {
  19046. ;
  19047. return 0;
  19048. }
  19049. _ACEOF
  19050. if ac_fn_c_try_compile "$LINENO"
  19051. then :
  19052. have_gcc_Wall=yes
  19053. fi
  19054. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19056. printf "%s\n" "$have_gcc_Wall" >&6; }
  19057. CFLAGS="$save_CFLAGS"
  19058. if test x$have_gcc_Wall = xyes; then
  19059. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19061. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19062. need_gcc_Wno_multichar=no
  19063. case "$host" in
  19064. *-*-haiku*)
  19065. need_gcc_Wno_multichar=yes
  19066. ;;
  19067. esac
  19068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19069. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19070. if test x$need_gcc_Wno_multichar = xyes; then
  19071. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19072. fi
  19073. fi
  19074. }
  19075. CheckWayland()
  19076. {
  19077. # Check whether --enable-video-wayland was given.
  19078. if test ${enable_video_wayland+y}
  19079. then :
  19080. enableval=$enable_video_wayland;
  19081. else $as_nop
  19082. enable_video_wayland=yes
  19083. fi
  19084. # Check whether --enable-video-wayland-qt-touch was given.
  19085. if test ${enable_video_wayland_qt_touch+y}
  19086. then :
  19087. enableval=$enable_video_wayland_qt_touch;
  19088. else $as_nop
  19089. enable_video_wayland_qt_touch=yes
  19090. fi
  19091. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19093. printf %s "checking for Wayland support... " >&6; }
  19094. video_wayland=no
  19095. if test x$video_opengl_egl = xyes && \
  19096. test x$video_opengles_v2 = xyes; then
  19097. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19098. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19099. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19100. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19101. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19102. then :
  19103. WAYLAND_SCANNER_CODE_MODE=private-code
  19104. else $as_nop
  19105. WAYLAND_SCANNER_CODE_MODE=code
  19106. fi
  19107. video_wayland=yes
  19108. fi
  19109. fi
  19110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19111. printf "%s\n" "$video_wayland" >&6; }
  19112. if test x$video_wayland = xyes; then
  19113. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19114. if test x$enable_video_wayland_qt_touch = xyes; then
  19115. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19116. fi
  19117. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19118. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19119. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19120. # Check whether --enable-wayland-shared was given.
  19121. if test ${enable_wayland_shared+y}
  19122. then :
  19123. enableval=$enable_wayland_shared;
  19124. else $as_nop
  19125. enable_wayland_shared=maybe
  19126. fi
  19127. case "$host" in
  19128. *)
  19129. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19130. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19131. if test x$wayland_egl_lib = x; then
  19132. # This works in Ubuntu 13.10, maybe others
  19133. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19134. fi
  19135. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19136. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19137. ;;
  19138. esac
  19139. if test x$enable_wayland_shared = xmaybe; then
  19140. enable_wayland_shared=yes
  19141. fi
  19142. if test x$have_loadso != xyes && \
  19143. test x$enable_wayland_shared = xyes; then
  19144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19145. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19146. enable_wayland_shared=no
  19147. fi
  19148. if test x$have_loadso = xyes && \
  19149. test x$enable_wayland_shared = xyes && \
  19150. test x$wayland_client_lib != x && \
  19151. test x$wayland_egl_lib != x && \
  19152. test x$wayland_cursor_lib != x && \
  19153. test x$xkbcommon_lib != x; then
  19154. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19155. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19156. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19157. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19158. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19159. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19160. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19161. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19162. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19163. else
  19164. enable_wayland_shared=no
  19165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19166. SUMMARY_video="${SUMMARY_video} wayland"
  19167. fi
  19168. have_video=yes
  19169. # Check whether --enable-libdecor was given.
  19170. if test ${enable_libdecor+y}
  19171. then :
  19172. enableval=$enable_libdecor;
  19173. else $as_nop
  19174. enable_libdecor=yes
  19175. fi
  19176. if test x$enable_libdecor = xyes; then
  19177. pkg_failed=no
  19178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19179. printf %s "checking for libdecor-0... " >&6; }
  19180. if test -n "$DECOR_CFLAGS"; then
  19181. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19182. elif test -n "$PKG_CONFIG"; then
  19183. if test -n "$PKG_CONFIG" && \
  19184. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19185. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19186. ac_status=$?
  19187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19188. test $ac_status = 0; }; then
  19189. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19190. test "x$?" != "x0" && pkg_failed=yes
  19191. else
  19192. pkg_failed=yes
  19193. fi
  19194. else
  19195. pkg_failed=untried
  19196. fi
  19197. if test -n "$DECOR_LIBS"; then
  19198. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19199. elif test -n "$PKG_CONFIG"; then
  19200. if test -n "$PKG_CONFIG" && \
  19201. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19202. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19203. ac_status=$?
  19204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19205. test $ac_status = 0; }; then
  19206. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19207. test "x$?" != "x0" && pkg_failed=yes
  19208. else
  19209. pkg_failed=yes
  19210. fi
  19211. else
  19212. pkg_failed=untried
  19213. fi
  19214. if test $pkg_failed = yes; then
  19215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19216. printf "%s\n" "no" >&6; }
  19217. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19218. _pkg_short_errors_supported=yes
  19219. else
  19220. _pkg_short_errors_supported=no
  19221. fi
  19222. if test $_pkg_short_errors_supported = yes; then
  19223. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19224. else
  19225. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19226. fi
  19227. # Put the nasty error message in config.log where it belongs
  19228. echo "$DECOR_PKG_ERRORS" >&5
  19229. video_libdecor=no
  19230. elif test $pkg_failed = untried; then
  19231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19232. printf "%s\n" "no" >&6; }
  19233. video_libdecor=no
  19234. else
  19235. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19236. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19238. printf "%s\n" "yes" >&6; }
  19239. video_libdecor=yes
  19240. fi
  19241. if test x$video_libdecor = xyes; then
  19242. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19243. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19244. # Check whether --enable-libdecor-shared was given.
  19245. if test ${enable_libdecor_shared+y}
  19246. then :
  19247. enableval=$enable_libdecor_shared;
  19248. else $as_nop
  19249. enable_libdecor_shared=yes
  19250. fi
  19251. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19252. if test x$enable_wayland_shared != xyes; then
  19253. enable_libdecor_shared=no
  19254. fi
  19255. if test x$have_loadso != xyes && \
  19256. test x$enable_libdecor_shared = xyes; then
  19257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19258. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19259. fi
  19260. if test x$have_loadso = xyes && \
  19261. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19262. echo "-- dynamic libdecor -> $decor_lib"
  19263. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19264. else
  19265. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19266. fi
  19267. fi
  19268. fi
  19269. fi
  19270. fi
  19271. }
  19272. CheckRPI()
  19273. {
  19274. # Check whether --enable-video-rpi was given.
  19275. if test ${enable_video_rpi+y}
  19276. then :
  19277. enableval=$enable_video_rpi;
  19278. else $as_nop
  19279. enable_video_rpi=yes
  19280. fi
  19281. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19282. pkg_failed=no
  19283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19284. printf %s "checking for bcm_host brcmegl... " >&6; }
  19285. if test -n "$RPI_CFLAGS"; then
  19286. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19287. elif test -n "$PKG_CONFIG"; then
  19288. if test -n "$PKG_CONFIG" && \
  19289. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19290. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19291. ac_status=$?
  19292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19293. test $ac_status = 0; }; then
  19294. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19295. test "x$?" != "x0" && pkg_failed=yes
  19296. else
  19297. pkg_failed=yes
  19298. fi
  19299. else
  19300. pkg_failed=untried
  19301. fi
  19302. if test -n "$RPI_LIBS"; then
  19303. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19304. elif test -n "$PKG_CONFIG"; then
  19305. if test -n "$PKG_CONFIG" && \
  19306. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19307. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19308. ac_status=$?
  19309. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19310. test $ac_status = 0; }; then
  19311. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19312. test "x$?" != "x0" && pkg_failed=yes
  19313. else
  19314. pkg_failed=yes
  19315. fi
  19316. else
  19317. pkg_failed=untried
  19318. fi
  19319. if test $pkg_failed = yes; then
  19320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19321. printf "%s\n" "no" >&6; }
  19322. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19323. _pkg_short_errors_supported=yes
  19324. else
  19325. _pkg_short_errors_supported=no
  19326. fi
  19327. if test $_pkg_short_errors_supported = yes; then
  19328. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19329. else
  19330. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19331. fi
  19332. # Put the nasty error message in config.log where it belongs
  19333. echo "$RPI_PKG_ERRORS" >&5
  19334. video_rpi=no
  19335. elif test $pkg_failed = untried; then
  19336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19337. printf "%s\n" "no" >&6; }
  19338. video_rpi=no
  19339. else
  19340. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19341. RPI_LIBS=$pkg_cv_RPI_LIBS
  19342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19343. printf "%s\n" "yes" >&6; }
  19344. video_rpi=yes
  19345. fi
  19346. if test x$video_rpi = xno; then
  19347. if test x$ARCH = xnetbsd; then
  19348. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19349. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19350. else
  19351. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19352. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19353. fi
  19354. fi
  19355. # Save the original compiler flags and libraries
  19356. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19357. # Add the Raspberry Pi compiler flags and libraries
  19358. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19360. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19361. have_video_rpi=no
  19362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19363. /* end confdefs.h. */
  19364. #include <bcm_host.h>
  19365. #include <EGL/eglplatform.h>
  19366. int
  19367. main (void)
  19368. {
  19369. EGL_DISPMANX_WINDOW_T window;
  19370. bcm_host_init();
  19371. ;
  19372. return 0;
  19373. }
  19374. _ACEOF
  19375. if ac_fn_c_try_link "$LINENO"
  19376. then :
  19377. have_video_rpi=yes
  19378. fi
  19379. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19380. conftest$ac_exeext conftest.$ac_ext
  19381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19382. printf "%s\n" "$have_video_rpi" >&6; }
  19383. # Restore the compiler flags and libraries
  19384. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19385. if test x$have_video_rpi = xyes; then
  19386. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19387. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19388. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19390. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19391. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19392. SUMMARY_video="${SUMMARY_video} rpi"
  19393. have_video=yes
  19394. fi
  19395. fi
  19396. }
  19397. CheckX11()
  19398. {
  19399. # Check whether --enable-video-x11 was given.
  19400. if test ${enable_video_x11+y}
  19401. then :
  19402. enableval=$enable_video_x11;
  19403. else $as_nop
  19404. enable_video_x11=yes
  19405. case "$host" in
  19406. *-*-darwin*|*-ios-*)
  19407. enable_video_x11=no
  19408. ;;
  19409. esac
  19410. fi
  19411. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19412. case "$host" in
  19413. *-*-darwin*)
  19414. # This isn't necessary for X11, but fixes GLX detection
  19415. if test "x$x_includes" = xNONE && \
  19416. test "x$x_libraries" = xNONE && \
  19417. test -d /opt/X11/include && \
  19418. test -d /opt/X11/lib; then
  19419. x_includes="/opt/X11/include"
  19420. x_libraries="/opt/X11/lib"
  19421. fi
  19422. ;;
  19423. esac
  19424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19425. printf %s "checking for X... " >&6; }
  19426. # Check whether --with-x was given.
  19427. if test ${with_x+y}
  19428. then :
  19429. withval=$with_x;
  19430. fi
  19431. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19432. if test "x$with_x" = xno; then
  19433. # The user explicitly disabled X.
  19434. have_x=disabled
  19435. else
  19436. case $x_includes,$x_libraries in #(
  19437. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19438. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19439. then :
  19440. printf %s "(cached) " >&6
  19441. else $as_nop
  19442. # One or both of the vars are not set, and there is no cached value.
  19443. ac_x_includes=no
  19444. ac_x_libraries=no
  19445. # Do we need to do anything special at all?
  19446. ac_save_LIBS=$LIBS
  19447. LIBS="-lX11 $LIBS"
  19448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19449. /* end confdefs.h. */
  19450. #include <X11/Xlib.h>
  19451. int
  19452. main (void)
  19453. {
  19454. XrmInitialize ()
  19455. ;
  19456. return 0;
  19457. }
  19458. _ACEOF
  19459. if ac_fn_c_try_link "$LINENO"
  19460. then :
  19461. # We can compile and link X programs with no special options.
  19462. ac_x_includes=
  19463. ac_x_libraries=
  19464. fi
  19465. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19466. conftest$ac_exeext conftest.$ac_ext
  19467. LIBS="$ac_save_LIBS"
  19468. # If that didn't work, only try xmkmf and file system searches
  19469. # for native compilation.
  19470. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19471. then :
  19472. rm -f -r conftest.dir
  19473. if mkdir conftest.dir; then
  19474. cd conftest.dir
  19475. cat >Imakefile <<'_ACEOF'
  19476. incroot:
  19477. @echo incroot='${INCROOT}'
  19478. usrlibdir:
  19479. @echo usrlibdir='${USRLIBDIR}'
  19480. libdir:
  19481. @echo libdir='${LIBDIR}'
  19482. _ACEOF
  19483. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19484. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19485. for ac_var in incroot usrlibdir libdir; do
  19486. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19487. done
  19488. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19489. for ac_extension in a so sl dylib la dll; do
  19490. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19491. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19492. ac_im_usrlibdir=$ac_im_libdir; break
  19493. fi
  19494. done
  19495. # Screen out bogus values from the imake configuration. They are
  19496. # bogus both because they are the default anyway, and because
  19497. # using them would break gcc on systems where it needs fixed includes.
  19498. case $ac_im_incroot in
  19499. /usr/include) ac_x_includes= ;;
  19500. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19501. esac
  19502. case $ac_im_usrlibdir in
  19503. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19504. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19505. esac
  19506. fi
  19507. cd ..
  19508. rm -f -r conftest.dir
  19509. fi
  19510. # Standard set of common directories for X headers.
  19511. # Check X11 before X11Rn because it is often a symlink to the current release.
  19512. ac_x_header_dirs='
  19513. /usr/X11/include
  19514. /usr/X11R7/include
  19515. /usr/X11R6/include
  19516. /usr/X11R5/include
  19517. /usr/X11R4/include
  19518. /usr/include/X11
  19519. /usr/include/X11R7
  19520. /usr/include/X11R6
  19521. /usr/include/X11R5
  19522. /usr/include/X11R4
  19523. /usr/local/X11/include
  19524. /usr/local/X11R7/include
  19525. /usr/local/X11R6/include
  19526. /usr/local/X11R5/include
  19527. /usr/local/X11R4/include
  19528. /usr/local/include/X11
  19529. /usr/local/include/X11R7
  19530. /usr/local/include/X11R6
  19531. /usr/local/include/X11R5
  19532. /usr/local/include/X11R4
  19533. /opt/X11/include
  19534. /usr/X386/include
  19535. /usr/x386/include
  19536. /usr/XFree86/include/X11
  19537. /usr/include
  19538. /usr/local/include
  19539. /usr/unsupported/include
  19540. /usr/athena/include
  19541. /usr/local/x11r5/include
  19542. /usr/lpp/Xamples/include
  19543. /usr/openwin/include
  19544. /usr/openwin/share/include'
  19545. if test "$ac_x_includes" = no; then
  19546. # Guess where to find include files, by looking for Xlib.h.
  19547. # First, try using that file with no special directory specified.
  19548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19549. /* end confdefs.h. */
  19550. #include <X11/Xlib.h>
  19551. _ACEOF
  19552. if ac_fn_c_try_cpp "$LINENO"
  19553. then :
  19554. # We can compile using X headers with no special include directory.
  19555. ac_x_includes=
  19556. else $as_nop
  19557. for ac_dir in $ac_x_header_dirs; do
  19558. if test -r "$ac_dir/X11/Xlib.h"; then
  19559. ac_x_includes=$ac_dir
  19560. break
  19561. fi
  19562. done
  19563. fi
  19564. rm -f conftest.err conftest.i conftest.$ac_ext
  19565. fi # $ac_x_includes = no
  19566. if test "$ac_x_libraries" = no; then
  19567. # Check for the libraries.
  19568. # See if we find them without any special options.
  19569. # Don't add to $LIBS permanently.
  19570. ac_save_LIBS=$LIBS
  19571. LIBS="-lX11 $LIBS"
  19572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19573. /* end confdefs.h. */
  19574. #include <X11/Xlib.h>
  19575. int
  19576. main (void)
  19577. {
  19578. XrmInitialize ()
  19579. ;
  19580. return 0;
  19581. }
  19582. _ACEOF
  19583. if ac_fn_c_try_link "$LINENO"
  19584. then :
  19585. LIBS=$ac_save_LIBS
  19586. # We can link X programs with no special library path.
  19587. ac_x_libraries=
  19588. else $as_nop
  19589. LIBS=$ac_save_LIBS
  19590. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19591. do
  19592. # Don't even attempt the hair of trying to link an X program!
  19593. for ac_extension in a so sl dylib la dll; do
  19594. if test -r "$ac_dir/libX11.$ac_extension"; then
  19595. ac_x_libraries=$ac_dir
  19596. break 2
  19597. fi
  19598. done
  19599. done
  19600. fi
  19601. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19602. conftest$ac_exeext conftest.$ac_ext
  19603. fi # $ac_x_libraries = no
  19604. fi
  19605. # Record the results.
  19606. case $ac_x_includes,$ac_x_libraries in #(
  19607. no,* | *,no | *\'*) :
  19608. # Didn't find X, or a directory has "'" in its name.
  19609. ac_cv_have_x="have_x=no" ;; #(
  19610. *) :
  19611. # Record where we found X for the cache.
  19612. ac_cv_have_x="have_x=yes\
  19613. ac_x_includes='$ac_x_includes'\
  19614. ac_x_libraries='$ac_x_libraries'" ;;
  19615. esac
  19616. fi
  19617. ;; #(
  19618. *) have_x=yes;;
  19619. esac
  19620. eval "$ac_cv_have_x"
  19621. fi # $with_x != no
  19622. if test "$have_x" != yes; then
  19623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19624. printf "%s\n" "$have_x" >&6; }
  19625. no_x=yes
  19626. else
  19627. # If each of the values was on the command line, it overrides each guess.
  19628. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19629. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19630. # Update the cache value to reflect the command line values.
  19631. ac_cv_have_x="have_x=yes\
  19632. ac_x_includes='$x_includes'\
  19633. ac_x_libraries='$x_libraries'"
  19634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19635. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19636. fi
  19637. if test "$no_x" = yes; then
  19638. # Not all programs may use this symbol, but it does not hurt to define it.
  19639. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19640. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19641. else
  19642. if test -n "$x_includes"; then
  19643. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19644. fi
  19645. # It would also be nice to do this for all -L options, not just this one.
  19646. if test -n "$x_libraries"; then
  19647. X_LIBS="$X_LIBS -L$x_libraries"
  19648. # For Solaris; some versions of Sun CC require a space after -R and
  19649. # others require no space. Words are not sufficient . . . .
  19650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19651. printf %s "checking whether -R must be followed by a space... " >&6; }
  19652. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19653. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19654. ac_c_werror_flag=yes
  19655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19656. /* end confdefs.h. */
  19657. int
  19658. main (void)
  19659. {
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. if ac_fn_c_try_link "$LINENO"
  19665. then :
  19666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19667. printf "%s\n" "no" >&6; }
  19668. X_LIBS="$X_LIBS -R$x_libraries"
  19669. else $as_nop
  19670. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19672. /* end confdefs.h. */
  19673. int
  19674. main (void)
  19675. {
  19676. ;
  19677. return 0;
  19678. }
  19679. _ACEOF
  19680. if ac_fn_c_try_link "$LINENO"
  19681. then :
  19682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19683. printf "%s\n" "yes" >&6; }
  19684. X_LIBS="$X_LIBS -R $x_libraries"
  19685. else $as_nop
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19687. printf "%s\n" "neither works" >&6; }
  19688. fi
  19689. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19690. conftest$ac_exeext conftest.$ac_ext
  19691. fi
  19692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19693. conftest$ac_exeext conftest.$ac_ext
  19694. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19695. LIBS=$ac_xsave_LIBS
  19696. fi
  19697. # Check for system-dependent libraries X programs must link with.
  19698. # Do this before checking for the system-independent R6 libraries
  19699. # (-lICE), since we may need -lsocket or whatever for X linking.
  19700. if test "$ISC" = yes; then
  19701. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19702. else
  19703. # Martyn Johnson says this is needed for Ultrix, if the X
  19704. # libraries were built with DECnet support. And Karl Berry says
  19705. # the Alpha needs dnet_stub (dnet does not exist).
  19706. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. /* Override any GCC internal prototype to avoid an error.
  19710. Use char because int might match the return type of a GCC
  19711. builtin and then its argument prototype would still apply. */
  19712. char XOpenDisplay ();
  19713. int
  19714. main (void)
  19715. {
  19716. return XOpenDisplay ();
  19717. ;
  19718. return 0;
  19719. }
  19720. _ACEOF
  19721. if ac_fn_c_try_link "$LINENO"
  19722. then :
  19723. else $as_nop
  19724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19725. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19726. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19727. then :
  19728. printf %s "(cached) " >&6
  19729. else $as_nop
  19730. ac_check_lib_save_LIBS=$LIBS
  19731. LIBS="-ldnet $LIBS"
  19732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19733. /* end confdefs.h. */
  19734. /* Override any GCC internal prototype to avoid an error.
  19735. Use char because int might match the return type of a GCC
  19736. builtin and then its argument prototype would still apply. */
  19737. char dnet_ntoa ();
  19738. int
  19739. main (void)
  19740. {
  19741. return dnet_ntoa ();
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_link "$LINENO"
  19747. then :
  19748. ac_cv_lib_dnet_dnet_ntoa=yes
  19749. else $as_nop
  19750. ac_cv_lib_dnet_dnet_ntoa=no
  19751. fi
  19752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19753. conftest$ac_exeext conftest.$ac_ext
  19754. LIBS=$ac_check_lib_save_LIBS
  19755. fi
  19756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19757. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19758. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19759. then :
  19760. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19761. fi
  19762. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19764. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19765. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19766. then :
  19767. printf %s "(cached) " >&6
  19768. else $as_nop
  19769. ac_check_lib_save_LIBS=$LIBS
  19770. LIBS="-ldnet_stub $LIBS"
  19771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19772. /* end confdefs.h. */
  19773. /* Override any GCC internal prototype to avoid an error.
  19774. Use char because int might match the return type of a GCC
  19775. builtin and then its argument prototype would still apply. */
  19776. char dnet_ntoa ();
  19777. int
  19778. main (void)
  19779. {
  19780. return dnet_ntoa ();
  19781. ;
  19782. return 0;
  19783. }
  19784. _ACEOF
  19785. if ac_fn_c_try_link "$LINENO"
  19786. then :
  19787. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19788. else $as_nop
  19789. ac_cv_lib_dnet_stub_dnet_ntoa=no
  19790. fi
  19791. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19792. conftest$ac_exeext conftest.$ac_ext
  19793. LIBS=$ac_check_lib_save_LIBS
  19794. fi
  19795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19796. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19797. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  19798. then :
  19799. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19800. fi
  19801. fi
  19802. fi
  19803. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19804. conftest$ac_exeext conftest.$ac_ext
  19805. LIBS="$ac_xsave_LIBS"
  19806. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19807. # to get the SysV transport functions.
  19808. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19809. # needs -lnsl.
  19810. # The nsl library prevents programs from opening the X display
  19811. # on Irix 5.2, according to T.E. Dickey.
  19812. # The functions gethostbyname, getservbyname, and inet_addr are
  19813. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19814. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19815. if test "x$ac_cv_func_gethostbyname" = xyes
  19816. then :
  19817. fi
  19818. if test $ac_cv_func_gethostbyname = no; then
  19819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19820. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19821. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19822. then :
  19823. printf %s "(cached) " >&6
  19824. else $as_nop
  19825. ac_check_lib_save_LIBS=$LIBS
  19826. LIBS="-lnsl $LIBS"
  19827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19828. /* end confdefs.h. */
  19829. /* Override any GCC internal prototype to avoid an error.
  19830. Use char because int might match the return type of a GCC
  19831. builtin and then its argument prototype would still apply. */
  19832. char gethostbyname ();
  19833. int
  19834. main (void)
  19835. {
  19836. return gethostbyname ();
  19837. ;
  19838. return 0;
  19839. }
  19840. _ACEOF
  19841. if ac_fn_c_try_link "$LINENO"
  19842. then :
  19843. ac_cv_lib_nsl_gethostbyname=yes
  19844. else $as_nop
  19845. ac_cv_lib_nsl_gethostbyname=no
  19846. fi
  19847. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19848. conftest$ac_exeext conftest.$ac_ext
  19849. LIBS=$ac_check_lib_save_LIBS
  19850. fi
  19851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19852. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19853. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19854. then :
  19855. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19856. fi
  19857. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19859. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  19860. if test ${ac_cv_lib_bsd_gethostbyname+y}
  19861. then :
  19862. printf %s "(cached) " >&6
  19863. else $as_nop
  19864. ac_check_lib_save_LIBS=$LIBS
  19865. LIBS="-lbsd $LIBS"
  19866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19867. /* end confdefs.h. */
  19868. /* Override any GCC internal prototype to avoid an error.
  19869. Use char because int might match the return type of a GCC
  19870. builtin and then its argument prototype would still apply. */
  19871. char gethostbyname ();
  19872. int
  19873. main (void)
  19874. {
  19875. return gethostbyname ();
  19876. ;
  19877. return 0;
  19878. }
  19879. _ACEOF
  19880. if ac_fn_c_try_link "$LINENO"
  19881. then :
  19882. ac_cv_lib_bsd_gethostbyname=yes
  19883. else $as_nop
  19884. ac_cv_lib_bsd_gethostbyname=no
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19887. conftest$ac_exeext conftest.$ac_ext
  19888. LIBS=$ac_check_lib_save_LIBS
  19889. fi
  19890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  19891. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19892. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  19893. then :
  19894. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19895. fi
  19896. fi
  19897. fi
  19898. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19899. # socket/setsockopt and other routines are undefined under SCO ODT
  19900. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19901. # on later versions), says Simon Leinen: it contains gethostby*
  19902. # variants that don't use the name server (or something). -lsocket
  19903. # must be given before -lnsl if both are needed. We assume that
  19904. # if connect needs -lnsl, so does gethostbyname.
  19905. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19906. if test "x$ac_cv_func_connect" = xyes
  19907. then :
  19908. fi
  19909. if test $ac_cv_func_connect = no; then
  19910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19911. printf %s "checking for connect in -lsocket... " >&6; }
  19912. if test ${ac_cv_lib_socket_connect+y}
  19913. then :
  19914. printf %s "(cached) " >&6
  19915. else $as_nop
  19916. ac_check_lib_save_LIBS=$LIBS
  19917. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19919. /* end confdefs.h. */
  19920. /* Override any GCC internal prototype to avoid an error.
  19921. Use char because int might match the return type of a GCC
  19922. builtin and then its argument prototype would still apply. */
  19923. char connect ();
  19924. int
  19925. main (void)
  19926. {
  19927. return connect ();
  19928. ;
  19929. return 0;
  19930. }
  19931. _ACEOF
  19932. if ac_fn_c_try_link "$LINENO"
  19933. then :
  19934. ac_cv_lib_socket_connect=yes
  19935. else $as_nop
  19936. ac_cv_lib_socket_connect=no
  19937. fi
  19938. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19939. conftest$ac_exeext conftest.$ac_ext
  19940. LIBS=$ac_check_lib_save_LIBS
  19941. fi
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19943. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  19944. if test "x$ac_cv_lib_socket_connect" = xyes
  19945. then :
  19946. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19947. fi
  19948. fi
  19949. # Guillermo Gomez says -lposix is necessary on A/UX.
  19950. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  19951. if test "x$ac_cv_func_remove" = xyes
  19952. then :
  19953. fi
  19954. if test $ac_cv_func_remove = no; then
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  19956. printf %s "checking for remove in -lposix... " >&6; }
  19957. if test ${ac_cv_lib_posix_remove+y}
  19958. then :
  19959. printf %s "(cached) " >&6
  19960. else $as_nop
  19961. ac_check_lib_save_LIBS=$LIBS
  19962. LIBS="-lposix $LIBS"
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. /* Override any GCC internal prototype to avoid an error.
  19966. Use char because int might match the return type of a GCC
  19967. builtin and then its argument prototype would still apply. */
  19968. char remove ();
  19969. int
  19970. main (void)
  19971. {
  19972. return remove ();
  19973. ;
  19974. return 0;
  19975. }
  19976. _ACEOF
  19977. if ac_fn_c_try_link "$LINENO"
  19978. then :
  19979. ac_cv_lib_posix_remove=yes
  19980. else $as_nop
  19981. ac_cv_lib_posix_remove=no
  19982. fi
  19983. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19984. conftest$ac_exeext conftest.$ac_ext
  19985. LIBS=$ac_check_lib_save_LIBS
  19986. fi
  19987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  19988. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  19989. if test "x$ac_cv_lib_posix_remove" = xyes
  19990. then :
  19991. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19992. fi
  19993. fi
  19994. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19995. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  19996. if test "x$ac_cv_func_shmat" = xyes
  19997. then :
  19998. fi
  19999. if test $ac_cv_func_shmat = no; then
  20000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20001. printf %s "checking for shmat in -lipc... " >&6; }
  20002. if test ${ac_cv_lib_ipc_shmat+y}
  20003. then :
  20004. printf %s "(cached) " >&6
  20005. else $as_nop
  20006. ac_check_lib_save_LIBS=$LIBS
  20007. LIBS="-lipc $LIBS"
  20008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20009. /* end confdefs.h. */
  20010. /* Override any GCC internal prototype to avoid an error.
  20011. Use char because int might match the return type of a GCC
  20012. builtin and then its argument prototype would still apply. */
  20013. char shmat ();
  20014. int
  20015. main (void)
  20016. {
  20017. return shmat ();
  20018. ;
  20019. return 0;
  20020. }
  20021. _ACEOF
  20022. if ac_fn_c_try_link "$LINENO"
  20023. then :
  20024. ac_cv_lib_ipc_shmat=yes
  20025. else $as_nop
  20026. ac_cv_lib_ipc_shmat=no
  20027. fi
  20028. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20029. conftest$ac_exeext conftest.$ac_ext
  20030. LIBS=$ac_check_lib_save_LIBS
  20031. fi
  20032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20033. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20034. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20035. then :
  20036. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20037. fi
  20038. fi
  20039. fi
  20040. # Check for libraries that X11R6 Xt/Xaw programs need.
  20041. ac_save_LDFLAGS=$LDFLAGS
  20042. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20043. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20044. # check for ICE first), but we must link in the order -lSM -lICE or
  20045. # we get undefined symbols. So assume we have SM if we have ICE.
  20046. # These have to be linked with before -lX11, unlike the other
  20047. # libraries we check for below, so use a different variable.
  20048. # John Interrante, Karl Berry
  20049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20050. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20051. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20052. then :
  20053. printf %s "(cached) " >&6
  20054. else $as_nop
  20055. ac_check_lib_save_LIBS=$LIBS
  20056. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20058. /* end confdefs.h. */
  20059. /* Override any GCC internal prototype to avoid an error.
  20060. Use char because int might match the return type of a GCC
  20061. builtin and then its argument prototype would still apply. */
  20062. char IceConnectionNumber ();
  20063. int
  20064. main (void)
  20065. {
  20066. return IceConnectionNumber ();
  20067. ;
  20068. return 0;
  20069. }
  20070. _ACEOF
  20071. if ac_fn_c_try_link "$LINENO"
  20072. then :
  20073. ac_cv_lib_ICE_IceConnectionNumber=yes
  20074. else $as_nop
  20075. ac_cv_lib_ICE_IceConnectionNumber=no
  20076. fi
  20077. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20078. conftest$ac_exeext conftest.$ac_ext
  20079. LIBS=$ac_check_lib_save_LIBS
  20080. fi
  20081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20082. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20083. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20084. then :
  20085. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20086. fi
  20087. LDFLAGS=$ac_save_LDFLAGS
  20088. fi
  20089. if test x$have_x = xyes; then
  20090. # Check whether --enable-x11-shared was given.
  20091. if test ${enable_x11_shared+y}
  20092. then :
  20093. enableval=$enable_x11_shared;
  20094. else $as_nop
  20095. enable_x11_shared=maybe
  20096. fi
  20097. case "$host" in
  20098. *-*-darwin*)
  20099. # Apple now puts this in /opt/X11
  20100. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20101. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20102. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20103. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20104. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20105. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20106. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20107. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20108. ;;
  20109. *-*-openbsd*)
  20110. x11_lib='libX11.so'
  20111. x11ext_lib='libXext.so'
  20112. xcursor_lib='libXcursor.so'
  20113. xinput_lib='libXi.so'
  20114. xfixes_lib='libXfixes.so'
  20115. xrandr_lib='libXrandr.so'
  20116. xrender_lib='libXrender.so'
  20117. xss_lib='libXss.so'
  20118. ;;
  20119. *)
  20120. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20121. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20122. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20123. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20124. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20125. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20126. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20127. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20128. ;;
  20129. esac
  20130. if test x$ac_cv_func_shmat != xyes; then
  20131. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20132. fi
  20133. CFLAGS="$CFLAGS $X_CFLAGS"
  20134. LDFLAGS="$LDFLAGS $X_LIBS"
  20135. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20136. #include <X11/Xproto.h>
  20137. "
  20138. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20139. then :
  20140. have_xext_h_hdr=yes
  20141. else $as_nop
  20142. have_xext_h_hdr=no
  20143. fi
  20144. if test x$have_xext_h_hdr != xyes; then
  20145. as_fn_error $? "
  20146. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20147. " "$LINENO" 5
  20148. fi
  20149. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20150. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20151. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20152. # Needed so SDL applications can include SDL_syswm.h
  20153. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20154. if test x$enable_x11_shared = xmaybe; then
  20155. enable_x11_shared=yes
  20156. fi
  20157. if test x$have_loadso != xyes && \
  20158. test x$enable_x11_shared = xyes; then
  20159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20160. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20161. enable_x11_shared=no
  20162. fi
  20163. if test x$have_loadso = xyes && \
  20164. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20165. echo "-- dynamic libX11 -> $x11_lib"
  20166. echo "-- dynamic libX11ext -> $x11ext_lib"
  20167. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20168. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20169. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20170. else
  20171. enable_x11_shared=no
  20172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20173. SUMMARY_video="${SUMMARY_video} x11"
  20174. fi
  20175. have_video=yes
  20176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20177. printf %s "checking for XGenericEvent... " >&6; }
  20178. have_XGenericEvent=no
  20179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20180. /* end confdefs.h. */
  20181. #include <X11/Xlib.h>
  20182. int
  20183. main (void)
  20184. {
  20185. Display *display;
  20186. XEvent event;
  20187. XGenericEventCookie *cookie = &event.xcookie;
  20188. XNextEvent(display, &event);
  20189. XGetEventData(display, cookie);
  20190. XFreeEventData(display, cookie);
  20191. ;
  20192. return 0;
  20193. }
  20194. _ACEOF
  20195. if ac_fn_c_try_compile "$LINENO"
  20196. then :
  20197. have_XGenericEvent=yes
  20198. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20199. fi
  20200. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20202. printf "%s\n" "$have_XGenericEvent" >&6; }
  20203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20204. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20205. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20206. then :
  20207. printf %s "(cached) " >&6
  20208. else $as_nop
  20209. ac_check_lib_save_LIBS=$LIBS
  20210. LIBS="-lX11 $LIBS"
  20211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20212. /* end confdefs.h. */
  20213. /* Override any GCC internal prototype to avoid an error.
  20214. Use char because int might match the return type of a GCC
  20215. builtin and then its argument prototype would still apply. */
  20216. char XkbKeycodeToKeysym ();
  20217. int
  20218. main (void)
  20219. {
  20220. return XkbKeycodeToKeysym ();
  20221. ;
  20222. return 0;
  20223. }
  20224. _ACEOF
  20225. if ac_fn_c_try_link "$LINENO"
  20226. then :
  20227. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20228. else $as_nop
  20229. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20230. fi
  20231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20232. conftest$ac_exeext conftest.$ac_ext
  20233. LIBS=$ac_check_lib_save_LIBS
  20234. fi
  20235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20236. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20237. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20238. then :
  20239. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20240. fi
  20241. # Check whether --enable-video-x11-xcursor was given.
  20242. if test ${enable_video_x11_xcursor+y}
  20243. then :
  20244. enableval=$enable_video_x11_xcursor;
  20245. else $as_nop
  20246. enable_video_x11_xcursor=yes
  20247. fi
  20248. if test x$enable_video_x11_xcursor = xyes; then
  20249. definitely_enable_video_x11_xcursor=no
  20250. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20251. "
  20252. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20253. then :
  20254. have_xcursor_h_hdr=yes
  20255. else $as_nop
  20256. have_xcursor_h_hdr=no
  20257. fi
  20258. if test x$have_xcursor_h_hdr = xyes; then
  20259. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20260. echo "-- dynamic libXcursor -> $xcursor_lib"
  20261. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20262. definitely_enable_video_x11_xcursor=yes
  20263. else
  20264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20265. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20266. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20267. then :
  20268. printf %s "(cached) " >&6
  20269. else $as_nop
  20270. ac_check_lib_save_LIBS=$LIBS
  20271. LIBS="-lXcursor $LIBS"
  20272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20273. /* end confdefs.h. */
  20274. /* Override any GCC internal prototype to avoid an error.
  20275. Use char because int might match the return type of a GCC
  20276. builtin and then its argument prototype would still apply. */
  20277. char XcursorImageCreate ();
  20278. int
  20279. main (void)
  20280. {
  20281. return XcursorImageCreate ();
  20282. ;
  20283. return 0;
  20284. }
  20285. _ACEOF
  20286. if ac_fn_c_try_link "$LINENO"
  20287. then :
  20288. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20289. else $as_nop
  20290. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20291. fi
  20292. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20293. conftest$ac_exeext conftest.$ac_ext
  20294. LIBS=$ac_check_lib_save_LIBS
  20295. fi
  20296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20297. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20298. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20299. then :
  20300. have_xcursor_lib=yes
  20301. fi
  20302. if test x$have_xcursor_lib = xyes ; then
  20303. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20304. definitely_enable_video_x11_xcursor=yes
  20305. fi
  20306. fi
  20307. fi
  20308. fi
  20309. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20310. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20311. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20312. fi
  20313. # Check whether --enable-video-x11-xdbe was given.
  20314. if test ${enable_video_x11_xdbe+y}
  20315. then :
  20316. enableval=$enable_video_x11_xdbe;
  20317. else $as_nop
  20318. enable_video_x11_xdbe=yes
  20319. fi
  20320. if test x$enable_video_x11_xdbe = xyes; then
  20321. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20322. "
  20323. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20324. then :
  20325. have_dbe_h_hdr=yes
  20326. else $as_nop
  20327. have_dbe_h_hdr=no
  20328. fi
  20329. if test x$have_dbe_h_hdr = xyes; then
  20330. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20331. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20332. fi
  20333. fi
  20334. # Check whether --enable-video-x11-xinput was given.
  20335. if test ${enable_video_x11_xinput+y}
  20336. then :
  20337. enableval=$enable_video_x11_xinput;
  20338. else $as_nop
  20339. enable_video_x11_xinput=yes
  20340. fi
  20341. if test x$enable_video_x11_xinput = xyes; then
  20342. definitely_enable_video_x11_xinput=no
  20343. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20344. "
  20345. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20346. then :
  20347. have_xinput_h_hdr=yes
  20348. else $as_nop
  20349. have_xinput_h_hdr=no
  20350. fi
  20351. if test x$have_xinput_h_hdr = xyes; then
  20352. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20353. echo "-- dynamic libXi -> $xinput_lib"
  20354. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20355. definitely_enable_video_x11_xinput=yes
  20356. else
  20357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20358. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20359. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20360. then :
  20361. printf %s "(cached) " >&6
  20362. else $as_nop
  20363. ac_check_lib_save_LIBS=$LIBS
  20364. LIBS="-lXi $LIBS"
  20365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20366. /* end confdefs.h. */
  20367. /* Override any GCC internal prototype to avoid an error.
  20368. Use char because int might match the return type of a GCC
  20369. builtin and then its argument prototype would still apply. */
  20370. char XOpenDevice ();
  20371. int
  20372. main (void)
  20373. {
  20374. return XOpenDevice ();
  20375. ;
  20376. return 0;
  20377. }
  20378. _ACEOF
  20379. if ac_fn_c_try_link "$LINENO"
  20380. then :
  20381. ac_cv_lib_Xi_XOpenDevice=yes
  20382. else $as_nop
  20383. ac_cv_lib_Xi_XOpenDevice=no
  20384. fi
  20385. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20386. conftest$ac_exeext conftest.$ac_ext
  20387. LIBS=$ac_check_lib_save_LIBS
  20388. fi
  20389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20390. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20391. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20392. then :
  20393. have_xinput_lib=yes
  20394. fi
  20395. if test x$have_xinput_lib = xyes ; then
  20396. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20397. definitely_enable_video_x11_xinput=yes
  20398. fi
  20399. fi
  20400. fi
  20401. fi
  20402. if test x$definitely_enable_video_x11_xinput = xyes; then
  20403. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20404. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20406. printf %s "checking for xinput2 multitouch... " >&6; }
  20407. have_xinput2_multitouch=no
  20408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20409. /* end confdefs.h. */
  20410. #include <X11/Xlib.h>
  20411. #include <X11/Xproto.h>
  20412. #include <X11/extensions/XInput2.h>
  20413. int
  20414. main (void)
  20415. {
  20416. int event_type = XI_TouchBegin;
  20417. XITouchClassInfo *t;
  20418. ;
  20419. return 0;
  20420. }
  20421. _ACEOF
  20422. if ac_fn_c_try_compile "$LINENO"
  20423. then :
  20424. have_xinput2_multitouch=yes
  20425. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20426. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20427. fi
  20428. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20430. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20431. fi
  20432. # Check whether --enable-video-x11-xfixes was given.
  20433. if test ${enable_video_x11_xfixes+y}
  20434. then :
  20435. enableval=$enable_video_x11_xfixes;
  20436. else $as_nop
  20437. enable_video_x11_xfixes=yes
  20438. fi
  20439. if test x$enable_video_x11_xfixes = xyes; then
  20440. definitely_enable_video_x11_xfixes=no
  20441. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20443. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20445. /* end confdefs.h. */
  20446. #include <X11/Xlib.h>
  20447. #include <X11/Xproto.h>
  20448. #include <X11/extensions/XInput2.h>
  20449. #include <X11/extensions/Xfixes.h>
  20450. int
  20451. main (void)
  20452. {
  20453. BarrierEventID b;
  20454. ;
  20455. return 0;
  20456. }
  20457. _ACEOF
  20458. if ac_fn_c_try_compile "$LINENO"
  20459. then :
  20460. have_xfixes_h_hdr=yes
  20461. else $as_nop
  20462. have_xfixes_h_hdr=no
  20463. fi
  20464. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20466. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20467. if test x$have_xfixes_h_hdr = xyes; then
  20468. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20469. echo "-- dynamic libXfixes -> $xfixes_lib"
  20470. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20471. definitely_enable_video_x11_xfixes=yes
  20472. else
  20473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20474. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20475. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20476. then :
  20477. printf %s "(cached) " >&6
  20478. else $as_nop
  20479. ac_check_lib_save_LIBS=$LIBS
  20480. LIBS="-lXfixes $LIBS"
  20481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20482. /* end confdefs.h. */
  20483. /* Override any GCC internal prototype to avoid an error.
  20484. Use char because int might match the return type of a GCC
  20485. builtin and then its argument prototype would still apply. */
  20486. char XFixesCreatePointerBarrier ();
  20487. int
  20488. main (void)
  20489. {
  20490. return XFixesCreatePointerBarrier ();
  20491. ;
  20492. return 0;
  20493. }
  20494. _ACEOF
  20495. if ac_fn_c_try_link "$LINENO"
  20496. then :
  20497. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20498. else $as_nop
  20499. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20500. fi
  20501. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20502. conftest$ac_exeext conftest.$ac_ext
  20503. LIBS=$ac_check_lib_save_LIBS
  20504. fi
  20505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20506. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20507. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20508. then :
  20509. have_xfixes_lib=yes
  20510. fi
  20511. if test x$have_xfixes_lib = xyes ; then
  20512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20513. definitely_enable_video_x11_xfixes=yes
  20514. fi
  20515. fi
  20516. fi
  20517. fi
  20518. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20519. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20520. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20521. fi
  20522. # Check whether --enable-video-x11-xrandr was given.
  20523. if test ${enable_video_x11_xrandr+y}
  20524. then :
  20525. enableval=$enable_video_x11_xrandr;
  20526. else $as_nop
  20527. enable_video_x11_xrandr=yes
  20528. fi
  20529. if test x$enable_video_x11_xrandr = xyes; then
  20530. definitely_enable_video_x11_xrandr=no
  20531. have_xrandr_h_hdr=no
  20532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20533. /* end confdefs.h. */
  20534. #include <X11/Xlib.h>
  20535. #include <X11/extensions/Xrandr.h>
  20536. int
  20537. main (void)
  20538. {
  20539. XRRScreenResources *res = NULL;
  20540. ;
  20541. return 0;
  20542. }
  20543. _ACEOF
  20544. if ac_fn_c_try_compile "$LINENO"
  20545. then :
  20546. have_xrandr_h_hdr=yes
  20547. fi
  20548. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20549. if test x$have_xrandr_h_hdr = xyes; then
  20550. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20551. echo "-- dynamic libXrandr -> $xrandr_lib"
  20552. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20553. definitely_enable_video_x11_xrandr=yes
  20554. else
  20555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20556. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20557. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20558. then :
  20559. printf %s "(cached) " >&6
  20560. else $as_nop
  20561. ac_check_lib_save_LIBS=$LIBS
  20562. LIBS="-lXrandr $LIBS"
  20563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20564. /* end confdefs.h. */
  20565. /* Override any GCC internal prototype to avoid an error.
  20566. Use char because int might match the return type of a GCC
  20567. builtin and then its argument prototype would still apply. */
  20568. char XRRQueryExtension ();
  20569. int
  20570. main (void)
  20571. {
  20572. return XRRQueryExtension ();
  20573. ;
  20574. return 0;
  20575. }
  20576. _ACEOF
  20577. if ac_fn_c_try_link "$LINENO"
  20578. then :
  20579. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20580. else $as_nop
  20581. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20584. conftest$ac_exeext conftest.$ac_ext
  20585. LIBS=$ac_check_lib_save_LIBS
  20586. fi
  20587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20588. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20589. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20590. then :
  20591. have_xrandr_lib=yes
  20592. fi
  20593. if test x$have_xrandr_lib = xyes ; then
  20594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20595. definitely_enable_video_x11_xrandr=yes
  20596. fi
  20597. fi
  20598. fi
  20599. fi
  20600. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20601. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20602. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20603. fi
  20604. # Check whether --enable-video-x11-scrnsaver was given.
  20605. if test ${enable_video_x11_scrnsaver+y}
  20606. then :
  20607. enableval=$enable_video_x11_scrnsaver;
  20608. else $as_nop
  20609. enable_video_x11_scrnsaver=yes
  20610. fi
  20611. if test x$enable_video_x11_scrnsaver = xyes; then
  20612. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20613. "
  20614. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20615. then :
  20616. have_scrnsaver_h_hdr=yes
  20617. else $as_nop
  20618. have_scrnsaver_h_hdr=no
  20619. fi
  20620. if test x$have_scrnsaver_h_hdr = xyes; then
  20621. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20622. echo "-- dynamic libXss -> $xss_lib"
  20623. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20624. definitely_enable_video_x11_scrnsaver=yes
  20625. else
  20626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20627. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20628. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20629. then :
  20630. printf %s "(cached) " >&6
  20631. else $as_nop
  20632. ac_check_lib_save_LIBS=$LIBS
  20633. LIBS="-lXss $LIBS"
  20634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20635. /* end confdefs.h. */
  20636. /* Override any GCC internal prototype to avoid an error.
  20637. Use char because int might match the return type of a GCC
  20638. builtin and then its argument prototype would still apply. */
  20639. char XScreenSaverSuspend ();
  20640. int
  20641. main (void)
  20642. {
  20643. return XScreenSaverSuspend ();
  20644. ;
  20645. return 0;
  20646. }
  20647. _ACEOF
  20648. if ac_fn_c_try_link "$LINENO"
  20649. then :
  20650. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20651. else $as_nop
  20652. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20653. fi
  20654. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20655. conftest$ac_exeext conftest.$ac_ext
  20656. LIBS=$ac_check_lib_save_LIBS
  20657. fi
  20658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20659. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20660. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20661. then :
  20662. have_xss_lib=yes
  20663. fi
  20664. if test x$have_xss_lib = xyes ; then
  20665. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20666. definitely_enable_video_x11_scrnsaver=yes
  20667. fi
  20668. fi
  20669. fi
  20670. fi
  20671. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20672. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20673. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20674. fi
  20675. # Check whether --enable-video-x11-xshape was given.
  20676. if test ${enable_video_x11_xshape+y}
  20677. then :
  20678. enableval=$enable_video_x11_xshape;
  20679. else $as_nop
  20680. enable_video_x11_xshape=yes
  20681. fi
  20682. if test x$enable_video_x11_xshape = xyes; then
  20683. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20684. "
  20685. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20686. then :
  20687. have_shape_h_hdr=yes
  20688. else $as_nop
  20689. have_shape_h_hdr=no
  20690. fi
  20691. if test x$have_shape_h_hdr = xyes; then
  20692. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20693. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20694. fi
  20695. fi
  20696. fi
  20697. fi
  20698. if test x$have_x != xyes; then
  20699. # Prevent Mesa from including X11 headers
  20700. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20701. fi
  20702. }
  20703. CheckVivanteVideo()
  20704. {
  20705. # Check whether --enable-video-vivante was given.
  20706. if test ${enable_video_vivante+y}
  20707. then :
  20708. enableval=$enable_video_vivante;
  20709. else $as_nop
  20710. enable_video_vivante=yes
  20711. fi
  20712. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20714. printf %s "checking for Vivante VDK API... " >&6; }
  20715. have_vivante_vdk=no
  20716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20717. /* end confdefs.h. */
  20718. #define LINUX
  20719. #define EGL_API_FB
  20720. #include <gc_vdk.h>
  20721. int
  20722. main (void)
  20723. {
  20724. ;
  20725. return 0;
  20726. }
  20727. _ACEOF
  20728. if ac_fn_c_try_compile "$LINENO"
  20729. then :
  20730. have_vivante_vdk=yes
  20731. fi
  20732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20734. printf "%s\n" "$have_vivante_vdk" >&6; }
  20735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20736. printf %s "checking for Vivante FB API... " >&6; }
  20737. have_vivante_egl=no
  20738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20739. /* end confdefs.h. */
  20740. #define LINUX
  20741. #define EGL_API_FB
  20742. #include <EGL/eglvivante.h>
  20743. int
  20744. main (void)
  20745. {
  20746. ;
  20747. return 0;
  20748. }
  20749. _ACEOF
  20750. if ac_fn_c_try_compile "$LINENO"
  20751. then :
  20752. have_vivante_egl=yes
  20753. fi
  20754. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20756. printf "%s\n" "$have_vivante_egl" >&6; }
  20757. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20758. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20759. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20760. if test x$have_vivante_vdk = xyes; then
  20761. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20762. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20763. fi
  20764. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20765. SUMMARY_video="${SUMMARY_video} vivante"
  20766. have_video=yes
  20767. fi
  20768. fi
  20769. }
  20770. CheckHaikuVideo()
  20771. {
  20772. if test x$enable_video = xyes; then
  20773. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20774. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20775. have_video=yes
  20776. SUMMARY_video="${SUMMARY_video} haiku"
  20777. fi
  20778. }
  20779. CheckCOCOA()
  20780. {
  20781. # Check whether --enable-video-cocoa was given.
  20782. if test ${enable_video_cocoa+y}
  20783. then :
  20784. enableval=$enable_video_cocoa;
  20785. else $as_nop
  20786. enable_video_cocoa=yes
  20787. fi
  20788. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20789. save_CFLAGS="$CFLAGS"
  20790. CFLAGS="$CFLAGS -x objective-c"
  20791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20792. printf %s "checking for Cocoa framework... " >&6; }
  20793. have_cocoa=no
  20794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20795. /* end confdefs.h. */
  20796. #import <Cocoa/Cocoa.h>
  20797. int
  20798. main (void)
  20799. {
  20800. ;
  20801. return 0;
  20802. }
  20803. _ACEOF
  20804. if ac_fn_c_try_compile "$LINENO"
  20805. then :
  20806. have_cocoa=yes
  20807. fi
  20808. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20810. printf "%s\n" "$have_cocoa" >&6; }
  20811. CFLAGS="$save_CFLAGS"
  20812. if test x$have_cocoa = xyes; then
  20813. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20814. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20815. SUMMARY_video="${SUMMARY_video} cocoa"
  20816. have_video=yes
  20817. fi
  20818. fi
  20819. }
  20820. CheckMETAL()
  20821. {
  20822. # Check whether --enable-video-metal was given.
  20823. if test ${enable_video_metal+y}
  20824. then :
  20825. enableval=$enable_video_metal;
  20826. else $as_nop
  20827. enable_video_metal=yes
  20828. fi
  20829. # Check whether --enable-render-metal was given.
  20830. if test ${enable_render_metal+y}
  20831. then :
  20832. enableval=$enable_render_metal;
  20833. else $as_nop
  20834. enable_render_metal=yes
  20835. fi
  20836. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  20837. save_CFLAGS="$CFLAGS"
  20838. CFLAGS="$CFLAGS -x objective-c"
  20839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  20840. printf %s "checking for Metal framework... " >&6; }
  20841. have_metal=no
  20842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20843. /* end confdefs.h. */
  20844. #import <Cocoa/Cocoa.h>
  20845. #import <Metal/Metal.h>
  20846. #import <QuartzCore/CAMetalLayer.h>
  20847. #if TARGET_CPU_X86
  20848. #error Metal doesn't work on this configuration
  20849. #endif
  20850. int
  20851. main (void)
  20852. {
  20853. ;
  20854. return 0;
  20855. }
  20856. _ACEOF
  20857. if ac_fn_c_try_compile "$LINENO"
  20858. then :
  20859. have_metal=yes
  20860. fi
  20861. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20862. CFLAGS="$save_CFLAGS"
  20863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  20864. printf "%s\n" "$have_metal" >&6; }
  20865. if test x$have_metal = xyes; then
  20866. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  20867. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20868. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  20869. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  20870. fi
  20871. SUMMARY_video="${SUMMARY_video} metal"
  20872. else
  20873. enable_video_metal=no
  20874. enable_render_metal=no
  20875. fi
  20876. fi
  20877. }
  20878. CheckKMSDRM()
  20879. {
  20880. # Check whether --enable-video-kmsdrm was given.
  20881. if test ${enable_video_kmsdrm+y}
  20882. then :
  20883. enableval=$enable_video_kmsdrm;
  20884. else $as_nop
  20885. enable_video_kmsdrm=yes
  20886. fi
  20887. if test x$enable_video = xyes && \
  20888. test x$enable_video_kmsdrm = xyes && \
  20889. test x$video_opengl_egl = xyes; then
  20890. video_kmsdrm=no
  20891. pkg_failed=no
  20892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  20893. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  20894. if test -n "$LIBDRM_CFLAGS"; then
  20895. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  20896. elif test -n "$PKG_CONFIG"; then
  20897. if test -n "$PKG_CONFIG" && \
  20898. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20899. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20900. ac_status=$?
  20901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20902. test $ac_status = 0; }; then
  20903. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  20904. test "x$?" != "x0" && pkg_failed=yes
  20905. else
  20906. pkg_failed=yes
  20907. fi
  20908. else
  20909. pkg_failed=untried
  20910. fi
  20911. if test -n "$LIBDRM_LIBS"; then
  20912. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  20913. elif test -n "$PKG_CONFIG"; then
  20914. if test -n "$PKG_CONFIG" && \
  20915. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  20916. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  20917. ac_status=$?
  20918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20919. test $ac_status = 0; }; then
  20920. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  20921. test "x$?" != "x0" && pkg_failed=yes
  20922. else
  20923. pkg_failed=yes
  20924. fi
  20925. else
  20926. pkg_failed=untried
  20927. fi
  20928. if test $pkg_failed = yes; then
  20929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20930. printf "%s\n" "no" >&6; }
  20931. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20932. _pkg_short_errors_supported=yes
  20933. else
  20934. _pkg_short_errors_supported=no
  20935. fi
  20936. if test $_pkg_short_errors_supported = yes; then
  20937. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20938. else
  20939. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  20940. fi
  20941. # Put the nasty error message in config.log where it belongs
  20942. echo "$LIBDRM_PKG_ERRORS" >&5
  20943. libdrm_avail=no
  20944. elif test $pkg_failed = untried; then
  20945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20946. printf "%s\n" "no" >&6; }
  20947. libdrm_avail=no
  20948. else
  20949. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  20950. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  20951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20952. printf "%s\n" "yes" >&6; }
  20953. libdrm_avail=yes
  20954. fi
  20955. pkg_failed=no
  20956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  20957. printf %s "checking for gbm >= 11.1.0... " >&6; }
  20958. if test -n "$LIBGBM_CFLAGS"; then
  20959. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  20960. elif test -n "$PKG_CONFIG"; then
  20961. if test -n "$PKG_CONFIG" && \
  20962. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20963. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20964. ac_status=$?
  20965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20966. test $ac_status = 0; }; then
  20967. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  20968. test "x$?" != "x0" && pkg_failed=yes
  20969. else
  20970. pkg_failed=yes
  20971. fi
  20972. else
  20973. pkg_failed=untried
  20974. fi
  20975. if test -n "$LIBGBM_LIBS"; then
  20976. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  20977. elif test -n "$PKG_CONFIG"; then
  20978. if test -n "$PKG_CONFIG" && \
  20979. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  20980. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  20981. ac_status=$?
  20982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20983. test $ac_status = 0; }; then
  20984. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  20985. test "x$?" != "x0" && pkg_failed=yes
  20986. else
  20987. pkg_failed=yes
  20988. fi
  20989. else
  20990. pkg_failed=untried
  20991. fi
  20992. if test $pkg_failed = yes; then
  20993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20994. printf "%s\n" "no" >&6; }
  20995. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20996. _pkg_short_errors_supported=yes
  20997. else
  20998. _pkg_short_errors_supported=no
  20999. fi
  21000. if test $_pkg_short_errors_supported = yes; then
  21001. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21002. else
  21003. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21004. fi
  21005. # Put the nasty error message in config.log where it belongs
  21006. echo "$LIBGBM_PKG_ERRORS" >&5
  21007. libgbm_avail=no
  21008. elif test $pkg_failed = untried; then
  21009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21010. printf "%s\n" "no" >&6; }
  21011. libgbm_avail=no
  21012. else
  21013. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21014. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21016. printf "%s\n" "yes" >&6; }
  21017. libgbm_avail=yes
  21018. fi
  21019. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21020. video_kmsdrm=yes
  21021. fi
  21022. if test x$video_kmsdrm = xyes; then
  21023. # Check whether --enable-kmsdrm-shared was given.
  21024. if test ${enable_kmsdrm_shared+y}
  21025. then :
  21026. enableval=$enable_kmsdrm_shared;
  21027. else $as_nop
  21028. enable_kmsdrm_shared=yes
  21029. fi
  21030. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21031. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21032. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21034. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21035. kmsdrm_shared=no
  21036. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21037. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21038. if test x$have_loadso != xyes && \
  21039. test x$enable_kmsdrm_shared = xyes; then
  21040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21041. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21042. fi
  21043. if test x$have_loadso = xyes && \
  21044. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21045. kmsdrm_shared=yes
  21046. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21047. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21048. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21049. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21050. else
  21051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21052. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21053. fi
  21054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21055. printf "%s\n" "$kmsdrm_shared" >&6; }
  21056. if test x$kmsdrm_shared = xyes; then
  21057. echo "-- dynamic libdrm -> $drm_lib"
  21058. echo "-- dynamic libgbm -> $gbm_lib"
  21059. fi
  21060. have_video=yes
  21061. fi
  21062. fi
  21063. }
  21064. CheckDummyVideo()
  21065. {
  21066. # Check whether --enable-video-dummy was given.
  21067. if test ${enable_video_dummy+y}
  21068. then :
  21069. enableval=$enable_video_dummy;
  21070. else $as_nop
  21071. enable_video_dummy=yes
  21072. fi
  21073. if test x$enable_video_dummy = xyes; then
  21074. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21075. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21076. have_video=yes
  21077. SUMMARY_video="${SUMMARY_video} dummy"
  21078. fi
  21079. }
  21080. CheckOffscreenVideo()
  21081. {
  21082. # Check whether --enable-video-offscreen was given.
  21083. if test ${enable_video_offscreen+y}
  21084. then :
  21085. enableval=$enable_video_offscreen;
  21086. else $as_nop
  21087. enable_video_offscreen=yes
  21088. fi
  21089. if test x$enable_video_offscreen = xyes; then
  21090. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21091. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21092. have_video=yes
  21093. SUMMARY_video="${SUMMARY_video} offscreen"
  21094. fi
  21095. }
  21096. # Check whether --enable-video-opengl was given.
  21097. if test ${enable_video_opengl+y}
  21098. then :
  21099. enableval=$enable_video_opengl;
  21100. else $as_nop
  21101. enable_video_opengl=yes
  21102. fi
  21103. CheckGLX()
  21104. {
  21105. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21107. printf %s "checking for GLX support... " >&6; }
  21108. video_opengl_glx=no
  21109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21110. /* end confdefs.h. */
  21111. #include <GL/glx.h>
  21112. int
  21113. main (void)
  21114. {
  21115. ;
  21116. return 0;
  21117. }
  21118. _ACEOF
  21119. if ac_fn_c_try_compile "$LINENO"
  21120. then :
  21121. video_opengl_glx=yes
  21122. fi
  21123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21125. printf "%s\n" "$video_opengl_glx" >&6; }
  21126. if test x$video_opengl_glx = xyes; then
  21127. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21128. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21129. fi
  21130. fi
  21131. }
  21132. # Check whether --enable-video-opengles was given.
  21133. if test ${enable_video_opengles+y}
  21134. then :
  21135. enableval=$enable_video_opengles;
  21136. else $as_nop
  21137. enable_video_opengles=yes
  21138. fi
  21139. # Check whether --enable-video-opengles1 was given.
  21140. if test ${enable_video_opengles1+y}
  21141. then :
  21142. enableval=$enable_video_opengles1;
  21143. else $as_nop
  21144. enable_video_opengles1=yes
  21145. fi
  21146. # Check whether --enable-video-opengles2 was given.
  21147. if test ${enable_video_opengles2+y}
  21148. then :
  21149. enableval=$enable_video_opengles2;
  21150. else $as_nop
  21151. enable_video_opengles2=yes
  21152. fi
  21153. CheckEGL()
  21154. {
  21155. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21157. printf %s "checking for EGL support... " >&6; }
  21158. video_opengl_egl=no
  21159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21160. /* end confdefs.h. */
  21161. #define LINUX
  21162. #define EGL_API_FB
  21163. #define MESA_EGL_NO_X11_HEADERS
  21164. #define EGL_NO_X11
  21165. #include <EGL/egl.h>
  21166. #include <EGL/eglext.h>
  21167. int
  21168. main (void)
  21169. {
  21170. ;
  21171. return 0;
  21172. }
  21173. _ACEOF
  21174. if ac_fn_c_try_compile "$LINENO"
  21175. then :
  21176. video_opengl_egl=yes
  21177. fi
  21178. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21180. printf "%s\n" "$video_opengl_egl" >&6; }
  21181. if test x$video_opengl_egl = xyes; then
  21182. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21183. fi
  21184. fi
  21185. }
  21186. CheckOpenGL()
  21187. {
  21188. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21190. printf %s "checking for OpenGL headers... " >&6; }
  21191. video_opengl=no
  21192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21193. /* end confdefs.h. */
  21194. #include <GL/gl.h>
  21195. #include <GL/glext.h>
  21196. int
  21197. main (void)
  21198. {
  21199. ;
  21200. return 0;
  21201. }
  21202. _ACEOF
  21203. if ac_fn_c_try_compile "$LINENO"
  21204. then :
  21205. video_opengl=yes
  21206. fi
  21207. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21209. printf "%s\n" "$video_opengl" >&6; }
  21210. if test x$video_opengl = xyes; then
  21211. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21212. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21213. SUMMARY_video="${SUMMARY_video} opengl"
  21214. fi
  21215. fi
  21216. }
  21217. CheckOpenGLES()
  21218. {
  21219. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21220. if test x$enable_video_opengles1 = xyes; then
  21221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21222. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  21223. video_opengles_v1=no
  21224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21225. /* end confdefs.h. */
  21226. #include <GLES/gl.h>
  21227. #include <GLES/glext.h>
  21228. int
  21229. main (void)
  21230. {
  21231. ;
  21232. return 0;
  21233. }
  21234. _ACEOF
  21235. if ac_fn_c_try_compile "$LINENO"
  21236. then :
  21237. video_opengles_v1=yes
  21238. fi
  21239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21241. printf "%s\n" "$video_opengles_v1" >&6; }
  21242. if test x$video_opengles_v1 = xyes; then
  21243. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21244. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21245. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21246. fi
  21247. fi
  21248. if test x$enable_video_opengles2 = xyes; then
  21249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21250. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21251. video_opengles_v2=no
  21252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21253. /* end confdefs.h. */
  21254. #include <GLES2/gl2.h>
  21255. #include <GLES2/gl2ext.h>
  21256. int
  21257. main (void)
  21258. {
  21259. ;
  21260. return 0;
  21261. }
  21262. _ACEOF
  21263. if ac_fn_c_try_compile "$LINENO"
  21264. then :
  21265. video_opengles_v2=yes
  21266. fi
  21267. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21269. printf "%s\n" "$video_opengles_v2" >&6; }
  21270. if test x$video_opengles_v2 = xyes; then
  21271. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21272. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21273. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21274. fi
  21275. fi
  21276. fi
  21277. }
  21278. CheckWINDOWSGL()
  21279. {
  21280. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21281. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21282. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21283. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21284. SUMMARY_video="${SUMMARY_video} opengl"
  21285. fi
  21286. }
  21287. CheckWINDOWSGLES()
  21288. {
  21289. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21291. printf %s "checking for EGL support... " >&6; }
  21292. video_opengl_egl=no
  21293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21294. /* end confdefs.h. */
  21295. #include <EGL/egl.h>
  21296. int
  21297. main (void)
  21298. {
  21299. ;
  21300. return 0;
  21301. }
  21302. _ACEOF
  21303. if ac_fn_c_try_compile "$LINENO"
  21304. then :
  21305. video_opengl_egl=yes
  21306. fi
  21307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21309. printf "%s\n" "$video_opengl_egl" >&6; }
  21310. if test x$video_opengl_egl = xyes; then
  21311. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21312. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21313. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21314. fi
  21315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21316. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21317. video_opengles_v2=no
  21318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21319. /* end confdefs.h. */
  21320. #include <GLES2/gl2.h>
  21321. #include <GLES2/gl2ext.h>
  21322. int
  21323. main (void)
  21324. {
  21325. ;
  21326. return 0;
  21327. }
  21328. _ACEOF
  21329. if ac_fn_c_try_compile "$LINENO"
  21330. then :
  21331. video_opengles_v2=yes
  21332. fi
  21333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21335. printf "%s\n" "$video_opengles_v2" >&6; }
  21336. if test x$video_opengles_v2 = xyes; then
  21337. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21338. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21339. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21340. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21341. fi
  21342. fi
  21343. }
  21344. CheckHaikuGL()
  21345. {
  21346. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21347. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21348. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21349. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21351. SUMMARY_video="${SUMMARY_video} opengl"
  21352. fi
  21353. }
  21354. CheckMacGL()
  21355. {
  21356. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21357. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21358. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21359. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21360. SUMMARY_video="${SUMMARY_video} opengl"
  21361. fi
  21362. }
  21363. CheckMacGLES()
  21364. {
  21365. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21366. video_opengl_egl=yes
  21367. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21368. video_opengles_v2=yes
  21369. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21370. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21371. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21372. fi
  21373. }
  21374. CheckEmscriptenGLES()
  21375. {
  21376. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21378. printf %s "checking for EGL support... " >&6; }
  21379. video_opengl_egl=no
  21380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21381. /* end confdefs.h. */
  21382. #include <EGL/egl.h>
  21383. int
  21384. main (void)
  21385. {
  21386. ;
  21387. return 0;
  21388. }
  21389. _ACEOF
  21390. if ac_fn_c_try_compile "$LINENO"
  21391. then :
  21392. video_opengl_egl=yes
  21393. fi
  21394. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21396. printf "%s\n" "$video_opengl_egl" >&6; }
  21397. if test x$video_opengl_egl = xyes; then
  21398. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21399. fi
  21400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21401. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21402. video_opengles_v2=no
  21403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21404. /* end confdefs.h. */
  21405. #include <GLES2/gl2.h>
  21406. #include <GLES2/gl2ext.h>
  21407. int
  21408. main (void)
  21409. {
  21410. ;
  21411. return 0;
  21412. }
  21413. _ACEOF
  21414. if ac_fn_c_try_compile "$LINENO"
  21415. then :
  21416. video_opengles_v2=yes
  21417. fi
  21418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21420. printf "%s\n" "$video_opengles_v2" >&6; }
  21421. if test x$video_opengles_v2 = xyes; then
  21422. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21423. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21424. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21425. fi
  21426. fi
  21427. }
  21428. # Check whether --enable-video-vulkan was given.
  21429. if test ${enable_video_vulkan+y}
  21430. then :
  21431. enableval=$enable_video_vulkan;
  21432. else $as_nop
  21433. enable_video_vulkan=yes
  21434. fi
  21435. CheckVulkan()
  21436. {
  21437. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21438. case "$host" in
  21439. *-*-android*)
  21440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21441. /* end confdefs.h. */
  21442. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21443. #error Vulkan doesn't work on this configuration
  21444. #endif
  21445. int
  21446. main (void)
  21447. {
  21448. ;
  21449. return 0;
  21450. }
  21451. _ACEOF
  21452. if ac_fn_c_try_compile "$LINENO"
  21453. then :
  21454. else $as_nop
  21455. enable_video_vulkan=no
  21456. fi
  21457. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21458. ;;
  21459. *-*-darwin*)
  21460. save_CFLAGS="$CFLAGS"
  21461. CFLAGS="$CFLAGS -x objective-c"
  21462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21463. /* end confdefs.h. */
  21464. #include <Cocoa/Cocoa.h>
  21465. #include <Metal/Metal.h>
  21466. #include <QuartzCore/CAMetalLayer.h>
  21467. #if TARGET_CPU_X86
  21468. #error Vulkan doesn't work on this configuration
  21469. #endif
  21470. int
  21471. main (void)
  21472. {
  21473. ;
  21474. return 0;
  21475. }
  21476. _ACEOF
  21477. if ac_fn_c_try_compile "$LINENO"
  21478. then :
  21479. else $as_nop
  21480. enable_video_vulkan=no
  21481. fi
  21482. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21483. CFLAGS="$save_CFLAGS"
  21484. ;;
  21485. *)
  21486. ;;
  21487. esac
  21488. if test x$enable_video_vulkan = xno; then
  21489. # For reasons I am totally unable to see, I get an undefined macro error if
  21490. # I put this in the AC_TRY_COMPILE.
  21491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21492. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21493. fi
  21494. fi
  21495. if test x$have_loadso != xyes; then
  21496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21497. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21498. enable_video_vulkan=no
  21499. fi
  21500. if test x$enable_video_vulkan = xyes; then
  21501. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21502. SUMMARY_video="${SUMMARY_video} vulkan"
  21503. fi
  21504. }
  21505. CheckInputEvents()
  21506. {
  21507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21508. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21509. use_input_events=no
  21510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21511. /* end confdefs.h. */
  21512. #include <linux/input.h>
  21513. int
  21514. main (void)
  21515. {
  21516. #ifndef EVIOCGNAME
  21517. #error EVIOCGNAME() ioctl not available
  21518. #endif
  21519. ;
  21520. return 0;
  21521. }
  21522. _ACEOF
  21523. if ac_fn_c_try_compile "$LINENO"
  21524. then :
  21525. use_input_events=yes
  21526. fi
  21527. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21529. printf "%s\n" "$use_input_events" >&6; }
  21530. if test x$use_input_events = xyes; then
  21531. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21532. SUMMARY_input="${SUMMARY_input} linuxev"
  21533. fi
  21534. }
  21535. CheckInputKD()
  21536. {
  21537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21538. printf %s "checking for Linux kd.h... " >&6; }
  21539. use_input_kd=no
  21540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21541. /* end confdefs.h. */
  21542. #include <linux/kd.h>
  21543. #include <linux/keyboard.h>
  21544. #include <sys/ioctl.h>
  21545. int
  21546. main (void)
  21547. {
  21548. struct kbentry kbe;
  21549. kbe.kb_table = KG_CTRL;
  21550. ioctl(0, KDGKBENT, &kbe);
  21551. ;
  21552. return 0;
  21553. }
  21554. _ACEOF
  21555. if ac_fn_c_try_compile "$LINENO"
  21556. then :
  21557. use_input_kd=yes
  21558. fi
  21559. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21561. printf "%s\n" "$use_input_kd" >&6; }
  21562. if test x$use_input_kd = xyes; then
  21563. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21564. SUMMARY_input="${SUMMARY_input} linuxkd"
  21565. fi
  21566. }
  21567. CheckInputKBIO()
  21568. {
  21569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21570. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21571. use_input_kbio=no
  21572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21573. /* end confdefs.h. */
  21574. #include <sys/kbio.h>
  21575. #include <sys/ioctl.h>
  21576. int
  21577. main (void)
  21578. {
  21579. accentmap_t accTable;
  21580. ioctl(0, KDENABIO, 1);
  21581. ;
  21582. return 0;
  21583. }
  21584. _ACEOF
  21585. if ac_fn_c_try_compile "$LINENO"
  21586. then :
  21587. use_input_kbio=yes
  21588. fi
  21589. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21591. printf "%s\n" "$use_input_kbio" >&6; }
  21592. if test x$use_input_kbio = xyes; then
  21593. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21594. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21595. fi
  21596. }
  21597. CheckInputWSCONS()
  21598. {
  21599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21600. printf %s "checking for OpenBSD wscons... " >&6; }
  21601. use_input_wscons=no
  21602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21603. /* end confdefs.h. */
  21604. #include <sys/time.h>
  21605. #include <dev/wscons/wsconsio.h>
  21606. #include <dev/wscons/wsksymdef.h>
  21607. #include <dev/wscons/wsksymvar.h>
  21608. #include <sys/ioctl.h>
  21609. int
  21610. main (void)
  21611. {
  21612. struct wskbd_map_data data;
  21613. ioctl(0, WSKBDIO_GETMAP, &data);
  21614. ;
  21615. return 0;
  21616. }
  21617. _ACEOF
  21618. if ac_fn_c_try_compile "$LINENO"
  21619. then :
  21620. use_input_wscons=yes
  21621. fi
  21622. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21624. printf "%s\n" "$use_input_wscons" >&6; }
  21625. if test x$use_input_wscons = xyes; then
  21626. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21627. SUMMARY_input="${SUMMARY_input} wscons"
  21628. fi
  21629. }
  21630. CheckLibUDev()
  21631. {
  21632. # Check whether --enable-libudev was given.
  21633. if test ${enable_libudev+y}
  21634. then :
  21635. enableval=$enable_libudev;
  21636. else $as_nop
  21637. enable_libudev=yes
  21638. fi
  21639. if test x$enable_libudev = xyes; then
  21640. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21641. if test "x$ac_cv_header_libudev_h" = xyes
  21642. then :
  21643. have_libudev_h_hdr=yes
  21644. else $as_nop
  21645. have_libudev_h_hdr=no
  21646. fi
  21647. if test x$have_libudev_h_hdr = xyes; then
  21648. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21649. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21650. if test x$udev_lib != x; then
  21651. echo "-- dynamic udev -> $udev_lib"
  21652. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21653. fi
  21654. fi
  21655. fi
  21656. }
  21657. CheckDBus()
  21658. {
  21659. # Check whether --enable-dbus was given.
  21660. if test ${enable_dbus+y}
  21661. then :
  21662. enableval=$enable_dbus;
  21663. else $as_nop
  21664. enable_dbus=yes
  21665. fi
  21666. if test x$enable_dbus = xyes; then
  21667. pkg_failed=no
  21668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21669. printf %s "checking for dbus-1... " >&6; }
  21670. if test -n "$DBUS_CFLAGS"; then
  21671. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21672. elif test -n "$PKG_CONFIG"; then
  21673. if test -n "$PKG_CONFIG" && \
  21674. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21675. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21676. ac_status=$?
  21677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21678. test $ac_status = 0; }; then
  21679. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21680. test "x$?" != "x0" && pkg_failed=yes
  21681. else
  21682. pkg_failed=yes
  21683. fi
  21684. else
  21685. pkg_failed=untried
  21686. fi
  21687. if test -n "$DBUS_LIBS"; then
  21688. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21689. elif test -n "$PKG_CONFIG"; then
  21690. if test -n "$PKG_CONFIG" && \
  21691. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21692. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21693. ac_status=$?
  21694. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21695. test $ac_status = 0; }; then
  21696. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21697. test "x$?" != "x0" && pkg_failed=yes
  21698. else
  21699. pkg_failed=yes
  21700. fi
  21701. else
  21702. pkg_failed=untried
  21703. fi
  21704. if test $pkg_failed = yes; then
  21705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21706. printf "%s\n" "no" >&6; }
  21707. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21708. _pkg_short_errors_supported=yes
  21709. else
  21710. _pkg_short_errors_supported=no
  21711. fi
  21712. if test $_pkg_short_errors_supported = yes; then
  21713. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21714. else
  21715. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21716. fi
  21717. # Put the nasty error message in config.log where it belongs
  21718. echo "$DBUS_PKG_ERRORS" >&5
  21719. have_dbus=no
  21720. elif test $pkg_failed = untried; then
  21721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21722. printf "%s\n" "no" >&6; }
  21723. have_dbus=no
  21724. else
  21725. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21726. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21728. printf "%s\n" "yes" >&6; }
  21729. have_dbus=yes
  21730. fi
  21731. save_CPPFLAGS="$CPPFLAGS"
  21732. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21733. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21734. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21735. then :
  21736. have_dbus_dbus_h_hdr=yes
  21737. else $as_nop
  21738. have_dbus_dbus_h_hdr=no
  21739. fi
  21740. CPPFLAGS="$save_CPPFLAGS"
  21741. if test x$have_dbus_dbus_h_hdr = xyes; then
  21742. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21743. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21744. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21745. fi
  21746. fi
  21747. }
  21748. CheckIME()
  21749. {
  21750. # Check whether --enable-ime was given.
  21751. if test ${enable_ime+y}
  21752. then :
  21753. enableval=$enable_ime;
  21754. else $as_nop
  21755. enable_ime=yes
  21756. fi
  21757. if test x$enable_ime = xyes; then
  21758. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21759. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21760. fi
  21761. }
  21762. CheckInotify()
  21763. {
  21764. save_LIBS="$LIBS"
  21765. case "$host" in
  21766. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21767. ;;
  21768. esac
  21769. for ac_header in sys/inotify.h
  21770. do :
  21771. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21772. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21773. then :
  21774. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21775. have_inotify_inotify_h_hdr=yes
  21776. fi
  21777. done
  21778. for ac_func in inotify_init
  21779. do :
  21780. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21781. if test "x$ac_cv_func_inotify_init" = xyes
  21782. then :
  21783. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21784. have_inotify=yes
  21785. fi
  21786. done
  21787. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21788. if test "x$ac_cv_func_inotify_init1" = xyes
  21789. then :
  21790. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21791. fi
  21792. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21793. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21794. case "$host" in
  21795. *-*-freebsd*|*-*-dragonfly*)
  21796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21797. ;;
  21798. esac
  21799. fi
  21800. LIBS="$save_LIBS"
  21801. }
  21802. CheckIBus()
  21803. {
  21804. # Check whether --enable-ibus was given.
  21805. if test ${enable_ibus+y}
  21806. then :
  21807. enableval=$enable_ibus;
  21808. else $as_nop
  21809. enable_ibus=yes
  21810. fi
  21811. if test x$enable_ibus = xyes; then
  21812. pkg_failed=no
  21813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  21814. printf %s "checking for ibus-1.0... " >&6; }
  21815. if test -n "$IBUS_CFLAGS"; then
  21816. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  21817. elif test -n "$PKG_CONFIG"; then
  21818. if test -n "$PKG_CONFIG" && \
  21819. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21820. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21821. ac_status=$?
  21822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21823. test $ac_status = 0; }; then
  21824. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  21825. test "x$?" != "x0" && pkg_failed=yes
  21826. else
  21827. pkg_failed=yes
  21828. fi
  21829. else
  21830. pkg_failed=untried
  21831. fi
  21832. if test -n "$IBUS_LIBS"; then
  21833. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  21834. elif test -n "$PKG_CONFIG"; then
  21835. if test -n "$PKG_CONFIG" && \
  21836. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21837. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21838. ac_status=$?
  21839. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21840. test $ac_status = 0; }; then
  21841. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  21842. test "x$?" != "x0" && pkg_failed=yes
  21843. else
  21844. pkg_failed=yes
  21845. fi
  21846. else
  21847. pkg_failed=untried
  21848. fi
  21849. if test $pkg_failed = yes; then
  21850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21851. printf "%s\n" "no" >&6; }
  21852. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21853. _pkg_short_errors_supported=yes
  21854. else
  21855. _pkg_short_errors_supported=no
  21856. fi
  21857. if test $_pkg_short_errors_supported = yes; then
  21858. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21859. else
  21860. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21861. fi
  21862. # Put the nasty error message in config.log where it belongs
  21863. echo "$IBUS_PKG_ERRORS" >&5
  21864. have_ibus=no
  21865. elif test $pkg_failed = untried; then
  21866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21867. printf "%s\n" "no" >&6; }
  21868. have_ibus=no
  21869. else
  21870. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  21871. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  21872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21873. printf "%s\n" "yes" >&6; }
  21874. have_ibus=yes
  21875. fi
  21876. save_CPPFLAGS="$CPPFLAGS"
  21877. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  21878. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  21879. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  21880. then :
  21881. have_ibus_ibus_h_hdr=yes
  21882. else $as_nop
  21883. have_ibus_ibus_h_hdr=no
  21884. fi
  21885. CPPFLAGS="$save_CPPFLAGS"
  21886. if test x$have_ibus_ibus_h_hdr = xyes; then
  21887. if test x$enable_ime != xyes; then
  21888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  21889. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  21890. have_ibus_ibus_h_hdr=no
  21891. elif test x$enable_dbus != xyes; then
  21892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  21893. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  21894. have_ibus_ibus_h_hdr=no
  21895. elif test x$have_inotify_inotify_h_hdr != xyes; then
  21896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  21897. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  21898. have_ibus_ibus_h_hdr=no
  21899. else
  21900. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  21901. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  21902. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  21903. fi
  21904. fi
  21905. fi
  21906. }
  21907. CheckFcitx()
  21908. {
  21909. # Check whether --enable-fcitx was given.
  21910. if test ${enable_fcitx+y}
  21911. then :
  21912. enableval=$enable_fcitx;
  21913. else $as_nop
  21914. enable_fcitx=yes
  21915. fi
  21916. if test x$enable_fcitx = xyes; then
  21917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  21918. printf %s "checking for fcitx support... " >&6; }
  21919. have_fcitx=no
  21920. if test x$enable_ime != xyes; then
  21921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  21922. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  21923. elif test x$have_dbus_dbus_h_hdr != xyes; then
  21924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  21925. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  21926. else
  21927. have_fcitx=yes
  21928. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  21929. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  21930. fi
  21931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  21932. printf "%s\n" "$have_fcitx" >&6; }
  21933. fi
  21934. }
  21935. CheckJoystickMFI()
  21936. {
  21937. # Check whether --enable-joystick-mfi was given.
  21938. if test ${enable_joystick_mfi+y}
  21939. then :
  21940. enableval=$enable_joystick_mfi;
  21941. else $as_nop
  21942. enable_joystick_mfi=yes
  21943. fi
  21944. if test x$enable_joystick_mfi = xyes; then
  21945. save_CFLAGS="$CFLAGS"
  21946. save_LDFLAGS="$LDFLAGS"
  21947. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  21948. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  21950. printf %s "checking for GameController framework... " >&6; }
  21951. enable_joystick_mfi=no
  21952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21953. /* end confdefs.h. */
  21954. #include <AvailabilityMacros.h>
  21955. #include <TargetConditionals.h>
  21956. #import <GameController/GameController.h>
  21957. int
  21958. main (void)
  21959. {
  21960. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  21961. #error GameController framework doesn't work on this configuration
  21962. #endif
  21963. #if TARGET_CPU_X86
  21964. #error GameController framework doesn't work on this configuration
  21965. #endif
  21966. ;
  21967. return 0;
  21968. }
  21969. _ACEOF
  21970. if ac_fn_c_try_link "$LINENO"
  21971. then :
  21972. enable_joystick_mfi=yes
  21973. fi
  21974. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21975. conftest$ac_exeext conftest.$ac_ext
  21976. CFLAGS="$save_CFLAGS"
  21977. LDFLAGS="$save_LDFLAGS"
  21978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  21979. printf "%s\n" "$enable_joystick_mfi" >&6; }
  21980. if test x$enable_joystick_mfi = xyes; then
  21981. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21982. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  21983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21984. fi
  21985. fi
  21986. }
  21987. CheckPTHREAD()
  21988. {
  21989. case "$host" in
  21990. *-*-emscripten*)
  21991. enable_pthreads_default=no
  21992. ;;
  21993. *)
  21994. enable_pthreads_default=yes
  21995. ;;
  21996. esac
  21997. # Check whether --enable-pthreads was given.
  21998. if test ${enable_pthreads+y}
  21999. then :
  22000. enableval=$enable_pthreads;
  22001. else $as_nop
  22002. enable_pthreads=maybe
  22003. fi
  22004. # Check whether --enable-pthread-sem was given.
  22005. if test ${enable_pthread_sem+y}
  22006. then :
  22007. enableval=$enable_pthread_sem;
  22008. else $as_nop
  22009. enable_pthread_sem=maybe
  22010. fi
  22011. if test x$enable_pthreads = xmaybe; then
  22012. enable_pthreads=$enable_pthreads_default
  22013. fi
  22014. if test x$enable_pthread_sem = xmaybe; then
  22015. enable_pthread_sem=$enable_pthreads
  22016. fi
  22017. case "$host" in
  22018. *-*-android*)
  22019. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22020. pthread_lib=""
  22021. ;;
  22022. *-*-linux*|*-*-uclinux*)
  22023. pthread_cflags="-D_REENTRANT"
  22024. pthread_lib="-lpthread"
  22025. ;;
  22026. *-*-bsdi*)
  22027. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22028. pthread_lib=""
  22029. ;;
  22030. *-*-darwin*)
  22031. pthread_cflags="-D_THREAD_SAFE"
  22032. # causes Carbon.p complaints?
  22033. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22034. ;;
  22035. *-*-freebsd*|*-*-dragonfly*)
  22036. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22037. pthread_lib="-pthread"
  22038. ;;
  22039. *-*-netbsd*)
  22040. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22041. pthread_lib="-lpthread"
  22042. ;;
  22043. *-*-openbsd*)
  22044. pthread_cflags="-D_REENTRANT"
  22045. pthread_lib="-lpthread"
  22046. ;;
  22047. *-*-solaris2.9)
  22048. # From Solaris 9+, posix4's preferred name is rt.
  22049. pthread_cflags="-D_REENTRANT"
  22050. pthread_lib="-lpthread -lrt"
  22051. ;;
  22052. *-*-solaris2.10)
  22053. # Solaris 10+ merged pthread into libc.
  22054. pthread_cflags="-D_REENTRANT"
  22055. pthread_lib="-lrt"
  22056. ;;
  22057. *-*-solaris*)
  22058. # Solaris 11+ merged rt into libc.
  22059. pthread_cflags="-D_REENTRANT"
  22060. pthread_lib=""
  22061. ;;
  22062. *-*-sysv5*)
  22063. pthread_cflags="-D_REENTRANT -Kthread"
  22064. pthread_lib=""
  22065. ;;
  22066. *-*-aix*)
  22067. pthread_cflags="-D_REENTRANT -mthreads"
  22068. pthread_lib="-lpthread"
  22069. ;;
  22070. *-*-hpux11*)
  22071. pthread_cflags="-D_REENTRANT"
  22072. pthread_lib="-L/usr/lib -lpthread"
  22073. ;;
  22074. *-*-haiku*)
  22075. pthread_cflags="-D_REENTRANT"
  22076. pthread_lib=""
  22077. ;;
  22078. *-*-emscripten*)
  22079. pthread_cflags="-D_REENTRANT -pthread"
  22080. pthread_lib="-pthread"
  22081. ;;
  22082. *)
  22083. pthread_cflags="-D_REENTRANT"
  22084. pthread_lib="-lpthread"
  22085. ;;
  22086. esac
  22087. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22088. # Save the original compiler flags and libraries
  22089. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22090. # Add the pthread compiler flags and libraries
  22091. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22092. # Check to see if we have pthread support on this system
  22093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22094. printf %s "checking for pthreads... " >&6; }
  22095. use_pthreads=no
  22096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22097. /* end confdefs.h. */
  22098. #include <pthread.h>
  22099. int
  22100. main (void)
  22101. {
  22102. pthread_attr_t type;
  22103. pthread_attr_init(&type);
  22104. ;
  22105. return 0;
  22106. }
  22107. _ACEOF
  22108. if ac_fn_c_try_link "$LINENO"
  22109. then :
  22110. use_pthreads=yes
  22111. fi
  22112. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22113. conftest$ac_exeext conftest.$ac_ext
  22114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22115. printf "%s\n" "$use_pthreads" >&6; }
  22116. # Restore the compiler flags and libraries
  22117. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22118. # Do futher testing if we have pthread support...
  22119. if test x$use_pthreads = xyes; then
  22120. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22121. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22123. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22124. # Save the original compiler flags and libraries
  22125. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22126. # Add the pthread compiler flags and libraries
  22127. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22128. # Check to see if recursive mutexes are available
  22129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22130. printf %s "checking for recursive mutexes... " >&6; }
  22131. has_recursive_mutexes=no
  22132. if test x$has_recursive_mutexes = xno; then
  22133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22134. /* end confdefs.h. */
  22135. #define _GNU_SOURCE 1
  22136. #include <pthread.h>
  22137. int
  22138. main (void)
  22139. {
  22140. pthread_mutexattr_t attr;
  22141. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22142. ;
  22143. return 0;
  22144. }
  22145. _ACEOF
  22146. if ac_fn_c_try_link "$LINENO"
  22147. then :
  22148. has_recursive_mutexes=yes
  22149. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22150. fi
  22151. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22152. conftest$ac_exeext conftest.$ac_ext
  22153. fi
  22154. if test x$has_recursive_mutexes = xno; then
  22155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22156. /* end confdefs.h. */
  22157. #define _GNU_SOURCE 1
  22158. #include <pthread.h>
  22159. int
  22160. main (void)
  22161. {
  22162. pthread_mutexattr_t attr;
  22163. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22164. ;
  22165. return 0;
  22166. }
  22167. _ACEOF
  22168. if ac_fn_c_try_link "$LINENO"
  22169. then :
  22170. has_recursive_mutexes=yes
  22171. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22172. fi
  22173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22174. conftest$ac_exeext conftest.$ac_ext
  22175. fi
  22176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22177. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22178. # Check to see if pthread semaphore support is missing
  22179. if test x$enable_pthread_sem = xyes; then
  22180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22181. printf %s "checking for pthread semaphores... " >&6; }
  22182. have_pthread_sem=no
  22183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22184. /* end confdefs.h. */
  22185. #include <pthread.h>
  22186. #include <semaphore.h>
  22187. int
  22188. main (void)
  22189. {
  22190. ;
  22191. return 0;
  22192. }
  22193. _ACEOF
  22194. if ac_fn_c_try_compile "$LINENO"
  22195. then :
  22196. have_pthread_sem=yes
  22197. fi
  22198. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22200. printf "%s\n" "$have_pthread_sem" >&6; }
  22201. fi
  22202. if test x$have_pthread_sem = xyes; then
  22203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22204. printf %s "checking for sem_timedwait... " >&6; }
  22205. have_sem_timedwait=no
  22206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22207. /* end confdefs.h. */
  22208. #include <pthread.h>
  22209. #include <semaphore.h>
  22210. int
  22211. main (void)
  22212. {
  22213. sem_timedwait(NULL, NULL);
  22214. ;
  22215. return 0;
  22216. }
  22217. _ACEOF
  22218. if ac_fn_c_try_link "$LINENO"
  22219. then :
  22220. have_sem_timedwait=yes
  22221. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22222. fi
  22223. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22224. conftest$ac_exeext conftest.$ac_ext
  22225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22226. printf "%s\n" "$have_sem_timedwait" >&6; }
  22227. fi
  22228. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22229. "
  22230. if test "x$ac_cv_header_pthread_np_h" = xyes
  22231. then :
  22232. have_pthread_np_h=yes
  22233. else $as_nop
  22234. have_pthread_np_h=no
  22235. fi
  22236. if test x$have_pthread_np_h = xyes; then
  22237. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22238. fi
  22239. # Check to see if pthread naming is available
  22240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22241. printf %s "checking for pthread_setname_np... " >&6; }
  22242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22243. /* end confdefs.h. */
  22244. /* Override any GCC internal prototype to avoid an error.
  22245. Use char because int might match the return type of a GCC
  22246. builtin and then its argument prototype would still apply. */
  22247. char pthread_setname_np ();
  22248. int
  22249. main (void)
  22250. {
  22251. return pthread_setname_np ();
  22252. ;
  22253. return 0;
  22254. }
  22255. _ACEOF
  22256. if ac_fn_c_try_link "$LINENO"
  22257. then :
  22258. has_pthread_setname_np=yes
  22259. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22260. else $as_nop
  22261. has_pthread_setname_np=no
  22262. fi
  22263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22264. conftest$ac_exeext conftest.$ac_ext
  22265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22266. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22268. printf %s "checking for pthread_set_name_np... " >&6; }
  22269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22270. /* end confdefs.h. */
  22271. /* Override any GCC internal prototype to avoid an error.
  22272. Use char because int might match the return type of a GCC
  22273. builtin and then its argument prototype would still apply. */
  22274. char pthread_set_name_np ();
  22275. int
  22276. main (void)
  22277. {
  22278. return pthread_set_name_np ();
  22279. ;
  22280. return 0;
  22281. }
  22282. _ACEOF
  22283. if ac_fn_c_try_link "$LINENO"
  22284. then :
  22285. has_pthread_set_name_np=yes
  22286. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22287. else $as_nop
  22288. has_pthread_set_name_np=no
  22289. fi
  22290. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22291. conftest$ac_exeext conftest.$ac_ext
  22292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22293. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22294. # Restore the compiler flags and libraries
  22295. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22296. # Basic thread creation functions
  22297. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22298. # Semaphores
  22299. # We can fake these with mutexes and condition variables if necessary
  22300. if test x$have_pthread_sem = xyes; then
  22301. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22302. else
  22303. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22304. fi
  22305. # Mutexes
  22306. # We can fake these with semaphores if necessary
  22307. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22308. # Condition variables
  22309. # We can fake these with semaphores and mutexes if necessary
  22310. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22311. # Thread local storage
  22312. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22313. have_threads=yes
  22314. fi
  22315. fi
  22316. }
  22317. CheckWINDOWS()
  22318. {
  22319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22320. printf %s "checking Windows compiler... " >&6; }
  22321. have_win32_gcc=no
  22322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22323. /* end confdefs.h. */
  22324. #include <windows.h>
  22325. int
  22326. main (void)
  22327. {
  22328. ;
  22329. return 0;
  22330. }
  22331. _ACEOF
  22332. if ac_fn_c_try_compile "$LINENO"
  22333. then :
  22334. have_win32_gcc=yes
  22335. fi
  22336. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22338. printf "%s\n" "$have_win32_gcc" >&6; }
  22339. if test x$have_win32_gcc != xyes; then
  22340. as_fn_error $? "
  22341. *** Your compiler ($CC) does not produce Windows executables!
  22342. " "$LINENO" 5
  22343. fi
  22344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22345. printf %s "checking Windows CE... " >&6; }
  22346. have_wince=no
  22347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22348. /* end confdefs.h. */
  22349. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22350. #error This is not Windows CE
  22351. #endif
  22352. int
  22353. main (void)
  22354. {
  22355. ;
  22356. return 0;
  22357. }
  22358. _ACEOF
  22359. if ac_fn_c_try_compile "$LINENO"
  22360. then :
  22361. have_wince=yes
  22362. as_fn_error $? "
  22363. *** Sorry, Windows CE is no longer supported.
  22364. " "$LINENO" 5
  22365. fi
  22366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22368. printf "%s\n" "$have_wince" >&6; }
  22369. # This fixes Windows stack alignment with newer GCC
  22370. CheckStackBoundary
  22371. # headers needed elsewhere
  22372. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22373. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22374. then :
  22375. have_tpcshrd_h=yes
  22376. fi
  22377. if test x$have_tpcshrd_h = xyes; then
  22378. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22379. fi
  22380. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22381. if test "x$ac_cv_header_roapi_h" = xyes
  22382. then :
  22383. have_roapi_h=yes
  22384. fi
  22385. if test x$have_roapi_h = xyes; then
  22386. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22387. fi
  22388. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22389. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22390. then :
  22391. have_shellscalingapi_h=yes
  22392. fi
  22393. if test x$shellscalingapi_h = xyes; then
  22394. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22395. fi
  22396. }
  22397. CheckDIRECTX()
  22398. {
  22399. # Check whether --enable-directx was given.
  22400. if test ${enable_directx+y}
  22401. then :
  22402. enableval=$enable_directx;
  22403. else $as_nop
  22404. enable_directx=yes
  22405. fi
  22406. if test x$enable_directx = xyes; then
  22407. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22408. if test "x$ac_cv_header_d3d9_h" = xyes
  22409. then :
  22410. have_d3d=yes
  22411. fi
  22412. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22413. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22414. then :
  22415. have_d3d11=yes
  22416. fi
  22417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22418. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22420. /* end confdefs.h. */
  22421. #include <winsdkver.h>
  22422. #include <sdkddkver.h>
  22423. #include <d3d12.h>
  22424. ID3D12Device1 *device;
  22425. #if WDK_NTDDI_VERSION <= 0x0A000008
  22426. asdf
  22427. #endif
  22428. int
  22429. main (void)
  22430. {
  22431. ;
  22432. return 0;
  22433. }
  22434. _ACEOF
  22435. if ac_fn_c_try_compile "$LINENO"
  22436. then :
  22437. have_d3d12=yes
  22438. else $as_nop
  22439. have_d3d12=no
  22440. fi
  22441. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22443. printf "%s\n" "$have_d3d12" >&6; }
  22444. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22445. if test "x$ac_cv_header_ddraw_h" = xyes
  22446. then :
  22447. have_ddraw=yes
  22448. fi
  22449. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22450. if test "x$ac_cv_header_dsound_h" = xyes
  22451. then :
  22452. have_dsound=yes
  22453. fi
  22454. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22455. if test "x$ac_cv_header_dinput_h" = xyes
  22456. then :
  22457. have_dinput=yes
  22458. fi
  22459. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22460. if test "x$ac_cv_header_dxgi_h" = xyes
  22461. then :
  22462. have_dxgi=yes
  22463. fi
  22464. if test x$have_ddraw = xyes; then
  22465. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22466. fi
  22467. if test x$have_dinput = xyes; then
  22468. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22469. fi
  22470. if test x$have_dsound = xyes; then
  22471. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22472. fi
  22473. if test x$have_dxgi = xyes; then
  22474. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22475. fi
  22476. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22477. # FIXME: ...so force it off for now.
  22478. case "$host" in
  22479. *-*-cygwin*)
  22480. have_dinput=false
  22481. ;;
  22482. esac
  22483. fi
  22484. # Check whether --enable-xinput was given.
  22485. if test ${enable_xinput+y}
  22486. then :
  22487. enableval=$enable_xinput;
  22488. else $as_nop
  22489. enable_xinput=yes
  22490. fi
  22491. if test x$enable_xinput = xyes; then
  22492. have_xinput_gamepadex=no
  22493. have_xinput_stateex=no
  22494. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22495. if test "x$ac_cv_header_xinput_h" = xyes
  22496. then :
  22497. have_xinput=yes
  22498. fi
  22499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22500. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22502. /* end confdefs.h. */
  22503. #include <windows.h>
  22504. #include <xinput.h>
  22505. XINPUT_GAMEPAD_EX x1;
  22506. int
  22507. main (void)
  22508. {
  22509. ;
  22510. return 0;
  22511. }
  22512. _ACEOF
  22513. if ac_fn_c_try_compile "$LINENO"
  22514. then :
  22515. have_xinput_gamepadex=yes
  22516. fi
  22517. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22519. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22521. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22523. /* end confdefs.h. */
  22524. #include <windows.h>
  22525. #include <xinput.h>
  22526. XINPUT_STATE_EX s1;
  22527. int
  22528. main (void)
  22529. {
  22530. ;
  22531. return 0;
  22532. }
  22533. _ACEOF
  22534. if ac_fn_c_try_compile "$LINENO"
  22535. then :
  22536. have_xinput_stateex=yes
  22537. fi
  22538. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22540. printf "%s\n" "$have_xinput_stateex" >&6; }
  22541. if test x$have_xinput = xyes; then
  22542. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22543. fi
  22544. if test x$have_xinput_gamepadex = xyes; then
  22545. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22546. fi
  22547. if test x$have_xinput_stateex = xyes; then
  22548. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22549. fi
  22550. fi
  22551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22552. printf %s "checking for windows.gaming.input.h... " >&6; }
  22553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22554. /* end confdefs.h. */
  22555. #define COBJMACROS
  22556. #include <windows.gaming.input.h>
  22557. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22558. int
  22559. main (void)
  22560. {
  22561. ;
  22562. return 0;
  22563. }
  22564. _ACEOF
  22565. if ac_fn_c_try_compile "$LINENO"
  22566. then :
  22567. have_wgi=yes
  22568. else $as_nop
  22569. have_wgi=no
  22570. fi
  22571. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22573. printf "%s\n" "$have_wgi" >&6; }
  22574. if test x$have_wgi = xyes; then
  22575. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22576. fi
  22577. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22578. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22579. then :
  22580. have_wasapi=yes
  22581. fi
  22582. if test x$have_wasapi = xyes; then
  22583. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22584. fi
  22585. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22586. if test "x$ac_cv_header_audioclient_h" = xyes
  22587. then :
  22588. else $as_nop
  22589. have_wasapi=no
  22590. fi
  22591. if test x$have_wasapi = xyes; then
  22592. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22593. fi
  22594. # Check whether --enable-wasapi was given.
  22595. if test ${enable_wasapi+y}
  22596. then :
  22597. enableval=$enable_wasapi;
  22598. else $as_nop
  22599. enable_wasapi=yes
  22600. fi
  22601. }
  22602. CheckDLOPEN()
  22603. {
  22604. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22605. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22606. if test "x$ac_cv_header_dlfcn_h" = xyes
  22607. then :
  22608. have_dlfcn_h=yes
  22609. else $as_nop
  22610. have_dlfcn_h=no
  22611. fi
  22612. have_dlopen=no
  22613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22614. printf %s "checking for dlopen in -lc... " >&6; }
  22615. if test ${ac_cv_lib_c_dlopen+y}
  22616. then :
  22617. printf %s "(cached) " >&6
  22618. else $as_nop
  22619. ac_check_lib_save_LIBS=$LIBS
  22620. LIBS="-lc $LIBS"
  22621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22622. /* end confdefs.h. */
  22623. /* Override any GCC internal prototype to avoid an error.
  22624. Use char because int might match the return type of a GCC
  22625. builtin and then its argument prototype would still apply. */
  22626. char dlopen ();
  22627. int
  22628. main (void)
  22629. {
  22630. return dlopen ();
  22631. ;
  22632. return 0;
  22633. }
  22634. _ACEOF
  22635. if ac_fn_c_try_link "$LINENO"
  22636. then :
  22637. ac_cv_lib_c_dlopen=yes
  22638. else $as_nop
  22639. ac_cv_lib_c_dlopen=no
  22640. fi
  22641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22642. conftest$ac_exeext conftest.$ac_ext
  22643. LIBS=$ac_check_lib_save_LIBS
  22644. fi
  22645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22646. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22647. if test "x$ac_cv_lib_c_dlopen" = xyes
  22648. then :
  22649. have_dlopen=yes
  22650. else $as_nop
  22651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22652. printf %s "checking for dlopen in -ldl... " >&6; }
  22653. if test ${ac_cv_lib_dl_dlopen+y}
  22654. then :
  22655. printf %s "(cached) " >&6
  22656. else $as_nop
  22657. ac_check_lib_save_LIBS=$LIBS
  22658. LIBS="-ldl $LIBS"
  22659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22660. /* end confdefs.h. */
  22661. /* Override any GCC internal prototype to avoid an error.
  22662. Use char because int might match the return type of a GCC
  22663. builtin and then its argument prototype would still apply. */
  22664. char dlopen ();
  22665. int
  22666. main (void)
  22667. {
  22668. return dlopen ();
  22669. ;
  22670. return 0;
  22671. }
  22672. _ACEOF
  22673. if ac_fn_c_try_link "$LINENO"
  22674. then :
  22675. ac_cv_lib_dl_dlopen=yes
  22676. else $as_nop
  22677. ac_cv_lib_dl_dlopen=no
  22678. fi
  22679. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22680. conftest$ac_exeext conftest.$ac_ext
  22681. LIBS=$ac_check_lib_save_LIBS
  22682. fi
  22683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22684. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22685. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22686. then :
  22687. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22688. fi
  22689. fi
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22691. printf %s "checking for dlopen... " >&6; }
  22692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22693. printf "%s\n" "$have_dlopen" >&6; }
  22694. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22695. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22696. if test x$enable_loadso = xyes; then
  22697. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22698. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22699. have_loadso=yes
  22700. fi
  22701. fi
  22702. }
  22703. CheckO_CLOEXEC()
  22704. {
  22705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22706. printf %s "checking for O_CLOEXEC... " >&6; }
  22707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22708. /* end confdefs.h. */
  22709. #include <fcntl.h>
  22710. int flag = O_CLOEXEC;
  22711. int
  22712. main (void)
  22713. {
  22714. ;
  22715. return 0;
  22716. }
  22717. _ACEOF
  22718. if ac_fn_c_try_compile "$LINENO"
  22719. then :
  22720. have_o_cloexec=yes
  22721. else $as_nop
  22722. have_o_cloexec=no
  22723. fi
  22724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22726. printf "%s\n" "$have_o_cloexec" >&6; }
  22727. if test $have_o_cloexec = yes; then
  22728. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22729. fi
  22730. }
  22731. CheckUSBHID()
  22732. {
  22733. case "$host" in
  22734. *-*-*bsd*|*-*-dragonfly*)
  22735. if test x$enable_joystick = xyes; then
  22736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22737. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22738. if test ${ac_cv_lib_usbhid_hid_init+y}
  22739. then :
  22740. printf %s "(cached) " >&6
  22741. else $as_nop
  22742. ac_check_lib_save_LIBS=$LIBS
  22743. LIBS="-lusbhid $LIBS"
  22744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22745. /* end confdefs.h. */
  22746. /* Override any GCC internal prototype to avoid an error.
  22747. Use char because int might match the return type of a GCC
  22748. builtin and then its argument prototype would still apply. */
  22749. char hid_init ();
  22750. int
  22751. main (void)
  22752. {
  22753. return hid_init ();
  22754. ;
  22755. return 0;
  22756. }
  22757. _ACEOF
  22758. if ac_fn_c_try_link "$LINENO"
  22759. then :
  22760. ac_cv_lib_usbhid_hid_init=yes
  22761. else $as_nop
  22762. ac_cv_lib_usbhid_hid_init=no
  22763. fi
  22764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22765. conftest$ac_exeext conftest.$ac_ext
  22766. LIBS=$ac_check_lib_save_LIBS
  22767. fi
  22768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22769. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22770. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22771. then :
  22772. have_libusbhid=yes
  22773. fi
  22774. if test x$have_libusbhid = xyes; then
  22775. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22776. if test "x$ac_cv_header_usbhid_h" = xyes
  22777. then :
  22778. USB_CFLAGS="-DHAVE_USBHID_H"
  22779. fi
  22780. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22781. if test "x$ac_cv_header_libusbhid_h" = xyes
  22782. then :
  22783. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22784. fi
  22785. USB_LIBS="$USB_LIBS -lusbhid"
  22786. else
  22787. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22788. if test "x$ac_cv_header_usb_h" = xyes
  22789. then :
  22790. USB_CFLAGS="-DHAVE_USB_H"
  22791. fi
  22792. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22793. if test "x$ac_cv_header_libusb_h" = xyes
  22794. then :
  22795. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22796. fi
  22797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22798. printf %s "checking for hid_init in -lusb... " >&6; }
  22799. if test ${ac_cv_lib_usb_hid_init+y}
  22800. then :
  22801. printf %s "(cached) " >&6
  22802. else $as_nop
  22803. ac_check_lib_save_LIBS=$LIBS
  22804. LIBS="-lusb $LIBS"
  22805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22806. /* end confdefs.h. */
  22807. /* Override any GCC internal prototype to avoid an error.
  22808. Use char because int might match the return type of a GCC
  22809. builtin and then its argument prototype would still apply. */
  22810. char hid_init ();
  22811. int
  22812. main (void)
  22813. {
  22814. return hid_init ();
  22815. ;
  22816. return 0;
  22817. }
  22818. _ACEOF
  22819. if ac_fn_c_try_link "$LINENO"
  22820. then :
  22821. ac_cv_lib_usb_hid_init=yes
  22822. else $as_nop
  22823. ac_cv_lib_usb_hid_init=no
  22824. fi
  22825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22826. conftest$ac_exeext conftest.$ac_ext
  22827. LIBS=$ac_check_lib_save_LIBS
  22828. fi
  22829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  22830. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  22831. if test "x$ac_cv_lib_usb_hid_init" = xyes
  22832. then :
  22833. USB_LIBS="$USB_LIBS -lusb"
  22834. fi
  22835. fi
  22836. save_CFLAGS="$CFLAGS"
  22837. CFLAGS="$CFLAGS $USB_CFLAGS"
  22838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  22839. printf %s "checking for usbhid... " >&6; }
  22840. have_usbhid=no
  22841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22842. /* end confdefs.h. */
  22843. #include <sys/types.h>
  22844. #if defined(HAVE_USB_H)
  22845. #include <usb.h>
  22846. #endif
  22847. #ifdef __DragonFly__
  22848. # include <bus/u4b/usb.h>
  22849. # include <bus/u4b/usbhid.h>
  22850. #else
  22851. # include <dev/usb/usb.h>
  22852. # include <dev/usb/usbhid.h>
  22853. #endif
  22854. #if defined(HAVE_USBHID_H)
  22855. #include <usbhid.h>
  22856. #elif defined(HAVE_LIBUSB_H)
  22857. #include <libusb.h>
  22858. #elif defined(HAVE_LIBUSBHID_H)
  22859. #include <libusbhid.h>
  22860. #endif
  22861. int
  22862. main (void)
  22863. {
  22864. struct report_desc *repdesc;
  22865. struct usb_ctl_report *repbuf;
  22866. hid_kind_t hidkind;
  22867. ;
  22868. return 0;
  22869. }
  22870. _ACEOF
  22871. if ac_fn_c_try_compile "$LINENO"
  22872. then :
  22873. have_usbhid=yes
  22874. fi
  22875. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  22877. printf "%s\n" "$have_usbhid" >&6; }
  22878. if test x$have_usbhid = xyes; then
  22879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  22880. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  22881. have_usbhid_ucr_data=no
  22882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22883. /* end confdefs.h. */
  22884. #include <sys/types.h>
  22885. #if defined(HAVE_USB_H)
  22886. #include <usb.h>
  22887. #endif
  22888. #ifdef __DragonFly__
  22889. # include <bus/u4b/usb.h>
  22890. # include <bus/u4b/usbhid.h>
  22891. #else
  22892. # include <dev/usb/usb.h>
  22893. # include <dev/usb/usbhid.h>
  22894. #endif
  22895. #if defined(HAVE_USBHID_H)
  22896. #include <usbhid.h>
  22897. #elif defined(HAVE_LIBUSB_H)
  22898. #include <libusb.h>
  22899. #elif defined(HAVE_LIBUSBHID_H)
  22900. #include <libusbhid.h>
  22901. #endif
  22902. int
  22903. main (void)
  22904. {
  22905. struct usb_ctl_report buf;
  22906. if (buf.ucr_data) { }
  22907. ;
  22908. return 0;
  22909. }
  22910. _ACEOF
  22911. if ac_fn_c_try_compile "$LINENO"
  22912. then :
  22913. have_usbhid_ucr_data=yes
  22914. fi
  22915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22916. if test x$have_usbhid_ucr_data = xyes; then
  22917. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  22918. fi
  22919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  22920. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  22921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  22922. printf %s "checking for new usbhid API... " >&6; }
  22923. have_usbhid_new=no
  22924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22925. /* end confdefs.h. */
  22926. #include <sys/types.h>
  22927. #if defined(HAVE_USB_H)
  22928. #include <usb.h>
  22929. #endif
  22930. #ifdef __DragonFly__
  22931. #include <bus/u4b/usb.h>
  22932. #include <bus/u4b/usbhid.h>
  22933. #else
  22934. #include <dev/usb/usb.h>
  22935. #include <dev/usb/usbhid.h>
  22936. #endif
  22937. #if defined(HAVE_USBHID_H)
  22938. #include <usbhid.h>
  22939. #elif defined(HAVE_LIBUSB_H)
  22940. #include <libusb.h>
  22941. #elif defined(HAVE_LIBUSBHID_H)
  22942. #include <libusbhid.h>
  22943. #endif
  22944. int
  22945. main (void)
  22946. {
  22947. report_desc_t d;
  22948. hid_start_parse(d, 1, 1);
  22949. ;
  22950. return 0;
  22951. }
  22952. _ACEOF
  22953. if ac_fn_c_try_compile "$LINENO"
  22954. then :
  22955. have_usbhid_new=yes
  22956. fi
  22957. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22958. if test x$have_usbhid_new = xyes; then
  22959. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  22960. fi
  22961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  22962. printf "%s\n" "$have_usbhid_new" >&6; }
  22963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  22964. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  22965. have_machine_joystick=no
  22966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22967. /* end confdefs.h. */
  22968. #include <machine/joystick.h>
  22969. int
  22970. main (void)
  22971. {
  22972. struct joystick t;
  22973. ;
  22974. return 0;
  22975. }
  22976. _ACEOF
  22977. if ac_fn_c_try_compile "$LINENO"
  22978. then :
  22979. have_machine_joystick=yes
  22980. fi
  22981. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22982. if test x$have_machine_joystick = xyes; then
  22983. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  22984. fi
  22985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  22986. printf "%s\n" "$have_machine_joystick" >&6; }
  22987. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  22988. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  22989. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  22990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  22991. have_joystick=yes
  22992. fi
  22993. CFLAGS="$save_CFLAGS"
  22994. fi
  22995. ;;
  22996. esac
  22997. }
  22998. CheckHIDAPI()
  22999. {
  23000. # Check whether --enable-hidapi-joystick was given.
  23001. if test ${enable_hidapi_joystick+y}
  23002. then :
  23003. enableval=$enable_hidapi_joystick;
  23004. else $as_nop
  23005. enable_hidapi_joystick=yes
  23006. fi
  23007. # Check whether --enable-hidapi-libusb was given.
  23008. if test ${enable_hidapi_libusb+y}
  23009. then :
  23010. enableval=$enable_hidapi_libusb;
  23011. else $as_nop
  23012. enable_hidapi_libusb=maybe
  23013. fi
  23014. if test x$enable_hidapi = xyes; then
  23015. case "$host" in
  23016. # libusb does not support iOS
  23017. *-ios-* )
  23018. enable_hidapi_libusb=no
  23019. ;;
  23020. # On the other hand, *BSD specifically uses libusb only
  23021. *-*-*bsd* )
  23022. enable_hidapi_libusb=yes
  23023. require_hidapi_libusb=yes
  23024. ;;
  23025. esac
  23026. hidapi_support=yes
  23027. if test x$enable_hidapi_libusb = xyes; then
  23028. pkg_failed=no
  23029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23030. printf %s "checking for libusb-1.0... " >&6; }
  23031. if test -n "$LIBUSB_CFLAGS"; then
  23032. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23033. elif test -n "$PKG_CONFIG"; then
  23034. if test -n "$PKG_CONFIG" && \
  23035. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23036. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23037. ac_status=$?
  23038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23039. test $ac_status = 0; }; then
  23040. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23041. test "x$?" != "x0" && pkg_failed=yes
  23042. else
  23043. pkg_failed=yes
  23044. fi
  23045. else
  23046. pkg_failed=untried
  23047. fi
  23048. if test -n "$LIBUSB_LIBS"; then
  23049. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23050. elif test -n "$PKG_CONFIG"; then
  23051. if test -n "$PKG_CONFIG" && \
  23052. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23053. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23054. ac_status=$?
  23055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23056. test $ac_status = 0; }; then
  23057. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23058. test "x$?" != "x0" && pkg_failed=yes
  23059. else
  23060. pkg_failed=yes
  23061. fi
  23062. else
  23063. pkg_failed=untried
  23064. fi
  23065. if test $pkg_failed = yes; then
  23066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23067. printf "%s\n" "no" >&6; }
  23068. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23069. _pkg_short_errors_supported=yes
  23070. else
  23071. _pkg_short_errors_supported=no
  23072. fi
  23073. if test $_pkg_short_errors_supported = yes; then
  23074. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23075. else
  23076. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23077. fi
  23078. # Put the nasty error message in config.log where it belongs
  23079. echo "$LIBUSB_PKG_ERRORS" >&5
  23080. have_libusb=no
  23081. elif test $pkg_failed = untried; then
  23082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23083. printf "%s\n" "no" >&6; }
  23084. have_libusb=no
  23085. else
  23086. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23087. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23089. printf "%s\n" "yes" >&6; }
  23090. have_libusb=yes
  23091. fi
  23092. save_CPPFLAGS="$CPPFLAGS"
  23093. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23094. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23095. if test "x$ac_cv_header_libusb_h" = xyes
  23096. then :
  23097. have_libusb_h=yes
  23098. else $as_nop
  23099. have_libusb_h=no
  23100. fi
  23101. CPPFLAGS="$save_CPPFLAGS"
  23102. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23103. hidapi_support=no
  23104. fi
  23105. fi
  23106. if test x$hidapi_support = xyes; then
  23107. if test x$have_libusb_h = xyes; then
  23108. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23109. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23110. if test x$require_hidapi_libusb = xyes; then
  23111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23112. else
  23113. if test x$have_loadso != xyes; then
  23114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23115. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23116. fi
  23117. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23118. libusb_lib=""
  23119. case "$host" in
  23120. *-*-darwin* )
  23121. libusb_lib="libusb-1.0.0.dylib"
  23122. ;;
  23123. *-*-cygwin* | *-*-mingw* )
  23124. libusb_lib="libusb-1.0.dll"
  23125. ;;
  23126. esac
  23127. if test x$libusb_lib = x; then
  23128. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23129. fi
  23130. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23131. fi
  23132. fi
  23133. fi
  23134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23135. printf %s "checking for hidapi joystick support... " >&6; }
  23136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23137. printf "%s\n" "$hidapi_support" >&6; }
  23138. fi
  23139. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23140. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23141. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23142. fi
  23143. }
  23144. CheckClockGettime()
  23145. {
  23146. # Check whether --enable-clock_gettime was given.
  23147. if test ${enable_clock_gettime+y}
  23148. then :
  23149. enableval=$enable_clock_gettime;
  23150. else $as_nop
  23151. enable_clock_gettime=yes
  23152. fi
  23153. if test x$enable_clock_gettime = xyes; then
  23154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23155. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23156. if test ${ac_cv_lib_rt_clock_gettime+y}
  23157. then :
  23158. printf %s "(cached) " >&6
  23159. else $as_nop
  23160. ac_check_lib_save_LIBS=$LIBS
  23161. LIBS="-lrt $LIBS"
  23162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23163. /* end confdefs.h. */
  23164. /* Override any GCC internal prototype to avoid an error.
  23165. Use char because int might match the return type of a GCC
  23166. builtin and then its argument prototype would still apply. */
  23167. char clock_gettime ();
  23168. int
  23169. main (void)
  23170. {
  23171. return clock_gettime ();
  23172. ;
  23173. return 0;
  23174. }
  23175. _ACEOF
  23176. if ac_fn_c_try_link "$LINENO"
  23177. then :
  23178. ac_cv_lib_rt_clock_gettime=yes
  23179. else $as_nop
  23180. ac_cv_lib_rt_clock_gettime=no
  23181. fi
  23182. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23183. conftest$ac_exeext conftest.$ac_ext
  23184. LIBS=$ac_check_lib_save_LIBS
  23185. fi
  23186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23187. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23188. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23189. then :
  23190. have_clock_gettime=yes
  23191. fi
  23192. if test x$have_clock_gettime = xyes; then
  23193. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23194. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23195. else
  23196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23197. printf %s "checking for clock_gettime in -lc... " >&6; }
  23198. if test ${ac_cv_lib_c_clock_gettime+y}
  23199. then :
  23200. printf %s "(cached) " >&6
  23201. else $as_nop
  23202. ac_check_lib_save_LIBS=$LIBS
  23203. LIBS="-lc $LIBS"
  23204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23205. /* end confdefs.h. */
  23206. /* Override any GCC internal prototype to avoid an error.
  23207. Use char because int might match the return type of a GCC
  23208. builtin and then its argument prototype would still apply. */
  23209. char clock_gettime ();
  23210. int
  23211. main (void)
  23212. {
  23213. return clock_gettime ();
  23214. ;
  23215. return 0;
  23216. }
  23217. _ACEOF
  23218. if ac_fn_c_try_link "$LINENO"
  23219. then :
  23220. ac_cv_lib_c_clock_gettime=yes
  23221. else $as_nop
  23222. ac_cv_lib_c_clock_gettime=no
  23223. fi
  23224. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23225. conftest$ac_exeext conftest.$ac_ext
  23226. LIBS=$ac_check_lib_save_LIBS
  23227. fi
  23228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23229. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23230. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23231. then :
  23232. have_clock_gettime=yes
  23233. fi
  23234. if test x$have_clock_gettime = xyes; then
  23235. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23237. fi
  23238. fi
  23239. fi
  23240. }
  23241. CheckLinuxVersion()
  23242. {
  23243. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23244. if test "x$ac_cv_header_linux_version_h" = xyes
  23245. then :
  23246. have_linux_version_h=yes
  23247. fi
  23248. if test x$have_linux_version_h = xyes; then
  23249. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23250. fi
  23251. }
  23252. CheckRPATH()
  23253. {
  23254. # Check whether --enable-rpath was given.
  23255. if test ${enable_rpath+y}
  23256. then :
  23257. enableval=$enable_rpath;
  23258. else $as_nop
  23259. enable_rpath=yes
  23260. fi
  23261. }
  23262. CheckEventSignals()
  23263. {
  23264. # Check whether --enable-backgrounding-signal was given.
  23265. if test ${enable_backgrounding_signal+y}
  23266. then :
  23267. enableval=$enable_backgrounding_signal;
  23268. else $as_nop
  23269. enable_backgrounding_signal=no
  23270. fi
  23271. if test x$enable_backgrounding_signal != xno; then
  23272. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23273. fi
  23274. # Check whether --enable-foregrounding-signal was given.
  23275. if test ${enable_foregrounding_signal+y}
  23276. then :
  23277. enableval=$enable_foregrounding_signal;
  23278. else $as_nop
  23279. enable_foregrounding_signal=no
  23280. fi
  23281. if test x$enable_foregrounding_signal != xno; then
  23282. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23283. fi
  23284. }
  23285. CheckVirtualJoystick()
  23286. {
  23287. # Check whether --enable-joystick-virtual was given.
  23288. if test ${enable_joystick_virtual+y}
  23289. then :
  23290. enableval=$enable_joystick_virtual;
  23291. else $as_nop
  23292. enable_joystick_virtual=yes
  23293. fi
  23294. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23295. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23296. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23297. have_joystick_virtual=yes
  23298. fi
  23299. }
  23300. CheckWarnAll
  23301. CheckNoStrictAliasing
  23302. CheckEventSignals
  23303. have_locale=no
  23304. case "$host" in
  23305. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23306. case "$host" in
  23307. *-*-android*)
  23308. # Android
  23309. ARCH=android
  23310. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23311. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23312. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23313. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23315. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23316. if test x$enable_video = xyes; then
  23317. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23318. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23319. SUMMARY_video="${SUMMARY_video} android"
  23320. have_video=yes
  23321. fi
  23322. ;;
  23323. *-*-linux*) ARCH=linux ;;
  23324. *-*-uclinux*) ARCH=linux ;;
  23325. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23326. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23327. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23328. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23329. *-*-bsdi*) ARCH=bsdi ;;
  23330. *-*-freebsd*) ARCH=freebsd ;;
  23331. *-*-dragonfly*) ARCH=freebsd ;;
  23332. *-*-netbsd*) ARCH=netbsd ;;
  23333. *-*-openbsd*) ARCH=openbsd ;;
  23334. *-*-sysv5*) ARCH=sysv5 ;;
  23335. *-*-solaris*) ARCH=solaris ;;
  23336. *-*-hpux*) ARCH=hpux ;;
  23337. *-*-aix*) ARCH=aix ;;
  23338. *-*-minix*) ARCH=minix ;;
  23339. esac
  23340. CheckVisibilityHidden
  23341. CheckWerror
  23342. CheckDeclarationAfterStatement
  23343. CheckDummyVideo
  23344. CheckOffscreenVideo
  23345. CheckDiskAudio
  23346. CheckDummyAudio
  23347. CheckDLOPEN
  23348. CheckARM
  23349. CheckNEON
  23350. CheckO_CLOEXEC
  23351. CheckOSS
  23352. CheckALSA
  23353. CheckPipewire
  23354. CheckPulseAudio
  23355. CheckLibSampleRate
  23356. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23357. CheckRPI
  23358. CheckX11
  23359. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23360. CheckEGL
  23361. CheckKMSDRM
  23362. CheckGLX
  23363. CheckOpenGL
  23364. CheckOpenGLES
  23365. CheckVulkan
  23366. CheckWayland
  23367. CheckInputEvents
  23368. CheckLibUDev
  23369. CheckDBus
  23370. CheckIME
  23371. CheckInotify
  23372. CheckIBus
  23373. CheckFcitx
  23374. case $ARCH in
  23375. linux)
  23376. CheckInputKD
  23377. ;;
  23378. freebsd)
  23379. CheckInputKBIO
  23380. ;;
  23381. openbsd|netbsd)
  23382. CheckInputWSCONS
  23383. ;;
  23384. esac
  23385. CheckUSBHID
  23386. CheckHIDAPI
  23387. CheckPTHREAD
  23388. CheckClockGettime
  23389. CheckLinuxVersion
  23390. CheckRPATH
  23391. CheckVivanteVideo
  23392. # Set up files for the misc library
  23393. if test x$enable_misc = xyes; then
  23394. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23395. have_misc=yes
  23396. fi
  23397. # Set up files for the locale library
  23398. if test x$enable_locale = xyes; then
  23399. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23400. have_locale=yes
  23401. fi
  23402. # Set up files for the audio library
  23403. if test x$enable_audio = xyes; then
  23404. case $ARCH in
  23405. netbsd) # Don't use this on OpenBSD, it's busted.
  23406. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23407. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23408. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23409. have_audio=yes
  23410. ;;
  23411. android)
  23412. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23413. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23414. SUMMARY_audio="${SUMMARY_audio} android"
  23415. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23416. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23417. SUMMARY_audio="${SUMMARY_audio} openslES"
  23418. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23419. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23420. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23421. have_audio=yes
  23422. ;;
  23423. esac
  23424. fi
  23425. # Set up files for the joystick library
  23426. if test x$enable_joystick = xyes; then
  23427. case $ARCH in
  23428. linux)
  23429. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23430. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23431. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23432. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23433. have_joystick=yes
  23434. fi
  23435. ;;
  23436. freebsd)
  23437. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23438. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23439. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23440. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23441. have_joystick=yes
  23442. fi
  23443. ;;
  23444. android)
  23445. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23446. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23447. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23448. have_joystick=yes
  23449. ;;
  23450. esac
  23451. fi
  23452. # Set up files for the haptic library
  23453. if test x$enable_haptic = xyes; then
  23454. case $ARCH in
  23455. linux|freebsd)
  23456. if test x$use_input_events = xyes; then
  23457. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23458. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23459. have_haptic=yes
  23460. fi
  23461. ;;
  23462. android)
  23463. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23464. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23465. have_haptic=yes
  23466. ;;
  23467. esac
  23468. fi
  23469. # Set up files for the sensor library
  23470. if test x$enable_sensor = xyes; then
  23471. case $ARCH in
  23472. android)
  23473. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23474. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23475. have_sensor=yes
  23476. ;;
  23477. esac
  23478. fi
  23479. # Set up files for the power library
  23480. if test x$enable_power = xyes; then
  23481. case $ARCH in
  23482. linux)
  23483. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23484. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23485. have_power=yes
  23486. ;;
  23487. android)
  23488. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23489. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23490. have_power=yes
  23491. ;;
  23492. esac
  23493. fi
  23494. # Set up files for the filesystem library
  23495. if test x$enable_filesystem = xyes; then
  23496. case $ARCH in
  23497. android)
  23498. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23499. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23500. have_filesystem=yes
  23501. ;;
  23502. *)
  23503. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23504. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23505. have_filesystem=yes
  23506. ;;
  23507. esac
  23508. fi
  23509. # Set up files for the timer library
  23510. if test x$enable_timers = xyes; then
  23511. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23512. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23513. have_timers=yes
  23514. fi
  23515. # Set up files for udev hotplugging support
  23516. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23517. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23518. fi
  23519. # Set up files for evdev input
  23520. if test x$use_input_events = xyes; then
  23521. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23522. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23523. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23524. fi
  23525. # Set up files for wscons input
  23526. if test x$use_input_wscons = xyes; then
  23527. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23528. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23529. fi
  23530. # Set up other core UNIX files
  23531. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23532. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23533. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23534. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23535. ;;
  23536. *-*-cygwin* | *-*-mingw*)
  23537. ARCH=win32
  23538. if test "$build" != "$host"; then # cross-compiling
  23539. # Default cross-compile location
  23540. ac_default_prefix=/usr/local/cross-tools/$host
  23541. else
  23542. # Look for the location of the tools and install there
  23543. if test "$BUILD_PREFIX" != ""; then
  23544. ac_default_prefix=$BUILD_PREFIX
  23545. fi
  23546. fi
  23547. if test x$enable_loadso = xyes; then
  23548. have_loadso=yes
  23549. fi
  23550. CheckGDwarf4
  23551. CheckWerror
  23552. CheckDeclarationAfterStatement
  23553. CheckDummyVideo
  23554. CheckOffscreenVideo
  23555. CheckDiskAudio
  23556. CheckDummyAudio
  23557. CheckWINDOWS
  23558. CheckWINDOWSGL
  23559. CheckWINDOWSGLES
  23560. CheckVulkan
  23561. CheckDIRECTX
  23562. CheckHIDAPI
  23563. # Set up the core platform files
  23564. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23565. # Set up files for the misc library
  23566. if test x$enable_misc = xyes; then
  23567. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23568. have_misc=yes
  23569. fi
  23570. # Use the Windows locale APIs.
  23571. if test x$enable_locale = xyes; then
  23572. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23573. have_locale=yes
  23574. fi
  23575. # Set up files for the video library
  23576. if test x$enable_video = xyes; then
  23577. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23578. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23579. have_video=yes
  23580. # Check whether --enable-render-d3d was given.
  23581. if test ${enable_render_d3d+y}
  23582. then :
  23583. enableval=$enable_render_d3d;
  23584. else $as_nop
  23585. enable_render_d3d=yes
  23586. fi
  23587. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23588. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23589. SUMMARY_video="${SUMMARY_video} d3d9"
  23590. fi
  23591. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23592. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23593. SUMMARY_video="${SUMMARY_video} d3d11"
  23594. fi
  23595. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23596. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23597. SUMMARY_video="${SUMMARY_video} d3d12"
  23598. fi
  23599. fi
  23600. # Set up files for the audio library
  23601. if test x$enable_audio = xyes; then
  23602. if test x$have_dsound = xyes; then
  23603. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23604. SUMMARY_audio="${SUMMARY_audio} directsound"
  23605. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23606. fi
  23607. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23608. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23609. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23610. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23611. fi
  23612. have_audio=yes
  23613. fi
  23614. # Set up files for the joystick library
  23615. if test x$enable_joystick = xyes; then
  23616. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23617. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23618. if test x$have_xinput = xyes; then
  23619. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23620. fi
  23621. if test x$have_wgi = xyes; then
  23622. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23623. fi
  23624. if test x$have_dinput = xyes; then
  23625. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23627. fi
  23628. fi
  23629. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23630. have_joystick=yes
  23631. fi
  23632. if test x$enable_haptic = xyes; then
  23633. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23634. if test x$have_xinput = xyes; then
  23635. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23636. fi
  23637. if test x$have_dinput = xyes; then
  23638. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23639. fi
  23640. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23641. have_haptic=yes
  23642. fi
  23643. fi
  23644. # Set up files for the sensor library
  23645. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23646. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23647. then :
  23648. have_winsensors=yes
  23649. else $as_nop
  23650. have_winsensors=no
  23651. fi
  23652. if test x$have_winsensors = xyes; then
  23653. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23654. fi
  23655. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23656. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23657. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23658. have_sensor=yes
  23659. fi
  23660. # Set up files for the power library
  23661. if test x$enable_power = xyes; then
  23662. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23663. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23664. have_power=yes
  23665. fi
  23666. # Set up files for the filesystem library
  23667. if test x$enable_filesystem = xyes; then
  23668. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23669. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23670. have_filesystem=yes
  23671. fi
  23672. # Set up files for the thread library
  23673. if test x$enable_threads = xyes; then
  23674. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23675. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23676. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23677. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23678. have_threads=yes
  23679. fi
  23680. # Set up files for the timer library
  23681. if test x$enable_timers = xyes; then
  23682. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23683. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23684. have_timers=yes
  23685. fi
  23686. # Set up files for the shared object loading library
  23687. if test x$enable_loadso = xyes; then
  23688. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23689. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23690. fi
  23691. # Set up the system libraries we need
  23692. if test -f /lib/w32api/libuuid.a; then
  23693. LIBUUID=/lib/w32api/libuuid.a
  23694. else
  23695. LIBUUID=-luuid
  23696. fi
  23697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23698. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23699. # The Windows platform requires special setup
  23700. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23701. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23702. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23703. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23704. # Check to see if this is a mingw or cygwin build
  23705. have_mingw32=
  23706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23707. printf %s "checking for main in -lmingw32... " >&6; }
  23708. if test ${ac_cv_lib_mingw32_main+y}
  23709. then :
  23710. printf %s "(cached) " >&6
  23711. else $as_nop
  23712. ac_check_lib_save_LIBS=$LIBS
  23713. LIBS="-lmingw32 $LIBS"
  23714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23715. /* end confdefs.h. */
  23716. int
  23717. main (void)
  23718. {
  23719. return main ();
  23720. ;
  23721. return 0;
  23722. }
  23723. _ACEOF
  23724. if ac_fn_c_try_link "$LINENO"
  23725. then :
  23726. ac_cv_lib_mingw32_main=yes
  23727. else $as_nop
  23728. ac_cv_lib_mingw32_main=no
  23729. fi
  23730. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23731. conftest$ac_exeext conftest.$ac_ext
  23732. LIBS=$ac_check_lib_save_LIBS
  23733. fi
  23734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23735. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23736. if test "x$ac_cv_lib_mingw32_main" = xyes
  23737. then :
  23738. have_mingw32=yes
  23739. fi
  23740. if test x$have_mingw32 = xyes; then
  23741. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23742. else
  23743. SDL_LIBS="-lcygwin $SDL_LIBS"
  23744. fi
  23745. ;;
  23746. *-*-beos*)
  23747. as_fn_error $? "
  23748. *** BeOS support has been removed as of SDL 2.0.2.
  23749. " "$LINENO" 5
  23750. ;;
  23751. *-*-haiku*)
  23752. ARCH=haiku
  23753. ac_default_prefix=/boot/system
  23754. CheckDummyVideo
  23755. CheckOffscreenVideo
  23756. CheckDiskAudio
  23757. CheckDummyAudio
  23758. CheckDLOPEN
  23759. CheckO_CLOEXEC
  23760. CheckHaikuVideo
  23761. CheckHaikuGL
  23762. CheckPTHREAD
  23763. # Set up files for the audio library
  23764. if test x$enable_audio = xyes; then
  23765. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23766. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23767. SUMMARY_audio="${SUMMARY_audio} haiku"
  23768. have_audio=yes
  23769. fi
  23770. # Set up files for the joystick library
  23771. if test x$enable_joystick = xyes; then
  23772. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23773. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23774. have_joystick=yes
  23775. fi
  23776. # Set up files for the timer library
  23777. if test x$enable_timers = xyes; then
  23778. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23779. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23780. have_timers=yes
  23781. fi
  23782. # Set up files for the system power library
  23783. if test x$enable_power = xyes; then
  23784. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23785. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23786. have_power=yes
  23787. fi
  23788. # Set up files for the system filesystem library
  23789. if test x$enable_filesystem = xyes; then
  23790. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23791. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23792. have_filesystem=yes
  23793. fi
  23794. # Set up files for the misc library
  23795. if test x$enable_misc = xyes; then
  23796. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  23797. have_misc=yes
  23798. fi
  23799. # Set up files for the locale library
  23800. if test x$enable_locale = xyes; then
  23801. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  23802. have_locale=yes
  23803. fi
  23804. # The Haiku platform requires special setup.
  23805. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  23806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  23807. ;;
  23808. *-ios-*)
  23809. ARCH=ios
  23810. CheckVisibilityHidden
  23811. CheckWerror
  23812. CheckNoErrorDeprecatedDeclarationsWerror
  23813. CheckDeclarationAfterStatement
  23814. CheckDummyVideo
  23815. CheckOffscreenVideo
  23816. CheckDiskAudio
  23817. CheckDummyAudio
  23818. CheckDLOPEN
  23819. CheckO_CLOEXEC
  23820. CheckMETAL
  23821. CheckVulkan
  23822. CheckPTHREAD
  23823. # Set up files for the misc library
  23824. if test x$enable_misc = xyes; then
  23825. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  23826. have_misc=yes
  23827. fi
  23828. # Set up files for the locale library
  23829. if test x$enable_locale = xyes; then
  23830. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23831. have_locale=yes
  23832. fi
  23833. # Set up files for the audio library
  23834. if test x$enable_audio = xyes; then
  23835. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23836. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23837. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23838. have_audio=yes
  23839. fi
  23840. # Set up files for the joystick library
  23841. if test x$enable_joystick = xyes; then
  23842. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23843. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23844. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23845. have_joystick=yes
  23846. else
  23847. # Need this code for accelerometer as joystick support
  23848. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23849. fi
  23850. # Set up files for the haptic library
  23851. #if test x$enable_haptic = xyes; then
  23852. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23853. # have_haptic=yes
  23854. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23855. #fi
  23856. # Set up files for the sensor library
  23857. if test x$enable_sensor = xyes; then
  23858. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  23859. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  23860. have_sensor=yes
  23861. fi
  23862. # Set up files for the power library
  23863. if test x$enable_power = xyes; then
  23864. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  23865. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  23866. have_power=yes
  23867. fi
  23868. # Set up files for the filesystem library
  23869. if test x$enable_filesystem = xyes; then
  23870. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23871. have_filesystem=yes
  23872. fi
  23873. # Set up additional files for the file library
  23874. if test x$enable_file = xyes; then
  23875. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23876. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23877. fi
  23878. # Set up files for the timer library
  23879. if test x$enable_timers = xyes; then
  23880. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23881. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23882. have_timers=yes
  23883. fi
  23884. # Set up other core UNIX files
  23885. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23886. # The iOS platform requires special setup.
  23887. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  23888. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  23889. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  23890. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  23891. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  23892. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  23893. SUMMARY_video="${SUMMARY_video} uikit"
  23894. have_video=yes
  23895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  23896. if test x$enable_system_iconv = xyes; then
  23897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  23898. fi
  23899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  23900. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  23901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  23902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  23903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  23904. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  23905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  23906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  23907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  23908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  23909. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  23910. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  23911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  23912. fi
  23913. ;;
  23914. *-*-darwin* )
  23915. # This could be either full "Mac OS X", or plain "Darwin" which is
  23916. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  23917. # Next line is broken, and a few files below require Mac OS X (full)
  23918. ARCH=macosx
  23919. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  23920. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  23921. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  23922. CheckObjectiveCARC
  23923. CheckVisibilityHidden
  23924. CheckWerror
  23925. CheckNoErrorDeprecatedDeclarationsWerror
  23926. CheckDeclarationAfterStatement
  23927. CheckDummyVideo
  23928. CheckOffscreenVideo
  23929. CheckDiskAudio
  23930. CheckDummyAudio
  23931. CheckDLOPEN
  23932. CheckO_CLOEXEC
  23933. CheckCOCOA
  23934. CheckMETAL
  23935. CheckX11
  23936. CheckMacGL
  23937. CheckMacGLES
  23938. CheckGLX
  23939. CheckOpenGL
  23940. CheckVulkan
  23941. CheckPTHREAD
  23942. CheckHIDAPI
  23943. # Set up files for the misc library
  23944. if test x$enable_misc = xyes; then
  23945. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  23946. have_misc=yes
  23947. fi
  23948. # Set up files for the locale library
  23949. if test x$enable_locale = xyes; then
  23950. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23951. have_locale=yes
  23952. fi
  23953. # Set up files for the audio library
  23954. if test x$enable_audio = xyes; then
  23955. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23956. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  23958. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23959. have_audio=yes
  23960. fi
  23961. # Set up files for the joystick library
  23962. if test x$enable_joystick = xyes; then
  23963. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  23964. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  23965. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23966. CheckJoystickMFI
  23967. have_joystick=yes
  23968. fi
  23969. # Set up files for the haptic library
  23970. if test x$enable_haptic = xyes; then
  23971. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  23972. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23974. have_haptic=yes
  23975. fi
  23976. # Set up files for the power library
  23977. if test x$enable_power = xyes; then
  23978. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  23979. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  23980. have_power=yes
  23981. fi
  23982. # Set up files for the filesystem library
  23983. if test x$enable_filesystem = xyes; then
  23984. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  23985. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  23986. have_filesystem=yes
  23987. fi
  23988. # Set up files for the timer library
  23989. if test x$enable_timers = xyes; then
  23990. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23991. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23992. have_timers=yes
  23993. fi
  23994. # Set up additional files for the file library
  23995. if test x$enable_file = xyes; then
  23996. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  23997. fi
  23998. # Set up other core UNIX files
  23999. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24000. # The Mac OS X platform requires special setup.
  24001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24002. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24004. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24006. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24007. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24008. fi
  24009. ;;
  24010. *-*-emscripten* )
  24011. if test x$enable_video = xyes; then
  24012. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24013. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24014. have_video=yes
  24015. SUMMARY_video="${SUMMARY_video} emscripten"
  24016. fi
  24017. if test x$enable_audio = xyes; then
  24018. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24019. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24020. have_audio=yes
  24021. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24022. fi
  24023. CheckVisibilityHidden
  24024. CheckWerror
  24025. CheckDeclarationAfterStatement
  24026. CheckDummyVideo
  24027. CheckOffscreenVideo
  24028. CheckDiskAudio
  24029. CheckDummyAudio
  24030. CheckPTHREAD
  24031. CheckDLOPEN
  24032. CheckClockGettime
  24033. CheckEmscriptenGLES
  24034. # Set up files for the misc library
  24035. if test x$enable_misc = xyes; then
  24036. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24037. have_misc=yes
  24038. fi
  24039. # Set up files for the power library
  24040. if test x$enable_power = xyes; then
  24041. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24042. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24043. have_power=yes
  24044. fi
  24045. # Set up files for the joystick library
  24046. if test x$enable_joystick = xyes; then
  24047. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24048. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24049. have_joystick=yes
  24050. fi
  24051. # Set up files for the filesystem library
  24052. if test x$enable_filesystem = xyes; then
  24053. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24054. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24055. have_filesystem=yes
  24056. fi
  24057. # Set up files for the timer library
  24058. if test x$enable_timers = xyes; then
  24059. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24060. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24061. have_timers=yes
  24062. fi
  24063. # Set up files for the locale library
  24064. if test x$enable_locale = xyes; then
  24065. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24066. have_locale=yes
  24067. fi
  24068. ;;
  24069. *-*-riscos*)
  24070. ARCH=riscos
  24071. CheckVisibilityHidden
  24072. CheckWerror
  24073. CheckDeclarationAfterStatement
  24074. CheckDummyVideo
  24075. CheckOffscreenVideo
  24076. CheckDiskAudio
  24077. CheckDummyAudio
  24078. CheckDLOPEN
  24079. CheckO_CLOEXEC
  24080. CheckOSS
  24081. CheckPTHREAD
  24082. CheckClockGettime
  24083. # Set up files for the misc library
  24084. if test x$enable_misc = xyes; then
  24085. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24086. have_misc=yes
  24087. fi
  24088. # Set up files for the video library
  24089. if test x$enable_video = xyes; then
  24090. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24091. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24092. have_video=yes
  24093. SUMMARY_video="${SUMMARY_video} riscos"
  24094. fi
  24095. # Set up files for the filesystem library
  24096. if test x$enable_filesystem = xyes; then
  24097. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24098. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24099. have_filesystem=yes
  24100. fi
  24101. # Set up files for the timer library
  24102. if test x$enable_timers = xyes; then
  24103. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24104. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24105. have_timers=yes
  24106. fi
  24107. ;;
  24108. *)
  24109. as_fn_error $? "
  24110. *** Unsupported host: Please add to configure.ac
  24111. " "$LINENO" 5
  24112. ;;
  24113. esac
  24114. CheckVirtualJoystick
  24115. # Check whether to install sdl3-config
  24116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24117. printf %s "checking whether to install sdl3-config... " >&6; }
  24118. # Check whether --enable-sdl3-config was given.
  24119. if test ${enable_sdl3_config+y}
  24120. then :
  24121. enableval=$enable_sdl3_config; case "${enableval}" in
  24122. yes) enable_sdl3_config="TRUE" ;;
  24123. no) enable_sdl3_config="FALSE" ;;
  24124. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24125. esac
  24126. else $as_nop
  24127. enable_sdl3_config="TRUE"
  24128. fi
  24129. if test "$enable_sdl3_config" = "TRUE"; then
  24130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24131. printf "%s\n" "yes" >&6; }
  24132. else
  24133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24134. printf "%s\n" "no" >&6; }
  24135. fi
  24136. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24137. # Check whether --enable-vendor-info was given.
  24138. if test ${enable_vendor_info+y}
  24139. then :
  24140. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24141. else $as_nop
  24142. enable_vendor_info=
  24143. fi
  24144. if test "$enable_vendor_info" = no
  24145. then :
  24146. enable_vendor_info=
  24147. fi
  24148. SDL_VENDOR_INFO=$enable_vendor_info
  24149. # Verify that we have all the platform specific files we need
  24150. if test x$have_audio != xyes; then
  24151. if test x$enable_audio = xyes; then
  24152. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24153. fi
  24154. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24155. fi
  24156. if test x$have_video != xyes; then
  24157. if test x$enable_video = xyes; then
  24158. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24159. fi
  24160. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24161. fi
  24162. if test x$have_misc != xyes; then
  24163. if test x$enable_misc = xyes; then
  24164. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24165. fi
  24166. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24167. fi
  24168. if test x$have_locale != xyes; then
  24169. if test x$enable_locale = xyes; then
  24170. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24171. fi
  24172. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24173. fi
  24174. if test x$have_joystick != xyes; then
  24175. if test x$enable_joystick = xyes; then
  24176. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24177. fi
  24178. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24179. fi
  24180. if test x$have_haptic != xyes; then
  24181. if test x$enable_haptic = xyes; then
  24182. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24183. fi
  24184. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24185. fi
  24186. if test x$have_sensor != xyes; then
  24187. if test x$enable_sensor = xyes; then
  24188. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24189. fi
  24190. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24191. fi
  24192. if test x$have_threads != xyes; then
  24193. if test x$enable_threads = xyes; then
  24194. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24195. fi
  24196. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24197. fi
  24198. if test x$have_timers != xyes; then
  24199. if test x$enable_timers = xyes; then
  24200. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24201. fi
  24202. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24203. fi
  24204. if test x$have_filesystem != xyes; then
  24205. if test x$enable_filesystem = xyes; then
  24206. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24207. fi
  24208. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24209. fi
  24210. if test x$have_loadso != xyes; then
  24211. if test x$enable_loadso = xyes; then
  24212. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24213. fi
  24214. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24215. fi
  24216. if test x$SDLMAIN_SOURCES = x; then
  24217. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24218. fi
  24219. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24220. if test x$video_wayland = xyes; then
  24221. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24222. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24223. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24224. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24225. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24226. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24227. echo ;\
  24228. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24229. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24230. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24231. echo ;\
  24232. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24233. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24234. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24235. echo ;\
  24236. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24237. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24238. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24239. done ;\
  24240. echo ;\
  24241. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24242. fi
  24243. OBJECTS=`echo $SOURCES`
  24244. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24245. for EXT in asm cc m c S; do
  24246. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24247. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24248. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24249. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24250. done
  24251. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24252. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24253. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24254. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24255. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24256. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24257. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24258. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24259. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24260. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24261. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24262. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24263. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24264. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24265. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24266. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24267. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24268. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24269. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24270. # Set runtime shared library paths as needed
  24271. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24272. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24273. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24275. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24276. have_enable_new_dtags=no
  24277. save_LDFLAGS="$LDFLAGS"
  24278. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24280. /* end confdefs.h. */
  24281. int
  24282. main (void)
  24283. {
  24284. ;
  24285. return 0;
  24286. }
  24287. _ACEOF
  24288. if ac_fn_c_try_link "$LINENO"
  24289. then :
  24290. have_enable_new_dtags=yes
  24291. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24292. fi
  24293. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24294. conftest$ac_exeext conftest.$ac_ext
  24295. LDFLAGS="$save_LDFLAGS"
  24296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24297. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24298. fi
  24299. if test $ARCH = solaris; then
  24300. SDL_RLD_FLAGS="-R\${libdir}"
  24301. fi
  24302. else
  24303. SDL_RLD_FLAGS=""
  24304. fi
  24305. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24306. pkg_cmakedir='$libdir/cmake/SDL3'
  24307. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24308. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24309. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24310. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24311. _lcl_receval="$_lcl_from"
  24312. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24313. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24314. _lcl_receval_old=''
  24315. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24316. _lcl_receval_old="$_lcl_receval"
  24317. eval _lcl_receval="\"$_lcl_receval\""
  24318. done
  24319. echo "$_lcl_receval")`
  24320. _lcl_receval="$_lcl_to"
  24321. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24322. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24323. _lcl_receval_old=''
  24324. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24325. _lcl_receval_old="$_lcl_receval"
  24326. eval _lcl_receval="\"$_lcl_receval\""
  24327. done
  24328. echo "$_lcl_receval")`
  24329. _lcl_notation="$_lcl_from$_lcl_to"
  24330. case ":$_lcl_from:" in
  24331. # change empty paths to '.'
  24332. ::) _lcl_from='.' ;;
  24333. # strip trailing slashes
  24334. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24335. :*:) ;;
  24336. esac
  24337. # squeeze repeated slashes
  24338. case '/' in
  24339. # if the path contains any backslashes, turn slashes into backslashes
  24340. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24341. # if the path contains slashes, also turn backslashes into slashes
  24342. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24343. esac
  24344. case ":$_lcl_to:" in
  24345. # change empty paths to '.'
  24346. ::) _lcl_to='.' ;;
  24347. # strip trailing slashes
  24348. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24349. :*:) ;;
  24350. esac
  24351. # squeeze repeated slashes
  24352. case '/' in
  24353. # if the path contains any backslashes, turn slashes into backslashes
  24354. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24355. # if the path contains slashes, also turn backslashes into slashes
  24356. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24357. esac
  24358. _lcl_common_prefix=''
  24359. _lcl_second_prefix_match=''
  24360. while test "$_lcl_second_prefix_match" != 0; do
  24361. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24362. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24363. if test "$_lcl_second_prefix_match" != 0; then
  24364. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24365. _lcl_common_prefix="$_lcl_first_prefix"
  24366. else
  24367. _lcl_second_prefix_match=0
  24368. fi
  24369. fi
  24370. done
  24371. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24372. _lcl_first_rel=''
  24373. _lcl_tmp='xxx'
  24374. while test "$_lcl_tmp" != ''; do
  24375. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24376. if test "$_lcl_first_suffix" != ''; then
  24377. _lcl_first_suffix="$_lcl_tmp"
  24378. _lcl_first_rel="../$_lcl_first_rel"
  24379. fi
  24380. done
  24381. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24382. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24383. case ":$_lcl_result_tmp:" in
  24384. # change empty paths to '.'
  24385. ::) _lcl_result_tmp='.' ;;
  24386. # strip trailing slashes
  24387. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24388. :*:) ;;
  24389. esac
  24390. # squeeze repeated slashes
  24391. case "$_lcl_notation" in
  24392. # if the path contains any backslashes, turn slashes into backslashes
  24393. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24394. # if the path contains slashes, also turn backslashes into slashes
  24395. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24396. esac
  24397. eval $_lcl_result_var='$_lcl_result_tmp'
  24398. done
  24399. if test x$enable_shared = xyes; then
  24400. PKGCONFIG_LIBS_PRIV="
  24401. Libs.private:"
  24402. ENABLE_SHARED_TRUE=
  24403. ENABLE_SHARED_FALSE="#"
  24404. else
  24405. PKGCONFIG_LIBS_PRIV=
  24406. ENABLE_SHARED_TRUE="#"
  24407. ENABLE_SHARED_FALSE=
  24408. fi
  24409. if test x$enable_static = xyes; then
  24410. ENABLE_STATIC_TRUE=
  24411. ENABLE_STATIC_FALSE="#"
  24412. else
  24413. ENABLE_STATIC_TRUE="#"
  24414. ENABLE_STATIC_FALSE=
  24415. fi
  24416. cat >Makefile.rules <<__EOF__
  24417. # Build rules for objects
  24418. -include \$(OBJECTS:.lo=.d)
  24419. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24420. $srcdir/src/SDL.c: update-revision
  24421. $DEPENDS
  24422. $VERSION_DEPENDS
  24423. $SDLMAIN_DEPENDS
  24424. $SDLTEST_DEPENDS
  24425. $WAYLAND_PROTOCOLS_DEPENDS
  24426. __EOF__
  24427. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24428. ac_config_commands="$ac_config_commands sdl3_config"
  24429. SUMMARY="SDL3 Configure Summary:\n"
  24430. if test x$enable_shared = xyes; then
  24431. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24432. fi
  24433. if test x$enable_static = xyes; then
  24434. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24435. fi
  24436. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24437. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24438. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24439. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24440. if test x$have_x = xyes; then
  24441. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24442. fi
  24443. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24444. if test x$have_joystick_virtual = xyes; then
  24445. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24446. else
  24447. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24448. fi
  24449. if test x$have_samplerate_h_hdr = xyes; then
  24450. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24451. else
  24452. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24453. fi
  24454. if test x$have_libudev_h_hdr = xyes; then
  24455. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24456. else
  24457. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24458. fi
  24459. if test x$have_dbus_dbus_h_hdr = xyes; then
  24460. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24461. else
  24462. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24463. fi
  24464. if test x$enable_ime = xyes; then
  24465. SUMMARY="${SUMMARY}Using ime : YES\n"
  24466. else
  24467. SUMMARY="${SUMMARY}Using ime : NO\n"
  24468. fi
  24469. if test x$have_ibus_ibus_h_hdr = xyes; then
  24470. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24471. else
  24472. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24473. fi
  24474. if test x$have_fcitx = xyes; then
  24475. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24476. else
  24477. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24478. fi
  24479. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24480. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24481. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24482. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24483. SUMMARY="${SUMMARY}configure script with:\n"
  24484. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24485. fi
  24486. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24487. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24488. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24489. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24490. SUMMARY="${SUMMARY}configure script with:\n"
  24491. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24492. fi
  24493. ac_config_commands="$ac_config_commands summary"
  24494. cat >confcache <<\_ACEOF
  24495. # This file is a shell script that caches the results of configure
  24496. # tests run on this system so they can be shared between configure
  24497. # scripts and configure runs, see configure's option --config-cache.
  24498. # It is not useful on other systems. If it contains results you don't
  24499. # want to keep, you may remove or edit it.
  24500. #
  24501. # config.status only pays attention to the cache file if you give it
  24502. # the --recheck option to rerun configure.
  24503. #
  24504. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24505. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24506. # following values.
  24507. _ACEOF
  24508. # The following way of writing the cache mishandles newlines in values,
  24509. # but we know of no workaround that is simple, portable, and efficient.
  24510. # So, we kill variables containing newlines.
  24511. # Ultrix sh set writes to stderr and can't be redirected directly,
  24512. # and sets the high bit in the cache file unless we assign to the vars.
  24513. (
  24514. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24515. eval ac_val=\$$ac_var
  24516. case $ac_val in #(
  24517. *${as_nl}*)
  24518. case $ac_var in #(
  24519. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24520. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24521. esac
  24522. case $ac_var in #(
  24523. _ | IFS | as_nl) ;; #(
  24524. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24525. *) { eval $ac_var=; unset $ac_var;} ;;
  24526. esac ;;
  24527. esac
  24528. done
  24529. (set) 2>&1 |
  24530. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24531. *${as_nl}ac_space=\ *)
  24532. # `set' does not quote correctly, so add quotes: double-quote
  24533. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24534. sed -n \
  24535. "s/'/'\\\\''/g;
  24536. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24537. ;; #(
  24538. *)
  24539. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24540. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24541. ;;
  24542. esac |
  24543. sort
  24544. ) |
  24545. sed '
  24546. /^ac_cv_env_/b end
  24547. t clear
  24548. :clear
  24549. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24550. t end
  24551. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24552. :end' >>confcache
  24553. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24554. if test -w "$cache_file"; then
  24555. if test "x$cache_file" != "x/dev/null"; then
  24556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24557. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24558. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24559. cat confcache >"$cache_file"
  24560. else
  24561. case $cache_file in #(
  24562. */* | ?:*)
  24563. mv -f confcache "$cache_file"$$ &&
  24564. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24565. *)
  24566. mv -f confcache "$cache_file" ;;
  24567. esac
  24568. fi
  24569. fi
  24570. else
  24571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24572. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24573. fi
  24574. fi
  24575. rm -f confcache
  24576. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24577. # Let make expand exec_prefix.
  24578. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24579. DEFS=-DHAVE_CONFIG_H
  24580. ac_libobjs=
  24581. ac_ltlibobjs=
  24582. U=
  24583. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24584. # 1. Remove the extension, and $U if already installed.
  24585. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24586. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24587. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24588. # will be set to the directory where LIBOBJS objects are built.
  24589. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24590. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24591. done
  24592. LIBOBJS=$ac_libobjs
  24593. LTLIBOBJS=$ac_ltlibobjs
  24594. : "${CONFIG_STATUS=./config.status}"
  24595. ac_write_fail=0
  24596. ac_clean_files_save=$ac_clean_files
  24597. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24599. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24600. as_write_fail=0
  24601. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24602. #! $SHELL
  24603. # Generated by $as_me.
  24604. # Run this file to recreate the current configuration.
  24605. # Compiler output produced by configure, useful for debugging
  24606. # configure, is in config.log if it exists.
  24607. debug=false
  24608. ac_cs_recheck=false
  24609. ac_cs_silent=false
  24610. SHELL=\${CONFIG_SHELL-$SHELL}
  24611. export SHELL
  24612. _ASEOF
  24613. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24614. ## -------------------- ##
  24615. ## M4sh Initialization. ##
  24616. ## -------------------- ##
  24617. # Be more Bourne compatible
  24618. DUALCASE=1; export DUALCASE # for MKS sh
  24619. as_nop=:
  24620. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24621. then :
  24622. emulate sh
  24623. NULLCMD=:
  24624. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24625. # is contrary to our usage. Disable this feature.
  24626. alias -g '${1+"$@"}'='"$@"'
  24627. setopt NO_GLOB_SUBST
  24628. else $as_nop
  24629. case `(set -o) 2>/dev/null` in #(
  24630. *posix*) :
  24631. set -o posix ;; #(
  24632. *) :
  24633. ;;
  24634. esac
  24635. fi
  24636. # Reset variables that may have inherited troublesome values from
  24637. # the environment.
  24638. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24639. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24640. # side effect of setting IFS to empty, thus disabling word splitting.)
  24641. # Quoting is to prevent editors from complaining about space-tab.
  24642. as_nl='
  24643. '
  24644. export as_nl
  24645. IFS=" "" $as_nl"
  24646. PS1='$ '
  24647. PS2='> '
  24648. PS4='+ '
  24649. # Ensure predictable behavior from utilities with locale-dependent output.
  24650. LC_ALL=C
  24651. export LC_ALL
  24652. LANGUAGE=C
  24653. export LANGUAGE
  24654. # We cannot yet rely on "unset" to work, but we need these variables
  24655. # to be unset--not just set to an empty or harmless value--now, to
  24656. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24657. # also avoids known problems related to "unset" and subshell syntax
  24658. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24659. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24660. do eval test \${$as_var+y} \
  24661. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24662. done
  24663. # Ensure that fds 0, 1, and 2 are open.
  24664. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24665. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24666. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24667. # The user is always right.
  24668. if ${PATH_SEPARATOR+false} :; then
  24669. PATH_SEPARATOR=:
  24670. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24671. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24672. PATH_SEPARATOR=';'
  24673. }
  24674. fi
  24675. # Find who we are. Look in the path if we contain no directory separator.
  24676. as_myself=
  24677. case $0 in #((
  24678. *[\\/]* ) as_myself=$0 ;;
  24679. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24680. for as_dir in $PATH
  24681. do
  24682. IFS=$as_save_IFS
  24683. case $as_dir in #(((
  24684. '') as_dir=./ ;;
  24685. */) ;;
  24686. *) as_dir=$as_dir/ ;;
  24687. esac
  24688. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24689. done
  24690. IFS=$as_save_IFS
  24691. ;;
  24692. esac
  24693. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24694. # in which case we are not to be found in the path.
  24695. if test "x$as_myself" = x; then
  24696. as_myself=$0
  24697. fi
  24698. if test ! -f "$as_myself"; then
  24699. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24700. exit 1
  24701. fi
  24702. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24703. # ----------------------------------------
  24704. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24705. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24706. # script with STATUS, using 1 if that was 0.
  24707. as_fn_error ()
  24708. {
  24709. as_status=$1; test $as_status -eq 0 && as_status=1
  24710. if test "$4"; then
  24711. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24713. fi
  24714. printf "%s\n" "$as_me: error: $2" >&2
  24715. as_fn_exit $as_status
  24716. } # as_fn_error
  24717. # as_fn_set_status STATUS
  24718. # -----------------------
  24719. # Set $? to STATUS, without forking.
  24720. as_fn_set_status ()
  24721. {
  24722. return $1
  24723. } # as_fn_set_status
  24724. # as_fn_exit STATUS
  24725. # -----------------
  24726. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24727. as_fn_exit ()
  24728. {
  24729. set +e
  24730. as_fn_set_status $1
  24731. exit $1
  24732. } # as_fn_exit
  24733. # as_fn_unset VAR
  24734. # ---------------
  24735. # Portably unset VAR.
  24736. as_fn_unset ()
  24737. {
  24738. { eval $1=; unset $1;}
  24739. }
  24740. as_unset=as_fn_unset
  24741. # as_fn_append VAR VALUE
  24742. # ----------------------
  24743. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24744. # advantage of any shell optimizations that allow amortized linear growth over
  24745. # repeated appends, instead of the typical quadratic growth present in naive
  24746. # implementations.
  24747. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24748. then :
  24749. eval 'as_fn_append ()
  24750. {
  24751. eval $1+=\$2
  24752. }'
  24753. else $as_nop
  24754. as_fn_append ()
  24755. {
  24756. eval $1=\$$1\$2
  24757. }
  24758. fi # as_fn_append
  24759. # as_fn_arith ARG...
  24760. # ------------------
  24761. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24762. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24763. # must be portable across $(()) and expr.
  24764. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24765. then :
  24766. eval 'as_fn_arith ()
  24767. {
  24768. as_val=$(( $* ))
  24769. }'
  24770. else $as_nop
  24771. as_fn_arith ()
  24772. {
  24773. as_val=`expr "$@" || test $? -eq 1`
  24774. }
  24775. fi # as_fn_arith
  24776. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24777. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24778. as_expr=expr
  24779. else
  24780. as_expr=false
  24781. fi
  24782. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24783. as_basename=basename
  24784. else
  24785. as_basename=false
  24786. fi
  24787. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24788. as_dirname=dirname
  24789. else
  24790. as_dirname=false
  24791. fi
  24792. as_me=`$as_basename -- "$0" ||
  24793. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24794. X"$0" : 'X\(//\)$' \| \
  24795. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24796. printf "%s\n" X/"$0" |
  24797. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24798. s//\1/
  24799. q
  24800. }
  24801. /^X\/\(\/\/\)$/{
  24802. s//\1/
  24803. q
  24804. }
  24805. /^X\/\(\/\).*/{
  24806. s//\1/
  24807. q
  24808. }
  24809. s/.*/./; q'`
  24810. # Avoid depending upon Character Ranges.
  24811. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24812. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24813. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24814. as_cr_digits='0123456789'
  24815. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24816. # Determine whether it's possible to make 'echo' print without a newline.
  24817. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  24818. # for compatibility with existing Makefiles.
  24819. ECHO_C= ECHO_N= ECHO_T=
  24820. case `echo -n x` in #(((((
  24821. -n*)
  24822. case `echo 'xy\c'` in
  24823. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24824. xy) ECHO_C='\c';;
  24825. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24826. ECHO_T=' ';;
  24827. esac;;
  24828. *)
  24829. ECHO_N='-n';;
  24830. esac
  24831. # For backward compatibility with old third-party macros, we provide
  24832. # the shell variables $as_echo and $as_echo_n. New code should use
  24833. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  24834. as_echo='printf %s\n'
  24835. as_echo_n='printf %s'
  24836. rm -f conf$$ conf$$.exe conf$$.file
  24837. if test -d conf$$.dir; then
  24838. rm -f conf$$.dir/conf$$.file
  24839. else
  24840. rm -f conf$$.dir
  24841. mkdir conf$$.dir 2>/dev/null
  24842. fi
  24843. if (echo >conf$$.file) 2>/dev/null; then
  24844. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24845. as_ln_s='ln -s'
  24846. # ... but there are two gotchas:
  24847. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24848. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24849. # In both cases, we have to default to `cp -pR'.
  24850. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24851. as_ln_s='cp -pR'
  24852. elif ln conf$$.file conf$$ 2>/dev/null; then
  24853. as_ln_s=ln
  24854. else
  24855. as_ln_s='cp -pR'
  24856. fi
  24857. else
  24858. as_ln_s='cp -pR'
  24859. fi
  24860. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24861. rmdir conf$$.dir 2>/dev/null
  24862. # as_fn_mkdir_p
  24863. # -------------
  24864. # Create "$as_dir" as a directory, including parents if necessary.
  24865. as_fn_mkdir_p ()
  24866. {
  24867. case $as_dir in #(
  24868. -*) as_dir=./$as_dir;;
  24869. esac
  24870. test -d "$as_dir" || eval $as_mkdir_p || {
  24871. as_dirs=
  24872. while :; do
  24873. case $as_dir in #(
  24874. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24875. *) as_qdir=$as_dir;;
  24876. esac
  24877. as_dirs="'$as_qdir' $as_dirs"
  24878. as_dir=`$as_dirname -- "$as_dir" ||
  24879. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24880. X"$as_dir" : 'X\(//\)[^/]' \| \
  24881. X"$as_dir" : 'X\(//\)$' \| \
  24882. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24883. printf "%s\n" X"$as_dir" |
  24884. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24885. s//\1/
  24886. q
  24887. }
  24888. /^X\(\/\/\)[^/].*/{
  24889. s//\1/
  24890. q
  24891. }
  24892. /^X\(\/\/\)$/{
  24893. s//\1/
  24894. q
  24895. }
  24896. /^X\(\/\).*/{
  24897. s//\1/
  24898. q
  24899. }
  24900. s/.*/./; q'`
  24901. test -d "$as_dir" && break
  24902. done
  24903. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24904. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  24905. } # as_fn_mkdir_p
  24906. if mkdir -p . 2>/dev/null; then
  24907. as_mkdir_p='mkdir -p "$as_dir"'
  24908. else
  24909. test -d ./-p && rmdir ./-p
  24910. as_mkdir_p=false
  24911. fi
  24912. # as_fn_executable_p FILE
  24913. # -----------------------
  24914. # Test if FILE is an executable regular file.
  24915. as_fn_executable_p ()
  24916. {
  24917. test -f "$1" && test -x "$1"
  24918. } # as_fn_executable_p
  24919. as_test_x='test -x'
  24920. as_executable_p=as_fn_executable_p
  24921. # Sed expression to map a string onto a valid CPP name.
  24922. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24923. # Sed expression to map a string onto a valid variable name.
  24924. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24925. exec 6>&1
  24926. ## ----------------------------------- ##
  24927. ## Main body of $CONFIG_STATUS script. ##
  24928. ## ----------------------------------- ##
  24929. _ASEOF
  24930. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24932. # Save the log message, to keep $0 and so on meaningful, and to
  24933. # report actual input values of CONFIG_FILES etc. instead of their
  24934. # values after options handling.
  24935. ac_log="
  24936. This file was extended by $as_me, which was
  24937. generated by GNU Autoconf 2.71. Invocation command line was
  24938. CONFIG_FILES = $CONFIG_FILES
  24939. CONFIG_HEADERS = $CONFIG_HEADERS
  24940. CONFIG_LINKS = $CONFIG_LINKS
  24941. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24942. $ $0 $@
  24943. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24944. "
  24945. _ACEOF
  24946. case $ac_config_files in *"
  24947. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  24948. esac
  24949. case $ac_config_headers in *"
  24950. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24951. esac
  24952. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24953. # Files that config.status was made for.
  24954. config_files="$ac_config_files"
  24955. config_headers="$ac_config_headers"
  24956. config_commands="$ac_config_commands"
  24957. _ACEOF
  24958. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24959. ac_cs_usage="\
  24960. \`$as_me' instantiates files and other configuration actions
  24961. from templates according to the current configuration. Unless the files
  24962. and actions are specified as TAGs, all are instantiated by default.
  24963. Usage: $0 [OPTION]... [TAG]...
  24964. -h, --help print this help, then exit
  24965. -V, --version print version number and configuration settings, then exit
  24966. --config print configuration, then exit
  24967. -q, --quiet, --silent
  24968. do not print progress messages
  24969. -d, --debug don't remove temporary files
  24970. --recheck update $as_me by reconfiguring in the same conditions
  24971. --file=FILE[:TEMPLATE]
  24972. instantiate the configuration file FILE
  24973. --header=FILE[:TEMPLATE]
  24974. instantiate the configuration header FILE
  24975. Configuration files:
  24976. $config_files
  24977. Configuration headers:
  24978. $config_headers
  24979. Configuration commands:
  24980. $config_commands
  24981. Report bugs to the package provider."
  24982. _ACEOF
  24983. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  24984. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  24985. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24986. ac_cs_config='$ac_cs_config_escaped'
  24987. ac_cs_version="\\
  24988. config.status
  24989. configured by $0, generated by GNU Autoconf 2.71,
  24990. with options \\"\$ac_cs_config\\"
  24991. Copyright (C) 2021 Free Software Foundation, Inc.
  24992. This config.status script is free software; the Free Software Foundation
  24993. gives unlimited permission to copy, distribute and modify it."
  24994. ac_pwd='$ac_pwd'
  24995. srcdir='$srcdir'
  24996. INSTALL='$INSTALL'
  24997. AWK='$AWK'
  24998. test -n "\$AWK" || AWK=awk
  24999. _ACEOF
  25000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25001. # The default lists apply if the user does not specify any file.
  25002. ac_need_defaults=:
  25003. while test $# != 0
  25004. do
  25005. case $1 in
  25006. --*=?*)
  25007. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25008. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25009. ac_shift=:
  25010. ;;
  25011. --*=)
  25012. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25013. ac_optarg=
  25014. ac_shift=:
  25015. ;;
  25016. *)
  25017. ac_option=$1
  25018. ac_optarg=$2
  25019. ac_shift=shift
  25020. ;;
  25021. esac
  25022. case $ac_option in
  25023. # Handling of the options.
  25024. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25025. ac_cs_recheck=: ;;
  25026. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25027. printf "%s\n" "$ac_cs_version"; exit ;;
  25028. --config | --confi | --conf | --con | --co | --c )
  25029. printf "%s\n" "$ac_cs_config"; exit ;;
  25030. --debug | --debu | --deb | --de | --d | -d )
  25031. debug=: ;;
  25032. --file | --fil | --fi | --f )
  25033. $ac_shift
  25034. case $ac_optarg in
  25035. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25036. '') as_fn_error $? "missing file argument" ;;
  25037. esac
  25038. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25039. ac_need_defaults=false;;
  25040. --header | --heade | --head | --hea )
  25041. $ac_shift
  25042. case $ac_optarg in
  25043. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25044. esac
  25045. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25046. ac_need_defaults=false;;
  25047. --he | --h)
  25048. # Conflict between --help and --header
  25049. as_fn_error $? "ambiguous option: \`$1'
  25050. Try \`$0 --help' for more information.";;
  25051. --help | --hel | -h )
  25052. printf "%s\n" "$ac_cs_usage"; exit ;;
  25053. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25054. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25055. ac_cs_silent=: ;;
  25056. # This is an error.
  25057. -*) as_fn_error $? "unrecognized option: \`$1'
  25058. Try \`$0 --help' for more information." ;;
  25059. *) as_fn_append ac_config_targets " $1"
  25060. ac_need_defaults=false ;;
  25061. esac
  25062. shift
  25063. done
  25064. ac_configure_extra_args=
  25065. if $ac_cs_silent; then
  25066. exec 6>/dev/null
  25067. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25068. fi
  25069. _ACEOF
  25070. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25071. if \$ac_cs_recheck; then
  25072. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25073. shift
  25074. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25075. CONFIG_SHELL='$SHELL'
  25076. export CONFIG_SHELL
  25077. exec "\$@"
  25078. fi
  25079. _ACEOF
  25080. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25081. exec 5>>config.log
  25082. {
  25083. echo
  25084. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25085. ## Running $as_me. ##
  25086. _ASBOX
  25087. printf "%s\n" "$ac_log"
  25088. } >&5
  25089. _ACEOF
  25090. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25091. #
  25092. # INIT-COMMANDS
  25093. #
  25094. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25095. # if CDPATH is set.
  25096. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25097. sed_quote_subst='$sed_quote_subst'
  25098. double_quote_subst='$double_quote_subst'
  25099. delay_variable_subst='$delay_variable_subst'
  25100. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25101. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25102. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25103. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25104. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25105. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25106. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25107. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25108. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25109. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25110. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25111. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25112. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25113. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25114. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25115. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25116. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25117. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25118. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25119. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25120. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25121. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25122. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25123. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25124. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25125. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25126. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25127. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25128. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25129. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25130. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25131. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25132. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25133. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25134. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25135. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25136. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25137. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25138. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25139. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25140. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25141. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25142. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25143. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25144. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25145. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25146. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25147. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25148. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25149. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25150. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25151. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25152. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25153. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25154. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25155. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25156. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25157. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25158. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25159. 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"`'
  25160. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25161. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25162. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25163. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25164. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25165. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25166. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25167. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25168. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25169. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25170. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25171. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25172. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25173. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25174. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25175. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25176. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25177. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25178. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25179. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25180. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25181. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25182. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25183. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25184. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25185. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25186. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25187. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25188. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25189. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25190. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25191. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25192. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25193. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25194. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25195. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25196. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25197. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25198. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25199. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25200. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25201. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25202. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25203. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25204. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25205. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25206. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25207. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25208. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25209. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25210. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25211. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25212. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25213. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25214. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25215. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25216. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25217. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25218. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25219. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25220. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25221. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25222. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25223. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25224. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25225. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25226. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25227. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25228. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25229. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25230. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25231. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25232. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25233. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25234. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25235. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25236. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25237. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25238. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25239. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25240. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25241. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25242. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25243. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25244. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25245. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25246. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25247. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25248. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25249. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25250. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25251. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25252. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25253. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25254. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25255. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25256. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25257. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25258. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25259. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25260. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25261. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25262. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25263. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25264. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25265. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25266. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25267. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25268. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25269. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25270. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25271. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25272. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25273. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25274. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25275. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25276. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25277. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25278. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25279. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25280. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25281. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25282. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25283. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25284. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25285. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25286. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25287. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25288. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25289. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25290. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25291. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25292. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25293. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25294. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25295. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25296. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25297. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25298. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25299. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25300. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25301. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25302. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25303. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25304. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25305. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25306. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25307. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25308. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25309. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25310. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25311. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25312. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25313. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25314. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25315. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25316. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25317. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25318. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25319. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25320. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25321. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25322. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25323. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25324. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25325. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25326. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25327. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25328. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25329. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25330. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25331. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25332. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25333. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25334. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25335. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25336. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25337. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25338. LTCC='$LTCC'
  25339. LTCFLAGS='$LTCFLAGS'
  25340. compiler='$compiler_DEFAULT'
  25341. # A function that is used when there is no print builtin or printf.
  25342. func_fallback_echo ()
  25343. {
  25344. eval 'cat <<_LTECHO_EOF
  25345. \$1
  25346. _LTECHO_EOF'
  25347. }
  25348. # Quote evaled strings.
  25349. for var in AS \
  25350. DLLTOOL \
  25351. OBJDUMP \
  25352. SHELL \
  25353. ECHO \
  25354. PATH_SEPARATOR \
  25355. SED \
  25356. GREP \
  25357. EGREP \
  25358. FGREP \
  25359. LD \
  25360. NM \
  25361. LN_S \
  25362. lt_SP2NL \
  25363. lt_NL2SP \
  25364. reload_flag \
  25365. deplibs_check_method \
  25366. file_magic_cmd \
  25367. file_magic_glob \
  25368. want_nocaseglob \
  25369. sharedlib_from_linklib_cmd \
  25370. AR \
  25371. AR_FLAGS \
  25372. archiver_list_spec \
  25373. STRIP \
  25374. RANLIB \
  25375. CC \
  25376. CFLAGS \
  25377. compiler \
  25378. lt_cv_sys_global_symbol_pipe \
  25379. lt_cv_sys_global_symbol_to_cdecl \
  25380. lt_cv_sys_global_symbol_to_import \
  25381. lt_cv_sys_global_symbol_to_c_name_address \
  25382. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25383. lt_cv_nm_interface \
  25384. nm_file_list_spec \
  25385. lt_cv_truncate_bin \
  25386. lt_prog_compiler_no_builtin_flag \
  25387. lt_prog_compiler_pic \
  25388. lt_prog_compiler_wl \
  25389. lt_prog_compiler_static \
  25390. lt_cv_prog_compiler_c_o \
  25391. need_locks \
  25392. MANIFEST_TOOL \
  25393. DSYMUTIL \
  25394. NMEDIT \
  25395. LIPO \
  25396. OTOOL \
  25397. OTOOL64 \
  25398. shrext_cmds \
  25399. export_dynamic_flag_spec \
  25400. whole_archive_flag_spec \
  25401. compiler_needs_object \
  25402. with_gnu_ld \
  25403. allow_undefined_flag \
  25404. no_undefined_flag \
  25405. hardcode_libdir_flag_spec \
  25406. hardcode_libdir_separator \
  25407. exclude_expsyms \
  25408. include_expsyms \
  25409. file_list_spec \
  25410. variables_saved_for_relink \
  25411. libname_spec \
  25412. library_names_spec \
  25413. soname_spec \
  25414. install_override_mode \
  25415. finish_eval \
  25416. old_striplib \
  25417. striplib \
  25418. compiler_lib_search_dirs \
  25419. predep_objects \
  25420. postdep_objects \
  25421. predeps \
  25422. postdeps \
  25423. compiler_lib_search_path \
  25424. LD_RC \
  25425. LD_CXX \
  25426. reload_flag_RC \
  25427. reload_flag_CXX \
  25428. compiler_RC \
  25429. compiler_CXX \
  25430. lt_prog_compiler_no_builtin_flag_RC \
  25431. lt_prog_compiler_no_builtin_flag_CXX \
  25432. lt_prog_compiler_pic_RC \
  25433. lt_prog_compiler_pic_CXX \
  25434. lt_prog_compiler_wl_RC \
  25435. lt_prog_compiler_wl_CXX \
  25436. lt_prog_compiler_static_RC \
  25437. lt_prog_compiler_static_CXX \
  25438. lt_cv_prog_compiler_c_o_RC \
  25439. lt_cv_prog_compiler_c_o_CXX \
  25440. export_dynamic_flag_spec_RC \
  25441. export_dynamic_flag_spec_CXX \
  25442. whole_archive_flag_spec_RC \
  25443. whole_archive_flag_spec_CXX \
  25444. compiler_needs_object_RC \
  25445. compiler_needs_object_CXX \
  25446. with_gnu_ld_RC \
  25447. with_gnu_ld_CXX \
  25448. allow_undefined_flag_RC \
  25449. allow_undefined_flag_CXX \
  25450. no_undefined_flag_RC \
  25451. no_undefined_flag_CXX \
  25452. hardcode_libdir_flag_spec_RC \
  25453. hardcode_libdir_flag_spec_CXX \
  25454. hardcode_libdir_separator_RC \
  25455. hardcode_libdir_separator_CXX \
  25456. exclude_expsyms_RC \
  25457. exclude_expsyms_CXX \
  25458. include_expsyms_RC \
  25459. include_expsyms_CXX \
  25460. file_list_spec_RC \
  25461. file_list_spec_CXX \
  25462. compiler_lib_search_dirs_RC \
  25463. compiler_lib_search_dirs_CXX \
  25464. predep_objects_RC \
  25465. predep_objects_CXX \
  25466. postdep_objects_RC \
  25467. postdep_objects_CXX \
  25468. predeps_RC \
  25469. predeps_CXX \
  25470. postdeps_RC \
  25471. postdeps_CXX \
  25472. compiler_lib_search_path_RC \
  25473. compiler_lib_search_path_CXX; do
  25474. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25475. *[\\\\\\\`\\"\\\$]*)
  25476. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25477. ;;
  25478. *)
  25479. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25480. ;;
  25481. esac
  25482. done
  25483. # Double-quote double-evaled strings.
  25484. for var in reload_cmds \
  25485. old_postinstall_cmds \
  25486. old_postuninstall_cmds \
  25487. old_archive_cmds \
  25488. extract_expsyms_cmds \
  25489. old_archive_from_new_cmds \
  25490. old_archive_from_expsyms_cmds \
  25491. archive_cmds \
  25492. archive_expsym_cmds \
  25493. module_cmds \
  25494. module_expsym_cmds \
  25495. export_symbols_cmds \
  25496. prelink_cmds \
  25497. postlink_cmds \
  25498. postinstall_cmds \
  25499. postuninstall_cmds \
  25500. finish_cmds \
  25501. sys_lib_search_path_spec \
  25502. configure_time_dlsearch_path \
  25503. configure_time_lt_sys_library_path \
  25504. reload_cmds_RC \
  25505. reload_cmds_CXX \
  25506. old_archive_cmds_RC \
  25507. old_archive_cmds_CXX \
  25508. old_archive_from_new_cmds_RC \
  25509. old_archive_from_new_cmds_CXX \
  25510. old_archive_from_expsyms_cmds_RC \
  25511. old_archive_from_expsyms_cmds_CXX \
  25512. archive_cmds_RC \
  25513. archive_cmds_CXX \
  25514. archive_expsym_cmds_RC \
  25515. archive_expsym_cmds_CXX \
  25516. module_cmds_RC \
  25517. module_cmds_CXX \
  25518. module_expsym_cmds_RC \
  25519. module_expsym_cmds_CXX \
  25520. export_symbols_cmds_RC \
  25521. export_symbols_cmds_CXX \
  25522. prelink_cmds_RC \
  25523. prelink_cmds_CXX \
  25524. postlink_cmds_RC \
  25525. postlink_cmds_CXX; do
  25526. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25527. *[\\\\\\\`\\"\\\$]*)
  25528. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25529. ;;
  25530. *)
  25531. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25532. ;;
  25533. esac
  25534. done
  25535. ac_aux_dir='$ac_aux_dir'
  25536. # See if we are running on zsh, and set the options that allow our
  25537. # commands through without removal of \ escapes INIT.
  25538. if test -n "\${ZSH_VERSION+set}"; then
  25539. setopt NO_GLOB_SUBST
  25540. fi
  25541. PACKAGE='$PACKAGE'
  25542. VERSION='$VERSION'
  25543. RM='$RM'
  25544. ofile='$ofile'
  25545. SUMMARY="$SUMMARY"
  25546. _ACEOF
  25547. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25548. # Handling of arguments.
  25549. for ac_config_target in $ac_config_targets
  25550. do
  25551. case $ac_config_target in
  25552. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25553. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25554. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25555. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25556. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25557. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25558. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25559. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25560. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25561. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25562. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25563. esac
  25564. done
  25565. # If the user did not use the arguments to specify the items to instantiate,
  25566. # then the envvar interface is used. Set only those that are not.
  25567. # We use the long form for the default assignment because of an extremely
  25568. # bizarre bug on SunOS 4.1.3.
  25569. if $ac_need_defaults; then
  25570. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25571. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25572. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25573. fi
  25574. # Have a temporary directory for convenience. Make it in the build tree
  25575. # simply because there is no reason against having it here, and in addition,
  25576. # creating and moving files from /tmp can sometimes cause problems.
  25577. # Hook for its removal unless debugging.
  25578. # Note that there is a small window in which the directory will not be cleaned:
  25579. # after its creation but before its name has been assigned to `$tmp'.
  25580. $debug ||
  25581. {
  25582. tmp= ac_tmp=
  25583. trap 'exit_status=$?
  25584. : "${ac_tmp:=$tmp}"
  25585. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25586. ' 0
  25587. trap 'as_fn_exit 1' 1 2 13 15
  25588. }
  25589. # Create a (secure) tmp directory for tmp files.
  25590. {
  25591. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25592. test -d "$tmp"
  25593. } ||
  25594. {
  25595. tmp=./conf$$-$RANDOM
  25596. (umask 077 && mkdir "$tmp")
  25597. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25598. ac_tmp=$tmp
  25599. # Set up the scripts for CONFIG_FILES section.
  25600. # No need to generate them if there are no CONFIG_FILES.
  25601. # This happens for instance with `./config.status config.h'.
  25602. if test -n "$CONFIG_FILES"; then
  25603. ac_cr=`echo X | tr X '\015'`
  25604. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25605. # But we know of no other shell where ac_cr would be empty at this
  25606. # point, so we can use a bashism as a fallback.
  25607. if test "x$ac_cr" = x; then
  25608. eval ac_cr=\$\'\\r\'
  25609. fi
  25610. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25611. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25612. ac_cs_awk_cr='\\r'
  25613. else
  25614. ac_cs_awk_cr=$ac_cr
  25615. fi
  25616. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25617. _ACEOF
  25618. {
  25619. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25620. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25621. echo "_ACEOF"
  25622. } >conf$$subs.sh ||
  25623. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25624. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25625. ac_delim='%!_!# '
  25626. for ac_last_try in false false false false false :; do
  25627. . ./conf$$subs.sh ||
  25628. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25629. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25630. if test $ac_delim_n = $ac_delim_num; then
  25631. break
  25632. elif $ac_last_try; then
  25633. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25634. else
  25635. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25636. fi
  25637. done
  25638. rm -f conf$$subs.sh
  25639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25640. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25641. _ACEOF
  25642. sed -n '
  25643. h
  25644. s/^/S["/; s/!.*/"]=/
  25645. p
  25646. g
  25647. s/^[^!]*!//
  25648. :repl
  25649. t repl
  25650. s/'"$ac_delim"'$//
  25651. t delim
  25652. :nl
  25653. h
  25654. s/\(.\{148\}\)..*/\1/
  25655. t more1
  25656. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25657. p
  25658. n
  25659. b repl
  25660. :more1
  25661. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25662. p
  25663. g
  25664. s/.\{148\}//
  25665. t nl
  25666. :delim
  25667. h
  25668. s/\(.\{148\}\)..*/\1/
  25669. t more2
  25670. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25671. p
  25672. b
  25673. :more2
  25674. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25675. p
  25676. g
  25677. s/.\{148\}//
  25678. t delim
  25679. ' <conf$$subs.awk | sed '
  25680. /^[^""]/{
  25681. N
  25682. s/\n//
  25683. }
  25684. ' >>$CONFIG_STATUS || ac_write_fail=1
  25685. rm -f conf$$subs.awk
  25686. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25687. _ACAWK
  25688. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25689. for (key in S) S_is_set[key] = 1
  25690. FS = ""
  25691. }
  25692. {
  25693. line = $ 0
  25694. nfields = split(line, field, "@")
  25695. substed = 0
  25696. len = length(field[1])
  25697. for (i = 2; i < nfields; i++) {
  25698. key = field[i]
  25699. keylen = length(key)
  25700. if (S_is_set[key]) {
  25701. value = S[key]
  25702. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25703. len += length(value) + length(field[++i])
  25704. substed = 1
  25705. } else
  25706. len += 1 + keylen
  25707. }
  25708. print line
  25709. }
  25710. _ACAWK
  25711. _ACEOF
  25712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25713. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25714. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25715. else
  25716. cat
  25717. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25718. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25719. _ACEOF
  25720. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25721. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25722. # trailing colons and then remove the whole line if VPATH becomes empty
  25723. # (actually we leave an empty line to preserve line numbers).
  25724. if test "x$srcdir" = x.; then
  25725. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25726. h
  25727. s///
  25728. s/^/:/
  25729. s/[ ]*$/:/
  25730. s/:\$(srcdir):/:/g
  25731. s/:\${srcdir}:/:/g
  25732. s/:@srcdir@:/:/g
  25733. s/^:*//
  25734. s/:*$//
  25735. x
  25736. s/\(=[ ]*\).*/\1/
  25737. G
  25738. s/\n//
  25739. s/^[^=]*=[ ]*$//
  25740. }'
  25741. fi
  25742. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25743. fi # test -n "$CONFIG_FILES"
  25744. # Set up the scripts for CONFIG_HEADERS section.
  25745. # No need to generate them if there are no CONFIG_HEADERS.
  25746. # This happens for instance with `./config.status Makefile'.
  25747. if test -n "$CONFIG_HEADERS"; then
  25748. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25749. BEGIN {
  25750. _ACEOF
  25751. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25752. # here-document in config.status, that substitutes the proper values into
  25753. # config.h.in to produce config.h.
  25754. # Create a delimiter string that does not exist in confdefs.h, to ease
  25755. # handling of long lines.
  25756. ac_delim='%!_!# '
  25757. for ac_last_try in false false :; do
  25758. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25759. if test -z "$ac_tt"; then
  25760. break
  25761. elif $ac_last_try; then
  25762. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25763. else
  25764. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25765. fi
  25766. done
  25767. # For the awk script, D is an array of macro values keyed by name,
  25768. # likewise P contains macro parameters if any. Preserve backslash
  25769. # newline sequences.
  25770. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25771. sed -n '
  25772. s/.\{148\}/&'"$ac_delim"'/g
  25773. t rset
  25774. :rset
  25775. s/^[ ]*#[ ]*define[ ][ ]*/ /
  25776. t def
  25777. d
  25778. :def
  25779. s/\\$//
  25780. t bsnl
  25781. s/["\\]/\\&/g
  25782. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25783. D["\1"]=" \3"/p
  25784. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25785. d
  25786. :bsnl
  25787. s/["\\]/\\&/g
  25788. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25789. D["\1"]=" \3\\\\\\n"\\/p
  25790. t cont
  25791. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25792. t cont
  25793. d
  25794. :cont
  25795. n
  25796. s/.\{148\}/&'"$ac_delim"'/g
  25797. t clear
  25798. :clear
  25799. s/\\$//
  25800. t bsnlc
  25801. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25802. d
  25803. :bsnlc
  25804. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25805. b cont
  25806. ' <confdefs.h | sed '
  25807. s/'"$ac_delim"'/"\\\
  25808. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  25809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25810. for (key in D) D_is_set[key] = 1
  25811. FS = ""
  25812. }
  25813. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25814. line = \$ 0
  25815. split(line, arg, " ")
  25816. if (arg[1] == "#") {
  25817. defundef = arg[2]
  25818. mac1 = arg[3]
  25819. } else {
  25820. defundef = substr(arg[1], 2)
  25821. mac1 = arg[2]
  25822. }
  25823. split(mac1, mac2, "(") #)
  25824. macro = mac2[1]
  25825. prefix = substr(line, 1, index(line, defundef) - 1)
  25826. if (D_is_set[macro]) {
  25827. # Preserve the white space surrounding the "#".
  25828. print prefix "define", macro P[macro] D[macro]
  25829. next
  25830. } else {
  25831. # Replace #undef with comments. This is necessary, for example,
  25832. # in the case of _POSIX_SOURCE, which is predefined and required
  25833. # on some systems where configure will not decide to define it.
  25834. if (defundef == "undef") {
  25835. print "/*", prefix defundef, macro, "*/"
  25836. next
  25837. }
  25838. }
  25839. }
  25840. { print }
  25841. _ACAWK
  25842. _ACEOF
  25843. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25844. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  25845. fi # test -n "$CONFIG_HEADERS"
  25846. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  25847. shift
  25848. for ac_tag
  25849. do
  25850. case $ac_tag in
  25851. :[FHLC]) ac_mode=$ac_tag; continue;;
  25852. esac
  25853. case $ac_mode$ac_tag in
  25854. :[FHL]*:*);;
  25855. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25856. :[FH]-) ac_tag=-:-;;
  25857. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25858. esac
  25859. ac_save_IFS=$IFS
  25860. IFS=:
  25861. set x $ac_tag
  25862. IFS=$ac_save_IFS
  25863. shift
  25864. ac_file=$1
  25865. shift
  25866. case $ac_mode in
  25867. :L) ac_source=$1;;
  25868. :[FH])
  25869. ac_file_inputs=
  25870. for ac_f
  25871. do
  25872. case $ac_f in
  25873. -) ac_f="$ac_tmp/stdin";;
  25874. *) # Look for the file first in the build tree, then in the source tree
  25875. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25876. # because $ac_f cannot contain `:'.
  25877. test -f "$ac_f" ||
  25878. case $ac_f in
  25879. [\\/$]*) false;;
  25880. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25881. esac ||
  25882. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25883. esac
  25884. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25885. as_fn_append ac_file_inputs " '$ac_f'"
  25886. done
  25887. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25888. # use $as_me), people would be surprised to read:
  25889. # /* config.h. Generated by config.status. */
  25890. configure_input='Generated from '`
  25891. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25892. `' by configure.'
  25893. if test x"$ac_file" != x-; then
  25894. configure_input="$ac_file. $configure_input"
  25895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25896. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  25897. fi
  25898. # Neutralize special characters interpreted by sed in replacement strings.
  25899. case $configure_input in #(
  25900. *\&* | *\|* | *\\* )
  25901. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  25902. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25903. *) ac_sed_conf_input=$configure_input;;
  25904. esac
  25905. case $ac_tag in
  25906. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  25907. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  25908. esac
  25909. ;;
  25910. esac
  25911. ac_dir=`$as_dirname -- "$ac_file" ||
  25912. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25913. X"$ac_file" : 'X\(//\)[^/]' \| \
  25914. X"$ac_file" : 'X\(//\)$' \| \
  25915. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25916. printf "%s\n" X"$ac_file" |
  25917. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25918. s//\1/
  25919. q
  25920. }
  25921. /^X\(\/\/\)[^/].*/{
  25922. s//\1/
  25923. q
  25924. }
  25925. /^X\(\/\/\)$/{
  25926. s//\1/
  25927. q
  25928. }
  25929. /^X\(\/\).*/{
  25930. s//\1/
  25931. q
  25932. }
  25933. s/.*/./; q'`
  25934. as_dir="$ac_dir"; as_fn_mkdir_p
  25935. ac_builddir=.
  25936. case "$ac_dir" in
  25937. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25938. *)
  25939. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  25940. # A ".." for each directory in $ac_dir_suffix.
  25941. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25942. case $ac_top_builddir_sub in
  25943. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25944. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25945. esac ;;
  25946. esac
  25947. ac_abs_top_builddir=$ac_pwd
  25948. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25949. # for backward compatibility:
  25950. ac_top_builddir=$ac_top_build_prefix
  25951. case $srcdir in
  25952. .) # We are building in place.
  25953. ac_srcdir=.
  25954. ac_top_srcdir=$ac_top_builddir_sub
  25955. ac_abs_top_srcdir=$ac_pwd ;;
  25956. [\\/]* | ?:[\\/]* ) # Absolute name.
  25957. ac_srcdir=$srcdir$ac_dir_suffix;
  25958. ac_top_srcdir=$srcdir
  25959. ac_abs_top_srcdir=$srcdir ;;
  25960. *) # Relative name.
  25961. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25962. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25963. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25964. esac
  25965. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25966. case $ac_mode in
  25967. :F)
  25968. #
  25969. # CONFIG_FILE
  25970. #
  25971. case $INSTALL in
  25972. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25973. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25974. esac
  25975. _ACEOF
  25976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25977. # If the template does not know about datarootdir, expand it.
  25978. # FIXME: This hack should be removed a few years after 2.60.
  25979. ac_datarootdir_hack=; ac_datarootdir_seen=
  25980. ac_sed_dataroot='
  25981. /datarootdir/ {
  25982. p
  25983. q
  25984. }
  25985. /@datadir@/p
  25986. /@docdir@/p
  25987. /@infodir@/p
  25988. /@localedir@/p
  25989. /@mandir@/p'
  25990. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25991. *datarootdir*) ac_datarootdir_seen=yes;;
  25992. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25994. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25995. _ACEOF
  25996. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25997. ac_datarootdir_hack='
  25998. s&@datadir@&$datadir&g
  25999. s&@docdir@&$docdir&g
  26000. s&@infodir@&$infodir&g
  26001. s&@localedir@&$localedir&g
  26002. s&@mandir@&$mandir&g
  26003. s&\\\${datarootdir}&$datarootdir&g' ;;
  26004. esac
  26005. _ACEOF
  26006. # Neutralize VPATH when `$srcdir' = `.'.
  26007. # Shell code in configure.ac might set extrasub.
  26008. # FIXME: do we really want to maintain this feature?
  26009. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26010. ac_sed_extra="$ac_vpsub
  26011. $extrasub
  26012. _ACEOF
  26013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26014. :t
  26015. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26016. s|@configure_input@|$ac_sed_conf_input|;t t
  26017. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26018. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26019. s&@srcdir@&$ac_srcdir&;t t
  26020. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26021. s&@top_srcdir@&$ac_top_srcdir&;t t
  26022. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26023. s&@builddir@&$ac_builddir&;t t
  26024. s&@abs_builddir@&$ac_abs_builddir&;t t
  26025. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26026. s&@INSTALL@&$ac_INSTALL&;t t
  26027. $ac_datarootdir_hack
  26028. "
  26029. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26030. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26031. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26032. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26033. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26034. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26036. which seems to be undefined. Please make sure it is defined" >&5
  26037. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26038. which seems to be undefined. Please make sure it is defined" >&2;}
  26039. rm -f "$ac_tmp/stdin"
  26040. case $ac_file in
  26041. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26042. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26043. esac \
  26044. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26045. ;;
  26046. :H)
  26047. #
  26048. # CONFIG_HEADER
  26049. #
  26050. if test x"$ac_file" != x-; then
  26051. {
  26052. printf "%s\n" "/* $configure_input */" >&1 \
  26053. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26054. } >"$ac_tmp/config.h" \
  26055. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26056. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26058. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26059. else
  26060. rm -f "$ac_file"
  26061. mv "$ac_tmp/config.h" "$ac_file" \
  26062. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26063. fi
  26064. else
  26065. printf "%s\n" "/* $configure_input */" >&1 \
  26066. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26067. || as_fn_error $? "could not create -" "$LINENO" 5
  26068. fi
  26069. ;;
  26070. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26071. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26072. ;;
  26073. esac
  26074. case $ac_file$ac_mode in
  26075. "libtool":C)
  26076. # See if we are running on zsh, and set the options that allow our
  26077. # commands through without removal of \ escapes.
  26078. if test -n "${ZSH_VERSION+set}"; then
  26079. setopt NO_GLOB_SUBST
  26080. fi
  26081. cfgfile=${ofile}T
  26082. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26083. $RM "$cfgfile"
  26084. cat <<_LT_EOF >> "$cfgfile"
  26085. #! $SHELL
  26086. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26087. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26088. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26089. # Provide generalized library-building support services.
  26090. # Written by Gordon Matzigkeit, 1996
  26091. # Copyright (C) 2014 Free Software Foundation, Inc.
  26092. # This is free software; see the source for copying conditions. There is NO
  26093. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26094. # GNU Libtool is free software; you can redistribute it and/or modify
  26095. # it under the terms of the GNU General Public License as published by
  26096. # the Free Software Foundation; either version 2 of of the License, or
  26097. # (at your option) any later version.
  26098. #
  26099. # As a special exception to the GNU General Public License, if you
  26100. # distribute this file as part of a program or library that is built
  26101. # using GNU Libtool, you may include this file under the same
  26102. # distribution terms that you use for the rest of that program.
  26103. #
  26104. # GNU Libtool is distributed in the hope that it will be useful, but
  26105. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26106. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26107. # GNU General Public License for more details.
  26108. #
  26109. # You should have received a copy of the GNU General Public License
  26110. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26111. # The names of the tagged configurations supported by this script.
  26112. available_tags='RC CXX '
  26113. # Configured defaults for sys_lib_dlsearch_path munging.
  26114. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26115. # ### BEGIN LIBTOOL CONFIG
  26116. # Which release of libtool.m4 was used?
  26117. macro_version=$macro_version
  26118. macro_revision=$macro_revision
  26119. # Assembler program.
  26120. AS=$lt_AS
  26121. # DLL creation program.
  26122. DLLTOOL=$lt_DLLTOOL
  26123. # Object dumper program.
  26124. OBJDUMP=$lt_OBJDUMP
  26125. # Whether or not to build shared libraries.
  26126. build_libtool_libs=$enable_shared
  26127. # Whether or not to build static libraries.
  26128. build_old_libs=$enable_static
  26129. # What type of objects to build.
  26130. pic_mode=$pic_mode
  26131. # Whether or not to optimize for fast installation.
  26132. fast_install=$enable_fast_install
  26133. # Shared archive member basename,for filename based shared library versioning on AIX.
  26134. shared_archive_member_spec=$shared_archive_member_spec
  26135. # Shell to use when invoking shell scripts.
  26136. SHELL=$lt_SHELL
  26137. # An echo program that protects backslashes.
  26138. ECHO=$lt_ECHO
  26139. # The PATH separator for the build system.
  26140. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26141. # The host system.
  26142. host_alias=$host_alias
  26143. host=$host
  26144. host_os=$host_os
  26145. # The build system.
  26146. build_alias=$build_alias
  26147. build=$build
  26148. build_os=$build_os
  26149. # A sed program that does not truncate output.
  26150. SED=$lt_SED
  26151. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26152. Xsed="\$SED -e 1s/^X//"
  26153. # A grep program that handles long lines.
  26154. GREP=$lt_GREP
  26155. # An ERE matcher.
  26156. EGREP=$lt_EGREP
  26157. # A literal string matcher.
  26158. FGREP=$lt_FGREP
  26159. # A BSD- or MS-compatible name lister.
  26160. NM=$lt_NM
  26161. # Whether we need soft or hard links.
  26162. LN_S=$lt_LN_S
  26163. # What is the maximum length of a command?
  26164. max_cmd_len=$max_cmd_len
  26165. # Object file suffix (normally "o").
  26166. objext=$ac_objext
  26167. # Executable file suffix (normally "").
  26168. exeext=$exeext
  26169. # whether the shell understands "unset".
  26170. lt_unset=$lt_unset
  26171. # turn spaces into newlines.
  26172. SP2NL=$lt_lt_SP2NL
  26173. # turn newlines into spaces.
  26174. NL2SP=$lt_lt_NL2SP
  26175. # convert \$build file names to \$host format.
  26176. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26177. # convert \$build files to toolchain format.
  26178. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26179. # Method to check whether dependent libraries are shared objects.
  26180. deplibs_check_method=$lt_deplibs_check_method
  26181. # Command to use when deplibs_check_method = "file_magic".
  26182. file_magic_cmd=$lt_file_magic_cmd
  26183. # How to find potential files when deplibs_check_method = "file_magic".
  26184. file_magic_glob=$lt_file_magic_glob
  26185. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26186. want_nocaseglob=$lt_want_nocaseglob
  26187. # Command to associate shared and link libraries.
  26188. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26189. # The archiver.
  26190. AR=$lt_AR
  26191. # Flags to create an archive.
  26192. AR_FLAGS=$lt_AR_FLAGS
  26193. # How to feed a file listing to the archiver.
  26194. archiver_list_spec=$lt_archiver_list_spec
  26195. # A symbol stripping program.
  26196. STRIP=$lt_STRIP
  26197. # Commands used to install an old-style archive.
  26198. RANLIB=$lt_RANLIB
  26199. old_postinstall_cmds=$lt_old_postinstall_cmds
  26200. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26201. # Whether to use a lock for old archive extraction.
  26202. lock_old_archive_extraction=$lock_old_archive_extraction
  26203. # A C compiler.
  26204. LTCC=$lt_CC
  26205. # LTCC compiler flags.
  26206. LTCFLAGS=$lt_CFLAGS
  26207. # Take the output of nm and produce a listing of raw symbols and C names.
  26208. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26209. # Transform the output of nm in a proper C declaration.
  26210. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26211. # Transform the output of nm into a list of symbols to manually relocate.
  26212. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26213. # Transform the output of nm in a C name address pair.
  26214. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26215. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26216. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26217. # The name lister interface.
  26218. nm_interface=$lt_lt_cv_nm_interface
  26219. # Specify filename containing input files for \$NM.
  26220. nm_file_list_spec=$lt_nm_file_list_spec
  26221. # The root where to search for dependent libraries,and where our libraries should be installed.
  26222. lt_sysroot=$lt_sysroot
  26223. # Command to truncate a binary pipe.
  26224. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26225. # The name of the directory that contains temporary libtool files.
  26226. objdir=$objdir
  26227. # Used to examine libraries when file_magic_cmd begins with "file".
  26228. MAGIC_CMD=$MAGIC_CMD
  26229. # Must we lock files when doing compilation?
  26230. need_locks=$lt_need_locks
  26231. # Manifest tool.
  26232. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26233. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26234. DSYMUTIL=$lt_DSYMUTIL
  26235. # Tool to change global to local symbols on Mac OS X.
  26236. NMEDIT=$lt_NMEDIT
  26237. # Tool to manipulate fat objects and archives on Mac OS X.
  26238. LIPO=$lt_LIPO
  26239. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26240. OTOOL=$lt_OTOOL
  26241. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26242. OTOOL64=$lt_OTOOL64
  26243. # Old archive suffix (normally "a").
  26244. libext=$libext
  26245. # Shared library suffix (normally ".so").
  26246. shrext_cmds=$lt_shrext_cmds
  26247. # The commands to extract the exported symbol list from a shared archive.
  26248. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26249. # Variables whose values should be saved in libtool wrapper scripts and
  26250. # restored at link time.
  26251. variables_saved_for_relink=$lt_variables_saved_for_relink
  26252. # Do we need the "lib" prefix for modules?
  26253. need_lib_prefix=$need_lib_prefix
  26254. # Do we need a version for libraries?
  26255. need_version=$need_version
  26256. # Library versioning type.
  26257. version_type=$version_type
  26258. # Shared library runtime path variable.
  26259. runpath_var=$runpath_var
  26260. # Shared library path variable.
  26261. shlibpath_var=$shlibpath_var
  26262. # Is shlibpath searched before the hard-coded library search path?
  26263. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26264. # Format of library name prefix.
  26265. libname_spec=$lt_libname_spec
  26266. # List of archive names. First name is the real one, the rest are links.
  26267. # The last name is the one that the linker finds with -lNAME
  26268. library_names_spec=$lt_library_names_spec
  26269. # The coded name of the library, if different from the real name.
  26270. soname_spec=$lt_soname_spec
  26271. # Permission mode override for installation of shared libraries.
  26272. install_override_mode=$lt_install_override_mode
  26273. # Command to use after installation of a shared archive.
  26274. postinstall_cmds=$lt_postinstall_cmds
  26275. # Command to use after uninstallation of a shared archive.
  26276. postuninstall_cmds=$lt_postuninstall_cmds
  26277. # Commands used to finish a libtool library installation in a directory.
  26278. finish_cmds=$lt_finish_cmds
  26279. # As "finish_cmds", except a single script fragment to be evaled but
  26280. # not shown.
  26281. finish_eval=$lt_finish_eval
  26282. # Whether we should hardcode library paths into libraries.
  26283. hardcode_into_libs=$hardcode_into_libs
  26284. # Compile-time system search path for libraries.
  26285. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26286. # Detected run-time system search path for libraries.
  26287. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26288. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26289. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26290. # Whether dlopen is supported.
  26291. dlopen_support=$enable_dlopen
  26292. # Whether dlopen of programs is supported.
  26293. dlopen_self=$enable_dlopen_self
  26294. # Whether dlopen of statically linked programs is supported.
  26295. dlopen_self_static=$enable_dlopen_self_static
  26296. # Commands to strip libraries.
  26297. old_striplib=$lt_old_striplib
  26298. striplib=$lt_striplib
  26299. # The linker used to build libraries.
  26300. LD=$lt_LD
  26301. # How to create reloadable object files.
  26302. reload_flag=$lt_reload_flag
  26303. reload_cmds=$lt_reload_cmds
  26304. # Commands used to build an old-style archive.
  26305. old_archive_cmds=$lt_old_archive_cmds
  26306. # A language specific compiler.
  26307. CC=$lt_compiler
  26308. # Is the compiler the GNU compiler?
  26309. with_gcc=$GCC
  26310. # Compiler flag to turn off builtin functions.
  26311. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26312. # Additional compiler flags for building library objects.
  26313. pic_flag=$lt_lt_prog_compiler_pic
  26314. # How to pass a linker flag through the compiler.
  26315. wl=$lt_lt_prog_compiler_wl
  26316. # Compiler flag to prevent dynamic linking.
  26317. link_static_flag=$lt_lt_prog_compiler_static
  26318. # Does compiler simultaneously support -c and -o options?
  26319. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26320. # Whether or not to add -lc for building shared libraries.
  26321. build_libtool_need_lc=$archive_cmds_need_lc
  26322. # Whether or not to disallow shared libs when runtime libs are static.
  26323. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26324. # Compiler flag to allow reflexive dlopens.
  26325. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26326. # Compiler flag to generate shared objects directly from archives.
  26327. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26328. # Whether the compiler copes with passing no objects directly.
  26329. compiler_needs_object=$lt_compiler_needs_object
  26330. # Create an old-style archive from a shared archive.
  26331. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26332. # Create a temporary old-style archive to link instead of a shared archive.
  26333. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26334. # Commands used to build a shared archive.
  26335. archive_cmds=$lt_archive_cmds
  26336. archive_expsym_cmds=$lt_archive_expsym_cmds
  26337. # Commands used to build a loadable module if different from building
  26338. # a shared archive.
  26339. module_cmds=$lt_module_cmds
  26340. module_expsym_cmds=$lt_module_expsym_cmds
  26341. # Whether we are building with GNU ld or not.
  26342. with_gnu_ld=$lt_with_gnu_ld
  26343. # Flag that allows shared libraries with undefined symbols to be built.
  26344. allow_undefined_flag=$lt_allow_undefined_flag
  26345. # Flag that enforces no undefined symbols.
  26346. no_undefined_flag=$lt_no_undefined_flag
  26347. # Flag to hardcode \$libdir into a binary during linking.
  26348. # This must work even if \$libdir does not exist
  26349. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26350. # Whether we need a single "-rpath" flag with a separated argument.
  26351. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26352. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26353. # DIR into the resulting binary.
  26354. hardcode_direct=$hardcode_direct
  26355. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26356. # DIR into the resulting binary and the resulting library dependency is
  26357. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26358. # library is relocated.
  26359. hardcode_direct_absolute=$hardcode_direct_absolute
  26360. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26361. # into the resulting binary.
  26362. hardcode_minus_L=$hardcode_minus_L
  26363. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26364. # into the resulting binary.
  26365. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26366. # Set to "yes" if building a shared library automatically hardcodes DIR
  26367. # into the library and all subsequent libraries and executables linked
  26368. # against it.
  26369. hardcode_automatic=$hardcode_automatic
  26370. # Set to yes if linker adds runtime paths of dependent libraries
  26371. # to runtime path list.
  26372. inherit_rpath=$inherit_rpath
  26373. # Whether libtool must link a program against all its dependency libraries.
  26374. link_all_deplibs=$link_all_deplibs
  26375. # Set to "yes" if exported symbols are required.
  26376. always_export_symbols=$always_export_symbols
  26377. # The commands to list exported symbols.
  26378. export_symbols_cmds=$lt_export_symbols_cmds
  26379. # Symbols that should not be listed in the preloaded symbols.
  26380. exclude_expsyms=$lt_exclude_expsyms
  26381. # Symbols that must always be exported.
  26382. include_expsyms=$lt_include_expsyms
  26383. # Commands necessary for linking programs (against libraries) with templates.
  26384. prelink_cmds=$lt_prelink_cmds
  26385. # Commands necessary for finishing linking programs.
  26386. postlink_cmds=$lt_postlink_cmds
  26387. # Specify filename containing input files.
  26388. file_list_spec=$lt_file_list_spec
  26389. # How to hardcode a shared library path into an executable.
  26390. hardcode_action=$hardcode_action
  26391. # The directories searched by this compiler when creating a shared library.
  26392. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26393. # Dependencies to place before and after the objects being linked to
  26394. # create a shared library.
  26395. predep_objects=$lt_predep_objects
  26396. postdep_objects=$lt_postdep_objects
  26397. predeps=$lt_predeps
  26398. postdeps=$lt_postdeps
  26399. # The library search path used internally by the compiler when linking
  26400. # a shared library.
  26401. compiler_lib_search_path=$lt_compiler_lib_search_path
  26402. # ### END LIBTOOL CONFIG
  26403. _LT_EOF
  26404. cat <<'_LT_EOF' >> "$cfgfile"
  26405. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26406. # func_munge_path_list VARIABLE PATH
  26407. # -----------------------------------
  26408. # VARIABLE is name of variable containing _space_ separated list of
  26409. # directories to be munged by the contents of PATH, which is string
  26410. # having a format:
  26411. # "DIR[:DIR]:"
  26412. # string "DIR[ DIR]" will be prepended to VARIABLE
  26413. # ":DIR[:DIR]"
  26414. # string "DIR[ DIR]" will be appended to VARIABLE
  26415. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26416. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26417. # "DIRA[ DIRA]" will be appended to VARIABLE
  26418. # "DIR[:DIR]"
  26419. # VARIABLE will be replaced by "DIR[ DIR]"
  26420. func_munge_path_list ()
  26421. {
  26422. case x$2 in
  26423. x)
  26424. ;;
  26425. *:)
  26426. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26427. ;;
  26428. x:*)
  26429. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26430. ;;
  26431. *::*)
  26432. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26433. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26434. ;;
  26435. *)
  26436. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26437. ;;
  26438. esac
  26439. }
  26440. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26441. func_cc_basename ()
  26442. {
  26443. for cc_temp in $*""; do
  26444. case $cc_temp in
  26445. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26446. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26447. \-*) ;;
  26448. *) break;;
  26449. esac
  26450. done
  26451. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26452. }
  26453. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26454. _LT_EOF
  26455. case $host_os in
  26456. aix3*)
  26457. cat <<\_LT_EOF >> "$cfgfile"
  26458. # AIX sometimes has problems with the GCC collect2 program. For some
  26459. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26460. # vanish in a puff of smoke.
  26461. if test set != "${COLLECT_NAMES+set}"; then
  26462. COLLECT_NAMES=
  26463. export COLLECT_NAMES
  26464. fi
  26465. _LT_EOF
  26466. ;;
  26467. esac
  26468. ltmain=$ac_aux_dir/ltmain.sh
  26469. # We use sed instead of cat because bash on DJGPP gets confused if
  26470. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26471. # text mode, it properly converts lines to CR/LF. This bash problem
  26472. # is reportedly fixed, but why not run on old versions too?
  26473. sed '$q' "$ltmain" >> "$cfgfile" \
  26474. || (rm -f "$cfgfile"; exit 1)
  26475. mv -f "$cfgfile" "$ofile" ||
  26476. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26477. chmod +x "$ofile"
  26478. cat <<_LT_EOF >> "$ofile"
  26479. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26480. # The linker used to build libraries.
  26481. LD=$lt_LD_RC
  26482. # How to create reloadable object files.
  26483. reload_flag=$lt_reload_flag_RC
  26484. reload_cmds=$lt_reload_cmds_RC
  26485. # Commands used to build an old-style archive.
  26486. old_archive_cmds=$lt_old_archive_cmds_RC
  26487. # A language specific compiler.
  26488. CC=$lt_compiler_RC
  26489. # Is the compiler the GNU compiler?
  26490. with_gcc=$GCC_RC
  26491. # Compiler flag to turn off builtin functions.
  26492. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26493. # Additional compiler flags for building library objects.
  26494. pic_flag=$lt_lt_prog_compiler_pic_RC
  26495. # How to pass a linker flag through the compiler.
  26496. wl=$lt_lt_prog_compiler_wl_RC
  26497. # Compiler flag to prevent dynamic linking.
  26498. link_static_flag=$lt_lt_prog_compiler_static_RC
  26499. # Does compiler simultaneously support -c and -o options?
  26500. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26501. # Whether or not to add -lc for building shared libraries.
  26502. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26503. # Whether or not to disallow shared libs when runtime libs are static.
  26504. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26505. # Compiler flag to allow reflexive dlopens.
  26506. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26507. # Compiler flag to generate shared objects directly from archives.
  26508. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26509. # Whether the compiler copes with passing no objects directly.
  26510. compiler_needs_object=$lt_compiler_needs_object_RC
  26511. # Create an old-style archive from a shared archive.
  26512. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26513. # Create a temporary old-style archive to link instead of a shared archive.
  26514. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26515. # Commands used to build a shared archive.
  26516. archive_cmds=$lt_archive_cmds_RC
  26517. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26518. # Commands used to build a loadable module if different from building
  26519. # a shared archive.
  26520. module_cmds=$lt_module_cmds_RC
  26521. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26522. # Whether we are building with GNU ld or not.
  26523. with_gnu_ld=$lt_with_gnu_ld_RC
  26524. # Flag that allows shared libraries with undefined symbols to be built.
  26525. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26526. # Flag that enforces no undefined symbols.
  26527. no_undefined_flag=$lt_no_undefined_flag_RC
  26528. # Flag to hardcode \$libdir into a binary during linking.
  26529. # This must work even if \$libdir does not exist
  26530. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26531. # Whether we need a single "-rpath" flag with a separated argument.
  26532. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26533. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26534. # DIR into the resulting binary.
  26535. hardcode_direct=$hardcode_direct_RC
  26536. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26537. # DIR into the resulting binary and the resulting library dependency is
  26538. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26539. # library is relocated.
  26540. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26541. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26542. # into the resulting binary.
  26543. hardcode_minus_L=$hardcode_minus_L_RC
  26544. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26545. # into the resulting binary.
  26546. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26547. # Set to "yes" if building a shared library automatically hardcodes DIR
  26548. # into the library and all subsequent libraries and executables linked
  26549. # against it.
  26550. hardcode_automatic=$hardcode_automatic_RC
  26551. # Set to yes if linker adds runtime paths of dependent libraries
  26552. # to runtime path list.
  26553. inherit_rpath=$inherit_rpath_RC
  26554. # Whether libtool must link a program against all its dependency libraries.
  26555. link_all_deplibs=$link_all_deplibs_RC
  26556. # Set to "yes" if exported symbols are required.
  26557. always_export_symbols=$always_export_symbols_RC
  26558. # The commands to list exported symbols.
  26559. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26560. # Symbols that should not be listed in the preloaded symbols.
  26561. exclude_expsyms=$lt_exclude_expsyms_RC
  26562. # Symbols that must always be exported.
  26563. include_expsyms=$lt_include_expsyms_RC
  26564. # Commands necessary for linking programs (against libraries) with templates.
  26565. prelink_cmds=$lt_prelink_cmds_RC
  26566. # Commands necessary for finishing linking programs.
  26567. postlink_cmds=$lt_postlink_cmds_RC
  26568. # Specify filename containing input files.
  26569. file_list_spec=$lt_file_list_spec_RC
  26570. # How to hardcode a shared library path into an executable.
  26571. hardcode_action=$hardcode_action_RC
  26572. # The directories searched by this compiler when creating a shared library.
  26573. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26574. # Dependencies to place before and after the objects being linked to
  26575. # create a shared library.
  26576. predep_objects=$lt_predep_objects_RC
  26577. postdep_objects=$lt_postdep_objects_RC
  26578. predeps=$lt_predeps_RC
  26579. postdeps=$lt_postdeps_RC
  26580. # The library search path used internally by the compiler when linking
  26581. # a shared library.
  26582. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26583. # ### END LIBTOOL TAG CONFIG: RC
  26584. _LT_EOF
  26585. cat <<_LT_EOF >> "$ofile"
  26586. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26587. # The linker used to build libraries.
  26588. LD=$lt_LD_CXX
  26589. # How to create reloadable object files.
  26590. reload_flag=$lt_reload_flag_CXX
  26591. reload_cmds=$lt_reload_cmds_CXX
  26592. # Commands used to build an old-style archive.
  26593. old_archive_cmds=$lt_old_archive_cmds_CXX
  26594. # A language specific compiler.
  26595. CC=$lt_compiler_CXX
  26596. # Is the compiler the GNU compiler?
  26597. with_gcc=$GCC_CXX
  26598. # Compiler flag to turn off builtin functions.
  26599. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26600. # Additional compiler flags for building library objects.
  26601. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26602. # How to pass a linker flag through the compiler.
  26603. wl=$lt_lt_prog_compiler_wl_CXX
  26604. # Compiler flag to prevent dynamic linking.
  26605. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26606. # Does compiler simultaneously support -c and -o options?
  26607. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26608. # Whether or not to add -lc for building shared libraries.
  26609. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26610. # Whether or not to disallow shared libs when runtime libs are static.
  26611. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26612. # Compiler flag to allow reflexive dlopens.
  26613. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26614. # Compiler flag to generate shared objects directly from archives.
  26615. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26616. # Whether the compiler copes with passing no objects directly.
  26617. compiler_needs_object=$lt_compiler_needs_object_CXX
  26618. # Create an old-style archive from a shared archive.
  26619. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26620. # Create a temporary old-style archive to link instead of a shared archive.
  26621. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26622. # Commands used to build a shared archive.
  26623. archive_cmds=$lt_archive_cmds_CXX
  26624. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26625. # Commands used to build a loadable module if different from building
  26626. # a shared archive.
  26627. module_cmds=$lt_module_cmds_CXX
  26628. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26629. # Whether we are building with GNU ld or not.
  26630. with_gnu_ld=$lt_with_gnu_ld_CXX
  26631. # Flag that allows shared libraries with undefined symbols to be built.
  26632. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26633. # Flag that enforces no undefined symbols.
  26634. no_undefined_flag=$lt_no_undefined_flag_CXX
  26635. # Flag to hardcode \$libdir into a binary during linking.
  26636. # This must work even if \$libdir does not exist
  26637. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26638. # Whether we need a single "-rpath" flag with a separated argument.
  26639. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26640. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26641. # DIR into the resulting binary.
  26642. hardcode_direct=$hardcode_direct_CXX
  26643. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26644. # DIR into the resulting binary and the resulting library dependency is
  26645. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26646. # library is relocated.
  26647. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26648. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26649. # into the resulting binary.
  26650. hardcode_minus_L=$hardcode_minus_L_CXX
  26651. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26652. # into the resulting binary.
  26653. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26654. # Set to "yes" if building a shared library automatically hardcodes DIR
  26655. # into the library and all subsequent libraries and executables linked
  26656. # against it.
  26657. hardcode_automatic=$hardcode_automatic_CXX
  26658. # Set to yes if linker adds runtime paths of dependent libraries
  26659. # to runtime path list.
  26660. inherit_rpath=$inherit_rpath_CXX
  26661. # Whether libtool must link a program against all its dependency libraries.
  26662. link_all_deplibs=$link_all_deplibs_CXX
  26663. # Set to "yes" if exported symbols are required.
  26664. always_export_symbols=$always_export_symbols_CXX
  26665. # The commands to list exported symbols.
  26666. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26667. # Symbols that should not be listed in the preloaded symbols.
  26668. exclude_expsyms=$lt_exclude_expsyms_CXX
  26669. # Symbols that must always be exported.
  26670. include_expsyms=$lt_include_expsyms_CXX
  26671. # Commands necessary for linking programs (against libraries) with templates.
  26672. prelink_cmds=$lt_prelink_cmds_CXX
  26673. # Commands necessary for finishing linking programs.
  26674. postlink_cmds=$lt_postlink_cmds_CXX
  26675. # Specify filename containing input files.
  26676. file_list_spec=$lt_file_list_spec_CXX
  26677. # How to hardcode a shared library path into an executable.
  26678. hardcode_action=$hardcode_action_CXX
  26679. # The directories searched by this compiler when creating a shared library.
  26680. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26681. # Dependencies to place before and after the objects being linked to
  26682. # create a shared library.
  26683. predep_objects=$lt_predep_objects_CXX
  26684. postdep_objects=$lt_postdep_objects_CXX
  26685. predeps=$lt_predeps_CXX
  26686. postdeps=$lt_postdeps_CXX
  26687. # The library search path used internally by the compiler when linking
  26688. # a shared library.
  26689. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26690. # ### END LIBTOOL TAG CONFIG: CXX
  26691. _LT_EOF
  26692. ;;
  26693. "sdl3_config":C) chmod a+x sdl3-config ;;
  26694. "summary":C) printf "$SUMMARY" ;;
  26695. esac
  26696. done # for ac_tag
  26697. as_fn_exit 0
  26698. _ACEOF
  26699. ac_clean_files=$ac_clean_files_save
  26700. test $ac_write_fail = 0 ||
  26701. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26702. # configure is writing to config.log, and then calls config.status.
  26703. # config.status does its own redirection, appending to config.log.
  26704. # Unfortunately, on DOS this fails, as config.log is still kept open
  26705. # by configure, so config.status won't be able to write to it; its
  26706. # output is simply discarded. So we exec the FD to /dev/null,
  26707. # effectively closing config.log, so it can be properly (re)opened and
  26708. # appended to by config.status. When coming back to configure, we
  26709. # need to make the FD available again.
  26710. if test "$no_create" != yes; then
  26711. ac_cs_success=:
  26712. ac_config_status_args=
  26713. test "$silent" = yes &&
  26714. ac_config_status_args="$ac_config_status_args --quiet"
  26715. exec 5>/dev/null
  26716. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26717. exec 5>>config.log
  26718. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26719. # would make configure fail if this is the last instruction.
  26720. $ac_cs_success || as_fn_exit 1
  26721. fi
  26722. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26724. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26725. fi