configure 917 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361
  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. DIRECTFB_LIBS
  639. DIRECTFB_CFLAGS
  640. X_EXTRA_LIBS
  641. X_LIBS
  642. X_PRE_LIBS
  643. X_CFLAGS
  644. XMKMF
  645. RPI_LIBS
  646. RPI_CFLAGS
  647. DECOR_LIBS
  648. DECOR_CFLAGS
  649. PULSEAUDIO_LIBS
  650. PULSEAUDIO_CFLAGS
  651. PIPEWIRE_LIBS
  652. PIPEWIRE_CFLAGS
  653. ALSA_LIBS
  654. ALSA_CFLAGS
  655. ALLOCA
  656. CPP
  657. LIBTOOLLINKERTAG
  658. LINKER
  659. SORT
  660. PKG_CONFIG_LIBDIR
  661. PKG_CONFIG_PATH
  662. PKG_CONFIG
  663. SET_MAKE
  664. INSTALL_DATA
  665. INSTALL_SCRIPT
  666. INSTALL_PROGRAM
  667. CXXCPP
  668. ac_ct_CXX
  669. CXXFLAGS
  670. CXX
  671. LT_AGE
  672. LT_REVISION
  673. LT_CURRENT
  674. LT_RELEASE
  675. RC
  676. LT_SYS_LIBRARY_PATH
  677. OTOOL64
  678. OTOOL
  679. LIPO
  680. NMEDIT
  681. DSYMUTIL
  682. MANIFEST_TOOL
  683. AWK
  684. RANLIB
  685. STRIP
  686. ac_ct_AR
  687. AR
  688. LN_S
  689. NM
  690. ac_ct_DUMPBIN
  691. DUMPBIN
  692. LD
  693. FGREP
  694. EGREP
  695. GREP
  696. SED
  697. OBJEXT
  698. EXEEXT
  699. ac_ct_CC
  700. CPPFLAGS
  701. LDFLAGS
  702. CFLAGS
  703. CC
  704. host_os
  705. host_vendor
  706. host_cpu
  707. host
  708. build_os
  709. build_vendor
  710. build_cpu
  711. build
  712. LIBTOOL
  713. OBJDUMP
  714. DLLTOOL
  715. AS
  716. SDL_VERSION
  717. SDL_BINARY_AGE
  718. SDL_INTERFACE_AGE
  719. SDL_MICRO_VERSION
  720. SDL_MINOR_VERSION
  721. SDL_MAJOR_VERSION
  722. target_alias
  723. host_alias
  724. build_alias
  725. LIBS
  726. ECHO_T
  727. ECHO_N
  728. ECHO_C
  729. DEFS
  730. mandir
  731. localedir
  732. libdir
  733. psdir
  734. pdfdir
  735. dvidir
  736. htmldir
  737. infodir
  738. docdir
  739. oldincludedir
  740. includedir
  741. runstatedir
  742. localstatedir
  743. sharedstatedir
  744. sysconfdir
  745. datadir
  746. datarootdir
  747. libexecdir
  748. sbindir
  749. bindir
  750. program_transform_name
  751. prefix
  752. exec_prefix
  753. PACKAGE_URL
  754. PACKAGE_BUGREPORT
  755. PACKAGE_STRING
  756. PACKAGE_VERSION
  757. PACKAGE_TARNAME
  758. PACKAGE_NAME
  759. PATH_SEPARATOR
  760. SHELL'
  761. ac_subst_files=''
  762. ac_user_opts='
  763. enable_option_checking
  764. enable_shared
  765. enable_static
  766. with_pic
  767. enable_fast_install
  768. with_aix_soname
  769. with_gnu_ld
  770. with_sysroot
  771. enable_libtool_lock
  772. enable_largefile
  773. enable_assertions
  774. enable_dependency_tracking
  775. enable_libc
  776. enable_system_iconv
  777. enable_gcc_atomics
  778. enable_atomic
  779. enable_audio
  780. enable_video
  781. enable_render
  782. enable_events
  783. enable_joystick
  784. enable_haptic
  785. enable_hidapi
  786. enable_sensor
  787. enable_power
  788. enable_filesystem
  789. enable_timers
  790. enable_file
  791. enable_misc
  792. enable_locale
  793. enable_loadso
  794. enable_cpuinfo
  795. enable_assembly
  796. enable_ssemath
  797. enable_mmx
  798. enable_3dnow
  799. enable_sse
  800. enable_sse2
  801. enable_sse3
  802. enable_altivec
  803. enable_lsx
  804. enable_lasx
  805. enable_oss
  806. enable_alsa
  807. with_alsa_prefix
  808. with_alsa_inc_prefix
  809. enable_alsatest
  810. enable_alsa_shared
  811. enable_pipewire
  812. enable_pipewire_shared
  813. enable_pulseaudio
  814. enable_pulseaudio_shared
  815. enable_diskaudio
  816. enable_dummyaudio
  817. enable_libsamplerate
  818. enable_libsamplerate_shared
  819. enable_arm_simd
  820. enable_arm_neon
  821. enable_werror
  822. enable_video_wayland
  823. enable_video_wayland_qt_touch
  824. enable_wayland_shared
  825. enable_libdecor
  826. enable_libdecor_shared
  827. enable_video_rpi
  828. enable_video_x11
  829. with_x
  830. enable_x11_shared
  831. enable_video_x11_xcursor
  832. enable_video_x11_xdbe
  833. enable_video_x11_xinput
  834. enable_video_x11_xfixes
  835. enable_video_x11_xrandr
  836. enable_video_x11_scrnsaver
  837. enable_video_x11_xshape
  838. enable_video_vivante
  839. enable_video_cocoa
  840. enable_video_metal
  841. enable_render_metal
  842. enable_video_directfb
  843. enable_directfb_shared
  844. enable_video_kmsdrm
  845. enable_kmsdrm_shared
  846. enable_video_dummy
  847. enable_video_offscreen
  848. enable_video_opengl
  849. enable_video_opengles
  850. enable_video_opengles1
  851. enable_video_opengles2
  852. enable_video_vulkan
  853. enable_libudev
  854. enable_dbus
  855. enable_ime
  856. enable_ibus
  857. enable_fcitx
  858. enable_joystick_mfi
  859. enable_pthreads
  860. enable_pthread_sem
  861. enable_directx
  862. enable_xinput
  863. enable_wasapi
  864. enable_hidapi_joystick
  865. enable_hidapi_libusb
  866. enable_clock_gettime
  867. enable_rpath
  868. enable_backgrounding_signal
  869. enable_foregrounding_signal
  870. enable_joystick_virtual
  871. enable_render_d3d
  872. enable_sdl3_config
  873. enable_vendor_info
  874. '
  875. ac_precious_vars='build_alias
  876. host_alias
  877. target_alias
  878. CC
  879. CFLAGS
  880. LDFLAGS
  881. LIBS
  882. CPPFLAGS
  883. LT_SYS_LIBRARY_PATH
  884. CXX
  885. CXXFLAGS
  886. CCC
  887. CXXCPP
  888. PKG_CONFIG
  889. PKG_CONFIG_PATH
  890. PKG_CONFIG_LIBDIR
  891. CPP
  892. PIPEWIRE_CFLAGS
  893. PIPEWIRE_LIBS
  894. PULSEAUDIO_CFLAGS
  895. PULSEAUDIO_LIBS
  896. DECOR_CFLAGS
  897. DECOR_LIBS
  898. RPI_CFLAGS
  899. RPI_LIBS
  900. XMKMF
  901. DIRECTFB_CFLAGS
  902. DIRECTFB_LIBS
  903. LIBDRM_CFLAGS
  904. LIBDRM_LIBS
  905. LIBGBM_CFLAGS
  906. LIBGBM_LIBS
  907. DBUS_CFLAGS
  908. DBUS_LIBS
  909. IBUS_CFLAGS
  910. IBUS_LIBS
  911. LIBUSB_CFLAGS
  912. LIBUSB_LIBS'
  913. # Initialize some variables set by options.
  914. ac_init_help=
  915. ac_init_version=false
  916. ac_unrecognized_opts=
  917. ac_unrecognized_sep=
  918. # The variables have the same names as the options, with
  919. # dashes changed to underlines.
  920. cache_file=/dev/null
  921. exec_prefix=NONE
  922. no_create=
  923. no_recursion=
  924. prefix=NONE
  925. program_prefix=NONE
  926. program_suffix=NONE
  927. program_transform_name=s,x,x,
  928. silent=
  929. site=
  930. srcdir=
  931. verbose=
  932. x_includes=NONE
  933. x_libraries=NONE
  934. # Installation directory options.
  935. # These are left unexpanded so users can "make install exec_prefix=/foo"
  936. # and all the variables that are supposed to be based on exec_prefix
  937. # by default will actually change.
  938. # Use braces instead of parens because sh, perl, etc. also accept them.
  939. # (The list follows the same order as the GNU Coding Standards.)
  940. bindir='${exec_prefix}/bin'
  941. sbindir='${exec_prefix}/sbin'
  942. libexecdir='${exec_prefix}/libexec'
  943. datarootdir='${prefix}/share'
  944. datadir='${datarootdir}'
  945. sysconfdir='${prefix}/etc'
  946. sharedstatedir='${prefix}/com'
  947. localstatedir='${prefix}/var'
  948. runstatedir='${localstatedir}/run'
  949. includedir='${prefix}/include'
  950. oldincludedir='/usr/include'
  951. docdir='${datarootdir}/doc/${PACKAGE}'
  952. infodir='${datarootdir}/info'
  953. htmldir='${docdir}'
  954. dvidir='${docdir}'
  955. pdfdir='${docdir}'
  956. psdir='${docdir}'
  957. libdir='${exec_prefix}/lib'
  958. localedir='${datarootdir}/locale'
  959. mandir='${datarootdir}/man'
  960. ac_prev=
  961. ac_dashdash=
  962. for ac_option
  963. do
  964. # If the previous option needs an argument, assign it.
  965. if test -n "$ac_prev"; then
  966. eval $ac_prev=\$ac_option
  967. ac_prev=
  968. continue
  969. fi
  970. case $ac_option in
  971. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  972. *=) ac_optarg= ;;
  973. *) ac_optarg=yes ;;
  974. esac
  975. case $ac_dashdash$ac_option in
  976. --)
  977. ac_dashdash=yes ;;
  978. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  979. ac_prev=bindir ;;
  980. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  981. bindir=$ac_optarg ;;
  982. -build | --build | --buil | --bui | --bu)
  983. ac_prev=build_alias ;;
  984. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  985. build_alias=$ac_optarg ;;
  986. -cache-file | --cache-file | --cache-fil | --cache-fi \
  987. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  988. ac_prev=cache_file ;;
  989. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  990. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  991. cache_file=$ac_optarg ;;
  992. --config-cache | -C)
  993. cache_file=config.cache ;;
  994. -datadir | --datadir | --datadi | --datad)
  995. ac_prev=datadir ;;
  996. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  997. datadir=$ac_optarg ;;
  998. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  999. | --dataroo | --dataro | --datar)
  1000. ac_prev=datarootdir ;;
  1001. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1002. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1003. datarootdir=$ac_optarg ;;
  1004. -disable-* | --disable-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "enable_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval enable_$ac_useropt=no ;;
  1019. -docdir | --docdir | --docdi | --doc | --do)
  1020. ac_prev=docdir ;;
  1021. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1022. docdir=$ac_optarg ;;
  1023. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1024. ac_prev=dvidir ;;
  1025. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1026. dvidir=$ac_optarg ;;
  1027. -enable-* | --enable-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "enable_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval enable_$ac_useropt=\$ac_optarg ;;
  1042. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1043. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1044. | --exec | --exe | --ex)
  1045. ac_prev=exec_prefix ;;
  1046. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1047. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1048. | --exec=* | --exe=* | --ex=*)
  1049. exec_prefix=$ac_optarg ;;
  1050. -gas | --gas | --ga | --g)
  1051. # Obsolete; use --with-gas.
  1052. with_gas=yes ;;
  1053. -help | --help | --hel | --he | -h)
  1054. ac_init_help=long ;;
  1055. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1056. ac_init_help=recursive ;;
  1057. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1058. ac_init_help=short ;;
  1059. -host | --host | --hos | --ho)
  1060. ac_prev=host_alias ;;
  1061. -host=* | --host=* | --hos=* | --ho=*)
  1062. host_alias=$ac_optarg ;;
  1063. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1064. ac_prev=htmldir ;;
  1065. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1066. | --ht=*)
  1067. htmldir=$ac_optarg ;;
  1068. -includedir | --includedir | --includedi | --included | --include \
  1069. | --includ | --inclu | --incl | --inc)
  1070. ac_prev=includedir ;;
  1071. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1072. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1073. includedir=$ac_optarg ;;
  1074. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1075. ac_prev=infodir ;;
  1076. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1077. infodir=$ac_optarg ;;
  1078. -libdir | --libdir | --libdi | --libd)
  1079. ac_prev=libdir ;;
  1080. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1081. libdir=$ac_optarg ;;
  1082. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1083. | --libexe | --libex | --libe)
  1084. ac_prev=libexecdir ;;
  1085. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1086. | --libexe=* | --libex=* | --libe=*)
  1087. libexecdir=$ac_optarg ;;
  1088. -localedir | --localedir | --localedi | --localed | --locale)
  1089. ac_prev=localedir ;;
  1090. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1091. localedir=$ac_optarg ;;
  1092. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1093. | --localstate | --localstat | --localsta | --localst | --locals)
  1094. ac_prev=localstatedir ;;
  1095. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1096. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1097. localstatedir=$ac_optarg ;;
  1098. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1099. ac_prev=mandir ;;
  1100. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1101. mandir=$ac_optarg ;;
  1102. -nfp | --nfp | --nf)
  1103. # Obsolete; use --without-fp.
  1104. with_fp=no ;;
  1105. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1106. | --no-cr | --no-c | -n)
  1107. no_create=yes ;;
  1108. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1109. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1110. no_recursion=yes ;;
  1111. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1112. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1113. | --oldin | --oldi | --old | --ol | --o)
  1114. ac_prev=oldincludedir ;;
  1115. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1116. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1117. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1118. oldincludedir=$ac_optarg ;;
  1119. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1120. ac_prev=prefix ;;
  1121. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1122. prefix=$ac_optarg ;;
  1123. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1124. | --program-pre | --program-pr | --program-p)
  1125. ac_prev=program_prefix ;;
  1126. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1127. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1128. program_prefix=$ac_optarg ;;
  1129. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1130. | --program-suf | --program-su | --program-s)
  1131. ac_prev=program_suffix ;;
  1132. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1133. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1134. program_suffix=$ac_optarg ;;
  1135. -program-transform-name | --program-transform-name \
  1136. | --program-transform-nam | --program-transform-na \
  1137. | --program-transform-n | --program-transform- \
  1138. | --program-transform | --program-transfor \
  1139. | --program-transfo | --program-transf \
  1140. | --program-trans | --program-tran \
  1141. | --progr-tra | --program-tr | --program-t)
  1142. ac_prev=program_transform_name ;;
  1143. -program-transform-name=* | --program-transform-name=* \
  1144. | --program-transform-nam=* | --program-transform-na=* \
  1145. | --program-transform-n=* | --program-transform-=* \
  1146. | --program-transform=* | --program-transfor=* \
  1147. | --program-transfo=* | --program-transf=* \
  1148. | --program-trans=* | --program-tran=* \
  1149. | --progr-tra=* | --program-tr=* | --program-t=*)
  1150. program_transform_name=$ac_optarg ;;
  1151. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1152. ac_prev=pdfdir ;;
  1153. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1154. pdfdir=$ac_optarg ;;
  1155. -psdir | --psdir | --psdi | --psd | --ps)
  1156. ac_prev=psdir ;;
  1157. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1158. psdir=$ac_optarg ;;
  1159. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1160. | -silent | --silent | --silen | --sile | --sil)
  1161. silent=yes ;;
  1162. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1163. | --runstate | --runstat | --runsta | --runst | --runs \
  1164. | --run | --ru | --r)
  1165. ac_prev=runstatedir ;;
  1166. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1167. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1168. | --run=* | --ru=* | --r=*)
  1169. runstatedir=$ac_optarg ;;
  1170. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1171. ac_prev=sbindir ;;
  1172. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1173. | --sbi=* | --sb=*)
  1174. sbindir=$ac_optarg ;;
  1175. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1176. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1177. | --sharedst | --shareds | --shared | --share | --shar \
  1178. | --sha | --sh)
  1179. ac_prev=sharedstatedir ;;
  1180. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1181. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1182. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1183. | --sha=* | --sh=*)
  1184. sharedstatedir=$ac_optarg ;;
  1185. -site | --site | --sit)
  1186. ac_prev=site ;;
  1187. -site=* | --site=* | --sit=*)
  1188. site=$ac_optarg ;;
  1189. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1190. ac_prev=srcdir ;;
  1191. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1192. srcdir=$ac_optarg ;;
  1193. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1194. | --syscon | --sysco | --sysc | --sys | --sy)
  1195. ac_prev=sysconfdir ;;
  1196. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1197. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1198. sysconfdir=$ac_optarg ;;
  1199. -target | --target | --targe | --targ | --tar | --ta | --t)
  1200. ac_prev=target_alias ;;
  1201. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1202. target_alias=$ac_optarg ;;
  1203. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1204. verbose=yes ;;
  1205. -version | --version | --versio | --versi | --vers | -V)
  1206. ac_init_version=: ;;
  1207. -with-* | --with-*)
  1208. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1209. # Reject names that are not valid shell variable names.
  1210. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1211. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1212. ac_useropt_orig=$ac_useropt
  1213. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1214. case $ac_user_opts in
  1215. *"
  1216. "with_$ac_useropt"
  1217. "*) ;;
  1218. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1219. ac_unrecognized_sep=', ';;
  1220. esac
  1221. eval with_$ac_useropt=\$ac_optarg ;;
  1222. -without-* | --without-*)
  1223. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1224. # Reject names that are not valid shell variable names.
  1225. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1226. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1227. ac_useropt_orig=$ac_useropt
  1228. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1229. case $ac_user_opts in
  1230. *"
  1231. "with_$ac_useropt"
  1232. "*) ;;
  1233. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1234. ac_unrecognized_sep=', ';;
  1235. esac
  1236. eval with_$ac_useropt=no ;;
  1237. --x)
  1238. # Obsolete; use --with-x.
  1239. with_x=yes ;;
  1240. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1241. | --x-incl | --x-inc | --x-in | --x-i)
  1242. ac_prev=x_includes ;;
  1243. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1244. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1245. x_includes=$ac_optarg ;;
  1246. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1247. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1248. ac_prev=x_libraries ;;
  1249. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1250. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1251. x_libraries=$ac_optarg ;;
  1252. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1253. Try \`$0 --help' for more information"
  1254. ;;
  1255. *=*)
  1256. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1257. # Reject names that are not valid shell variable names.
  1258. case $ac_envvar in #(
  1259. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1260. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1261. esac
  1262. eval $ac_envvar=\$ac_optarg
  1263. export $ac_envvar ;;
  1264. *)
  1265. # FIXME: should be removed in autoconf 3.0.
  1266. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1267. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1268. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1269. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1270. ;;
  1271. esac
  1272. done
  1273. if test -n "$ac_prev"; then
  1274. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1275. as_fn_error $? "missing argument to $ac_option"
  1276. fi
  1277. if test -n "$ac_unrecognized_opts"; then
  1278. case $enable_option_checking in
  1279. no) ;;
  1280. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1281. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1282. esac
  1283. fi
  1284. # Check all directory arguments for consistency.
  1285. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1286. datadir sysconfdir sharedstatedir localstatedir includedir \
  1287. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1288. libdir localedir mandir runstatedir
  1289. do
  1290. eval ac_val=\$$ac_var
  1291. # Remove trailing slashes.
  1292. case $ac_val in
  1293. */ )
  1294. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1295. eval $ac_var=\$ac_val;;
  1296. esac
  1297. # Be sure to have absolute directory names.
  1298. case $ac_val in
  1299. [\\/$]* | ?:[\\/]* ) continue;;
  1300. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1301. esac
  1302. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1303. done
  1304. # There might be people who depend on the old broken behavior: `$host'
  1305. # used to hold the argument of --host etc.
  1306. # FIXME: To remove some day.
  1307. build=$build_alias
  1308. host=$host_alias
  1309. target=$target_alias
  1310. # FIXME: To remove some day.
  1311. if test "x$host_alias" != x; then
  1312. if test "x$build_alias" = x; then
  1313. cross_compiling=maybe
  1314. elif test "x$build_alias" != "x$host_alias"; then
  1315. cross_compiling=yes
  1316. fi
  1317. fi
  1318. ac_tool_prefix=
  1319. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1320. test "$silent" = yes && exec 6>/dev/null
  1321. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1322. ac_ls_di=`ls -di .` &&
  1323. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1324. as_fn_error $? "working directory cannot be determined"
  1325. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1326. as_fn_error $? "pwd does not report name of working directory"
  1327. # Find the source files, if location was not specified.
  1328. if test -z "$srcdir"; then
  1329. ac_srcdir_defaulted=yes
  1330. # Try the directory containing this script, then the parent directory.
  1331. ac_confdir=`$as_dirname -- "$as_myself" ||
  1332. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1333. X"$as_myself" : 'X\(//\)[^/]' \| \
  1334. X"$as_myself" : 'X\(//\)$' \| \
  1335. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1336. printf "%s\n" X"$as_myself" |
  1337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\/\)[^/].*/{
  1342. s//\1/
  1343. q
  1344. }
  1345. /^X\(\/\/\)$/{
  1346. s//\1/
  1347. q
  1348. }
  1349. /^X\(\/\).*/{
  1350. s//\1/
  1351. q
  1352. }
  1353. s/.*/./; q'`
  1354. srcdir=$ac_confdir
  1355. if test ! -r "$srcdir/$ac_unique_file"; then
  1356. srcdir=..
  1357. fi
  1358. else
  1359. ac_srcdir_defaulted=no
  1360. fi
  1361. if test ! -r "$srcdir/$ac_unique_file"; then
  1362. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1363. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1364. fi
  1365. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1366. ac_abs_confdir=`(
  1367. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1368. pwd)`
  1369. # When building in place, set srcdir=.
  1370. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1371. srcdir=.
  1372. fi
  1373. # Remove unnecessary trailing slashes from srcdir.
  1374. # Double slashes in file names in object file debugging info
  1375. # mess up M-x gdb in Emacs.
  1376. case $srcdir in
  1377. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1378. esac
  1379. for ac_var in $ac_precious_vars; do
  1380. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1381. eval ac_env_${ac_var}_value=\$${ac_var}
  1382. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1383. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1384. done
  1385. #
  1386. # Report the --help message.
  1387. #
  1388. if test "$ac_init_help" = "long"; then
  1389. # Omit some internal or obsolete options to make the list less imposing.
  1390. # This message is too long to be a string in the A/UX 3.1 sh.
  1391. cat <<_ACEOF
  1392. \`configure' configures this package to adapt to many kinds of systems.
  1393. Usage: $0 [OPTION]... [VAR=VALUE]...
  1394. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1395. VAR=VALUE. See below for descriptions of some of the useful variables.
  1396. Defaults for the options are specified in brackets.
  1397. Configuration:
  1398. -h, --help display this help and exit
  1399. --help=short display options specific to this package
  1400. --help=recursive display the short help of all the included packages
  1401. -V, --version display version information and exit
  1402. -q, --quiet, --silent do not print \`checking ...' messages
  1403. --cache-file=FILE cache test results in FILE [disabled]
  1404. -C, --config-cache alias for \`--cache-file=config.cache'
  1405. -n, --no-create do not create output files
  1406. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1407. Installation directories:
  1408. --prefix=PREFIX install architecture-independent files in PREFIX
  1409. [$ac_default_prefix]
  1410. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1411. [PREFIX]
  1412. By default, \`make install' will install all the files in
  1413. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1414. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1415. for instance \`--prefix=\$HOME'.
  1416. For better control, use the options below.
  1417. Fine tuning of the installation directories:
  1418. --bindir=DIR user executables [EPREFIX/bin]
  1419. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1420. --libexecdir=DIR program executables [EPREFIX/libexec]
  1421. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1422. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1423. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1424. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1425. --libdir=DIR object code libraries [EPREFIX/lib]
  1426. --includedir=DIR C header files [PREFIX/include]
  1427. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1428. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1429. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1430. --infodir=DIR info documentation [DATAROOTDIR/info]
  1431. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1432. --mandir=DIR man documentation [DATAROOTDIR/man]
  1433. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1434. --htmldir=DIR html documentation [DOCDIR]
  1435. --dvidir=DIR dvi documentation [DOCDIR]
  1436. --pdfdir=DIR pdf documentation [DOCDIR]
  1437. --psdir=DIR ps documentation [DOCDIR]
  1438. _ACEOF
  1439. cat <<\_ACEOF
  1440. X features:
  1441. --x-includes=DIR X include files are in DIR
  1442. --x-libraries=DIR X library files are in DIR
  1443. System types:
  1444. --build=BUILD configure for building on BUILD [guessed]
  1445. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1446. _ACEOF
  1447. fi
  1448. if test -n "$ac_init_help"; then
  1449. cat <<\_ACEOF
  1450. Optional Features:
  1451. --disable-option-checking ignore unrecognized --enable/--with options
  1452. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1453. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1454. --enable-shared[=PKGS] build shared libraries [default=yes]
  1455. --enable-static[=PKGS] build static libraries [default=yes]
  1456. --enable-fast-install[=PKGS]
  1457. optimize for fast installation [default=yes]
  1458. --disable-libtool-lock avoid locking (might break parallel builds)
  1459. --disable-largefile omit support for large files
  1460. --enable-assertions Enable internal sanity checks
  1461. (auto/disabled/release/enabled/paranoid)
  1462. [default=auto]
  1463. --enable-dependency-tracking
  1464. Use gcc -MMD -MT dependency tracking [default=yes]
  1465. --enable-libc Use the system C library [default=yes]
  1466. --enable-system-iconv Use iconv() from system-installed libraries
  1467. [default=yes]
  1468. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1469. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1470. --enable-audio Enable the audio subsystem [default=yes]
  1471. --enable-video Enable the video subsystem [default=yes]
  1472. --enable-render Enable the render subsystem [default=yes]
  1473. --enable-events Enable the events subsystem [default=yes]
  1474. --enable-joystick Enable the joystick subsystem [default=yes]
  1475. --enable-haptic Enable the haptic (force feedback) subsystem
  1476. [default=yes]
  1477. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1478. --enable-sensor Enable the sensor subsystem [default=yes]
  1479. --enable-power Enable the power subsystem [default=yes]
  1480. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1481. --enable-timers Enable the timer subsystem [default=yes]
  1482. --enable-file Enable the file subsystem [default=yes]
  1483. --enable-misc Enable the misc subsystem [default=yes]
  1484. --enable-locale Enable the locale subsystem [default=yes]
  1485. --enable-loadso Enable the shared object loading subsystem
  1486. [default=yes]
  1487. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1488. --enable-assembly Enable assembly routines [default=yes]
  1489. --enable-ssemath Allow GCC to use SSE floating point math
  1490. [default=maybe]
  1491. --enable-mmx use MMX assembly routines [default=yes]
  1492. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1493. --enable-sse use SSE assembly routines [default=yes]
  1494. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1495. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1496. --enable-altivec use Altivec assembly routines [default=yes]
  1497. --enable-lsx use LSX assembly routines [default=yes]
  1498. --enable-lasx use LASX assembly routines [default=yes]
  1499. --enable-oss support the OSS audio API [default=maybe]
  1500. --enable-alsa support the ALSA audio API [default=yes]
  1501. --disable-alsatest Do not try to compile and run a test Alsa program
  1502. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1503. --enable-pipewire use Pipewire audio [default=yes]
  1504. --enable-pipewire-shared
  1505. dynamically load Pipewire support [default=yes]
  1506. --enable-pulseaudio use PulseAudio [default=yes]
  1507. --enable-pulseaudio-shared
  1508. dynamically load PulseAudio support [default=yes]
  1509. --enable-diskaudio support the disk writer audio driver [default=yes]
  1510. --enable-dummyaudio support the dummy audio driver [default=yes]
  1511. --enable-libsamplerate use libsamplerate for audio rate conversion
  1512. [default=yes]
  1513. --enable-libsamplerate-shared
  1514. dynamically load libsamplerate [default=yes]
  1515. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1516. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1517. --enable-werror treat warnings as errors [default=no]
  1518. --enable-video-wayland use Wayland video driver [default=yes]
  1519. --enable-video-wayland-qt-touch
  1520. QtWayland server support for Wayland video driver
  1521. [default=yes]
  1522. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1523. --enable-libdecor use libdecor for Wayland client-side decorations
  1524. [default=yes]
  1525. --enable-libdecor-shared
  1526. dynamically load libdecor [default=yes]
  1527. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1528. --enable-video-x11 use X11 video driver [default=maybe]
  1529. --enable-x11-shared dynamically load X11 support [default=maybe]
  1530. --enable-video-x11-xcursor
  1531. enable X11 Xcursor support [default=yes]
  1532. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1533. --enable-video-x11-xinput
  1534. enable X11 XInput extension for manymouse, tablets,
  1535. etc [default=yes]
  1536. --enable-video-x11-xfixes
  1537. enable X11 Xfixes support [default=yes]
  1538. --enable-video-x11-xrandr
  1539. enable X11 Xrandr extension for fullscreen
  1540. [default=yes]
  1541. --enable-video-x11-scrnsaver
  1542. enable X11 screensaver extension [default=yes]
  1543. --enable-video-x11-xshape
  1544. enable X11 XShape support [default=yes]
  1545. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1546. --enable-video-cocoa use Cocoa video driver [default=yes]
  1547. --enable-video-metal include Metal support [default=yes]
  1548. --enable-render-metal enable the Metal render driver [default=yes]
  1549. --enable-video-directfb use DirectFB video driver [default=no]
  1550. --enable-directfb-shared
  1551. dynamically load directfb support [default=yes]
  1552. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1553. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1554. --enable-video-dummy use dummy video driver [default=yes]
  1555. --enable-video-offscreen
  1556. use offscreen video driver [default=yes]
  1557. --enable-video-opengl include OpenGL support [default=yes]
  1558. --enable-video-opengles include OpenGL ES support [default=yes]
  1559. --enable-video-opengles1
  1560. include OpenGL ES 1.1 support [default=yes]
  1561. --enable-video-opengles2
  1562. include OpenGL ES 2.0 support [default=yes]
  1563. --enable-video-vulkan include Vulkan support [default=yes]
  1564. --enable-libudev enable libudev support [default=yes]
  1565. --enable-dbus enable D-Bus support [default=yes]
  1566. --enable-ime enable IME support [default=yes]
  1567. --enable-ibus enable IBus support [default=yes]
  1568. --enable-fcitx enable fcitx support [default=yes]
  1569. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1570. --enable-pthreads use POSIX threads for multi-threading
  1571. [default=maybe]
  1572. --enable-pthread-sem use pthread semaphores [default=maybe]
  1573. --enable-directx use DirectX for Windows audio/video [default=yes]
  1574. --enable-xinput use Xinput for Windows [default=yes]
  1575. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1576. --enable-hidapi-joystick
  1577. use HIDAPI for low level joystick drivers
  1578. [default=yes]
  1579. --enable-hidapi-libusb use libusb for low level joystick drivers
  1580. [default=maybe]
  1581. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1582. UNIX [default=yes]
  1583. --enable-rpath use an rpath when linking SDL [default=yes]
  1584. --enable-backgrounding-signal
  1585. number to use for magic backgrounding signal or 'no'
  1586. [default=no]
  1587. --enable-foregrounding-signal
  1588. number to use for magic foregrounding signal or 'no'
  1589. [default=no]
  1590. --enable-joystick-virtual
  1591. enable virtual joystick APIs [default=yes]
  1592. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1593. --enable-sdl3-config Install sdl3-config [default=yes]
  1594. --enable-vendor-info=STRING
  1595. Add vendor info to SDL_REVISION
  1596. Optional Packages:
  1597. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1598. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1599. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1600. both]
  1601. --with-aix-soname=aix|svr4|both
  1602. shared library versioning (aka "SONAME") variant to
  1603. provide on AIX, [default=aix].
  1604. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1605. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1606. compiler's sysroot if not specified).
  1607. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1608. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1609. --with-x use the X Window System
  1610. Some influential environment variables:
  1611. CC C compiler command
  1612. CFLAGS C compiler flags
  1613. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1614. nonstandard directory <lib dir>
  1615. LIBS libraries to pass to the linker, e.g. -l<library>
  1616. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1617. you have headers in a nonstandard directory <include dir>
  1618. LT_SYS_LIBRARY_PATH
  1619. User-defined run-time library search path.
  1620. CXX C++ compiler command
  1621. CXXFLAGS C++ compiler flags
  1622. CXXCPP C++ preprocessor
  1623. PKG_CONFIG path to pkg-config utility
  1624. PKG_CONFIG_PATH
  1625. directories to add to pkg-config's search path
  1626. PKG_CONFIG_LIBDIR
  1627. path overriding pkg-config's built-in search path
  1628. CPP C preprocessor
  1629. PIPEWIRE_CFLAGS
  1630. C compiler flags for PIPEWIRE, overriding pkg-config
  1631. PIPEWIRE_LIBS
  1632. linker flags for PIPEWIRE, overriding pkg-config
  1633. PULSEAUDIO_CFLAGS
  1634. C compiler flags for PULSEAUDIO, overriding pkg-config
  1635. PULSEAUDIO_LIBS
  1636. linker flags for PULSEAUDIO, overriding pkg-config
  1637. DECOR_CFLAGS
  1638. C compiler flags for DECOR, overriding pkg-config
  1639. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1640. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1641. RPI_LIBS linker flags for RPI, overriding pkg-config
  1642. XMKMF Path to xmkmf, Makefile generator for X Window System
  1643. DIRECTFB_CFLAGS
  1644. C compiler flags for DIRECTFB, overriding pkg-config
  1645. DIRECTFB_LIBS
  1646. linker flags for DIRECTFB, overriding pkg-config
  1647. LIBDRM_CFLAGS
  1648. C compiler flags for LIBDRM, overriding pkg-config
  1649. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1650. LIBGBM_CFLAGS
  1651. C compiler flags for LIBGBM, overriding pkg-config
  1652. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1653. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1654. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1655. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1656. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1657. LIBUSB_CFLAGS
  1658. C compiler flags for LIBUSB, overriding pkg-config
  1659. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1660. Use these variables to override the choices made by `configure' or to help
  1661. it to find libraries and programs with nonstandard names/locations.
  1662. Report bugs to the package provider.
  1663. _ACEOF
  1664. ac_status=$?
  1665. fi
  1666. if test "$ac_init_help" = "recursive"; then
  1667. # If there are subdirs, report their specific --help.
  1668. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1669. test -d "$ac_dir" ||
  1670. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1671. continue
  1672. ac_builddir=.
  1673. case "$ac_dir" in
  1674. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1675. *)
  1676. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1677. # A ".." for each directory in $ac_dir_suffix.
  1678. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1679. case $ac_top_builddir_sub in
  1680. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1681. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1682. esac ;;
  1683. esac
  1684. ac_abs_top_builddir=$ac_pwd
  1685. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1686. # for backward compatibility:
  1687. ac_top_builddir=$ac_top_build_prefix
  1688. case $srcdir in
  1689. .) # We are building in place.
  1690. ac_srcdir=.
  1691. ac_top_srcdir=$ac_top_builddir_sub
  1692. ac_abs_top_srcdir=$ac_pwd ;;
  1693. [\\/]* | ?:[\\/]* ) # Absolute name.
  1694. ac_srcdir=$srcdir$ac_dir_suffix;
  1695. ac_top_srcdir=$srcdir
  1696. ac_abs_top_srcdir=$srcdir ;;
  1697. *) # Relative name.
  1698. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1699. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1700. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1701. esac
  1702. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1703. cd "$ac_dir" || { ac_status=$?; continue; }
  1704. # Check for configure.gnu first; this name is used for a wrapper for
  1705. # Metaconfig's "Configure" on case-insensitive file systems.
  1706. if test -f "$ac_srcdir/configure.gnu"; then
  1707. echo &&
  1708. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1709. elif test -f "$ac_srcdir/configure"; then
  1710. echo &&
  1711. $SHELL "$ac_srcdir/configure" --help=recursive
  1712. else
  1713. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1714. fi || ac_status=$?
  1715. cd "$ac_pwd" || { ac_status=$?; break; }
  1716. done
  1717. fi
  1718. test -n "$ac_init_help" && exit $ac_status
  1719. if $ac_init_version; then
  1720. cat <<\_ACEOF
  1721. configure
  1722. generated by GNU Autoconf 2.71
  1723. Copyright (C) 2021 Free Software Foundation, Inc.
  1724. This configure script is free software; the Free Software Foundation
  1725. gives unlimited permission to copy, distribute and modify it.
  1726. _ACEOF
  1727. exit
  1728. fi
  1729. ## ------------------------ ##
  1730. ## Autoconf initialization. ##
  1731. ## ------------------------ ##
  1732. # ac_fn_c_try_compile LINENO
  1733. # --------------------------
  1734. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_c_try_compile ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext conftest.beam
  1739. if { { ac_try="$ac_compile"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. printf "%s\n" "$ac_try_echo"; } >&5
  1746. (eval "$ac_compile") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_c_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest.$ac_objext
  1758. then :
  1759. ac_retval=0
  1760. else $as_nop
  1761. printf "%s\n" "$as_me: failed program was:" >&5
  1762. sed 's/^/| /' conftest.$ac_ext >&5
  1763. ac_retval=1
  1764. fi
  1765. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1766. as_fn_set_status $ac_retval
  1767. } # ac_fn_c_try_compile
  1768. # ac_fn_c_try_link LINENO
  1769. # -----------------------
  1770. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1771. ac_fn_c_try_link ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1775. if { { ac_try="$ac_link"
  1776. case "(($ac_try" in
  1777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1778. *) ac_try_echo=$ac_try;;
  1779. esac
  1780. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1781. printf "%s\n" "$ac_try_echo"; } >&5
  1782. (eval "$ac_link") 2>conftest.err
  1783. ac_status=$?
  1784. if test -s conftest.err; then
  1785. grep -v '^ *+' conftest.err >conftest.er1
  1786. cat conftest.er1 >&5
  1787. mv -f conftest.er1 conftest.err
  1788. fi
  1789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1790. test $ac_status = 0; } && {
  1791. test -z "$ac_c_werror_flag" ||
  1792. test ! -s conftest.err
  1793. } && test -s conftest$ac_exeext && {
  1794. test "$cross_compiling" = yes ||
  1795. test -x conftest$ac_exeext
  1796. }
  1797. then :
  1798. ac_retval=0
  1799. else $as_nop
  1800. printf "%s\n" "$as_me: failed program was:" >&5
  1801. sed 's/^/| /' conftest.$ac_ext >&5
  1802. ac_retval=1
  1803. fi
  1804. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1805. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1806. # interfere with the next link command; also delete a directory that is
  1807. # left behind by Apple's compiler. We do this before executing the actions.
  1808. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_c_try_link
  1812. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1813. # -------------------------------------------------------
  1814. # Tests whether HEADER exists and can be compiled using the include files in
  1815. # INCLUDES, setting the cache variable VAR accordingly.
  1816. ac_fn_c_check_header_compile ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1820. printf %s "checking for $2... " >&6; }
  1821. if eval test \${$3+y}
  1822. then :
  1823. printf %s "(cached) " >&6
  1824. else $as_nop
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. #include <$2>
  1829. _ACEOF
  1830. if ac_fn_c_try_compile "$LINENO"
  1831. then :
  1832. eval "$3=yes"
  1833. else $as_nop
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. printf "%s\n" "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_check_func LINENO FUNC VAR
  1844. # ----------------------------------
  1845. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1846. ac_fn_c_check_func ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1850. printf %s "checking for $2... " >&6; }
  1851. if eval test \${$3+y}
  1852. then :
  1853. printf %s "(cached) " >&6
  1854. else $as_nop
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1859. #define $2 innocuous_$2
  1860. /* System header to define __stub macros and hopefully few prototypes,
  1861. which can conflict with char $2 (); below. */
  1862. #include <limits.h>
  1863. #undef $2
  1864. /* Override any GCC internal prototype to avoid an error.
  1865. Use char because int might match the return type of a GCC
  1866. builtin and then its argument prototype would still apply. */
  1867. #ifdef __cplusplus
  1868. extern "C"
  1869. #endif
  1870. char $2 ();
  1871. /* The GNU C library defines this for functions which it implements
  1872. to always fail with ENOSYS. Some functions are actually named
  1873. something starting with __ and the normal name is an alias. */
  1874. #if defined __stub_$2 || defined __stub___$2
  1875. choke me
  1876. #endif
  1877. int
  1878. main (void)
  1879. {
  1880. return $2 ();
  1881. ;
  1882. return 0;
  1883. }
  1884. _ACEOF
  1885. if ac_fn_c_try_link "$LINENO"
  1886. then :
  1887. eval "$3=yes"
  1888. else $as_nop
  1889. eval "$3=no"
  1890. fi
  1891. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1892. conftest$ac_exeext conftest.$ac_ext
  1893. fi
  1894. eval ac_res=\$$3
  1895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1896. printf "%s\n" "$ac_res" >&6; }
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. } # ac_fn_c_check_func
  1899. # ac_fn_cxx_try_compile LINENO
  1900. # ----------------------------
  1901. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1902. ac_fn_cxx_try_compile ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. rm -f conftest.$ac_objext conftest.beam
  1906. if { { ac_try="$ac_compile"
  1907. case "(($ac_try" in
  1908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1909. *) ac_try_echo=$ac_try;;
  1910. esac
  1911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1912. printf "%s\n" "$ac_try_echo"; } >&5
  1913. (eval "$ac_compile") 2>conftest.err
  1914. ac_status=$?
  1915. if test -s conftest.err; then
  1916. grep -v '^ *+' conftest.err >conftest.er1
  1917. cat conftest.er1 >&5
  1918. mv -f conftest.er1 conftest.err
  1919. fi
  1920. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1921. test $ac_status = 0; } && {
  1922. test -z "$ac_cxx_werror_flag" ||
  1923. test ! -s conftest.err
  1924. } && test -s conftest.$ac_objext
  1925. then :
  1926. ac_retval=0
  1927. else $as_nop
  1928. printf "%s\n" "$as_me: failed program was:" >&5
  1929. sed 's/^/| /' conftest.$ac_ext >&5
  1930. ac_retval=1
  1931. fi
  1932. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1933. as_fn_set_status $ac_retval
  1934. } # ac_fn_cxx_try_compile
  1935. # ac_fn_cxx_try_cpp LINENO
  1936. # ------------------------
  1937. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1938. ac_fn_cxx_try_cpp ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1942. case "(($ac_try" in
  1943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1944. *) ac_try_echo=$ac_try;;
  1945. esac
  1946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1947. printf "%s\n" "$ac_try_echo"; } >&5
  1948. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1949. ac_status=$?
  1950. if test -s conftest.err; then
  1951. grep -v '^ *+' conftest.err >conftest.er1
  1952. cat conftest.er1 >&5
  1953. mv -f conftest.er1 conftest.err
  1954. fi
  1955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1956. test $ac_status = 0; } > conftest.i && {
  1957. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1958. test ! -s conftest.err
  1959. }
  1960. then :
  1961. ac_retval=0
  1962. else $as_nop
  1963. printf "%s\n" "$as_me: failed program was:" >&5
  1964. sed 's/^/| /' conftest.$ac_ext >&5
  1965. ac_retval=1
  1966. fi
  1967. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1968. as_fn_set_status $ac_retval
  1969. } # ac_fn_cxx_try_cpp
  1970. # ac_fn_cxx_try_link LINENO
  1971. # -------------------------
  1972. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1973. ac_fn_cxx_try_link ()
  1974. {
  1975. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1976. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1977. if { { ac_try="$ac_link"
  1978. case "(($ac_try" in
  1979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1980. *) ac_try_echo=$ac_try;;
  1981. esac
  1982. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1983. printf "%s\n" "$ac_try_echo"; } >&5
  1984. (eval "$ac_link") 2>conftest.err
  1985. ac_status=$?
  1986. if test -s conftest.err; then
  1987. grep -v '^ *+' conftest.err >conftest.er1
  1988. cat conftest.er1 >&5
  1989. mv -f conftest.er1 conftest.err
  1990. fi
  1991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1992. test $ac_status = 0; } && {
  1993. test -z "$ac_cxx_werror_flag" ||
  1994. test ! -s conftest.err
  1995. } && test -s conftest$ac_exeext && {
  1996. test "$cross_compiling" = yes ||
  1997. test -x conftest$ac_exeext
  1998. }
  1999. then :
  2000. ac_retval=0
  2001. else $as_nop
  2002. printf "%s\n" "$as_me: failed program was:" >&5
  2003. sed 's/^/| /' conftest.$ac_ext >&5
  2004. ac_retval=1
  2005. fi
  2006. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2007. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2008. # interfere with the next link command; also delete a directory that is
  2009. # left behind by Apple's compiler. We do this before executing the actions.
  2010. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2011. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2012. as_fn_set_status $ac_retval
  2013. } # ac_fn_cxx_try_link
  2014. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2015. # -------------------------------------------
  2016. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2017. # variable VAR accordingly.
  2018. ac_fn_c_check_type ()
  2019. {
  2020. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2022. printf %s "checking for $2... " >&6; }
  2023. if eval test \${$3+y}
  2024. then :
  2025. printf %s "(cached) " >&6
  2026. else $as_nop
  2027. eval "$3=no"
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. int
  2032. main (void)
  2033. {
  2034. if (sizeof ($2))
  2035. return 0;
  2036. ;
  2037. return 0;
  2038. }
  2039. _ACEOF
  2040. if ac_fn_c_try_compile "$LINENO"
  2041. then :
  2042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2043. /* end confdefs.h. */
  2044. $4
  2045. int
  2046. main (void)
  2047. {
  2048. if (sizeof (($2)))
  2049. return 0;
  2050. ;
  2051. return 0;
  2052. }
  2053. _ACEOF
  2054. if ac_fn_c_try_compile "$LINENO"
  2055. then :
  2056. else $as_nop
  2057. eval "$3=yes"
  2058. fi
  2059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2060. fi
  2061. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2062. fi
  2063. eval ac_res=\$$3
  2064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2065. printf "%s\n" "$ac_res" >&6; }
  2066. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2067. } # ac_fn_c_check_type
  2068. # ac_fn_c_try_cpp LINENO
  2069. # ----------------------
  2070. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2071. ac_fn_c_try_cpp ()
  2072. {
  2073. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2074. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2075. case "(($ac_try" in
  2076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2077. *) ac_try_echo=$ac_try;;
  2078. esac
  2079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2080. printf "%s\n" "$ac_try_echo"; } >&5
  2081. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2082. ac_status=$?
  2083. if test -s conftest.err; then
  2084. grep -v '^ *+' conftest.err >conftest.er1
  2085. cat conftest.er1 >&5
  2086. mv -f conftest.er1 conftest.err
  2087. fi
  2088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2089. test $ac_status = 0; } > conftest.i && {
  2090. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2091. test ! -s conftest.err
  2092. }
  2093. then :
  2094. ac_retval=0
  2095. else $as_nop
  2096. printf "%s\n" "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. ac_retval=1
  2099. fi
  2100. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2101. as_fn_set_status $ac_retval
  2102. } # ac_fn_c_try_cpp
  2103. # ac_fn_c_try_run LINENO
  2104. # ----------------------
  2105. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2106. # executables *can* be run.
  2107. ac_fn_c_try_run ()
  2108. {
  2109. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2110. if { { ac_try="$ac_link"
  2111. case "(($ac_try" in
  2112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2113. *) ac_try_echo=$ac_try;;
  2114. esac
  2115. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2116. printf "%s\n" "$ac_try_echo"; } >&5
  2117. (eval "$ac_link") 2>&5
  2118. ac_status=$?
  2119. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2120. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2121. { { case "(($ac_try" in
  2122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2123. *) ac_try_echo=$ac_try;;
  2124. esac
  2125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2126. printf "%s\n" "$ac_try_echo"; } >&5
  2127. (eval "$ac_try") 2>&5
  2128. ac_status=$?
  2129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2130. test $ac_status = 0; }; }
  2131. then :
  2132. ac_retval=0
  2133. else $as_nop
  2134. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2135. printf "%s\n" "$as_me: failed program was:" >&5
  2136. sed 's/^/| /' conftest.$ac_ext >&5
  2137. ac_retval=$ac_status
  2138. fi
  2139. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2140. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2141. as_fn_set_status $ac_retval
  2142. } # ac_fn_c_try_run
  2143. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2144. # ----------------------------------------------------
  2145. # Tries to find if the field MEMBER exists in type AGGR, after including
  2146. # INCLUDES, setting cache variable VAR accordingly.
  2147. ac_fn_c_check_member ()
  2148. {
  2149. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2151. printf %s "checking for $2.$3... " >&6; }
  2152. if eval test \${$4+y}
  2153. then :
  2154. printf %s "(cached) " >&6
  2155. else $as_nop
  2156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2157. /* end confdefs.h. */
  2158. $5
  2159. int
  2160. main (void)
  2161. {
  2162. static $2 ac_aggr;
  2163. if (ac_aggr.$3)
  2164. return 0;
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. if ac_fn_c_try_compile "$LINENO"
  2170. then :
  2171. eval "$4=yes"
  2172. else $as_nop
  2173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2174. /* end confdefs.h. */
  2175. $5
  2176. int
  2177. main (void)
  2178. {
  2179. static $2 ac_aggr;
  2180. if (sizeof ac_aggr.$3)
  2181. return 0;
  2182. ;
  2183. return 0;
  2184. }
  2185. _ACEOF
  2186. if ac_fn_c_try_compile "$LINENO"
  2187. then :
  2188. eval "$4=yes"
  2189. else $as_nop
  2190. eval "$4=no"
  2191. fi
  2192. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2193. fi
  2194. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2195. fi
  2196. eval ac_res=\$$4
  2197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2198. printf "%s\n" "$ac_res" >&6; }
  2199. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2200. } # ac_fn_c_check_member
  2201. ac_configure_args_raw=
  2202. for ac_arg
  2203. do
  2204. case $ac_arg in
  2205. *\'*)
  2206. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2207. esac
  2208. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2209. done
  2210. case $ac_configure_args_raw in
  2211. *$as_nl*)
  2212. ac_safe_unquote= ;;
  2213. *)
  2214. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2215. ac_unsafe_a="$ac_unsafe_z#~"
  2216. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2217. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2218. esac
  2219. cat >config.log <<_ACEOF
  2220. This file contains any messages produced by compilers while
  2221. running configure, to aid debugging if configure makes a mistake.
  2222. It was created by $as_me, which was
  2223. generated by GNU Autoconf 2.71. Invocation command line was
  2224. $ $0$ac_configure_args_raw
  2225. _ACEOF
  2226. exec 5>>config.log
  2227. {
  2228. cat <<_ASUNAME
  2229. ## --------- ##
  2230. ## Platform. ##
  2231. ## --------- ##
  2232. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2233. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2234. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2235. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2236. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2237. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2238. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2239. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2240. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2241. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2242. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2243. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2244. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2245. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2246. _ASUNAME
  2247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2248. for as_dir in $PATH
  2249. do
  2250. IFS=$as_save_IFS
  2251. case $as_dir in #(((
  2252. '') as_dir=./ ;;
  2253. */) ;;
  2254. *) as_dir=$as_dir/ ;;
  2255. esac
  2256. printf "%s\n" "PATH: $as_dir"
  2257. done
  2258. IFS=$as_save_IFS
  2259. } >&5
  2260. cat >&5 <<_ACEOF
  2261. ## ----------- ##
  2262. ## Core tests. ##
  2263. ## ----------- ##
  2264. _ACEOF
  2265. # Keep a trace of the command line.
  2266. # Strip out --no-create and --no-recursion so they do not pile up.
  2267. # Strip out --silent because we don't want to record it for future runs.
  2268. # Also quote any args containing shell meta-characters.
  2269. # Make two passes to allow for proper duplicate-argument suppression.
  2270. ac_configure_args=
  2271. ac_configure_args0=
  2272. ac_configure_args1=
  2273. ac_must_keep_next=false
  2274. for ac_pass in 1 2
  2275. do
  2276. for ac_arg
  2277. do
  2278. case $ac_arg in
  2279. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2280. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2281. | -silent | --silent | --silen | --sile | --sil)
  2282. continue ;;
  2283. *\'*)
  2284. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2285. esac
  2286. case $ac_pass in
  2287. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2288. 2)
  2289. as_fn_append ac_configure_args1 " '$ac_arg'"
  2290. if test $ac_must_keep_next = true; then
  2291. ac_must_keep_next=false # Got value, back to normal.
  2292. else
  2293. case $ac_arg in
  2294. *=* | --config-cache | -C | -disable-* | --disable-* \
  2295. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2296. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2297. | -with-* | --with-* | -without-* | --without-* | --x)
  2298. case "$ac_configure_args0 " in
  2299. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2300. esac
  2301. ;;
  2302. -* ) ac_must_keep_next=true ;;
  2303. esac
  2304. fi
  2305. as_fn_append ac_configure_args " '$ac_arg'"
  2306. ;;
  2307. esac
  2308. done
  2309. done
  2310. { ac_configure_args0=; unset ac_configure_args0;}
  2311. { ac_configure_args1=; unset ac_configure_args1;}
  2312. # When interrupted or exit'd, cleanup temporary files, and complete
  2313. # config.log. We remove comments because anyway the quotes in there
  2314. # would cause problems or look ugly.
  2315. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2316. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2317. trap 'exit_status=$?
  2318. # Sanitize IFS.
  2319. IFS=" "" $as_nl"
  2320. # Save into config.log some information that might help in debugging.
  2321. {
  2322. echo
  2323. printf "%s\n" "## ---------------- ##
  2324. ## Cache variables. ##
  2325. ## ---------------- ##"
  2326. echo
  2327. # The following way of writing the cache mishandles newlines in values,
  2328. (
  2329. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2330. eval ac_val=\$$ac_var
  2331. case $ac_val in #(
  2332. *${as_nl}*)
  2333. case $ac_var in #(
  2334. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2335. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2336. esac
  2337. case $ac_var in #(
  2338. _ | IFS | as_nl) ;; #(
  2339. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2340. *) { eval $ac_var=; unset $ac_var;} ;;
  2341. esac ;;
  2342. esac
  2343. done
  2344. (set) 2>&1 |
  2345. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2346. *${as_nl}ac_space=\ *)
  2347. sed -n \
  2348. "s/'\''/'\''\\\\'\'''\''/g;
  2349. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2350. ;; #(
  2351. *)
  2352. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2353. ;;
  2354. esac |
  2355. sort
  2356. )
  2357. echo
  2358. printf "%s\n" "## ----------------- ##
  2359. ## Output variables. ##
  2360. ## ----------------- ##"
  2361. echo
  2362. for ac_var in $ac_subst_vars
  2363. do
  2364. eval ac_val=\$$ac_var
  2365. case $ac_val in
  2366. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2367. esac
  2368. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2369. done | sort
  2370. echo
  2371. if test -n "$ac_subst_files"; then
  2372. printf "%s\n" "## ------------------- ##
  2373. ## File substitutions. ##
  2374. ## ------------------- ##"
  2375. echo
  2376. for ac_var in $ac_subst_files
  2377. do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in
  2380. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2381. esac
  2382. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2383. done | sort
  2384. echo
  2385. fi
  2386. if test -s confdefs.h; then
  2387. printf "%s\n" "## ----------- ##
  2388. ## confdefs.h. ##
  2389. ## ----------- ##"
  2390. echo
  2391. cat confdefs.h
  2392. echo
  2393. fi
  2394. test "$ac_signal" != 0 &&
  2395. printf "%s\n" "$as_me: caught signal $ac_signal"
  2396. printf "%s\n" "$as_me: exit $exit_status"
  2397. } >&5
  2398. rm -f core *.core core.conftest.* &&
  2399. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2400. exit $exit_status
  2401. ' 0
  2402. for ac_signal in 1 2 13 15; do
  2403. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2404. done
  2405. ac_signal=0
  2406. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2407. rm -f -r conftest* confdefs.h
  2408. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2409. # Predefined preprocessor variables.
  2410. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2411. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2412. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2413. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2414. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2415. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2416. # Let the site file select an alternate cache file if it wants to.
  2417. # Prefer an explicitly selected file to automatically selected ones.
  2418. if test -n "$CONFIG_SITE"; then
  2419. ac_site_files="$CONFIG_SITE"
  2420. elif test "x$prefix" != xNONE; then
  2421. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2422. else
  2423. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2424. fi
  2425. for ac_site_file in $ac_site_files
  2426. do
  2427. case $ac_site_file in #(
  2428. */*) :
  2429. ;; #(
  2430. *) :
  2431. ac_site_file=./$ac_site_file ;;
  2432. esac
  2433. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2435. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2436. sed 's/^/| /' "$ac_site_file" >&5
  2437. . "$ac_site_file" \
  2438. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2439. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2440. as_fn_error $? "failed to load site script $ac_site_file
  2441. See \`config.log' for more details" "$LINENO" 5; }
  2442. fi
  2443. done
  2444. if test -r "$cache_file"; then
  2445. # Some versions of bash will fail to source /dev/null (special files
  2446. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2447. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2449. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2450. case $cache_file in
  2451. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2452. *) . "./$cache_file";;
  2453. esac
  2454. fi
  2455. else
  2456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2457. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2458. >$cache_file
  2459. fi
  2460. # Test code for whether the C compiler supports C89 (global declarations)
  2461. ac_c_conftest_c89_globals='
  2462. /* Does the compiler advertise C89 conformance?
  2463. Do not test the value of __STDC__, because some compilers set it to 0
  2464. while being otherwise adequately conformant. */
  2465. #if !defined __STDC__
  2466. # error "Compiler does not advertise C89 conformance"
  2467. #endif
  2468. #include <stddef.h>
  2469. #include <stdarg.h>
  2470. struct stat;
  2471. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2472. struct buf { int x; };
  2473. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2474. static char *e (p, i)
  2475. char **p;
  2476. int i;
  2477. {
  2478. return p[i];
  2479. }
  2480. static char *f (char * (*g) (char **, int), char **p, ...)
  2481. {
  2482. char *s;
  2483. va_list v;
  2484. va_start (v,p);
  2485. s = g (p, va_arg (v,int));
  2486. va_end (v);
  2487. return s;
  2488. }
  2489. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2490. function prototypes and stuff, but not \xHH hex character constants.
  2491. These do not provoke an error unfortunately, instead are silently treated
  2492. as an "x". The following induces an error, until -std is added to get
  2493. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2494. array size at least. It is necessary to write \x00 == 0 to get something
  2495. that is true only with -std. */
  2496. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2497. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2498. inside strings and character constants. */
  2499. #define FOO(x) '\''x'\''
  2500. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2501. int test (int i, double x);
  2502. struct s1 {int (*f) (int a);};
  2503. struct s2 {int (*f) (double a);};
  2504. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2505. int, int);'
  2506. # Test code for whether the C compiler supports C89 (body of main).
  2507. ac_c_conftest_c89_main='
  2508. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2509. '
  2510. # Test code for whether the C compiler supports C99 (global declarations)
  2511. ac_c_conftest_c99_globals='
  2512. // Does the compiler advertise C99 conformance?
  2513. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2514. # error "Compiler does not advertise C99 conformance"
  2515. #endif
  2516. #include <stdbool.h>
  2517. extern int puts (const char *);
  2518. extern int printf (const char *, ...);
  2519. extern int dprintf (int, const char *, ...);
  2520. extern void *malloc (size_t);
  2521. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2522. // dprintf is used instead of fprintf to avoid needing to declare
  2523. // FILE and stderr.
  2524. #define debug(...) dprintf (2, __VA_ARGS__)
  2525. #define showlist(...) puts (#__VA_ARGS__)
  2526. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2527. static void
  2528. test_varargs_macros (void)
  2529. {
  2530. int x = 1234;
  2531. int y = 5678;
  2532. debug ("Flag");
  2533. debug ("X = %d\n", x);
  2534. showlist (The first, second, and third items.);
  2535. report (x>y, "x is %d but y is %d", x, y);
  2536. }
  2537. // Check long long types.
  2538. #define BIG64 18446744073709551615ull
  2539. #define BIG32 4294967295ul
  2540. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2541. #if !BIG_OK
  2542. #error "your preprocessor is broken"
  2543. #endif
  2544. #if BIG_OK
  2545. #else
  2546. #error "your preprocessor is broken"
  2547. #endif
  2548. static long long int bignum = -9223372036854775807LL;
  2549. static unsigned long long int ubignum = BIG64;
  2550. struct incomplete_array
  2551. {
  2552. int datasize;
  2553. double data[];
  2554. };
  2555. struct named_init {
  2556. int number;
  2557. const wchar_t *name;
  2558. double average;
  2559. };
  2560. typedef const char *ccp;
  2561. static inline int
  2562. test_restrict (ccp restrict text)
  2563. {
  2564. // See if C++-style comments work.
  2565. // Iterate through items via the restricted pointer.
  2566. // Also check for declarations in for loops.
  2567. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2568. continue;
  2569. return 0;
  2570. }
  2571. // Check varargs and va_copy.
  2572. static bool
  2573. test_varargs (const char *format, ...)
  2574. {
  2575. va_list args;
  2576. va_start (args, format);
  2577. va_list args_copy;
  2578. va_copy (args_copy, args);
  2579. const char *str = "";
  2580. int number = 0;
  2581. float fnumber = 0;
  2582. while (*format)
  2583. {
  2584. switch (*format++)
  2585. {
  2586. case '\''s'\'': // string
  2587. str = va_arg (args_copy, const char *);
  2588. break;
  2589. case '\''d'\'': // int
  2590. number = va_arg (args_copy, int);
  2591. break;
  2592. case '\''f'\'': // float
  2593. fnumber = va_arg (args_copy, double);
  2594. break;
  2595. default:
  2596. break;
  2597. }
  2598. }
  2599. va_end (args_copy);
  2600. va_end (args);
  2601. return *str && number && fnumber;
  2602. }
  2603. '
  2604. # Test code for whether the C compiler supports C99 (body of main).
  2605. ac_c_conftest_c99_main='
  2606. // Check bool.
  2607. _Bool success = false;
  2608. success |= (argc != 0);
  2609. // Check restrict.
  2610. if (test_restrict ("String literal") == 0)
  2611. success = true;
  2612. char *restrict newvar = "Another string";
  2613. // Check varargs.
  2614. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2615. test_varargs_macros ();
  2616. // Check flexible array members.
  2617. struct incomplete_array *ia =
  2618. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2619. ia->datasize = 10;
  2620. for (int i = 0; i < ia->datasize; ++i)
  2621. ia->data[i] = i * 1.234;
  2622. // Check named initializers.
  2623. struct named_init ni = {
  2624. .number = 34,
  2625. .name = L"Test wide string",
  2626. .average = 543.34343,
  2627. };
  2628. ni.number = 58;
  2629. int dynamic_array[ni.number];
  2630. dynamic_array[0] = argv[0][0];
  2631. dynamic_array[ni.number - 1] = 543;
  2632. // work around unused variable warnings
  2633. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2634. || dynamic_array[ni.number - 1] != 543);
  2635. '
  2636. # Test code for whether the C compiler supports C11 (global declarations)
  2637. ac_c_conftest_c11_globals='
  2638. // Does the compiler advertise C11 conformance?
  2639. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2640. # error "Compiler does not advertise C11 conformance"
  2641. #endif
  2642. // Check _Alignas.
  2643. char _Alignas (double) aligned_as_double;
  2644. char _Alignas (0) no_special_alignment;
  2645. extern char aligned_as_int;
  2646. char _Alignas (0) _Alignas (int) aligned_as_int;
  2647. // Check _Alignof.
  2648. enum
  2649. {
  2650. int_alignment = _Alignof (int),
  2651. int_array_alignment = _Alignof (int[100]),
  2652. char_alignment = _Alignof (char)
  2653. };
  2654. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2655. // Check _Noreturn.
  2656. int _Noreturn does_not_return (void) { for (;;) continue; }
  2657. // Check _Static_assert.
  2658. struct test_static_assert
  2659. {
  2660. int x;
  2661. _Static_assert (sizeof (int) <= sizeof (long int),
  2662. "_Static_assert does not work in struct");
  2663. long int y;
  2664. };
  2665. // Check UTF-8 literals.
  2666. #define u8 syntax error!
  2667. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2668. // Check duplicate typedefs.
  2669. typedef long *long_ptr;
  2670. typedef long int *long_ptr;
  2671. typedef long_ptr long_ptr;
  2672. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2673. struct anonymous
  2674. {
  2675. union {
  2676. struct { int i; int j; };
  2677. struct { int k; long int l; } w;
  2678. };
  2679. int m;
  2680. } v1;
  2681. '
  2682. # Test code for whether the C compiler supports C11 (body of main).
  2683. ac_c_conftest_c11_main='
  2684. _Static_assert ((offsetof (struct anonymous, i)
  2685. == offsetof (struct anonymous, w.k)),
  2686. "Anonymous union alignment botch");
  2687. v1.i = 2;
  2688. v1.w.k = 5;
  2689. ok |= v1.i != 5;
  2690. '
  2691. # Test code for whether the C compiler supports C11 (complete).
  2692. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2693. ${ac_c_conftest_c99_globals}
  2694. ${ac_c_conftest_c11_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. ${ac_c_conftest_c11_main}
  2702. return ok;
  2703. }
  2704. "
  2705. # Test code for whether the C compiler supports C99 (complete).
  2706. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2707. ${ac_c_conftest_c99_globals}
  2708. int
  2709. main (int argc, char **argv)
  2710. {
  2711. int ok = 0;
  2712. ${ac_c_conftest_c89_main}
  2713. ${ac_c_conftest_c99_main}
  2714. return ok;
  2715. }
  2716. "
  2717. # Test code for whether the C compiler supports C89 (complete).
  2718. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2719. int
  2720. main (int argc, char **argv)
  2721. {
  2722. int ok = 0;
  2723. ${ac_c_conftest_c89_main}
  2724. return ok;
  2725. }
  2726. "
  2727. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2728. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2729. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2730. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2731. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2732. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2733. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2734. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2735. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2736. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2737. ac_cxx_conftest_cxx98_globals='
  2738. // Does the compiler advertise C++98 conformance?
  2739. #if !defined __cplusplus || __cplusplus < 199711L
  2740. # error "Compiler does not advertise C++98 conformance"
  2741. #endif
  2742. // These inclusions are to reject old compilers that
  2743. // lack the unsuffixed header files.
  2744. #include <cstdlib>
  2745. #include <exception>
  2746. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2747. extern void assert (int);
  2748. namespace std {
  2749. extern int strcmp (const char *, const char *);
  2750. }
  2751. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2752. using std::exception;
  2753. using std::strcmp;
  2754. namespace {
  2755. void test_exception_syntax()
  2756. {
  2757. try {
  2758. throw "test";
  2759. } catch (const char *s) {
  2760. // Extra parentheses suppress a warning when building autoconf itself,
  2761. // due to lint rules shared with more typical C programs.
  2762. assert (!(strcmp) (s, "test"));
  2763. }
  2764. }
  2765. template <typename T> struct test_template
  2766. {
  2767. T const val;
  2768. explicit test_template(T t) : val(t) {}
  2769. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2770. };
  2771. } // anonymous namespace
  2772. '
  2773. # Test code for whether the C++ compiler supports C++98 (body of main)
  2774. ac_cxx_conftest_cxx98_main='
  2775. assert (argc);
  2776. assert (! argv[0]);
  2777. {
  2778. test_exception_syntax ();
  2779. test_template<double> tt (2.0);
  2780. assert (tt.add (4) == 6.0);
  2781. assert (true && !false);
  2782. }
  2783. '
  2784. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2785. ac_cxx_conftest_cxx11_globals='
  2786. // Does the compiler advertise C++ 2011 conformance?
  2787. #if !defined __cplusplus || __cplusplus < 201103L
  2788. # error "Compiler does not advertise C++11 conformance"
  2789. #endif
  2790. namespace cxx11test
  2791. {
  2792. constexpr int get_val() { return 20; }
  2793. struct testinit
  2794. {
  2795. int i;
  2796. double d;
  2797. };
  2798. class delegate
  2799. {
  2800. public:
  2801. delegate(int n) : n(n) {}
  2802. delegate(): delegate(2354) {}
  2803. virtual int getval() { return this->n; };
  2804. protected:
  2805. int n;
  2806. };
  2807. class overridden : public delegate
  2808. {
  2809. public:
  2810. overridden(int n): delegate(n) {}
  2811. virtual int getval() override final { return this->n * 2; }
  2812. };
  2813. class nocopy
  2814. {
  2815. public:
  2816. nocopy(int i): i(i) {}
  2817. nocopy() = default;
  2818. nocopy(const nocopy&) = delete;
  2819. nocopy & operator=(const nocopy&) = delete;
  2820. private:
  2821. int i;
  2822. };
  2823. // for testing lambda expressions
  2824. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2825. {
  2826. return f(v);
  2827. }
  2828. // for testing variadic templates and trailing return types
  2829. template <typename V> auto sum(V first) -> V
  2830. {
  2831. return first;
  2832. }
  2833. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2834. {
  2835. return first + sum(rest...);
  2836. }
  2837. }
  2838. '
  2839. # Test code for whether the C++ compiler supports C++11 (body of main)
  2840. ac_cxx_conftest_cxx11_main='
  2841. {
  2842. // Test auto and decltype
  2843. auto a1 = 6538;
  2844. auto a2 = 48573953.4;
  2845. auto a3 = "String literal";
  2846. int total = 0;
  2847. for (auto i = a3; *i; ++i) { total += *i; }
  2848. decltype(a2) a4 = 34895.034;
  2849. }
  2850. {
  2851. // Test constexpr
  2852. short sa[cxx11test::get_val()] = { 0 };
  2853. }
  2854. {
  2855. // Test initializer lists
  2856. cxx11test::testinit il = { 4323, 435234.23544 };
  2857. }
  2858. {
  2859. // Test range-based for
  2860. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2861. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2862. for (auto &x : array) { x += 23; }
  2863. }
  2864. {
  2865. // Test lambda expressions
  2866. using cxx11test::eval;
  2867. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2868. double d = 2.0;
  2869. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2870. assert (d == 5.0);
  2871. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2872. assert (d == 5.0);
  2873. }
  2874. {
  2875. // Test use of variadic templates
  2876. using cxx11test::sum;
  2877. auto a = sum(1);
  2878. auto b = sum(1, 2);
  2879. auto c = sum(1.0, 2.0, 3.0);
  2880. }
  2881. {
  2882. // Test constructor delegation
  2883. cxx11test::delegate d1;
  2884. cxx11test::delegate d2();
  2885. cxx11test::delegate d3(45);
  2886. }
  2887. {
  2888. // Test override and final
  2889. cxx11test::overridden o1(55464);
  2890. }
  2891. {
  2892. // Test nullptr
  2893. char *c = nullptr;
  2894. }
  2895. {
  2896. // Test template brackets
  2897. test_template<::test_template<int>> v(test_template<int>(12));
  2898. }
  2899. {
  2900. // Unicode literals
  2901. char const *utf8 = u8"UTF-8 string \u2500";
  2902. char16_t const *utf16 = u"UTF-8 string \u2500";
  2903. char32_t const *utf32 = U"UTF-32 string \u2500";
  2904. }
  2905. '
  2906. # Test code for whether the C compiler supports C++11 (complete).
  2907. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2908. ${ac_cxx_conftest_cxx11_globals}
  2909. int
  2910. main (int argc, char **argv)
  2911. {
  2912. int ok = 0;
  2913. ${ac_cxx_conftest_cxx98_main}
  2914. ${ac_cxx_conftest_cxx11_main}
  2915. return ok;
  2916. }
  2917. "
  2918. # Test code for whether the C compiler supports C++98 (complete).
  2919. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2920. int
  2921. main (int argc, char **argv)
  2922. {
  2923. int ok = 0;
  2924. ${ac_cxx_conftest_cxx98_main}
  2925. return ok;
  2926. }
  2927. "
  2928. # Auxiliary files required by this configure script.
  2929. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2930. # Locations in which to look for auxiliary files.
  2931. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2932. # Search for a directory containing all of the required auxiliary files,
  2933. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2934. # If we don't find one directory that contains all the files we need,
  2935. # we report the set of missing files from the *first* directory in
  2936. # $ac_aux_dir_candidates and give up.
  2937. ac_missing_aux_files=""
  2938. ac_first_candidate=:
  2939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2941. as_found=false
  2942. for as_dir in $ac_aux_dir_candidates
  2943. do
  2944. IFS=$as_save_IFS
  2945. case $as_dir in #(((
  2946. '') as_dir=./ ;;
  2947. */) ;;
  2948. *) as_dir=$as_dir/ ;;
  2949. esac
  2950. as_found=:
  2951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2952. ac_aux_dir_found=yes
  2953. ac_install_sh=
  2954. for ac_aux in $ac_aux_files
  2955. do
  2956. # As a special case, if "install-sh" is required, that requirement
  2957. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2958. # and $ac_install_sh is set appropriately for whichever one is found.
  2959. if test x"$ac_aux" = x"install-sh"
  2960. then
  2961. if test -f "${as_dir}install-sh"; then
  2962. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2963. ac_install_sh="${as_dir}install-sh -c"
  2964. elif test -f "${as_dir}install.sh"; then
  2965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2966. ac_install_sh="${as_dir}install.sh -c"
  2967. elif test -f "${as_dir}shtool"; then
  2968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2969. ac_install_sh="${as_dir}shtool install -c"
  2970. else
  2971. ac_aux_dir_found=no
  2972. if $ac_first_candidate; then
  2973. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2974. else
  2975. break
  2976. fi
  2977. fi
  2978. else
  2979. if test -f "${as_dir}${ac_aux}"; then
  2980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2981. else
  2982. ac_aux_dir_found=no
  2983. if $ac_first_candidate; then
  2984. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2985. else
  2986. break
  2987. fi
  2988. fi
  2989. fi
  2990. done
  2991. if test "$ac_aux_dir_found" = yes; then
  2992. ac_aux_dir="$as_dir"
  2993. break
  2994. fi
  2995. ac_first_candidate=false
  2996. as_found=false
  2997. done
  2998. IFS=$as_save_IFS
  2999. if $as_found
  3000. then :
  3001. else $as_nop
  3002. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3003. fi
  3004. # These three variables are undocumented and unsupported,
  3005. # and are intended to be withdrawn in a future Autoconf release.
  3006. # They can cause serious problems if a builder's source tree is in a directory
  3007. # whose full name contains unusual characters.
  3008. if test -f "${ac_aux_dir}config.guess"; then
  3009. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3010. fi
  3011. if test -f "${ac_aux_dir}config.sub"; then
  3012. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3013. fi
  3014. if test -f "$ac_aux_dir/configure"; then
  3015. ac_configure="$SHELL ${ac_aux_dir}configure"
  3016. fi
  3017. # Check that the precious variables saved in the cache have kept the same
  3018. # value.
  3019. ac_cache_corrupted=false
  3020. for ac_var in $ac_precious_vars; do
  3021. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3022. eval ac_new_set=\$ac_env_${ac_var}_set
  3023. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3024. eval ac_new_val=\$ac_env_${ac_var}_value
  3025. case $ac_old_set,$ac_new_set in
  3026. set,)
  3027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3028. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3029. ac_cache_corrupted=: ;;
  3030. ,set)
  3031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3032. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3033. ac_cache_corrupted=: ;;
  3034. ,);;
  3035. *)
  3036. if test "x$ac_old_val" != "x$ac_new_val"; then
  3037. # differences in whitespace do not lead to failure.
  3038. ac_old_val_w=`echo x $ac_old_val`
  3039. ac_new_val_w=`echo x $ac_new_val`
  3040. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3042. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3043. ac_cache_corrupted=:
  3044. else
  3045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3046. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3047. eval $ac_var=\$ac_old_val
  3048. fi
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3050. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3052. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3053. fi;;
  3054. esac
  3055. # Pass precious variables to config.status.
  3056. if test "$ac_new_set" = set; then
  3057. case $ac_new_val in
  3058. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3059. *) ac_arg=$ac_var=$ac_new_val ;;
  3060. esac
  3061. case " $ac_configure_args " in
  3062. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3063. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3064. esac
  3065. fi
  3066. done
  3067. if $ac_cache_corrupted; then
  3068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3069. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3071. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3072. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3073. and start over" "$LINENO" 5
  3074. fi
  3075. ## -------------------- ##
  3076. ## Main body of script. ##
  3077. ## -------------------- ##
  3078. ac_ext=c
  3079. ac_cpp='$CPP $CPPFLAGS'
  3080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3083. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3084. orig_CFLAGS="$CFLAGS"
  3085. # See docs/release_checklist.md
  3086. SDL_MAJOR_VERSION=3
  3087. SDL_MINOR_VERSION=0
  3088. SDL_MICRO_VERSION=0
  3089. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3090. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3091. case "$SDL_MINOR_VERSION" in #(
  3092. *[02468]) :
  3093. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3094. *) :
  3095. SDL_INTERFACE_AGE=0 ;; #(
  3096. *) :
  3097. ;;
  3098. esac
  3099. # libtool versioning
  3100. case `pwd` in
  3101. *\ * | *\ *)
  3102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3103. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3104. esac
  3105. macro_version='2.4.6'
  3106. macro_revision='2.4.6'
  3107. ltmain=$ac_aux_dir/ltmain.sh
  3108. # Make sure we can run config.sub.
  3109. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3110. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3112. printf %s "checking build system type... " >&6; }
  3113. if test ${ac_cv_build+y}
  3114. then :
  3115. printf %s "(cached) " >&6
  3116. else $as_nop
  3117. ac_build_alias=$build_alias
  3118. test "x$ac_build_alias" = x &&
  3119. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3120. test "x$ac_build_alias" = x &&
  3121. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3122. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3123. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3124. fi
  3125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3126. printf "%s\n" "$ac_cv_build" >&6; }
  3127. case $ac_cv_build in
  3128. *-*-*) ;;
  3129. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3130. esac
  3131. build=$ac_cv_build
  3132. ac_save_IFS=$IFS; IFS='-'
  3133. set x $ac_cv_build
  3134. shift
  3135. build_cpu=$1
  3136. build_vendor=$2
  3137. shift; shift
  3138. # Remember, the first character of IFS is used to create $*,
  3139. # except with old shells:
  3140. build_os=$*
  3141. IFS=$ac_save_IFS
  3142. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3144. printf %s "checking host system type... " >&6; }
  3145. if test ${ac_cv_host+y}
  3146. then :
  3147. printf %s "(cached) " >&6
  3148. else $as_nop
  3149. if test "x$host_alias" = x; then
  3150. ac_cv_host=$ac_cv_build
  3151. else
  3152. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3153. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3154. fi
  3155. fi
  3156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3157. printf "%s\n" "$ac_cv_host" >&6; }
  3158. case $ac_cv_host in
  3159. *-*-*) ;;
  3160. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3161. esac
  3162. host=$ac_cv_host
  3163. ac_save_IFS=$IFS; IFS='-'
  3164. set x $ac_cv_host
  3165. shift
  3166. host_cpu=$1
  3167. host_vendor=$2
  3168. shift; shift
  3169. # Remember, the first character of IFS is used to create $*,
  3170. # except with old shells:
  3171. host_os=$*
  3172. IFS=$ac_save_IFS
  3173. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3174. # Backslashify metacharacters that are still active within
  3175. # double-quoted strings.
  3176. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3177. # Same as above, but do not quote variable references.
  3178. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3179. # Sed substitution to delay expansion of an escaped shell variable in a
  3180. # double_quote_subst'ed string.
  3181. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3182. # Sed substitution to delay expansion of an escaped single quote.
  3183. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3184. # Sed substitution to avoid accidental globbing in evaled expressions
  3185. no_glob_subst='s/\*/\\\*/g'
  3186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3187. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3188. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3190. printf %s "checking how to print strings... " >&6; }
  3191. # Test print first, because it will be a builtin if present.
  3192. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3193. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3194. ECHO='print -r --'
  3195. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3196. ECHO='printf %s\n'
  3197. else
  3198. # Use this function as a fallback that always works.
  3199. func_fallback_echo ()
  3200. {
  3201. eval 'cat <<_LTECHO_EOF
  3202. $1
  3203. _LTECHO_EOF'
  3204. }
  3205. ECHO='func_fallback_echo'
  3206. fi
  3207. # func_echo_all arg...
  3208. # Invoke $ECHO with all args, space-separated.
  3209. func_echo_all ()
  3210. {
  3211. $ECHO ""
  3212. }
  3213. case $ECHO in
  3214. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3215. printf "%s\n" "printf" >&6; } ;;
  3216. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3217. printf "%s\n" "print -r" >&6; } ;;
  3218. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3219. printf "%s\n" "cat" >&6; } ;;
  3220. esac
  3221. ac_ext=c
  3222. ac_cpp='$CPP $CPPFLAGS'
  3223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3226. if test -n "$ac_tool_prefix"; then
  3227. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3228. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. printf %s "checking for $ac_word... " >&6; }
  3231. if test ${ac_cv_prog_CC+y}
  3232. then :
  3233. printf %s "(cached) " >&6
  3234. else $as_nop
  3235. if test -n "$CC"; then
  3236. ac_cv_prog_CC="$CC" # Let the user override the test.
  3237. else
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. case $as_dir in #(((
  3243. '') as_dir=./ ;;
  3244. */) ;;
  3245. *) as_dir=$as_dir/ ;;
  3246. esac
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3249. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. IFS=$as_save_IFS
  3256. fi
  3257. fi
  3258. CC=$ac_cv_prog_CC
  3259. if test -n "$CC"; then
  3260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3261. printf "%s\n" "$CC" >&6; }
  3262. else
  3263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3264. printf "%s\n" "no" >&6; }
  3265. fi
  3266. fi
  3267. if test -z "$ac_cv_prog_CC"; then
  3268. ac_ct_CC=$CC
  3269. # Extract the first word of "gcc", so it can be a program name with args.
  3270. set dummy gcc; ac_word=$2
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3272. printf %s "checking for $ac_word... " >&6; }
  3273. if test ${ac_cv_prog_ac_ct_CC+y}
  3274. then :
  3275. printf %s "(cached) " >&6
  3276. else $as_nop
  3277. if test -n "$ac_ct_CC"; then
  3278. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3279. else
  3280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3281. for as_dir in $PATH
  3282. do
  3283. IFS=$as_save_IFS
  3284. case $as_dir in #(((
  3285. '') as_dir=./ ;;
  3286. */) ;;
  3287. *) as_dir=$as_dir/ ;;
  3288. esac
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3291. ac_cv_prog_ac_ct_CC="gcc"
  3292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3293. break 2
  3294. fi
  3295. done
  3296. done
  3297. IFS=$as_save_IFS
  3298. fi
  3299. fi
  3300. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3301. if test -n "$ac_ct_CC"; then
  3302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3303. printf "%s\n" "$ac_ct_CC" >&6; }
  3304. else
  3305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3306. printf "%s\n" "no" >&6; }
  3307. fi
  3308. if test "x$ac_ct_CC" = x; then
  3309. CC=""
  3310. else
  3311. case $cross_compiling:$ac_tool_warned in
  3312. yes:)
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3314. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3315. ac_tool_warned=yes ;;
  3316. esac
  3317. CC=$ac_ct_CC
  3318. fi
  3319. else
  3320. CC="$ac_cv_prog_CC"
  3321. fi
  3322. if test -z "$CC"; then
  3323. if test -n "$ac_tool_prefix"; then
  3324. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3325. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3327. printf %s "checking for $ac_word... " >&6; }
  3328. if test ${ac_cv_prog_CC+y}
  3329. then :
  3330. printf %s "(cached) " >&6
  3331. else $as_nop
  3332. if test -n "$CC"; then
  3333. ac_cv_prog_CC="$CC" # Let the user override the test.
  3334. else
  3335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3336. for as_dir in $PATH
  3337. do
  3338. IFS=$as_save_IFS
  3339. case $as_dir in #(((
  3340. '') as_dir=./ ;;
  3341. */) ;;
  3342. *) as_dir=$as_dir/ ;;
  3343. esac
  3344. for ac_exec_ext in '' $ac_executable_extensions; do
  3345. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3346. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3348. break 2
  3349. fi
  3350. done
  3351. done
  3352. IFS=$as_save_IFS
  3353. fi
  3354. fi
  3355. CC=$ac_cv_prog_CC
  3356. if test -n "$CC"; then
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3358. printf "%s\n" "$CC" >&6; }
  3359. else
  3360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3361. printf "%s\n" "no" >&6; }
  3362. fi
  3363. fi
  3364. fi
  3365. if test -z "$CC"; then
  3366. # Extract the first word of "cc", so it can be a program name with args.
  3367. set dummy cc; ac_word=$2
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3369. printf %s "checking for $ac_word... " >&6; }
  3370. if test ${ac_cv_prog_CC+y}
  3371. then :
  3372. printf %s "(cached) " >&6
  3373. else $as_nop
  3374. if test -n "$CC"; then
  3375. ac_cv_prog_CC="$CC" # Let the user override the test.
  3376. else
  3377. ac_prog_rejected=no
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. case $as_dir in #(((
  3383. '') as_dir=./ ;;
  3384. */) ;;
  3385. *) as_dir=$as_dir/ ;;
  3386. esac
  3387. for ac_exec_ext in '' $ac_executable_extensions; do
  3388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3389. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3390. ac_prog_rejected=yes
  3391. continue
  3392. fi
  3393. ac_cv_prog_CC="cc"
  3394. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3395. break 2
  3396. fi
  3397. done
  3398. done
  3399. IFS=$as_save_IFS
  3400. if test $ac_prog_rejected = yes; then
  3401. # We found a bogon in the path, so make sure we never use it.
  3402. set dummy $ac_cv_prog_CC
  3403. shift
  3404. if test $# != 0; then
  3405. # We chose a different compiler from the bogus one.
  3406. # However, it has the same basename, so the bogon will be chosen
  3407. # first if we set CC to just the basename; use the full file name.
  3408. shift
  3409. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3410. fi
  3411. fi
  3412. fi
  3413. fi
  3414. CC=$ac_cv_prog_CC
  3415. if test -n "$CC"; then
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3417. printf "%s\n" "$CC" >&6; }
  3418. else
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3420. printf "%s\n" "no" >&6; }
  3421. fi
  3422. fi
  3423. if test -z "$CC"; then
  3424. if test -n "$ac_tool_prefix"; then
  3425. for ac_prog in cl.exe
  3426. do
  3427. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3428. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3430. printf %s "checking for $ac_word... " >&6; }
  3431. if test ${ac_cv_prog_CC+y}
  3432. then :
  3433. printf %s "(cached) " >&6
  3434. else $as_nop
  3435. if test -n "$CC"; then
  3436. ac_cv_prog_CC="$CC" # Let the user override the test.
  3437. else
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH
  3440. do
  3441. IFS=$as_save_IFS
  3442. case $as_dir in #(((
  3443. '') as_dir=./ ;;
  3444. */) ;;
  3445. *) as_dir=$as_dir/ ;;
  3446. esac
  3447. for ac_exec_ext in '' $ac_executable_extensions; do
  3448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3449. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3451. break 2
  3452. fi
  3453. done
  3454. done
  3455. IFS=$as_save_IFS
  3456. fi
  3457. fi
  3458. CC=$ac_cv_prog_CC
  3459. if test -n "$CC"; then
  3460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3461. printf "%s\n" "$CC" >&6; }
  3462. else
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3464. printf "%s\n" "no" >&6; }
  3465. fi
  3466. test -n "$CC" && break
  3467. done
  3468. fi
  3469. if test -z "$CC"; then
  3470. ac_ct_CC=$CC
  3471. for ac_prog in cl.exe
  3472. do
  3473. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3474. set dummy $ac_prog; ac_word=$2
  3475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3476. printf %s "checking for $ac_word... " >&6; }
  3477. if test ${ac_cv_prog_ac_ct_CC+y}
  3478. then :
  3479. printf %s "(cached) " >&6
  3480. else $as_nop
  3481. if test -n "$ac_ct_CC"; then
  3482. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3483. else
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH
  3486. do
  3487. IFS=$as_save_IFS
  3488. case $as_dir in #(((
  3489. '') as_dir=./ ;;
  3490. */) ;;
  3491. *) as_dir=$as_dir/ ;;
  3492. esac
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3495. ac_cv_prog_ac_ct_CC="$ac_prog"
  3496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3497. break 2
  3498. fi
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. fi
  3503. fi
  3504. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3505. if test -n "$ac_ct_CC"; then
  3506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3507. printf "%s\n" "$ac_ct_CC" >&6; }
  3508. else
  3509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3510. printf "%s\n" "no" >&6; }
  3511. fi
  3512. test -n "$ac_ct_CC" && break
  3513. done
  3514. if test "x$ac_ct_CC" = x; then
  3515. CC=""
  3516. else
  3517. case $cross_compiling:$ac_tool_warned in
  3518. yes:)
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3520. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3521. ac_tool_warned=yes ;;
  3522. esac
  3523. CC=$ac_ct_CC
  3524. fi
  3525. fi
  3526. fi
  3527. if test -z "$CC"; then
  3528. if test -n "$ac_tool_prefix"; then
  3529. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3530. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. printf %s "checking for $ac_word... " >&6; }
  3533. if test ${ac_cv_prog_CC+y}
  3534. then :
  3535. printf %s "(cached) " >&6
  3536. else $as_nop
  3537. if test -n "$CC"; then
  3538. ac_cv_prog_CC="$CC" # Let the user override the test.
  3539. else
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH
  3542. do
  3543. IFS=$as_save_IFS
  3544. case $as_dir in #(((
  3545. '') as_dir=./ ;;
  3546. */) ;;
  3547. *) as_dir=$as_dir/ ;;
  3548. esac
  3549. for ac_exec_ext in '' $ac_executable_extensions; do
  3550. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3551. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3553. break 2
  3554. fi
  3555. done
  3556. done
  3557. IFS=$as_save_IFS
  3558. fi
  3559. fi
  3560. CC=$ac_cv_prog_CC
  3561. if test -n "$CC"; then
  3562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3563. printf "%s\n" "$CC" >&6; }
  3564. else
  3565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3566. printf "%s\n" "no" >&6; }
  3567. fi
  3568. fi
  3569. if test -z "$ac_cv_prog_CC"; then
  3570. ac_ct_CC=$CC
  3571. # Extract the first word of "clang", so it can be a program name with args.
  3572. set dummy clang; ac_word=$2
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. printf %s "checking for $ac_word... " >&6; }
  3575. if test ${ac_cv_prog_ac_ct_CC+y}
  3576. then :
  3577. printf %s "(cached) " >&6
  3578. else $as_nop
  3579. if test -n "$ac_ct_CC"; then
  3580. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3581. else
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH
  3584. do
  3585. IFS=$as_save_IFS
  3586. case $as_dir in #(((
  3587. '') as_dir=./ ;;
  3588. */) ;;
  3589. *) as_dir=$as_dir/ ;;
  3590. esac
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3593. ac_cv_prog_ac_ct_CC="clang"
  3594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3595. break 2
  3596. fi
  3597. done
  3598. done
  3599. IFS=$as_save_IFS
  3600. fi
  3601. fi
  3602. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3603. if test -n "$ac_ct_CC"; then
  3604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3605. printf "%s\n" "$ac_ct_CC" >&6; }
  3606. else
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. printf "%s\n" "no" >&6; }
  3609. fi
  3610. if test "x$ac_ct_CC" = x; then
  3611. CC=""
  3612. else
  3613. case $cross_compiling:$ac_tool_warned in
  3614. yes:)
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3616. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3617. ac_tool_warned=yes ;;
  3618. esac
  3619. CC=$ac_ct_CC
  3620. fi
  3621. else
  3622. CC="$ac_cv_prog_CC"
  3623. fi
  3624. fi
  3625. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3626. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3627. as_fn_error $? "no acceptable C compiler found in \$PATH
  3628. See \`config.log' for more details" "$LINENO" 5; }
  3629. # Provide some information about the compiler.
  3630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3631. set X $ac_compile
  3632. ac_compiler=$2
  3633. for ac_option in --version -v -V -qversion -version; do
  3634. { { ac_try="$ac_compiler $ac_option >&5"
  3635. case "(($ac_try" in
  3636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3637. *) ac_try_echo=$ac_try;;
  3638. esac
  3639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3640. printf "%s\n" "$ac_try_echo"; } >&5
  3641. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3642. ac_status=$?
  3643. if test -s conftest.err; then
  3644. sed '10a\
  3645. ... rest of stderr output deleted ...
  3646. 10q' conftest.err >conftest.er1
  3647. cat conftest.er1 >&5
  3648. fi
  3649. rm -f conftest.er1 conftest.err
  3650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3651. test $ac_status = 0; }
  3652. done
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main (void)
  3657. {
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. ac_clean_files_save=$ac_clean_files
  3663. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3664. # Try to create an executable without -o first, disregard a.out.
  3665. # It will help us diagnose broken compilers, and finding out an intuition
  3666. # of exeext.
  3667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3668. printf %s "checking whether the C compiler works... " >&6; }
  3669. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3670. # The possible output files:
  3671. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3672. ac_rmfiles=
  3673. for ac_file in $ac_files
  3674. do
  3675. case $ac_file in
  3676. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3677. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3678. esac
  3679. done
  3680. rm -f $ac_rmfiles
  3681. if { { ac_try="$ac_link_default"
  3682. case "(($ac_try" in
  3683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3684. *) ac_try_echo=$ac_try;;
  3685. esac
  3686. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3687. printf "%s\n" "$ac_try_echo"; } >&5
  3688. (eval "$ac_link_default") 2>&5
  3689. ac_status=$?
  3690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3691. test $ac_status = 0; }
  3692. then :
  3693. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3694. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3695. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3696. # so that the user can short-circuit this test for compilers unknown to
  3697. # Autoconf.
  3698. for ac_file in $ac_files ''
  3699. do
  3700. test -f "$ac_file" || continue
  3701. case $ac_file in
  3702. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3703. ;;
  3704. [ab].out )
  3705. # We found the default executable, but exeext='' is most
  3706. # certainly right.
  3707. break;;
  3708. *.* )
  3709. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3710. then :; else
  3711. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3712. fi
  3713. # We set ac_cv_exeext here because the later test for it is not
  3714. # safe: cross compilers may not add the suffix if given an `-o'
  3715. # argument, so we may need to know it at that point already.
  3716. # Even if this section looks crufty: it has the advantage of
  3717. # actually working.
  3718. break;;
  3719. * )
  3720. break;;
  3721. esac
  3722. done
  3723. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3724. else $as_nop
  3725. ac_file=''
  3726. fi
  3727. if test -z "$ac_file"
  3728. then :
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3730. printf "%s\n" "no" >&6; }
  3731. printf "%s\n" "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3734. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3735. as_fn_error 77 "C compiler cannot create executables
  3736. See \`config.log' for more details" "$LINENO" 5; }
  3737. else $as_nop
  3738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3739. printf "%s\n" "yes" >&6; }
  3740. fi
  3741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3742. printf %s "checking for C compiler default output file name... " >&6; }
  3743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3744. printf "%s\n" "$ac_file" >&6; }
  3745. ac_exeext=$ac_cv_exeext
  3746. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3747. ac_clean_files=$ac_clean_files_save
  3748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3749. printf %s "checking for suffix of executables... " >&6; }
  3750. if { { ac_try="$ac_link"
  3751. case "(($ac_try" in
  3752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3753. *) ac_try_echo=$ac_try;;
  3754. esac
  3755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3756. printf "%s\n" "$ac_try_echo"; } >&5
  3757. (eval "$ac_link") 2>&5
  3758. ac_status=$?
  3759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3760. test $ac_status = 0; }
  3761. then :
  3762. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3763. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3764. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3765. # `rm'.
  3766. for ac_file in conftest.exe conftest conftest.*; do
  3767. test -f "$ac_file" || continue
  3768. case $ac_file in
  3769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3770. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3771. break;;
  3772. * ) break;;
  3773. esac
  3774. done
  3775. else $as_nop
  3776. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3777. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3778. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3779. See \`config.log' for more details" "$LINENO" 5; }
  3780. fi
  3781. rm -f conftest conftest$ac_cv_exeext
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3783. printf "%s\n" "$ac_cv_exeext" >&6; }
  3784. rm -f conftest.$ac_ext
  3785. EXEEXT=$ac_cv_exeext
  3786. ac_exeext=$EXEEXT
  3787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3788. /* end confdefs.h. */
  3789. #include <stdio.h>
  3790. int
  3791. main (void)
  3792. {
  3793. FILE *f = fopen ("conftest.out", "w");
  3794. return ferror (f) || fclose (f) != 0;
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. ac_clean_files="$ac_clean_files conftest.out"
  3800. # Check that the compiler produces executables we can run. If not, either
  3801. # the compiler is broken, or we cross compile.
  3802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3803. printf %s "checking whether we are cross compiling... " >&6; }
  3804. if test "$cross_compiling" != yes; then
  3805. { { ac_try="$ac_link"
  3806. case "(($ac_try" in
  3807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3808. *) ac_try_echo=$ac_try;;
  3809. esac
  3810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3811. printf "%s\n" "$ac_try_echo"; } >&5
  3812. (eval "$ac_link") 2>&5
  3813. ac_status=$?
  3814. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3815. test $ac_status = 0; }
  3816. if { ac_try='./conftest$ac_cv_exeext'
  3817. { { case "(($ac_try" in
  3818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819. *) ac_try_echo=$ac_try;;
  3820. esac
  3821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3822. printf "%s\n" "$ac_try_echo"; } >&5
  3823. (eval "$ac_try") 2>&5
  3824. ac_status=$?
  3825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3826. test $ac_status = 0; }; }; then
  3827. cross_compiling=no
  3828. else
  3829. if test "$cross_compiling" = maybe; then
  3830. cross_compiling=yes
  3831. else
  3832. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3833. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3834. as_fn_error 77 "cannot run C compiled programs.
  3835. If you meant to cross compile, use \`--host'.
  3836. See \`config.log' for more details" "$LINENO" 5; }
  3837. fi
  3838. fi
  3839. fi
  3840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3841. printf "%s\n" "$cross_compiling" >&6; }
  3842. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3843. ac_clean_files=$ac_clean_files_save
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3845. printf %s "checking for suffix of object files... " >&6; }
  3846. if test ${ac_cv_objext+y}
  3847. then :
  3848. printf %s "(cached) " >&6
  3849. else $as_nop
  3850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3851. /* end confdefs.h. */
  3852. int
  3853. main (void)
  3854. {
  3855. ;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. rm -f conftest.o conftest.obj
  3860. if { { ac_try="$ac_compile"
  3861. case "(($ac_try" in
  3862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3863. *) ac_try_echo=$ac_try;;
  3864. esac
  3865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3866. printf "%s\n" "$ac_try_echo"; } >&5
  3867. (eval "$ac_compile") 2>&5
  3868. ac_status=$?
  3869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3870. test $ac_status = 0; }
  3871. then :
  3872. for ac_file in conftest.o conftest.obj conftest.*; do
  3873. test -f "$ac_file" || continue;
  3874. case $ac_file in
  3875. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3876. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3877. break;;
  3878. esac
  3879. done
  3880. else $as_nop
  3881. printf "%s\n" "$as_me: failed program was:" >&5
  3882. sed 's/^/| /' conftest.$ac_ext >&5
  3883. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3884. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3885. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3886. See \`config.log' for more details" "$LINENO" 5; }
  3887. fi
  3888. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3889. fi
  3890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3891. printf "%s\n" "$ac_cv_objext" >&6; }
  3892. OBJEXT=$ac_cv_objext
  3893. ac_objext=$OBJEXT
  3894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3895. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3896. if test ${ac_cv_c_compiler_gnu+y}
  3897. then :
  3898. printf %s "(cached) " >&6
  3899. else $as_nop
  3900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3901. /* end confdefs.h. */
  3902. int
  3903. main (void)
  3904. {
  3905. #ifndef __GNUC__
  3906. choke me
  3907. #endif
  3908. ;
  3909. return 0;
  3910. }
  3911. _ACEOF
  3912. if ac_fn_c_try_compile "$LINENO"
  3913. then :
  3914. ac_compiler_gnu=yes
  3915. else $as_nop
  3916. ac_compiler_gnu=no
  3917. fi
  3918. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3919. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3920. fi
  3921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3922. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3924. if test $ac_compiler_gnu = yes; then
  3925. GCC=yes
  3926. else
  3927. GCC=
  3928. fi
  3929. ac_test_CFLAGS=${CFLAGS+y}
  3930. ac_save_CFLAGS=$CFLAGS
  3931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3932. printf %s "checking whether $CC accepts -g... " >&6; }
  3933. if test ${ac_cv_prog_cc_g+y}
  3934. then :
  3935. printf %s "(cached) " >&6
  3936. else $as_nop
  3937. ac_save_c_werror_flag=$ac_c_werror_flag
  3938. ac_c_werror_flag=yes
  3939. ac_cv_prog_cc_g=no
  3940. CFLAGS="-g"
  3941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3942. /* end confdefs.h. */
  3943. int
  3944. main (void)
  3945. {
  3946. ;
  3947. return 0;
  3948. }
  3949. _ACEOF
  3950. if ac_fn_c_try_compile "$LINENO"
  3951. then :
  3952. ac_cv_prog_cc_g=yes
  3953. else $as_nop
  3954. CFLAGS=""
  3955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3956. /* end confdefs.h. */
  3957. int
  3958. main (void)
  3959. {
  3960. ;
  3961. return 0;
  3962. }
  3963. _ACEOF
  3964. if ac_fn_c_try_compile "$LINENO"
  3965. then :
  3966. else $as_nop
  3967. ac_c_werror_flag=$ac_save_c_werror_flag
  3968. CFLAGS="-g"
  3969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3970. /* end confdefs.h. */
  3971. int
  3972. main (void)
  3973. {
  3974. ;
  3975. return 0;
  3976. }
  3977. _ACEOF
  3978. if ac_fn_c_try_compile "$LINENO"
  3979. then :
  3980. ac_cv_prog_cc_g=yes
  3981. fi
  3982. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3983. fi
  3984. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3985. fi
  3986. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3987. ac_c_werror_flag=$ac_save_c_werror_flag
  3988. fi
  3989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3990. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3991. if test $ac_test_CFLAGS; then
  3992. CFLAGS=$ac_save_CFLAGS
  3993. elif test $ac_cv_prog_cc_g = yes; then
  3994. if test "$GCC" = yes; then
  3995. CFLAGS="-g -O2"
  3996. else
  3997. CFLAGS="-g"
  3998. fi
  3999. else
  4000. if test "$GCC" = yes; then
  4001. CFLAGS="-O2"
  4002. else
  4003. CFLAGS=
  4004. fi
  4005. fi
  4006. ac_prog_cc_stdc=no
  4007. if test x$ac_prog_cc_stdc = xno
  4008. then :
  4009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4010. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4011. if test ${ac_cv_prog_cc_c11+y}
  4012. then :
  4013. printf %s "(cached) " >&6
  4014. else $as_nop
  4015. ac_cv_prog_cc_c11=no
  4016. ac_save_CC=$CC
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. $ac_c_conftest_c11_program
  4020. _ACEOF
  4021. for ac_arg in '' -std=gnu11
  4022. do
  4023. CC="$ac_save_CC $ac_arg"
  4024. if ac_fn_c_try_compile "$LINENO"
  4025. then :
  4026. ac_cv_prog_cc_c11=$ac_arg
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4029. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4030. done
  4031. rm -f conftest.$ac_ext
  4032. CC=$ac_save_CC
  4033. fi
  4034. if test "x$ac_cv_prog_cc_c11" = xno
  4035. then :
  4036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4037. printf "%s\n" "unsupported" >&6; }
  4038. else $as_nop
  4039. if test "x$ac_cv_prog_cc_c11" = x
  4040. then :
  4041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4042. printf "%s\n" "none needed" >&6; }
  4043. else $as_nop
  4044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4045. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4046. CC="$CC $ac_cv_prog_cc_c11"
  4047. fi
  4048. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4049. ac_prog_cc_stdc=c11
  4050. fi
  4051. fi
  4052. if test x$ac_prog_cc_stdc = xno
  4053. then :
  4054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4055. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4056. if test ${ac_cv_prog_cc_c99+y}
  4057. then :
  4058. printf %s "(cached) " >&6
  4059. else $as_nop
  4060. ac_cv_prog_cc_c99=no
  4061. ac_save_CC=$CC
  4062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4063. /* end confdefs.h. */
  4064. $ac_c_conftest_c99_program
  4065. _ACEOF
  4066. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4067. do
  4068. CC="$ac_save_CC $ac_arg"
  4069. if ac_fn_c_try_compile "$LINENO"
  4070. then :
  4071. ac_cv_prog_cc_c99=$ac_arg
  4072. fi
  4073. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4074. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4075. done
  4076. rm -f conftest.$ac_ext
  4077. CC=$ac_save_CC
  4078. fi
  4079. if test "x$ac_cv_prog_cc_c99" = xno
  4080. then :
  4081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4082. printf "%s\n" "unsupported" >&6; }
  4083. else $as_nop
  4084. if test "x$ac_cv_prog_cc_c99" = x
  4085. then :
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4087. printf "%s\n" "none needed" >&6; }
  4088. else $as_nop
  4089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4090. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4091. CC="$CC $ac_cv_prog_cc_c99"
  4092. fi
  4093. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4094. ac_prog_cc_stdc=c99
  4095. fi
  4096. fi
  4097. if test x$ac_prog_cc_stdc = xno
  4098. then :
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4100. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4101. if test ${ac_cv_prog_cc_c89+y}
  4102. then :
  4103. printf %s "(cached) " >&6
  4104. else $as_nop
  4105. ac_cv_prog_cc_c89=no
  4106. ac_save_CC=$CC
  4107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4108. /* end confdefs.h. */
  4109. $ac_c_conftest_c89_program
  4110. _ACEOF
  4111. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4112. do
  4113. CC="$ac_save_CC $ac_arg"
  4114. if ac_fn_c_try_compile "$LINENO"
  4115. then :
  4116. ac_cv_prog_cc_c89=$ac_arg
  4117. fi
  4118. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4119. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4120. done
  4121. rm -f conftest.$ac_ext
  4122. CC=$ac_save_CC
  4123. fi
  4124. if test "x$ac_cv_prog_cc_c89" = xno
  4125. then :
  4126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4127. printf "%s\n" "unsupported" >&6; }
  4128. else $as_nop
  4129. if test "x$ac_cv_prog_cc_c89" = x
  4130. then :
  4131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4132. printf "%s\n" "none needed" >&6; }
  4133. else $as_nop
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4135. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4136. CC="$CC $ac_cv_prog_cc_c89"
  4137. fi
  4138. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4139. ac_prog_cc_stdc=c89
  4140. fi
  4141. fi
  4142. ac_ext=c
  4143. ac_cpp='$CPP $CPPFLAGS'
  4144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4148. printf %s "checking for a sed that does not truncate output... " >&6; }
  4149. if test ${ac_cv_path_SED+y}
  4150. then :
  4151. printf %s "(cached) " >&6
  4152. else $as_nop
  4153. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4154. for ac_i in 1 2 3 4 5 6 7; do
  4155. ac_script="$ac_script$as_nl$ac_script"
  4156. done
  4157. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4158. { ac_script=; unset ac_script;}
  4159. if test -z "$SED"; then
  4160. ac_path_SED_found=false
  4161. # Loop through the user's path and test for each of PROGNAME-LIST
  4162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4163. for as_dir in $PATH
  4164. do
  4165. IFS=$as_save_IFS
  4166. case $as_dir in #(((
  4167. '') as_dir=./ ;;
  4168. */) ;;
  4169. *) as_dir=$as_dir/ ;;
  4170. esac
  4171. for ac_prog in sed gsed
  4172. do
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4175. as_fn_executable_p "$ac_path_SED" || continue
  4176. # Check for GNU ac_path_SED and select it if it is found.
  4177. # Check for GNU $ac_path_SED
  4178. case `"$ac_path_SED" --version 2>&1` in
  4179. *GNU*)
  4180. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4181. *)
  4182. ac_count=0
  4183. printf %s 0123456789 >"conftest.in"
  4184. while :
  4185. do
  4186. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4187. mv "conftest.tmp" "conftest.in"
  4188. cp "conftest.in" "conftest.nl"
  4189. printf "%s\n" '' >> "conftest.nl"
  4190. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4191. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4192. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4193. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4194. # Best one so far, save it but keep looking for a better one
  4195. ac_cv_path_SED="$ac_path_SED"
  4196. ac_path_SED_max=$ac_count
  4197. fi
  4198. # 10*(2^10) chars as input seems more than enough
  4199. test $ac_count -gt 10 && break
  4200. done
  4201. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4202. esac
  4203. $ac_path_SED_found && break 3
  4204. done
  4205. done
  4206. done
  4207. IFS=$as_save_IFS
  4208. if test -z "$ac_cv_path_SED"; then
  4209. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4210. fi
  4211. else
  4212. ac_cv_path_SED=$SED
  4213. fi
  4214. fi
  4215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4216. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4217. SED="$ac_cv_path_SED"
  4218. rm -f conftest.sed
  4219. test -z "$SED" && SED=sed
  4220. Xsed="$SED -e 1s/^X//"
  4221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4222. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4223. if test ${ac_cv_path_GREP+y}
  4224. then :
  4225. printf %s "(cached) " >&6
  4226. else $as_nop
  4227. if test -z "$GREP"; then
  4228. ac_path_GREP_found=false
  4229. # Loop through the user's path and test for each of PROGNAME-LIST
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4232. do
  4233. IFS=$as_save_IFS
  4234. case $as_dir in #(((
  4235. '') as_dir=./ ;;
  4236. */) ;;
  4237. *) as_dir=$as_dir/ ;;
  4238. esac
  4239. for ac_prog in grep ggrep
  4240. do
  4241. for ac_exec_ext in '' $ac_executable_extensions; do
  4242. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4243. as_fn_executable_p "$ac_path_GREP" || continue
  4244. # Check for GNU ac_path_GREP and select it if it is found.
  4245. # Check for GNU $ac_path_GREP
  4246. case `"$ac_path_GREP" --version 2>&1` in
  4247. *GNU*)
  4248. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4249. *)
  4250. ac_count=0
  4251. printf %s 0123456789 >"conftest.in"
  4252. while :
  4253. do
  4254. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4255. mv "conftest.tmp" "conftest.in"
  4256. cp "conftest.in" "conftest.nl"
  4257. printf "%s\n" 'GREP' >> "conftest.nl"
  4258. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4259. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4260. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4261. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4262. # Best one so far, save it but keep looking for a better one
  4263. ac_cv_path_GREP="$ac_path_GREP"
  4264. ac_path_GREP_max=$ac_count
  4265. fi
  4266. # 10*(2^10) chars as input seems more than enough
  4267. test $ac_count -gt 10 && break
  4268. done
  4269. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4270. esac
  4271. $ac_path_GREP_found && break 3
  4272. done
  4273. done
  4274. done
  4275. IFS=$as_save_IFS
  4276. if test -z "$ac_cv_path_GREP"; then
  4277. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4278. fi
  4279. else
  4280. ac_cv_path_GREP=$GREP
  4281. fi
  4282. fi
  4283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4284. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4285. GREP="$ac_cv_path_GREP"
  4286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4287. printf %s "checking for egrep... " >&6; }
  4288. if test ${ac_cv_path_EGREP+y}
  4289. then :
  4290. printf %s "(cached) " >&6
  4291. else $as_nop
  4292. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4293. then ac_cv_path_EGREP="$GREP -E"
  4294. else
  4295. if test -z "$EGREP"; then
  4296. ac_path_EGREP_found=false
  4297. # Loop through the user's path and test for each of PROGNAME-LIST
  4298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4299. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4300. do
  4301. IFS=$as_save_IFS
  4302. case $as_dir in #(((
  4303. '') as_dir=./ ;;
  4304. */) ;;
  4305. *) as_dir=$as_dir/ ;;
  4306. esac
  4307. for ac_prog in egrep
  4308. do
  4309. for ac_exec_ext in '' $ac_executable_extensions; do
  4310. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4311. as_fn_executable_p "$ac_path_EGREP" || continue
  4312. # Check for GNU ac_path_EGREP and select it if it is found.
  4313. # Check for GNU $ac_path_EGREP
  4314. case `"$ac_path_EGREP" --version 2>&1` in
  4315. *GNU*)
  4316. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4317. *)
  4318. ac_count=0
  4319. printf %s 0123456789 >"conftest.in"
  4320. while :
  4321. do
  4322. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4323. mv "conftest.tmp" "conftest.in"
  4324. cp "conftest.in" "conftest.nl"
  4325. printf "%s\n" 'EGREP' >> "conftest.nl"
  4326. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4327. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4328. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4329. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4330. # Best one so far, save it but keep looking for a better one
  4331. ac_cv_path_EGREP="$ac_path_EGREP"
  4332. ac_path_EGREP_max=$ac_count
  4333. fi
  4334. # 10*(2^10) chars as input seems more than enough
  4335. test $ac_count -gt 10 && break
  4336. done
  4337. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4338. esac
  4339. $ac_path_EGREP_found && break 3
  4340. done
  4341. done
  4342. done
  4343. IFS=$as_save_IFS
  4344. if test -z "$ac_cv_path_EGREP"; then
  4345. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4346. fi
  4347. else
  4348. ac_cv_path_EGREP=$EGREP
  4349. fi
  4350. fi
  4351. fi
  4352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4353. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4354. EGREP="$ac_cv_path_EGREP"
  4355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4356. printf %s "checking for fgrep... " >&6; }
  4357. if test ${ac_cv_path_FGREP+y}
  4358. then :
  4359. printf %s "(cached) " >&6
  4360. else $as_nop
  4361. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4362. then ac_cv_path_FGREP="$GREP -F"
  4363. else
  4364. if test -z "$FGREP"; then
  4365. ac_path_FGREP_found=false
  4366. # Loop through the user's path and test for each of PROGNAME-LIST
  4367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4368. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4369. do
  4370. IFS=$as_save_IFS
  4371. case $as_dir in #(((
  4372. '') as_dir=./ ;;
  4373. */) ;;
  4374. *) as_dir=$as_dir/ ;;
  4375. esac
  4376. for ac_prog in fgrep
  4377. do
  4378. for ac_exec_ext in '' $ac_executable_extensions; do
  4379. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4380. as_fn_executable_p "$ac_path_FGREP" || continue
  4381. # Check for GNU ac_path_FGREP and select it if it is found.
  4382. # Check for GNU $ac_path_FGREP
  4383. case `"$ac_path_FGREP" --version 2>&1` in
  4384. *GNU*)
  4385. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4386. *)
  4387. ac_count=0
  4388. printf %s 0123456789 >"conftest.in"
  4389. while :
  4390. do
  4391. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4392. mv "conftest.tmp" "conftest.in"
  4393. cp "conftest.in" "conftest.nl"
  4394. printf "%s\n" 'FGREP' >> "conftest.nl"
  4395. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4396. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4397. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4398. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4399. # Best one so far, save it but keep looking for a better one
  4400. ac_cv_path_FGREP="$ac_path_FGREP"
  4401. ac_path_FGREP_max=$ac_count
  4402. fi
  4403. # 10*(2^10) chars as input seems more than enough
  4404. test $ac_count -gt 10 && break
  4405. done
  4406. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4407. esac
  4408. $ac_path_FGREP_found && break 3
  4409. done
  4410. done
  4411. done
  4412. IFS=$as_save_IFS
  4413. if test -z "$ac_cv_path_FGREP"; then
  4414. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4415. fi
  4416. else
  4417. ac_cv_path_FGREP=$FGREP
  4418. fi
  4419. fi
  4420. fi
  4421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4422. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4423. FGREP="$ac_cv_path_FGREP"
  4424. test -z "$GREP" && GREP=grep
  4425. # Check whether --with-gnu-ld was given.
  4426. if test ${with_gnu_ld+y}
  4427. then :
  4428. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4429. else $as_nop
  4430. with_gnu_ld=no
  4431. fi
  4432. ac_prog=ld
  4433. if test yes = "$GCC"; then
  4434. # Check if gcc -print-prog-name=ld gives a path.
  4435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4436. printf %s "checking for ld used by $CC... " >&6; }
  4437. case $host in
  4438. *-*-mingw*)
  4439. # gcc leaves a trailing carriage return, which upsets mingw
  4440. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4441. *)
  4442. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4443. esac
  4444. case $ac_prog in
  4445. # Accept absolute paths.
  4446. [\\/]* | ?:[\\/]*)
  4447. re_direlt='/[^/][^/]*/\.\./'
  4448. # Canonicalize the pathname of ld
  4449. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4450. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4451. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4452. done
  4453. test -z "$LD" && LD=$ac_prog
  4454. ;;
  4455. "")
  4456. # If it fails, then pretend we aren't using GCC.
  4457. ac_prog=ld
  4458. ;;
  4459. *)
  4460. # If it is relative, then search for the first ld in PATH.
  4461. with_gnu_ld=unknown
  4462. ;;
  4463. esac
  4464. elif test yes = "$with_gnu_ld"; then
  4465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4466. printf %s "checking for GNU ld... " >&6; }
  4467. else
  4468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4469. printf %s "checking for non-GNU ld... " >&6; }
  4470. fi
  4471. if test ${lt_cv_path_LD+y}
  4472. then :
  4473. printf %s "(cached) " >&6
  4474. else $as_nop
  4475. if test -z "$LD"; then
  4476. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4477. for ac_dir in $PATH; do
  4478. IFS=$lt_save_ifs
  4479. test -z "$ac_dir" && ac_dir=.
  4480. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4481. lt_cv_path_LD=$ac_dir/$ac_prog
  4482. # Check to see if the program is GNU ld. I'd rather use --version,
  4483. # but apparently some variants of GNU ld only accept -v.
  4484. # Break only if it was the GNU/non-GNU ld that we prefer.
  4485. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4486. *GNU* | *'with BFD'*)
  4487. test no != "$with_gnu_ld" && break
  4488. ;;
  4489. *)
  4490. test yes != "$with_gnu_ld" && break
  4491. ;;
  4492. esac
  4493. fi
  4494. done
  4495. IFS=$lt_save_ifs
  4496. else
  4497. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4498. fi
  4499. fi
  4500. LD=$lt_cv_path_LD
  4501. if test -n "$LD"; then
  4502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4503. printf "%s\n" "$LD" >&6; }
  4504. else
  4505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4506. printf "%s\n" "no" >&6; }
  4507. fi
  4508. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4510. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4511. if test ${lt_cv_prog_gnu_ld+y}
  4512. then :
  4513. printf %s "(cached) " >&6
  4514. else $as_nop
  4515. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4516. case `$LD -v 2>&1 </dev/null` in
  4517. *GNU* | *'with BFD'*)
  4518. lt_cv_prog_gnu_ld=yes
  4519. ;;
  4520. *)
  4521. lt_cv_prog_gnu_ld=no
  4522. ;;
  4523. esac
  4524. fi
  4525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4526. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4527. with_gnu_ld=$lt_cv_prog_gnu_ld
  4528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4529. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4530. if test ${lt_cv_path_NM+y}
  4531. then :
  4532. printf %s "(cached) " >&6
  4533. else $as_nop
  4534. if test -n "$NM"; then
  4535. # Let the user override the test.
  4536. lt_cv_path_NM=$NM
  4537. else
  4538. lt_nm_to_check=${ac_tool_prefix}nm
  4539. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4540. lt_nm_to_check="$lt_nm_to_check nm"
  4541. fi
  4542. for lt_tmp_nm in $lt_nm_to_check; do
  4543. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4544. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4545. IFS=$lt_save_ifs
  4546. test -z "$ac_dir" && ac_dir=.
  4547. tmp_nm=$ac_dir/$lt_tmp_nm
  4548. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4549. # Check to see if the nm accepts a BSD-compat flag.
  4550. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4551. # nm: unknown option "B" ignored
  4552. # Tru64's nm complains that /dev/null is an invalid object file
  4553. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4554. case $build_os in
  4555. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4556. *) lt_bad_file=/dev/null ;;
  4557. esac
  4558. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4559. *$lt_bad_file* | *'Invalid file or object type'*)
  4560. lt_cv_path_NM="$tmp_nm -B"
  4561. break 2
  4562. ;;
  4563. *)
  4564. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4565. */dev/null*)
  4566. lt_cv_path_NM="$tmp_nm -p"
  4567. break 2
  4568. ;;
  4569. *)
  4570. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4571. continue # so that we can try to find one that supports BSD flags
  4572. ;;
  4573. esac
  4574. ;;
  4575. esac
  4576. fi
  4577. done
  4578. IFS=$lt_save_ifs
  4579. done
  4580. : ${lt_cv_path_NM=no}
  4581. fi
  4582. fi
  4583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4584. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4585. if test no != "$lt_cv_path_NM"; then
  4586. NM=$lt_cv_path_NM
  4587. else
  4588. # Didn't find any BSD compatible name lister, look for dumpbin.
  4589. if test -n "$DUMPBIN"; then :
  4590. # Let the user override the test.
  4591. else
  4592. if test -n "$ac_tool_prefix"; then
  4593. for ac_prog in dumpbin "link -dump"
  4594. do
  4595. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4596. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. printf %s "checking for $ac_word... " >&6; }
  4599. if test ${ac_cv_prog_DUMPBIN+y}
  4600. then :
  4601. printf %s "(cached) " >&6
  4602. else $as_nop
  4603. if test -n "$DUMPBIN"; then
  4604. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4605. else
  4606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4607. for as_dir in $PATH
  4608. do
  4609. IFS=$as_save_IFS
  4610. case $as_dir in #(((
  4611. '') as_dir=./ ;;
  4612. */) ;;
  4613. *) as_dir=$as_dir/ ;;
  4614. esac
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4617. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. DUMPBIN=$ac_cv_prog_DUMPBIN
  4627. if test -n "$DUMPBIN"; then
  4628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4629. printf "%s\n" "$DUMPBIN" >&6; }
  4630. else
  4631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. printf "%s\n" "no" >&6; }
  4633. fi
  4634. test -n "$DUMPBIN" && break
  4635. done
  4636. fi
  4637. if test -z "$DUMPBIN"; then
  4638. ac_ct_DUMPBIN=$DUMPBIN
  4639. for ac_prog in dumpbin "link -dump"
  4640. do
  4641. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4642. set dummy $ac_prog; ac_word=$2
  4643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4644. printf %s "checking for $ac_word... " >&6; }
  4645. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4646. then :
  4647. printf %s "(cached) " >&6
  4648. else $as_nop
  4649. if test -n "$ac_ct_DUMPBIN"; then
  4650. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. case $as_dir in #(((
  4657. '') as_dir=./ ;;
  4658. */) ;;
  4659. *) as_dir=$as_dir/ ;;
  4660. esac
  4661. for ac_exec_ext in '' $ac_executable_extensions; do
  4662. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4663. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4665. break 2
  4666. fi
  4667. done
  4668. done
  4669. IFS=$as_save_IFS
  4670. fi
  4671. fi
  4672. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4673. if test -n "$ac_ct_DUMPBIN"; then
  4674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4675. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4676. else
  4677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4678. printf "%s\n" "no" >&6; }
  4679. fi
  4680. test -n "$ac_ct_DUMPBIN" && break
  4681. done
  4682. if test "x$ac_ct_DUMPBIN" = x; then
  4683. DUMPBIN=":"
  4684. else
  4685. case $cross_compiling:$ac_tool_warned in
  4686. yes:)
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4688. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4689. ac_tool_warned=yes ;;
  4690. esac
  4691. DUMPBIN=$ac_ct_DUMPBIN
  4692. fi
  4693. fi
  4694. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4695. *COFF*)
  4696. DUMPBIN="$DUMPBIN -symbols -headers"
  4697. ;;
  4698. *)
  4699. DUMPBIN=:
  4700. ;;
  4701. esac
  4702. fi
  4703. if test : != "$DUMPBIN"; then
  4704. NM=$DUMPBIN
  4705. fi
  4706. fi
  4707. test -z "$NM" && NM=nm
  4708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4709. printf %s "checking the name lister ($NM) interface... " >&6; }
  4710. if test ${lt_cv_nm_interface+y}
  4711. then :
  4712. printf %s "(cached) " >&6
  4713. else $as_nop
  4714. lt_cv_nm_interface="BSD nm"
  4715. echo "int some_variable = 0;" > conftest.$ac_ext
  4716. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4717. (eval "$ac_compile" 2>conftest.err)
  4718. cat conftest.err >&5
  4719. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4720. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4721. cat conftest.err >&5
  4722. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4723. cat conftest.out >&5
  4724. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4725. lt_cv_nm_interface="MS dumpbin"
  4726. fi
  4727. rm -f conftest*
  4728. fi
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4730. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4732. printf %s "checking whether ln -s works... " >&6; }
  4733. LN_S=$as_ln_s
  4734. if test "$LN_S" = "ln -s"; then
  4735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4736. printf "%s\n" "yes" >&6; }
  4737. else
  4738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4739. printf "%s\n" "no, using $LN_S" >&6; }
  4740. fi
  4741. # find the maximum length of command line arguments
  4742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4743. printf %s "checking the maximum length of command line arguments... " >&6; }
  4744. if test ${lt_cv_sys_max_cmd_len+y}
  4745. then :
  4746. printf %s "(cached) " >&6
  4747. else $as_nop
  4748. i=0
  4749. teststring=ABCD
  4750. case $build_os in
  4751. msdosdjgpp*)
  4752. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4753. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4754. # during glob expansion). Even if it were fixed, the result of this
  4755. # check would be larger than it should be.
  4756. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4757. ;;
  4758. gnu*)
  4759. # Under GNU Hurd, this test is not required because there is
  4760. # no limit to the length of command line arguments.
  4761. # Libtool will interpret -1 as no limit whatsoever
  4762. lt_cv_sys_max_cmd_len=-1;
  4763. ;;
  4764. cygwin* | mingw* | cegcc*)
  4765. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4766. # about 5 minutes as the teststring grows exponentially.
  4767. # Worse, since 9x/ME are not pre-emptively multitasking,
  4768. # you end up with a "frozen" computer, even though with patience
  4769. # the test eventually succeeds (with a max line length of 256k).
  4770. # Instead, let's just punt: use the minimum linelength reported by
  4771. # all of the supported platforms: 8192 (on NT/2K/XP).
  4772. lt_cv_sys_max_cmd_len=8192;
  4773. ;;
  4774. mint*)
  4775. # On MiNT this can take a long time and run out of memory.
  4776. lt_cv_sys_max_cmd_len=8192;
  4777. ;;
  4778. amigaos*)
  4779. # On AmigaOS with pdksh, this test takes hours, literally.
  4780. # So we just punt and use a minimum line length of 8192.
  4781. lt_cv_sys_max_cmd_len=8192;
  4782. ;;
  4783. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4784. # This has been around since 386BSD, at least. Likely further.
  4785. if test -x /sbin/sysctl; then
  4786. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4787. elif test -x /usr/sbin/sysctl; then
  4788. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4789. else
  4790. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4791. fi
  4792. # And add a safety zone
  4793. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4794. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4795. ;;
  4796. interix*)
  4797. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4798. lt_cv_sys_max_cmd_len=196608
  4799. ;;
  4800. os2*)
  4801. # The test takes a long time on OS/2.
  4802. lt_cv_sys_max_cmd_len=8192
  4803. ;;
  4804. osf*)
  4805. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4806. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4807. # nice to cause kernel panics so lets avoid the loop below.
  4808. # First set a reasonable default.
  4809. lt_cv_sys_max_cmd_len=16384
  4810. #
  4811. if test -x /sbin/sysconfig; then
  4812. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4813. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4814. esac
  4815. fi
  4816. ;;
  4817. sco3.2v5*)
  4818. lt_cv_sys_max_cmd_len=102400
  4819. ;;
  4820. sysv5* | sco5v6* | sysv4.2uw2*)
  4821. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4822. if test -n "$kargmax"; then
  4823. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4824. else
  4825. lt_cv_sys_max_cmd_len=32768
  4826. fi
  4827. ;;
  4828. *)
  4829. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4830. if test -n "$lt_cv_sys_max_cmd_len" && \
  4831. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4832. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4833. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4834. else
  4835. # Make teststring a little bigger before we do anything with it.
  4836. # a 1K string should be a reasonable start.
  4837. for i in 1 2 3 4 5 6 7 8; do
  4838. teststring=$teststring$teststring
  4839. done
  4840. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4841. # If test is not a shell built-in, we'll probably end up computing a
  4842. # maximum length that is only half of the actual maximum length, but
  4843. # we can't tell.
  4844. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4845. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4846. test 17 != "$i" # 1/2 MB should be enough
  4847. do
  4848. i=`expr $i + 1`
  4849. teststring=$teststring$teststring
  4850. done
  4851. # Only check the string length outside the loop.
  4852. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4853. teststring=
  4854. # Add a significant safety factor because C++ compilers can tack on
  4855. # massive amounts of additional arguments before passing them to the
  4856. # linker. It appears as though 1/2 is a usable value.
  4857. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4858. fi
  4859. ;;
  4860. esac
  4861. fi
  4862. if test -n "$lt_cv_sys_max_cmd_len"; then
  4863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4864. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4865. else
  4866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4867. printf "%s\n" "none" >&6; }
  4868. fi
  4869. max_cmd_len=$lt_cv_sys_max_cmd_len
  4870. : ${CP="cp -f"}
  4871. : ${MV="mv -f"}
  4872. : ${RM="rm -f"}
  4873. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4874. lt_unset=unset
  4875. else
  4876. lt_unset=false
  4877. fi
  4878. # test EBCDIC or ASCII
  4879. case `echo X|tr X '\101'` in
  4880. A) # ASCII based system
  4881. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4882. lt_SP2NL='tr \040 \012'
  4883. lt_NL2SP='tr \015\012 \040\040'
  4884. ;;
  4885. *) # EBCDIC based system
  4886. lt_SP2NL='tr \100 \n'
  4887. lt_NL2SP='tr \r\n \100\100'
  4888. ;;
  4889. esac
  4890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4891. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4892. if test ${lt_cv_to_host_file_cmd+y}
  4893. then :
  4894. printf %s "(cached) " >&6
  4895. else $as_nop
  4896. case $host in
  4897. *-*-mingw* )
  4898. case $build in
  4899. *-*-mingw* ) # actually msys
  4900. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4901. ;;
  4902. *-*-cygwin* )
  4903. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4904. ;;
  4905. * ) # otherwise, assume *nix
  4906. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4907. ;;
  4908. esac
  4909. ;;
  4910. *-*-cygwin* )
  4911. case $build in
  4912. *-*-mingw* ) # actually msys
  4913. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4914. ;;
  4915. *-*-cygwin* )
  4916. lt_cv_to_host_file_cmd=func_convert_file_noop
  4917. ;;
  4918. * ) # otherwise, assume *nix
  4919. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4920. ;;
  4921. esac
  4922. ;;
  4923. * ) # unhandled hosts (and "normal" native builds)
  4924. lt_cv_to_host_file_cmd=func_convert_file_noop
  4925. ;;
  4926. esac
  4927. fi
  4928. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4930. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4932. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4933. if test ${lt_cv_to_tool_file_cmd+y}
  4934. then :
  4935. printf %s "(cached) " >&6
  4936. else $as_nop
  4937. #assume ordinary cross tools, or native build.
  4938. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4939. case $host in
  4940. *-*-mingw* )
  4941. case $build in
  4942. *-*-mingw* ) # actually msys
  4943. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4944. ;;
  4945. esac
  4946. ;;
  4947. esac
  4948. fi
  4949. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4951. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4953. printf %s "checking for $LD option to reload object files... " >&6; }
  4954. if test ${lt_cv_ld_reload_flag+y}
  4955. then :
  4956. printf %s "(cached) " >&6
  4957. else $as_nop
  4958. lt_cv_ld_reload_flag='-r'
  4959. fi
  4960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4961. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4962. reload_flag=$lt_cv_ld_reload_flag
  4963. case $reload_flag in
  4964. "" | " "*) ;;
  4965. *) reload_flag=" $reload_flag" ;;
  4966. esac
  4967. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4968. case $host_os in
  4969. cygwin* | mingw* | pw32* | cegcc*)
  4970. if test yes != "$GCC"; then
  4971. reload_cmds=false
  4972. fi
  4973. ;;
  4974. darwin*)
  4975. if test yes = "$GCC"; then
  4976. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4977. else
  4978. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4979. fi
  4980. ;;
  4981. esac
  4982. if test -n "$ac_tool_prefix"; then
  4983. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4984. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4986. printf %s "checking for $ac_word... " >&6; }
  4987. if test ${ac_cv_prog_OBJDUMP+y}
  4988. then :
  4989. printf %s "(cached) " >&6
  4990. else $as_nop
  4991. if test -n "$OBJDUMP"; then
  4992. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4993. else
  4994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995. for as_dir in $PATH
  4996. do
  4997. IFS=$as_save_IFS
  4998. case $as_dir in #(((
  4999. '') as_dir=./ ;;
  5000. */) ;;
  5001. *) as_dir=$as_dir/ ;;
  5002. esac
  5003. for ac_exec_ext in '' $ac_executable_extensions; do
  5004. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5005. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5007. break 2
  5008. fi
  5009. done
  5010. done
  5011. IFS=$as_save_IFS
  5012. fi
  5013. fi
  5014. OBJDUMP=$ac_cv_prog_OBJDUMP
  5015. if test -n "$OBJDUMP"; then
  5016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5017. printf "%s\n" "$OBJDUMP" >&6; }
  5018. else
  5019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5020. printf "%s\n" "no" >&6; }
  5021. fi
  5022. fi
  5023. if test -z "$ac_cv_prog_OBJDUMP"; then
  5024. ac_ct_OBJDUMP=$OBJDUMP
  5025. # Extract the first word of "objdump", so it can be a program name with args.
  5026. set dummy objdump; ac_word=$2
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5028. printf %s "checking for $ac_word... " >&6; }
  5029. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5030. then :
  5031. printf %s "(cached) " >&6
  5032. else $as_nop
  5033. if test -n "$ac_ct_OBJDUMP"; then
  5034. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. case $as_dir in #(((
  5041. '') as_dir=./ ;;
  5042. */) ;;
  5043. *) as_dir=$as_dir/ ;;
  5044. esac
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5047. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5049. break 2
  5050. fi
  5051. done
  5052. done
  5053. IFS=$as_save_IFS
  5054. fi
  5055. fi
  5056. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5057. if test -n "$ac_ct_OBJDUMP"; then
  5058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5059. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5060. else
  5061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5062. printf "%s\n" "no" >&6; }
  5063. fi
  5064. if test "x$ac_ct_OBJDUMP" = x; then
  5065. OBJDUMP="false"
  5066. else
  5067. case $cross_compiling:$ac_tool_warned in
  5068. yes:)
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5070. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5071. ac_tool_warned=yes ;;
  5072. esac
  5073. OBJDUMP=$ac_ct_OBJDUMP
  5074. fi
  5075. else
  5076. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5077. fi
  5078. test -z "$OBJDUMP" && OBJDUMP=objdump
  5079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5080. printf %s "checking how to recognize dependent libraries... " >&6; }
  5081. if test ${lt_cv_deplibs_check_method+y}
  5082. then :
  5083. printf %s "(cached) " >&6
  5084. else $as_nop
  5085. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5086. lt_cv_file_magic_test_file=
  5087. lt_cv_deplibs_check_method='unknown'
  5088. # Need to set the preceding variable on all platforms that support
  5089. # interlibrary dependencies.
  5090. # 'none' -- dependencies not supported.
  5091. # 'unknown' -- same as none, but documents that we really don't know.
  5092. # 'pass_all' -- all dependencies passed with no checks.
  5093. # 'test_compile' -- check by making test program.
  5094. # 'file_magic [[regex]]' -- check by looking for files in library path
  5095. # that responds to the $file_magic_cmd with a given extended regex.
  5096. # If you have 'file' or equivalent on your system and you're not sure
  5097. # whether 'pass_all' will *always* work, you probably want this one.
  5098. case $host_os in
  5099. aix[4-9]*)
  5100. lt_cv_deplibs_check_method=pass_all
  5101. ;;
  5102. beos*)
  5103. lt_cv_deplibs_check_method=pass_all
  5104. ;;
  5105. bsdi[45]*)
  5106. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5107. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5108. lt_cv_file_magic_test_file=/shlib/libc.so
  5109. ;;
  5110. cygwin*)
  5111. # func_win32_libid is a shell function defined in ltmain.sh
  5112. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5113. lt_cv_file_magic_cmd='func_win32_libid'
  5114. lt_cv_deplibs_check_method=pass_all # SDL customization
  5115. ;;
  5116. mingw* | pw32*)
  5117. # Base MSYS/MinGW do not provide the 'file' command needed by
  5118. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5119. # unless we find 'file', for example because we are cross-compiling.
  5120. if ( file / ) >/dev/null 2>&1; then
  5121. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5122. lt_cv_file_magic_cmd='func_win32_libid'
  5123. else
  5124. # Keep this pattern in sync with the one in func_win32_libid.
  5125. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5126. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5127. fi
  5128. lt_cv_deplibs_check_method=pass_all # SDL customization
  5129. ;;
  5130. cegcc*)
  5131. # use the weaker test based on 'objdump'. See mingw*.
  5132. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5133. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5134. ;;
  5135. darwin* | rhapsody*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. freebsd* | dragonfly* | midnightbsd*)
  5139. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5140. case $host_cpu in
  5141. i*86 )
  5142. # Not sure whether the presence of OpenBSD here was a mistake.
  5143. # Let's accept both of them until this is cleared up.
  5144. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5145. lt_cv_file_magic_cmd=/usr/bin/file
  5146. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5147. ;;
  5148. esac
  5149. else
  5150. lt_cv_deplibs_check_method=pass_all
  5151. fi
  5152. ;;
  5153. haiku*)
  5154. lt_cv_deplibs_check_method=pass_all
  5155. ;;
  5156. hpux10.20* | hpux11*)
  5157. lt_cv_file_magic_cmd=/usr/bin/file
  5158. case $host_cpu in
  5159. ia64*)
  5160. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5161. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5162. ;;
  5163. hppa*64*)
  5164. 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]'
  5165. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5166. ;;
  5167. *)
  5168. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5169. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5170. ;;
  5171. esac
  5172. ;;
  5173. interix[3-9]*)
  5174. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5175. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5176. ;;
  5177. irix5* | irix6* | nonstopux*)
  5178. case $LD in
  5179. *-32|*"-32 ") libmagic=32-bit;;
  5180. *-n32|*"-n32 ") libmagic=N32;;
  5181. *-64|*"-64 ") libmagic=64-bit;;
  5182. *) libmagic=never-match;;
  5183. esac
  5184. lt_cv_deplibs_check_method=pass_all
  5185. ;;
  5186. # This must be glibc/ELF.
  5187. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5188. lt_cv_deplibs_check_method=pass_all
  5189. ;;
  5190. netbsd*)
  5191. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5192. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5193. else
  5194. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5195. fi
  5196. ;;
  5197. newos6*)
  5198. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5199. lt_cv_file_magic_cmd=/usr/bin/file
  5200. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5201. ;;
  5202. *nto* | *qnx*)
  5203. lt_cv_deplibs_check_method=pass_all
  5204. ;;
  5205. openbsd* | bitrig*)
  5206. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5207. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5208. else
  5209. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5210. fi
  5211. ;;
  5212. osf3* | osf4* | osf5*)
  5213. lt_cv_deplibs_check_method=pass_all
  5214. ;;
  5215. rdos*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. solaris*)
  5219. lt_cv_deplibs_check_method=pass_all
  5220. ;;
  5221. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5222. lt_cv_deplibs_check_method=pass_all
  5223. ;;
  5224. sysv4 | sysv4.3*)
  5225. case $host_vendor in
  5226. motorola)
  5227. 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]'
  5228. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5229. ;;
  5230. ncr)
  5231. lt_cv_deplibs_check_method=pass_all
  5232. ;;
  5233. sequent)
  5234. lt_cv_file_magic_cmd='/bin/file'
  5235. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5236. ;;
  5237. sni)
  5238. lt_cv_file_magic_cmd='/bin/file'
  5239. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5240. lt_cv_file_magic_test_file=/lib/libc.so
  5241. ;;
  5242. siemens)
  5243. lt_cv_deplibs_check_method=pass_all
  5244. ;;
  5245. pc)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. esac
  5249. ;;
  5250. tpf*)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. os2*)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. esac
  5257. fi
  5258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5259. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5260. file_magic_glob=
  5261. want_nocaseglob=no
  5262. if test "$build" = "$host"; then
  5263. case $host_os in
  5264. mingw* | pw32*)
  5265. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5266. want_nocaseglob=yes
  5267. else
  5268. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5269. fi
  5270. ;;
  5271. esac
  5272. fi
  5273. file_magic_cmd=$lt_cv_file_magic_cmd
  5274. deplibs_check_method=$lt_cv_deplibs_check_method
  5275. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5276. if test -n "$ac_tool_prefix"; then
  5277. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5278. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5280. printf %s "checking for $ac_word... " >&6; }
  5281. if test ${ac_cv_prog_DLLTOOL+y}
  5282. then :
  5283. printf %s "(cached) " >&6
  5284. else $as_nop
  5285. if test -n "$DLLTOOL"; then
  5286. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5287. else
  5288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5289. for as_dir in $PATH
  5290. do
  5291. IFS=$as_save_IFS
  5292. case $as_dir in #(((
  5293. '') as_dir=./ ;;
  5294. */) ;;
  5295. *) as_dir=$as_dir/ ;;
  5296. esac
  5297. for ac_exec_ext in '' $ac_executable_extensions; do
  5298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5299. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5301. break 2
  5302. fi
  5303. done
  5304. done
  5305. IFS=$as_save_IFS
  5306. fi
  5307. fi
  5308. DLLTOOL=$ac_cv_prog_DLLTOOL
  5309. if test -n "$DLLTOOL"; then
  5310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5311. printf "%s\n" "$DLLTOOL" >&6; }
  5312. else
  5313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5314. printf "%s\n" "no" >&6; }
  5315. fi
  5316. fi
  5317. if test -z "$ac_cv_prog_DLLTOOL"; then
  5318. ac_ct_DLLTOOL=$DLLTOOL
  5319. # Extract the first word of "dlltool", so it can be a program name with args.
  5320. set dummy dlltool; ac_word=$2
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5322. printf %s "checking for $ac_word... " >&6; }
  5323. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5324. then :
  5325. printf %s "(cached) " >&6
  5326. else $as_nop
  5327. if test -n "$ac_ct_DLLTOOL"; then
  5328. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5329. else
  5330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5331. for as_dir in $PATH
  5332. do
  5333. IFS=$as_save_IFS
  5334. case $as_dir in #(((
  5335. '') as_dir=./ ;;
  5336. */) ;;
  5337. *) as_dir=$as_dir/ ;;
  5338. esac
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5341. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5351. if test -n "$ac_ct_DLLTOOL"; then
  5352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5353. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5354. else
  5355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. printf "%s\n" "no" >&6; }
  5357. fi
  5358. if test "x$ac_ct_DLLTOOL" = x; then
  5359. DLLTOOL="false"
  5360. else
  5361. case $cross_compiling:$ac_tool_warned in
  5362. yes:)
  5363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5364. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5365. ac_tool_warned=yes ;;
  5366. esac
  5367. DLLTOOL=$ac_ct_DLLTOOL
  5368. fi
  5369. else
  5370. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5371. fi
  5372. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5374. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5375. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5376. then :
  5377. printf %s "(cached) " >&6
  5378. else $as_nop
  5379. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5380. case $host_os in
  5381. cygwin* | mingw* | pw32* | cegcc*)
  5382. # two different shell functions defined in ltmain.sh;
  5383. # decide which one to use based on capabilities of $DLLTOOL
  5384. case `$DLLTOOL --help 2>&1` in
  5385. *--identify-strict*)
  5386. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5387. ;;
  5388. *)
  5389. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5390. ;;
  5391. esac
  5392. ;;
  5393. *)
  5394. # fallback: assume linklib IS sharedlib
  5395. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5396. ;;
  5397. esac
  5398. fi
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5400. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5401. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5402. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5403. if test -n "$ac_tool_prefix"; then
  5404. for ac_prog in ar
  5405. do
  5406. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5407. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5409. printf %s "checking for $ac_word... " >&6; }
  5410. if test ${ac_cv_prog_AR+y}
  5411. then :
  5412. printf %s "(cached) " >&6
  5413. else $as_nop
  5414. if test -n "$AR"; then
  5415. ac_cv_prog_AR="$AR" # Let the user override the test.
  5416. else
  5417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5418. for as_dir in $PATH
  5419. do
  5420. IFS=$as_save_IFS
  5421. case $as_dir in #(((
  5422. '') as_dir=./ ;;
  5423. */) ;;
  5424. *) as_dir=$as_dir/ ;;
  5425. esac
  5426. for ac_exec_ext in '' $ac_executable_extensions; do
  5427. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5428. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5430. break 2
  5431. fi
  5432. done
  5433. done
  5434. IFS=$as_save_IFS
  5435. fi
  5436. fi
  5437. AR=$ac_cv_prog_AR
  5438. if test -n "$AR"; then
  5439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5440. printf "%s\n" "$AR" >&6; }
  5441. else
  5442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5443. printf "%s\n" "no" >&6; }
  5444. fi
  5445. test -n "$AR" && break
  5446. done
  5447. fi
  5448. if test -z "$AR"; then
  5449. ac_ct_AR=$AR
  5450. for ac_prog in ar
  5451. do
  5452. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5453. set dummy $ac_prog; ac_word=$2
  5454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5455. printf %s "checking for $ac_word... " >&6; }
  5456. if test ${ac_cv_prog_ac_ct_AR+y}
  5457. then :
  5458. printf %s "(cached) " >&6
  5459. else $as_nop
  5460. if test -n "$ac_ct_AR"; then
  5461. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5462. else
  5463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5464. for as_dir in $PATH
  5465. do
  5466. IFS=$as_save_IFS
  5467. case $as_dir in #(((
  5468. '') as_dir=./ ;;
  5469. */) ;;
  5470. *) as_dir=$as_dir/ ;;
  5471. esac
  5472. for ac_exec_ext in '' $ac_executable_extensions; do
  5473. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5474. ac_cv_prog_ac_ct_AR="$ac_prog"
  5475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5476. break 2
  5477. fi
  5478. done
  5479. done
  5480. IFS=$as_save_IFS
  5481. fi
  5482. fi
  5483. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5484. if test -n "$ac_ct_AR"; then
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5486. printf "%s\n" "$ac_ct_AR" >&6; }
  5487. else
  5488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5489. printf "%s\n" "no" >&6; }
  5490. fi
  5491. test -n "$ac_ct_AR" && break
  5492. done
  5493. if test "x$ac_ct_AR" = x; then
  5494. AR="false"
  5495. else
  5496. case $cross_compiling:$ac_tool_warned in
  5497. yes:)
  5498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5499. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5500. ac_tool_warned=yes ;;
  5501. esac
  5502. AR=$ac_ct_AR
  5503. fi
  5504. fi
  5505. : ${AR=ar}
  5506. : ${AR_FLAGS=cru}
  5507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5508. printf %s "checking for archiver @FILE support... " >&6; }
  5509. if test ${lt_cv_ar_at_file+y}
  5510. then :
  5511. printf %s "(cached) " >&6
  5512. else $as_nop
  5513. lt_cv_ar_at_file=no
  5514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5515. /* end confdefs.h. */
  5516. int
  5517. main (void)
  5518. {
  5519. ;
  5520. return 0;
  5521. }
  5522. _ACEOF
  5523. if ac_fn_c_try_compile "$LINENO"
  5524. then :
  5525. echo conftest.$ac_objext > conftest.lst
  5526. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5527. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5528. (eval $lt_ar_try) 2>&5
  5529. ac_status=$?
  5530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5531. test $ac_status = 0; }
  5532. if test 0 -eq "$ac_status"; then
  5533. # Ensure the archiver fails upon bogus file names.
  5534. rm -f conftest.$ac_objext libconftest.a
  5535. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5536. (eval $lt_ar_try) 2>&5
  5537. ac_status=$?
  5538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5539. test $ac_status = 0; }
  5540. if test 0 -ne "$ac_status"; then
  5541. lt_cv_ar_at_file=@
  5542. fi
  5543. fi
  5544. rm -f conftest.* libconftest.a
  5545. fi
  5546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5547. fi
  5548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5549. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5550. if test no = "$lt_cv_ar_at_file"; then
  5551. archiver_list_spec=
  5552. else
  5553. archiver_list_spec=$lt_cv_ar_at_file
  5554. fi
  5555. if test -n "$ac_tool_prefix"; then
  5556. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5557. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5559. printf %s "checking for $ac_word... " >&6; }
  5560. if test ${ac_cv_prog_STRIP+y}
  5561. then :
  5562. printf %s "(cached) " >&6
  5563. else $as_nop
  5564. if test -n "$STRIP"; then
  5565. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5566. else
  5567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5568. for as_dir in $PATH
  5569. do
  5570. IFS=$as_save_IFS
  5571. case $as_dir in #(((
  5572. '') as_dir=./ ;;
  5573. */) ;;
  5574. *) as_dir=$as_dir/ ;;
  5575. esac
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5578. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5579. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. STRIP=$ac_cv_prog_STRIP
  5588. if test -n "$STRIP"; then
  5589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5590. printf "%s\n" "$STRIP" >&6; }
  5591. else
  5592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. printf "%s\n" "no" >&6; }
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_STRIP"; then
  5597. ac_ct_STRIP=$STRIP
  5598. # Extract the first word of "strip", so it can be a program name with args.
  5599. set dummy strip; ac_word=$2
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. printf %s "checking for $ac_word... " >&6; }
  5602. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5603. then :
  5604. printf %s "(cached) " >&6
  5605. else $as_nop
  5606. if test -n "$ac_ct_STRIP"; then
  5607. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. case $as_dir in #(((
  5614. '') as_dir=./ ;;
  5615. */) ;;
  5616. *) as_dir=$as_dir/ ;;
  5617. esac
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5620. ac_cv_prog_ac_ct_STRIP="strip"
  5621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5630. if test -n "$ac_ct_STRIP"; then
  5631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5632. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5633. else
  5634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. printf "%s\n" "no" >&6; }
  5636. fi
  5637. if test "x$ac_ct_STRIP" = x; then
  5638. STRIP=":"
  5639. else
  5640. case $cross_compiling:$ac_tool_warned in
  5641. yes:)
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5643. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5644. ac_tool_warned=yes ;;
  5645. esac
  5646. STRIP=$ac_ct_STRIP
  5647. fi
  5648. else
  5649. STRIP="$ac_cv_prog_STRIP"
  5650. fi
  5651. test -z "$STRIP" && STRIP=:
  5652. if test -n "$ac_tool_prefix"; then
  5653. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5654. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5656. printf %s "checking for $ac_word... " >&6; }
  5657. if test ${ac_cv_prog_RANLIB+y}
  5658. then :
  5659. printf %s "(cached) " >&6
  5660. else $as_nop
  5661. if test -n "$RANLIB"; then
  5662. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5663. else
  5664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. case $as_dir in #(((
  5669. '') as_dir=./ ;;
  5670. */) ;;
  5671. *) as_dir=$as_dir/ ;;
  5672. esac
  5673. for ac_exec_ext in '' $ac_executable_extensions; do
  5674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5675. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5677. break 2
  5678. fi
  5679. done
  5680. done
  5681. IFS=$as_save_IFS
  5682. fi
  5683. fi
  5684. RANLIB=$ac_cv_prog_RANLIB
  5685. if test -n "$RANLIB"; then
  5686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5687. printf "%s\n" "$RANLIB" >&6; }
  5688. else
  5689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. printf "%s\n" "no" >&6; }
  5691. fi
  5692. fi
  5693. if test -z "$ac_cv_prog_RANLIB"; then
  5694. ac_ct_RANLIB=$RANLIB
  5695. # Extract the first word of "ranlib", so it can be a program name with args.
  5696. set dummy ranlib; ac_word=$2
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. printf %s "checking for $ac_word... " >&6; }
  5699. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5700. then :
  5701. printf %s "(cached) " >&6
  5702. else $as_nop
  5703. if test -n "$ac_ct_RANLIB"; then
  5704. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. case $as_dir in #(((
  5711. '') as_dir=./ ;;
  5712. */) ;;
  5713. *) as_dir=$as_dir/ ;;
  5714. esac
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5727. if test -n "$ac_ct_RANLIB"; then
  5728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5729. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5730. else
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. printf "%s\n" "no" >&6; }
  5733. fi
  5734. if test "x$ac_ct_RANLIB" = x; then
  5735. RANLIB=":"
  5736. else
  5737. case $cross_compiling:$ac_tool_warned in
  5738. yes:)
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5740. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5741. ac_tool_warned=yes ;;
  5742. esac
  5743. RANLIB=$ac_ct_RANLIB
  5744. fi
  5745. else
  5746. RANLIB="$ac_cv_prog_RANLIB"
  5747. fi
  5748. test -z "$RANLIB" && RANLIB=:
  5749. # Determine commands to create old-style static archives.
  5750. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5751. old_postinstall_cmds='chmod 644 $oldlib'
  5752. old_postuninstall_cmds=
  5753. if test -n "$RANLIB"; then
  5754. case $host_os in
  5755. bitrig* | openbsd*)
  5756. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5757. ;;
  5758. *)
  5759. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5760. ;;
  5761. esac
  5762. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5763. fi
  5764. case $host_os in
  5765. darwin*)
  5766. lock_old_archive_extraction=yes ;;
  5767. *)
  5768. lock_old_archive_extraction=no ;;
  5769. esac
  5770. for ac_prog in gawk mawk nawk awk
  5771. do
  5772. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5773. set dummy $ac_prog; ac_word=$2
  5774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5775. printf %s "checking for $ac_word... " >&6; }
  5776. if test ${ac_cv_prog_AWK+y}
  5777. then :
  5778. printf %s "(cached) " >&6
  5779. else $as_nop
  5780. if test -n "$AWK"; then
  5781. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. case $as_dir in #(((
  5788. '') as_dir=./ ;;
  5789. */) ;;
  5790. *) as_dir=$as_dir/ ;;
  5791. esac
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_AWK="$ac_prog"
  5795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. AWK=$ac_cv_prog_AWK
  5804. if test -n "$AWK"; then
  5805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5806. printf "%s\n" "$AWK" >&6; }
  5807. else
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. printf "%s\n" "no" >&6; }
  5810. fi
  5811. test -n "$AWK" && break
  5812. done
  5813. # If no C compiler was specified, use CC.
  5814. LTCC=${LTCC-"$CC"}
  5815. # If no C compiler flags were specified, use CFLAGS.
  5816. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5817. # Allow CC to be a program name with arguments.
  5818. compiler=$CC
  5819. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5821. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5822. if test ${lt_cv_sys_global_symbol_pipe+y}
  5823. then :
  5824. printf %s "(cached) " >&6
  5825. else $as_nop
  5826. # These are sane defaults that work on at least a few old systems.
  5827. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5828. # Character class describing NM global symbol codes.
  5829. symcode='[BCDEGRST]'
  5830. # Regexp to match symbols that can be accessed directly from C.
  5831. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5832. # Define system-specific variables.
  5833. case $host_os in
  5834. aix*)
  5835. symcode='[BCDT]'
  5836. ;;
  5837. cygwin* | mingw* | pw32* | cegcc*)
  5838. symcode='[ABCDGISTW]'
  5839. ;;
  5840. hpux*)
  5841. if test ia64 = "$host_cpu"; then
  5842. symcode='[ABCDEGRST]'
  5843. fi
  5844. ;;
  5845. irix* | nonstopux*)
  5846. symcode='[BCDEGRST]'
  5847. ;;
  5848. osf*)
  5849. symcode='[BCDEGQRST]'
  5850. ;;
  5851. solaris*)
  5852. symcode='[BCDRT]'
  5853. ;;
  5854. sco3.2v5*)
  5855. symcode='[DT]'
  5856. ;;
  5857. sysv4.2uw2*)
  5858. symcode='[DT]'
  5859. ;;
  5860. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5861. symcode='[ABDT]'
  5862. ;;
  5863. sysv4)
  5864. symcode='[DFNSTU]'
  5865. ;;
  5866. esac
  5867. # If we're using GNU nm, then use its standard symbol codes.
  5868. case `$NM -V 2>&1` in
  5869. *GNU* | *'with BFD'*)
  5870. symcode='[ABCDGIRSTW]' ;;
  5871. esac
  5872. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5873. # Gets list of data symbols to import.
  5874. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5875. # Adjust the below global symbol transforms to fixup imported variables.
  5876. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5877. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5878. lt_c_name_lib_hook="\
  5879. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5880. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5881. else
  5882. # Disable hooks by default.
  5883. lt_cv_sys_global_symbol_to_import=
  5884. lt_cdecl_hook=
  5885. lt_c_name_hook=
  5886. lt_c_name_lib_hook=
  5887. fi
  5888. # Transform an extracted symbol line into a proper C declaration.
  5889. # Some systems (esp. on ia64) link data and code symbols differently,
  5890. # so use this general approach.
  5891. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5892. $lt_cdecl_hook\
  5893. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5894. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5895. # Transform an extracted symbol line into symbol name and symbol address
  5896. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5897. $lt_c_name_hook\
  5898. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5899. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5900. # Transform an extracted symbol line into symbol name with lib prefix and
  5901. # symbol address.
  5902. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5903. $lt_c_name_lib_hook\
  5904. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5905. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5906. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5907. # Handle CRLF in mingw tool chain
  5908. opt_cr=
  5909. case $build_os in
  5910. mingw*)
  5911. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5912. ;;
  5913. esac
  5914. # Try without a prefix underscore, then with it.
  5915. for ac_symprfx in "" "_"; do
  5916. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5917. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5918. # Write the raw and C identifiers.
  5919. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5920. # Fake it for dumpbin and say T for any non-static function,
  5921. # D for any global variable and I for any imported variable.
  5922. # Also find C++ and __fastcall symbols from MSVC++,
  5923. # which start with @ or ?.
  5924. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5925. " {last_section=section; section=\$ 3};"\
  5926. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5927. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5928. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5929. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5930. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5931. " \$ 0!~/External *\|/{next};"\
  5932. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5933. " {if(hide[section]) next};"\
  5934. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5935. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5936. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5937. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5938. " ' prfx=^$ac_symprfx"
  5939. else
  5940. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5941. fi
  5942. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5943. # Check to see that the pipe works correctly.
  5944. pipe_works=no
  5945. rm -f conftest*
  5946. cat > conftest.$ac_ext <<_LT_EOF
  5947. #ifdef __cplusplus
  5948. extern "C" {
  5949. #endif
  5950. char nm_test_var;
  5951. void nm_test_func(void);
  5952. void nm_test_func(void){}
  5953. #ifdef __cplusplus
  5954. }
  5955. #endif
  5956. int main(){nm_test_var='a';nm_test_func();return(0);}
  5957. _LT_EOF
  5958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5962. test $ac_status = 0; }; then
  5963. # Now try to grab the symbols.
  5964. nlist=conftest.nm
  5965. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5966. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5967. ac_status=$?
  5968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5969. test $ac_status = 0; } && test -s "$nlist"; then
  5970. # Try sorting and uniquifying the output.
  5971. if sort "$nlist" | uniq > "$nlist"T; then
  5972. mv -f "$nlist"T "$nlist"
  5973. else
  5974. rm -f "$nlist"T
  5975. fi
  5976. # Make sure that we snagged all the symbols we need.
  5977. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5978. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5979. cat <<_LT_EOF > conftest.$ac_ext
  5980. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5981. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5982. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5983. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5984. # define LT_DLSYM_CONST
  5985. #elif defined __osf__
  5986. /* This system does not cope well with relocations in const data. */
  5987. # define LT_DLSYM_CONST
  5988. #else
  5989. # define LT_DLSYM_CONST const
  5990. #endif
  5991. #ifdef __cplusplus
  5992. extern "C" {
  5993. #endif
  5994. _LT_EOF
  5995. # Now generate the symbol file.
  5996. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5997. cat <<_LT_EOF >> conftest.$ac_ext
  5998. /* The mapping between symbol names and symbols. */
  5999. LT_DLSYM_CONST struct {
  6000. const char *name;
  6001. void *address;
  6002. }
  6003. lt__PROGRAM__LTX_preloaded_symbols[] =
  6004. {
  6005. { "@PROGRAM@", (void *) 0 },
  6006. _LT_EOF
  6007. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6008. cat <<\_LT_EOF >> conftest.$ac_ext
  6009. {0, (void *) 0}
  6010. };
  6011. /* This works around a problem in FreeBSD linker */
  6012. #ifdef FREEBSD_WORKAROUND
  6013. static const void *lt_preloaded_setup() {
  6014. return lt__PROGRAM__LTX_preloaded_symbols;
  6015. }
  6016. #endif
  6017. #ifdef __cplusplus
  6018. }
  6019. #endif
  6020. _LT_EOF
  6021. # Now try linking the two files.
  6022. mv conftest.$ac_objext conftstm.$ac_objext
  6023. lt_globsym_save_LIBS=$LIBS
  6024. lt_globsym_save_CFLAGS=$CFLAGS
  6025. LIBS=conftstm.$ac_objext
  6026. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6028. (eval $ac_link) 2>&5
  6029. ac_status=$?
  6030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6032. pipe_works=yes
  6033. fi
  6034. LIBS=$lt_globsym_save_LIBS
  6035. CFLAGS=$lt_globsym_save_CFLAGS
  6036. else
  6037. echo "cannot find nm_test_func in $nlist" >&5
  6038. fi
  6039. else
  6040. echo "cannot find nm_test_var in $nlist" >&5
  6041. fi
  6042. else
  6043. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6044. fi
  6045. else
  6046. echo "$progname: failed program was:" >&5
  6047. cat conftest.$ac_ext >&5
  6048. fi
  6049. rm -rf conftest* conftst*
  6050. # Do not use the global_symbol_pipe unless it works.
  6051. if test yes = "$pipe_works"; then
  6052. break
  6053. else
  6054. lt_cv_sys_global_symbol_pipe=
  6055. fi
  6056. done
  6057. fi
  6058. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6059. lt_cv_sys_global_symbol_to_cdecl=
  6060. fi
  6061. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6063. printf "%s\n" "failed" >&6; }
  6064. else
  6065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6066. printf "%s\n" "ok" >&6; }
  6067. fi
  6068. # Response file support.
  6069. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6070. nm_file_list_spec='@'
  6071. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6072. nm_file_list_spec='@'
  6073. fi
  6074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6075. printf %s "checking for sysroot... " >&6; }
  6076. # Check whether --with-sysroot was given.
  6077. if test ${with_sysroot+y}
  6078. then :
  6079. withval=$with_sysroot;
  6080. else $as_nop
  6081. with_sysroot=no
  6082. fi
  6083. lt_sysroot=
  6084. case $with_sysroot in #(
  6085. yes)
  6086. if test yes = "$GCC"; then
  6087. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6088. fi
  6089. ;; #(
  6090. /*)
  6091. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6092. ;; #(
  6093. no|'')
  6094. ;; #(
  6095. *)
  6096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6097. printf "%s\n" "$with_sysroot" >&6; }
  6098. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6099. ;;
  6100. esac
  6101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6102. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6104. printf %s "checking for a working dd... " >&6; }
  6105. if test ${ac_cv_path_lt_DD+y}
  6106. then :
  6107. printf %s "(cached) " >&6
  6108. else $as_nop
  6109. printf 0123456789abcdef0123456789abcdef >conftest.i
  6110. cat conftest.i conftest.i >conftest2.i
  6111. : ${lt_DD:=$DD}
  6112. if test -z "$lt_DD"; then
  6113. ac_path_lt_DD_found=false
  6114. # Loop through the user's path and test for each of PROGNAME-LIST
  6115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6116. for as_dir in $PATH
  6117. do
  6118. IFS=$as_save_IFS
  6119. case $as_dir in #(((
  6120. '') as_dir=./ ;;
  6121. */) ;;
  6122. *) as_dir=$as_dir/ ;;
  6123. esac
  6124. for ac_prog in dd
  6125. do
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6128. as_fn_executable_p "$ac_path_lt_DD" || continue
  6129. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6130. cmp -s conftest.i conftest.out \
  6131. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6132. fi
  6133. $ac_path_lt_DD_found && break 3
  6134. done
  6135. done
  6136. done
  6137. IFS=$as_save_IFS
  6138. if test -z "$ac_cv_path_lt_DD"; then
  6139. :
  6140. fi
  6141. else
  6142. ac_cv_path_lt_DD=$lt_DD
  6143. fi
  6144. rm -f conftest.i conftest2.i conftest.out
  6145. fi
  6146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6147. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6149. printf %s "checking how to truncate binary pipes... " >&6; }
  6150. if test ${lt_cv_truncate_bin+y}
  6151. then :
  6152. printf %s "(cached) " >&6
  6153. else $as_nop
  6154. printf 0123456789abcdef0123456789abcdef >conftest.i
  6155. cat conftest.i conftest.i >conftest2.i
  6156. lt_cv_truncate_bin=
  6157. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6158. cmp -s conftest.i conftest.out \
  6159. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6160. fi
  6161. rm -f conftest.i conftest2.i conftest.out
  6162. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6163. fi
  6164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6165. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6166. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6167. func_cc_basename ()
  6168. {
  6169. for cc_temp in $*""; do
  6170. case $cc_temp in
  6171. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6172. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6173. \-*) ;;
  6174. *) break;;
  6175. esac
  6176. done
  6177. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6178. }
  6179. # Check whether --enable-libtool-lock was given.
  6180. if test ${enable_libtool_lock+y}
  6181. then :
  6182. enableval=$enable_libtool_lock;
  6183. fi
  6184. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6185. # Some flags need to be propagated to the compiler or linker for good
  6186. # libtool support.
  6187. case $host in
  6188. ia64-*-hpux*)
  6189. # Find out what ABI is being produced by ac_compile, and set mode
  6190. # options accordingly.
  6191. echo 'int i;' > conftest.$ac_ext
  6192. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6193. (eval $ac_compile) 2>&5
  6194. ac_status=$?
  6195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6196. test $ac_status = 0; }; then
  6197. case `/usr/bin/file conftest.$ac_objext` in
  6198. *ELF-32*)
  6199. HPUX_IA64_MODE=32
  6200. ;;
  6201. *ELF-64*)
  6202. HPUX_IA64_MODE=64
  6203. ;;
  6204. esac
  6205. fi
  6206. rm -rf conftest*
  6207. ;;
  6208. *-*-irix6*)
  6209. # Find out what ABI is being produced by ac_compile, and set linker
  6210. # options accordingly.
  6211. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6212. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6213. (eval $ac_compile) 2>&5
  6214. ac_status=$?
  6215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6216. test $ac_status = 0; }; then
  6217. if test yes = "$lt_cv_prog_gnu_ld"; then
  6218. case `/usr/bin/file conftest.$ac_objext` in
  6219. *32-bit*)
  6220. LD="${LD-ld} -melf32bsmip"
  6221. ;;
  6222. *N32*)
  6223. LD="${LD-ld} -melf32bmipn32"
  6224. ;;
  6225. *64-bit*)
  6226. LD="${LD-ld} -melf64bmip"
  6227. ;;
  6228. esac
  6229. else
  6230. case `/usr/bin/file conftest.$ac_objext` in
  6231. *32-bit*)
  6232. LD="${LD-ld} -32"
  6233. ;;
  6234. *N32*)
  6235. LD="${LD-ld} -n32"
  6236. ;;
  6237. *64-bit*)
  6238. LD="${LD-ld} -64"
  6239. ;;
  6240. esac
  6241. fi
  6242. fi
  6243. rm -rf conftest*
  6244. ;;
  6245. mips64*-*linux*)
  6246. # Find out what ABI is being produced by ac_compile, and set linker
  6247. # options accordingly.
  6248. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6249. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6250. (eval $ac_compile) 2>&5
  6251. ac_status=$?
  6252. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6253. test $ac_status = 0; }; then
  6254. emul=elf
  6255. case `/usr/bin/file conftest.$ac_objext` in
  6256. *32-bit*)
  6257. emul="${emul}32"
  6258. ;;
  6259. *64-bit*)
  6260. emul="${emul}64"
  6261. ;;
  6262. esac
  6263. case `/usr/bin/file conftest.$ac_objext` in
  6264. *MSB*)
  6265. emul="${emul}btsmip"
  6266. ;;
  6267. *LSB*)
  6268. emul="${emul}ltsmip"
  6269. ;;
  6270. esac
  6271. case `/usr/bin/file conftest.$ac_objext` in
  6272. *N32*)
  6273. emul="${emul}n32"
  6274. ;;
  6275. esac
  6276. LD="${LD-ld} -m $emul"
  6277. fi
  6278. rm -rf conftest*
  6279. ;;
  6280. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6281. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6282. # Find out what ABI is being produced by ac_compile, and set linker
  6283. # options accordingly. Note that the listed cases only cover the
  6284. # situations where additional linker options are needed (such as when
  6285. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6286. # vice versa); the common cases where no linker options are needed do
  6287. # not appear in the list.
  6288. echo 'int i;' > conftest.$ac_ext
  6289. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6290. (eval $ac_compile) 2>&5
  6291. ac_status=$?
  6292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6293. test $ac_status = 0; }; then
  6294. case `/usr/bin/file conftest.o` in
  6295. *32-bit*)
  6296. case $host in
  6297. x86_64-*kfreebsd*-gnu)
  6298. LD="${LD-ld} -m elf_i386_fbsd"
  6299. ;;
  6300. x86_64-*linux*)
  6301. case `/usr/bin/file conftest.o` in
  6302. *x86-64*)
  6303. LD="${LD-ld} -m elf32_x86_64"
  6304. ;;
  6305. *)
  6306. LD="${LD-ld} -m elf_i386"
  6307. ;;
  6308. esac
  6309. ;;
  6310. powerpc64le-*linux*)
  6311. LD="${LD-ld} -m elf32lppclinux"
  6312. ;;
  6313. powerpc64-*linux*)
  6314. LD="${LD-ld} -m elf32ppclinux"
  6315. ;;
  6316. s390x-*linux*)
  6317. LD="${LD-ld} -m elf_s390"
  6318. ;;
  6319. sparc64-*linux*)
  6320. LD="${LD-ld} -m elf32_sparc"
  6321. ;;
  6322. esac
  6323. ;;
  6324. *64-bit*)
  6325. case $host in
  6326. x86_64-*kfreebsd*-gnu)
  6327. LD="${LD-ld} -m elf_x86_64_fbsd"
  6328. ;;
  6329. x86_64-*linux*)
  6330. LD="${LD-ld} -m elf_x86_64"
  6331. ;;
  6332. powerpcle-*linux*|powerpc64le-*linux*)
  6333. LD="${LD-ld} -m elf64lppc"
  6334. ;;
  6335. powerpc-*linux*|powerpc64-*linux*)
  6336. LD="${LD-ld} -m elf64ppc"
  6337. ;;
  6338. s390*-*linux*|s390*-*tpf*)
  6339. LD="${LD-ld} -m elf64_s390"
  6340. ;;
  6341. sparc*-*linux*)
  6342. LD="${LD-ld} -m elf64_sparc"
  6343. ;;
  6344. esac
  6345. ;;
  6346. esac
  6347. fi
  6348. rm -rf conftest*
  6349. ;;
  6350. *-*-sco3.2v5*)
  6351. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6352. SAVE_CFLAGS=$CFLAGS
  6353. CFLAGS="$CFLAGS -belf"
  6354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6355. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6356. if test ${lt_cv_cc_needs_belf+y}
  6357. then :
  6358. printf %s "(cached) " >&6
  6359. else $as_nop
  6360. ac_ext=c
  6361. ac_cpp='$CPP $CPPFLAGS'
  6362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int
  6368. main (void)
  6369. {
  6370. ;
  6371. return 0;
  6372. }
  6373. _ACEOF
  6374. if ac_fn_c_try_link "$LINENO"
  6375. then :
  6376. lt_cv_cc_needs_belf=yes
  6377. else $as_nop
  6378. lt_cv_cc_needs_belf=no
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6381. conftest$ac_exeext conftest.$ac_ext
  6382. ac_ext=c
  6383. ac_cpp='$CPP $CPPFLAGS'
  6384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6387. fi
  6388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6389. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6390. if test yes != "$lt_cv_cc_needs_belf"; then
  6391. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6392. CFLAGS=$SAVE_CFLAGS
  6393. fi
  6394. ;;
  6395. *-*solaris*)
  6396. # Find out what ABI is being produced by ac_compile, and set linker
  6397. # options accordingly.
  6398. echo 'int i;' > conftest.$ac_ext
  6399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6400. (eval $ac_compile) 2>&5
  6401. ac_status=$?
  6402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6403. test $ac_status = 0; }; then
  6404. case `/usr/bin/file conftest.o` in
  6405. *64-bit*)
  6406. case $lt_cv_prog_gnu_ld in
  6407. yes*)
  6408. case $host in
  6409. i?86-*-solaris*|x86_64-*-solaris*)
  6410. LD="${LD-ld} -m elf_x86_64"
  6411. ;;
  6412. sparc*-*-solaris*)
  6413. LD="${LD-ld} -m elf64_sparc"
  6414. ;;
  6415. esac
  6416. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6417. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6418. LD=${LD-ld}_sol2
  6419. fi
  6420. ;;
  6421. *)
  6422. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6423. LD="${LD-ld} -64"
  6424. fi
  6425. ;;
  6426. esac
  6427. ;;
  6428. esac
  6429. fi
  6430. rm -rf conftest*
  6431. ;;
  6432. esac
  6433. need_locks=$enable_libtool_lock
  6434. if test -n "$ac_tool_prefix"; then
  6435. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6436. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6438. printf %s "checking for $ac_word... " >&6; }
  6439. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6440. then :
  6441. printf %s "(cached) " >&6
  6442. else $as_nop
  6443. if test -n "$MANIFEST_TOOL"; then
  6444. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. case $as_dir in #(((
  6451. '') as_dir=./ ;;
  6452. */) ;;
  6453. *) as_dir=$as_dir/ ;;
  6454. esac
  6455. for ac_exec_ext in '' $ac_executable_extensions; do
  6456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6457. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6459. break 2
  6460. fi
  6461. done
  6462. done
  6463. IFS=$as_save_IFS
  6464. fi
  6465. fi
  6466. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6467. if test -n "$MANIFEST_TOOL"; then
  6468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6469. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6470. else
  6471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6472. printf "%s\n" "no" >&6; }
  6473. fi
  6474. fi
  6475. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6476. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6477. # Extract the first word of "mt", so it can be a program name with args.
  6478. set dummy mt; ac_word=$2
  6479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. printf %s "checking for $ac_word... " >&6; }
  6481. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6482. then :
  6483. printf %s "(cached) " >&6
  6484. else $as_nop
  6485. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6486. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. case $as_dir in #(((
  6493. '') as_dir=./ ;;
  6494. */) ;;
  6495. *) as_dir=$as_dir/ ;;
  6496. esac
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6499. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. fi
  6507. fi
  6508. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6509. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6511. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6512. else
  6513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6514. printf "%s\n" "no" >&6; }
  6515. fi
  6516. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6517. MANIFEST_TOOL=":"
  6518. else
  6519. case $cross_compiling:$ac_tool_warned in
  6520. yes:)
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6522. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6523. ac_tool_warned=yes ;;
  6524. esac
  6525. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6526. fi
  6527. else
  6528. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6529. fi
  6530. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6532. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6533. if test ${lt_cv_path_mainfest_tool+y}
  6534. then :
  6535. printf %s "(cached) " >&6
  6536. else $as_nop
  6537. lt_cv_path_mainfest_tool=no
  6538. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6539. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6540. cat conftest.err >&5
  6541. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6542. lt_cv_path_mainfest_tool=yes
  6543. fi
  6544. rm -f conftest*
  6545. fi
  6546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6547. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6548. if test yes != "$lt_cv_path_mainfest_tool"; then
  6549. MANIFEST_TOOL=:
  6550. fi
  6551. case $host_os in
  6552. rhapsody* | darwin*)
  6553. if test -n "$ac_tool_prefix"; then
  6554. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6555. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6557. printf %s "checking for $ac_word... " >&6; }
  6558. if test ${ac_cv_prog_DSYMUTIL+y}
  6559. then :
  6560. printf %s "(cached) " >&6
  6561. else $as_nop
  6562. if test -n "$DSYMUTIL"; then
  6563. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6564. else
  6565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6566. for as_dir in $PATH
  6567. do
  6568. IFS=$as_save_IFS
  6569. case $as_dir in #(((
  6570. '') as_dir=./ ;;
  6571. */) ;;
  6572. *) as_dir=$as_dir/ ;;
  6573. esac
  6574. for ac_exec_ext in '' $ac_executable_extensions; do
  6575. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6576. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6577. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6578. break 2
  6579. fi
  6580. done
  6581. done
  6582. IFS=$as_save_IFS
  6583. fi
  6584. fi
  6585. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6586. if test -n "$DSYMUTIL"; then
  6587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6588. printf "%s\n" "$DSYMUTIL" >&6; }
  6589. else
  6590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6591. printf "%s\n" "no" >&6; }
  6592. fi
  6593. fi
  6594. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6595. ac_ct_DSYMUTIL=$DSYMUTIL
  6596. # Extract the first word of "dsymutil", so it can be a program name with args.
  6597. set dummy dsymutil; ac_word=$2
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. printf %s "checking for $ac_word... " >&6; }
  6600. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6601. then :
  6602. printf %s "(cached) " >&6
  6603. else $as_nop
  6604. if test -n "$ac_ct_DSYMUTIL"; then
  6605. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6606. else
  6607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6608. for as_dir in $PATH
  6609. do
  6610. IFS=$as_save_IFS
  6611. case $as_dir in #(((
  6612. '') as_dir=./ ;;
  6613. */) ;;
  6614. *) as_dir=$as_dir/ ;;
  6615. esac
  6616. for ac_exec_ext in '' $ac_executable_extensions; do
  6617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6618. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6620. break 2
  6621. fi
  6622. done
  6623. done
  6624. IFS=$as_save_IFS
  6625. fi
  6626. fi
  6627. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6628. if test -n "$ac_ct_DSYMUTIL"; then
  6629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6630. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6631. else
  6632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6633. printf "%s\n" "no" >&6; }
  6634. fi
  6635. if test "x$ac_ct_DSYMUTIL" = x; then
  6636. DSYMUTIL=":"
  6637. else
  6638. case $cross_compiling:$ac_tool_warned in
  6639. yes:)
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6641. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6642. ac_tool_warned=yes ;;
  6643. esac
  6644. DSYMUTIL=$ac_ct_DSYMUTIL
  6645. fi
  6646. else
  6647. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6648. fi
  6649. if test -n "$ac_tool_prefix"; then
  6650. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6651. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. printf %s "checking for $ac_word... " >&6; }
  6654. if test ${ac_cv_prog_NMEDIT+y}
  6655. then :
  6656. printf %s "(cached) " >&6
  6657. else $as_nop
  6658. if test -n "$NMEDIT"; then
  6659. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6660. else
  6661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6662. for as_dir in $PATH
  6663. do
  6664. IFS=$as_save_IFS
  6665. case $as_dir in #(((
  6666. '') as_dir=./ ;;
  6667. */) ;;
  6668. *) as_dir=$as_dir/ ;;
  6669. esac
  6670. for ac_exec_ext in '' $ac_executable_extensions; do
  6671. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6672. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6673. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6674. break 2
  6675. fi
  6676. done
  6677. done
  6678. IFS=$as_save_IFS
  6679. fi
  6680. fi
  6681. NMEDIT=$ac_cv_prog_NMEDIT
  6682. if test -n "$NMEDIT"; then
  6683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6684. printf "%s\n" "$NMEDIT" >&6; }
  6685. else
  6686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. printf "%s\n" "no" >&6; }
  6688. fi
  6689. fi
  6690. if test -z "$ac_cv_prog_NMEDIT"; then
  6691. ac_ct_NMEDIT=$NMEDIT
  6692. # Extract the first word of "nmedit", so it can be a program name with args.
  6693. set dummy nmedit; ac_word=$2
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6695. printf %s "checking for $ac_word... " >&6; }
  6696. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6697. then :
  6698. printf %s "(cached) " >&6
  6699. else $as_nop
  6700. if test -n "$ac_ct_NMEDIT"; then
  6701. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. case $as_dir in #(((
  6708. '') as_dir=./ ;;
  6709. */) ;;
  6710. *) as_dir=$as_dir/ ;;
  6711. esac
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6724. if test -n "$ac_ct_NMEDIT"; then
  6725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6726. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6727. else
  6728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. printf "%s\n" "no" >&6; }
  6730. fi
  6731. if test "x$ac_ct_NMEDIT" = x; then
  6732. NMEDIT=":"
  6733. else
  6734. case $cross_compiling:$ac_tool_warned in
  6735. yes:)
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6738. ac_tool_warned=yes ;;
  6739. esac
  6740. NMEDIT=$ac_ct_NMEDIT
  6741. fi
  6742. else
  6743. NMEDIT="$ac_cv_prog_NMEDIT"
  6744. fi
  6745. if test -n "$ac_tool_prefix"; then
  6746. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6747. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6749. printf %s "checking for $ac_word... " >&6; }
  6750. if test ${ac_cv_prog_LIPO+y}
  6751. then :
  6752. printf %s "(cached) " >&6
  6753. else $as_nop
  6754. if test -n "$LIPO"; then
  6755. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6756. else
  6757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6758. for as_dir in $PATH
  6759. do
  6760. IFS=$as_save_IFS
  6761. case $as_dir in #(((
  6762. '') as_dir=./ ;;
  6763. */) ;;
  6764. *) as_dir=$as_dir/ ;;
  6765. esac
  6766. for ac_exec_ext in '' $ac_executable_extensions; do
  6767. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6768. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6770. break 2
  6771. fi
  6772. done
  6773. done
  6774. IFS=$as_save_IFS
  6775. fi
  6776. fi
  6777. LIPO=$ac_cv_prog_LIPO
  6778. if test -n "$LIPO"; then
  6779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6780. printf "%s\n" "$LIPO" >&6; }
  6781. else
  6782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6783. printf "%s\n" "no" >&6; }
  6784. fi
  6785. fi
  6786. if test -z "$ac_cv_prog_LIPO"; then
  6787. ac_ct_LIPO=$LIPO
  6788. # Extract the first word of "lipo", so it can be a program name with args.
  6789. set dummy lipo; ac_word=$2
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. printf %s "checking for $ac_word... " >&6; }
  6792. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6793. then :
  6794. printf %s "(cached) " >&6
  6795. else $as_nop
  6796. if test -n "$ac_ct_LIPO"; then
  6797. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. case $as_dir in #(((
  6804. '') as_dir=./ ;;
  6805. */) ;;
  6806. *) as_dir=$as_dir/ ;;
  6807. esac
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_ac_ct_LIPO="lipo"
  6811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6820. if test -n "$ac_ct_LIPO"; then
  6821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6822. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6823. else
  6824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. printf "%s\n" "no" >&6; }
  6826. fi
  6827. if test "x$ac_ct_LIPO" = x; then
  6828. LIPO=":"
  6829. else
  6830. case $cross_compiling:$ac_tool_warned in
  6831. yes:)
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6833. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6834. ac_tool_warned=yes ;;
  6835. esac
  6836. LIPO=$ac_ct_LIPO
  6837. fi
  6838. else
  6839. LIPO="$ac_cv_prog_LIPO"
  6840. fi
  6841. if test -n "$ac_tool_prefix"; then
  6842. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6843. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6845. printf %s "checking for $ac_word... " >&6; }
  6846. if test ${ac_cv_prog_OTOOL+y}
  6847. then :
  6848. printf %s "(cached) " >&6
  6849. else $as_nop
  6850. if test -n "$OTOOL"; then
  6851. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6852. else
  6853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6854. for as_dir in $PATH
  6855. do
  6856. IFS=$as_save_IFS
  6857. case $as_dir in #(((
  6858. '') as_dir=./ ;;
  6859. */) ;;
  6860. *) as_dir=$as_dir/ ;;
  6861. esac
  6862. for ac_exec_ext in '' $ac_executable_extensions; do
  6863. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6864. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6865. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6866. break 2
  6867. fi
  6868. done
  6869. done
  6870. IFS=$as_save_IFS
  6871. fi
  6872. fi
  6873. OTOOL=$ac_cv_prog_OTOOL
  6874. if test -n "$OTOOL"; then
  6875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6876. printf "%s\n" "$OTOOL" >&6; }
  6877. else
  6878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6879. printf "%s\n" "no" >&6; }
  6880. fi
  6881. fi
  6882. if test -z "$ac_cv_prog_OTOOL"; then
  6883. ac_ct_OTOOL=$OTOOL
  6884. # Extract the first word of "otool", so it can be a program name with args.
  6885. set dummy otool; ac_word=$2
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6887. printf %s "checking for $ac_word... " >&6; }
  6888. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6889. then :
  6890. printf %s "(cached) " >&6
  6891. else $as_nop
  6892. if test -n "$ac_ct_OTOOL"; then
  6893. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6894. else
  6895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6896. for as_dir in $PATH
  6897. do
  6898. IFS=$as_save_IFS
  6899. case $as_dir in #(((
  6900. '') as_dir=./ ;;
  6901. */) ;;
  6902. *) as_dir=$as_dir/ ;;
  6903. esac
  6904. for ac_exec_ext in '' $ac_executable_extensions; do
  6905. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6906. ac_cv_prog_ac_ct_OTOOL="otool"
  6907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6908. break 2
  6909. fi
  6910. done
  6911. done
  6912. IFS=$as_save_IFS
  6913. fi
  6914. fi
  6915. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6916. if test -n "$ac_ct_OTOOL"; then
  6917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6918. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6919. else
  6920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6921. printf "%s\n" "no" >&6; }
  6922. fi
  6923. if test "x$ac_ct_OTOOL" = x; then
  6924. OTOOL=":"
  6925. else
  6926. case $cross_compiling:$ac_tool_warned in
  6927. yes:)
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6929. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6930. ac_tool_warned=yes ;;
  6931. esac
  6932. OTOOL=$ac_ct_OTOOL
  6933. fi
  6934. else
  6935. OTOOL="$ac_cv_prog_OTOOL"
  6936. fi
  6937. if test -n "$ac_tool_prefix"; then
  6938. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6939. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6941. printf %s "checking for $ac_word... " >&6; }
  6942. if test ${ac_cv_prog_OTOOL64+y}
  6943. then :
  6944. printf %s "(cached) " >&6
  6945. else $as_nop
  6946. if test -n "$OTOOL64"; then
  6947. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6948. else
  6949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6950. for as_dir in $PATH
  6951. do
  6952. IFS=$as_save_IFS
  6953. case $as_dir in #(((
  6954. '') as_dir=./ ;;
  6955. */) ;;
  6956. *) as_dir=$as_dir/ ;;
  6957. esac
  6958. for ac_exec_ext in '' $ac_executable_extensions; do
  6959. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6960. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6962. break 2
  6963. fi
  6964. done
  6965. done
  6966. IFS=$as_save_IFS
  6967. fi
  6968. fi
  6969. OTOOL64=$ac_cv_prog_OTOOL64
  6970. if test -n "$OTOOL64"; then
  6971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6972. printf "%s\n" "$OTOOL64" >&6; }
  6973. else
  6974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6975. printf "%s\n" "no" >&6; }
  6976. fi
  6977. fi
  6978. if test -z "$ac_cv_prog_OTOOL64"; then
  6979. ac_ct_OTOOL64=$OTOOL64
  6980. # Extract the first word of "otool64", so it can be a program name with args.
  6981. set dummy otool64; ac_word=$2
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6983. printf %s "checking for $ac_word... " >&6; }
  6984. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6985. then :
  6986. printf %s "(cached) " >&6
  6987. else $as_nop
  6988. if test -n "$ac_ct_OTOOL64"; then
  6989. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. case $as_dir in #(((
  6996. '') as_dir=./ ;;
  6997. */) ;;
  6998. *) as_dir=$as_dir/ ;;
  6999. esac
  7000. for ac_exec_ext in '' $ac_executable_extensions; do
  7001. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7002. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7004. break 2
  7005. fi
  7006. done
  7007. done
  7008. IFS=$as_save_IFS
  7009. fi
  7010. fi
  7011. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7012. if test -n "$ac_ct_OTOOL64"; then
  7013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7014. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7015. else
  7016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7017. printf "%s\n" "no" >&6; }
  7018. fi
  7019. if test "x$ac_ct_OTOOL64" = x; then
  7020. OTOOL64=":"
  7021. else
  7022. case $cross_compiling:$ac_tool_warned in
  7023. yes:)
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7025. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7026. ac_tool_warned=yes ;;
  7027. esac
  7028. OTOOL64=$ac_ct_OTOOL64
  7029. fi
  7030. else
  7031. OTOOL64="$ac_cv_prog_OTOOL64"
  7032. fi
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7034. printf %s "checking for -single_module linker flag... " >&6; }
  7035. if test ${lt_cv_apple_cc_single_mod+y}
  7036. then :
  7037. printf %s "(cached) " >&6
  7038. else $as_nop
  7039. lt_cv_apple_cc_single_mod=no
  7040. if test -z "$LT_MULTI_MODULE"; then
  7041. # By default we will add the -single_module flag. You can override
  7042. # by either setting the environment variable LT_MULTI_MODULE
  7043. # non-empty at configure time, or by adding -multi_module to the
  7044. # link flags.
  7045. rm -rf libconftest.dylib*
  7046. echo "int foo(void){return 1;}" > conftest.c
  7047. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7048. -dynamiclib -Wl,-single_module conftest.c" >&5
  7049. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7050. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7051. _lt_result=$?
  7052. # If there is a non-empty error log, and "single_module"
  7053. # appears in it, assume the flag caused a linker warning
  7054. if test -s conftest.err && $GREP single_module conftest.err; then
  7055. cat conftest.err >&5
  7056. # Otherwise, if the output was created with a 0 exit code from
  7057. # the compiler, it worked.
  7058. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7059. lt_cv_apple_cc_single_mod=yes
  7060. else
  7061. cat conftest.err >&5
  7062. fi
  7063. rm -rf libconftest.dylib*
  7064. rm -f conftest.*
  7065. fi
  7066. fi
  7067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7068. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7070. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7071. if test ${lt_cv_ld_exported_symbols_list+y}
  7072. then :
  7073. printf %s "(cached) " >&6
  7074. else $as_nop
  7075. lt_cv_ld_exported_symbols_list=no
  7076. save_LDFLAGS=$LDFLAGS
  7077. echo "_main" > conftest.sym
  7078. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7080. /* end confdefs.h. */
  7081. int
  7082. main (void)
  7083. {
  7084. ;
  7085. return 0;
  7086. }
  7087. _ACEOF
  7088. if ac_fn_c_try_link "$LINENO"
  7089. then :
  7090. lt_cv_ld_exported_symbols_list=yes
  7091. else $as_nop
  7092. lt_cv_ld_exported_symbols_list=no
  7093. fi
  7094. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7095. conftest$ac_exeext conftest.$ac_ext
  7096. LDFLAGS=$save_LDFLAGS
  7097. fi
  7098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7099. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7101. printf %s "checking for -force_load linker flag... " >&6; }
  7102. if test ${lt_cv_ld_force_load+y}
  7103. then :
  7104. printf %s "(cached) " >&6
  7105. else $as_nop
  7106. lt_cv_ld_force_load=no
  7107. cat > conftest.c << _LT_EOF
  7108. int forced_loaded() { return 2;}
  7109. _LT_EOF
  7110. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7111. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7112. echo "$AR cru libconftest.a conftest.o" >&5
  7113. $AR cru libconftest.a conftest.o 2>&5
  7114. echo "$RANLIB libconftest.a" >&5
  7115. $RANLIB libconftest.a 2>&5
  7116. cat > conftest.c << _LT_EOF
  7117. int main() { return 0;}
  7118. _LT_EOF
  7119. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7120. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7121. _lt_result=$?
  7122. if test -s conftest.err && $GREP force_load conftest.err; then
  7123. cat conftest.err >&5
  7124. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7125. lt_cv_ld_force_load=yes
  7126. else
  7127. cat conftest.err >&5
  7128. fi
  7129. rm -f conftest.err libconftest.a conftest conftest.c
  7130. rm -rf conftest.dSYM
  7131. fi
  7132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7133. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7134. case $host_os in
  7135. rhapsody* | darwin1.[012])
  7136. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7137. darwin1.*)
  7138. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7139. darwin*)
  7140. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7141. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7142. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7143. *)
  7144. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7149. _lt_dar_single_mod='$single_module'
  7150. fi
  7151. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7152. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7153. else
  7154. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7155. fi
  7156. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7157. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7158. else
  7159. _lt_dsymutil=
  7160. fi
  7161. ;;
  7162. esac
  7163. # func_munge_path_list VARIABLE PATH
  7164. # -----------------------------------
  7165. # VARIABLE is name of variable containing _space_ separated list of
  7166. # directories to be munged by the contents of PATH, which is string
  7167. # having a format:
  7168. # "DIR[:DIR]:"
  7169. # string "DIR[ DIR]" will be prepended to VARIABLE
  7170. # ":DIR[:DIR]"
  7171. # string "DIR[ DIR]" will be appended to VARIABLE
  7172. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7173. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7174. # "DIRA[ DIRA]" will be appended to VARIABLE
  7175. # "DIR[:DIR]"
  7176. # VARIABLE will be replaced by "DIR[ DIR]"
  7177. func_munge_path_list ()
  7178. {
  7179. case x$2 in
  7180. x)
  7181. ;;
  7182. *:)
  7183. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7184. ;;
  7185. x:*)
  7186. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7187. ;;
  7188. *::*)
  7189. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7190. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7191. ;;
  7192. *)
  7193. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7194. ;;
  7195. esac
  7196. }
  7197. ac_header= ac_cache=
  7198. for ac_item in $ac_header_c_list
  7199. do
  7200. if test $ac_cache; then
  7201. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7202. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7203. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7204. fi
  7205. ac_header= ac_cache=
  7206. elif test $ac_header; then
  7207. ac_cache=$ac_item
  7208. else
  7209. ac_header=$ac_item
  7210. fi
  7211. done
  7212. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7213. then :
  7214. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7215. fi
  7216. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7217. "
  7218. if test "x$ac_cv_header_dlfcn_h" = xyes
  7219. then :
  7220. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7221. fi
  7222. # Set options
  7223. enable_win32_dll=yes
  7224. case $host in
  7225. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7226. if test -n "$ac_tool_prefix"; then
  7227. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7228. set dummy ${ac_tool_prefix}as; ac_word=$2
  7229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7230. printf %s "checking for $ac_word... " >&6; }
  7231. if test ${ac_cv_prog_AS+y}
  7232. then :
  7233. printf %s "(cached) " >&6
  7234. else $as_nop
  7235. if test -n "$AS"; then
  7236. ac_cv_prog_AS="$AS" # Let the user override the test.
  7237. else
  7238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7239. for as_dir in $PATH
  7240. do
  7241. IFS=$as_save_IFS
  7242. case $as_dir in #(((
  7243. '') as_dir=./ ;;
  7244. */) ;;
  7245. *) as_dir=$as_dir/ ;;
  7246. esac
  7247. for ac_exec_ext in '' $ac_executable_extensions; do
  7248. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7249. ac_cv_prog_AS="${ac_tool_prefix}as"
  7250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7251. break 2
  7252. fi
  7253. done
  7254. done
  7255. IFS=$as_save_IFS
  7256. fi
  7257. fi
  7258. AS=$ac_cv_prog_AS
  7259. if test -n "$AS"; then
  7260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7261. printf "%s\n" "$AS" >&6; }
  7262. else
  7263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7264. printf "%s\n" "no" >&6; }
  7265. fi
  7266. fi
  7267. if test -z "$ac_cv_prog_AS"; then
  7268. ac_ct_AS=$AS
  7269. # Extract the first word of "as", so it can be a program name with args.
  7270. set dummy as; ac_word=$2
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7272. printf %s "checking for $ac_word... " >&6; }
  7273. if test ${ac_cv_prog_ac_ct_AS+y}
  7274. then :
  7275. printf %s "(cached) " >&6
  7276. else $as_nop
  7277. if test -n "$ac_ct_AS"; then
  7278. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7279. else
  7280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7281. for as_dir in $PATH
  7282. do
  7283. IFS=$as_save_IFS
  7284. case $as_dir in #(((
  7285. '') as_dir=./ ;;
  7286. */) ;;
  7287. *) as_dir=$as_dir/ ;;
  7288. esac
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7291. ac_cv_prog_ac_ct_AS="as"
  7292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. fi
  7299. fi
  7300. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7301. if test -n "$ac_ct_AS"; then
  7302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7303. printf "%s\n" "$ac_ct_AS" >&6; }
  7304. else
  7305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7306. printf "%s\n" "no" >&6; }
  7307. fi
  7308. if test "x$ac_ct_AS" = x; then
  7309. AS="false"
  7310. else
  7311. case $cross_compiling:$ac_tool_warned in
  7312. yes:)
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7314. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7315. ac_tool_warned=yes ;;
  7316. esac
  7317. AS=$ac_ct_AS
  7318. fi
  7319. else
  7320. AS="$ac_cv_prog_AS"
  7321. fi
  7322. if test -n "$ac_tool_prefix"; then
  7323. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7324. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7326. printf %s "checking for $ac_word... " >&6; }
  7327. if test ${ac_cv_prog_DLLTOOL+y}
  7328. then :
  7329. printf %s "(cached) " >&6
  7330. else $as_nop
  7331. if test -n "$DLLTOOL"; then
  7332. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7333. else
  7334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7335. for as_dir in $PATH
  7336. do
  7337. IFS=$as_save_IFS
  7338. case $as_dir in #(((
  7339. '') as_dir=./ ;;
  7340. */) ;;
  7341. *) as_dir=$as_dir/ ;;
  7342. esac
  7343. for ac_exec_ext in '' $ac_executable_extensions; do
  7344. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7345. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7347. break 2
  7348. fi
  7349. done
  7350. done
  7351. IFS=$as_save_IFS
  7352. fi
  7353. fi
  7354. DLLTOOL=$ac_cv_prog_DLLTOOL
  7355. if test -n "$DLLTOOL"; then
  7356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7357. printf "%s\n" "$DLLTOOL" >&6; }
  7358. else
  7359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7360. printf "%s\n" "no" >&6; }
  7361. fi
  7362. fi
  7363. if test -z "$ac_cv_prog_DLLTOOL"; then
  7364. ac_ct_DLLTOOL=$DLLTOOL
  7365. # Extract the first word of "dlltool", so it can be a program name with args.
  7366. set dummy dlltool; ac_word=$2
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7368. printf %s "checking for $ac_word... " >&6; }
  7369. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7370. then :
  7371. printf %s "(cached) " >&6
  7372. else $as_nop
  7373. if test -n "$ac_ct_DLLTOOL"; then
  7374. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7375. else
  7376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7377. for as_dir in $PATH
  7378. do
  7379. IFS=$as_save_IFS
  7380. case $as_dir in #(((
  7381. '') as_dir=./ ;;
  7382. */) ;;
  7383. *) as_dir=$as_dir/ ;;
  7384. esac
  7385. for ac_exec_ext in '' $ac_executable_extensions; do
  7386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7387. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7389. break 2
  7390. fi
  7391. done
  7392. done
  7393. IFS=$as_save_IFS
  7394. fi
  7395. fi
  7396. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7397. if test -n "$ac_ct_DLLTOOL"; then
  7398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7399. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7400. else
  7401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7402. printf "%s\n" "no" >&6; }
  7403. fi
  7404. if test "x$ac_ct_DLLTOOL" = x; then
  7405. DLLTOOL="false"
  7406. else
  7407. case $cross_compiling:$ac_tool_warned in
  7408. yes:)
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7410. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7411. ac_tool_warned=yes ;;
  7412. esac
  7413. DLLTOOL=$ac_ct_DLLTOOL
  7414. fi
  7415. else
  7416. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7417. fi
  7418. if test -n "$ac_tool_prefix"; then
  7419. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7420. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7422. printf %s "checking for $ac_word... " >&6; }
  7423. if test ${ac_cv_prog_OBJDUMP+y}
  7424. then :
  7425. printf %s "(cached) " >&6
  7426. else $as_nop
  7427. if test -n "$OBJDUMP"; then
  7428. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7429. else
  7430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7431. for as_dir in $PATH
  7432. do
  7433. IFS=$as_save_IFS
  7434. case $as_dir in #(((
  7435. '') as_dir=./ ;;
  7436. */) ;;
  7437. *) as_dir=$as_dir/ ;;
  7438. esac
  7439. for ac_exec_ext in '' $ac_executable_extensions; do
  7440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7441. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7443. break 2
  7444. fi
  7445. done
  7446. done
  7447. IFS=$as_save_IFS
  7448. fi
  7449. fi
  7450. OBJDUMP=$ac_cv_prog_OBJDUMP
  7451. if test -n "$OBJDUMP"; then
  7452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7453. printf "%s\n" "$OBJDUMP" >&6; }
  7454. else
  7455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7456. printf "%s\n" "no" >&6; }
  7457. fi
  7458. fi
  7459. if test -z "$ac_cv_prog_OBJDUMP"; then
  7460. ac_ct_OBJDUMP=$OBJDUMP
  7461. # Extract the first word of "objdump", so it can be a program name with args.
  7462. set dummy objdump; ac_word=$2
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7464. printf %s "checking for $ac_word... " >&6; }
  7465. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7466. then :
  7467. printf %s "(cached) " >&6
  7468. else $as_nop
  7469. if test -n "$ac_ct_OBJDUMP"; then
  7470. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7471. else
  7472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7473. for as_dir in $PATH
  7474. do
  7475. IFS=$as_save_IFS
  7476. case $as_dir in #(((
  7477. '') as_dir=./ ;;
  7478. */) ;;
  7479. *) as_dir=$as_dir/ ;;
  7480. esac
  7481. for ac_exec_ext in '' $ac_executable_extensions; do
  7482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7483. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7485. break 2
  7486. fi
  7487. done
  7488. done
  7489. IFS=$as_save_IFS
  7490. fi
  7491. fi
  7492. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7493. if test -n "$ac_ct_OBJDUMP"; then
  7494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7495. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7496. else
  7497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7498. printf "%s\n" "no" >&6; }
  7499. fi
  7500. if test "x$ac_ct_OBJDUMP" = x; then
  7501. OBJDUMP="false"
  7502. else
  7503. case $cross_compiling:$ac_tool_warned in
  7504. yes:)
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7506. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7507. ac_tool_warned=yes ;;
  7508. esac
  7509. OBJDUMP=$ac_ct_OBJDUMP
  7510. fi
  7511. else
  7512. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7513. fi
  7514. ;;
  7515. esac
  7516. test -z "$AS" && AS=as
  7517. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7518. test -z "$OBJDUMP" && OBJDUMP=objdump
  7519. enable_dlopen=no
  7520. # Check whether --enable-shared was given.
  7521. if test ${enable_shared+y}
  7522. then :
  7523. enableval=$enable_shared; p=${PACKAGE-default}
  7524. case $enableval in
  7525. yes) enable_shared=yes ;;
  7526. no) enable_shared=no ;;
  7527. *)
  7528. enable_shared=no
  7529. # Look at the argument we got. We use all the common list separators.
  7530. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7531. for pkg in $enableval; do
  7532. IFS=$lt_save_ifs
  7533. if test "X$pkg" = "X$p"; then
  7534. enable_shared=yes
  7535. fi
  7536. done
  7537. IFS=$lt_save_ifs
  7538. ;;
  7539. esac
  7540. else $as_nop
  7541. enable_shared=yes
  7542. fi
  7543. # Check whether --enable-static was given.
  7544. if test ${enable_static+y}
  7545. then :
  7546. enableval=$enable_static; p=${PACKAGE-default}
  7547. case $enableval in
  7548. yes) enable_static=yes ;;
  7549. no) enable_static=no ;;
  7550. *)
  7551. enable_static=no
  7552. # Look at the argument we got. We use all the common list separators.
  7553. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7554. for pkg in $enableval; do
  7555. IFS=$lt_save_ifs
  7556. if test "X$pkg" = "X$p"; then
  7557. enable_static=yes
  7558. fi
  7559. done
  7560. IFS=$lt_save_ifs
  7561. ;;
  7562. esac
  7563. else $as_nop
  7564. enable_static=yes
  7565. fi
  7566. # Check whether --with-pic was given.
  7567. if test ${with_pic+y}
  7568. then :
  7569. withval=$with_pic; lt_p=${PACKAGE-default}
  7570. case $withval in
  7571. yes|no) pic_mode=$withval ;;
  7572. *)
  7573. pic_mode=default
  7574. # Look at the argument we got. We use all the common list separators.
  7575. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7576. for lt_pkg in $withval; do
  7577. IFS=$lt_save_ifs
  7578. if test "X$lt_pkg" = "X$lt_p"; then
  7579. pic_mode=yes
  7580. fi
  7581. done
  7582. IFS=$lt_save_ifs
  7583. ;;
  7584. esac
  7585. else $as_nop
  7586. pic_mode=default
  7587. fi
  7588. # Check whether --enable-fast-install was given.
  7589. if test ${enable_fast_install+y}
  7590. then :
  7591. enableval=$enable_fast_install; p=${PACKAGE-default}
  7592. case $enableval in
  7593. yes) enable_fast_install=yes ;;
  7594. no) enable_fast_install=no ;;
  7595. *)
  7596. enable_fast_install=no
  7597. # Look at the argument we got. We use all the common list separators.
  7598. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7599. for pkg in $enableval; do
  7600. IFS=$lt_save_ifs
  7601. if test "X$pkg" = "X$p"; then
  7602. enable_fast_install=yes
  7603. fi
  7604. done
  7605. IFS=$lt_save_ifs
  7606. ;;
  7607. esac
  7608. else $as_nop
  7609. enable_fast_install=yes
  7610. fi
  7611. shared_archive_member_spec=
  7612. case $host,$enable_shared in
  7613. power*-*-aix[5-9]*,yes)
  7614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7615. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7616. # Check whether --with-aix-soname was given.
  7617. if test ${with_aix_soname+y}
  7618. then :
  7619. withval=$with_aix_soname; case $withval in
  7620. aix|svr4|both)
  7621. ;;
  7622. *)
  7623. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7624. ;;
  7625. esac
  7626. lt_cv_with_aix_soname=$with_aix_soname
  7627. else $as_nop
  7628. if test ${lt_cv_with_aix_soname+y}
  7629. then :
  7630. printf %s "(cached) " >&6
  7631. else $as_nop
  7632. lt_cv_with_aix_soname=aix
  7633. fi
  7634. with_aix_soname=$lt_cv_with_aix_soname
  7635. fi
  7636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7637. printf "%s\n" "$with_aix_soname" >&6; }
  7638. if test aix != "$with_aix_soname"; then
  7639. # For the AIX way of multilib, we name the shared archive member
  7640. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7641. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7642. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7643. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7644. if test 64 = "${OBJECT_MODE-32}"; then
  7645. shared_archive_member_spec=shr_64
  7646. else
  7647. shared_archive_member_spec=shr
  7648. fi
  7649. fi
  7650. ;;
  7651. *)
  7652. with_aix_soname=aix
  7653. ;;
  7654. esac
  7655. # This can be used to rebuild libtool when needed
  7656. LIBTOOL_DEPS=$ltmain
  7657. # Always use our own libtool.
  7658. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7659. test -z "$LN_S" && LN_S="ln -s"
  7660. if test -n "${ZSH_VERSION+set}"; then
  7661. setopt NO_GLOB_SUBST
  7662. fi
  7663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7664. printf %s "checking for objdir... " >&6; }
  7665. if test ${lt_cv_objdir+y}
  7666. then :
  7667. printf %s "(cached) " >&6
  7668. else $as_nop
  7669. rm -f .libs 2>/dev/null
  7670. mkdir .libs 2>/dev/null
  7671. if test -d .libs; then
  7672. lt_cv_objdir=.libs
  7673. else
  7674. # MS-DOS does not allow filenames that begin with a dot.
  7675. lt_cv_objdir=_libs
  7676. fi
  7677. rmdir .libs 2>/dev/null
  7678. fi
  7679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7680. printf "%s\n" "$lt_cv_objdir" >&6; }
  7681. objdir=$lt_cv_objdir
  7682. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7683. case $host_os in
  7684. aix3*)
  7685. # AIX sometimes has problems with the GCC collect2 program. For some
  7686. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7687. # vanish in a puff of smoke.
  7688. if test set != "${COLLECT_NAMES+set}"; then
  7689. COLLECT_NAMES=
  7690. export COLLECT_NAMES
  7691. fi
  7692. ;;
  7693. esac
  7694. # Global variables:
  7695. ofile=libtool
  7696. can_build_shared=yes
  7697. # All known linkers require a '.a' archive for static linking (except MSVC,
  7698. # which needs '.lib').
  7699. libext=a
  7700. with_gnu_ld=$lt_cv_prog_gnu_ld
  7701. old_CC=$CC
  7702. old_CFLAGS=$CFLAGS
  7703. # Set sane defaults for various variables
  7704. test -z "$CC" && CC=cc
  7705. test -z "$LTCC" && LTCC=$CC
  7706. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7707. test -z "$LD" && LD=ld
  7708. test -z "$ac_objext" && ac_objext=o
  7709. func_cc_basename $compiler
  7710. cc_basename=$func_cc_basename_result
  7711. # Only perform the check for file, if the check method requires it
  7712. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7713. case $deplibs_check_method in
  7714. file_magic*)
  7715. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7717. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7718. if test ${lt_cv_path_MAGIC_CMD+y}
  7719. then :
  7720. printf %s "(cached) " >&6
  7721. else $as_nop
  7722. case $MAGIC_CMD in
  7723. [\\/*] | ?:[\\/]*)
  7724. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7725. ;;
  7726. *)
  7727. lt_save_MAGIC_CMD=$MAGIC_CMD
  7728. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7729. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7730. for ac_dir in $ac_dummy; do
  7731. IFS=$lt_save_ifs
  7732. test -z "$ac_dir" && ac_dir=.
  7733. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7734. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7735. if test -n "$file_magic_test_file"; then
  7736. case $deplibs_check_method in
  7737. "file_magic "*)
  7738. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7739. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7740. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7741. $EGREP "$file_magic_regex" > /dev/null; then
  7742. :
  7743. else
  7744. cat <<_LT_EOF 1>&2
  7745. *** Warning: the command libtool uses to detect shared libraries,
  7746. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7747. *** The result is that libtool may fail to recognize shared libraries
  7748. *** as such. This will affect the creation of libtool libraries that
  7749. *** depend on shared libraries, but programs linked with such libtool
  7750. *** libraries will work regardless of this problem. Nevertheless, you
  7751. *** may want to report the problem to your system manager and/or to
  7752. *** bug-libtool@gnu.org
  7753. _LT_EOF
  7754. fi ;;
  7755. esac
  7756. fi
  7757. break
  7758. fi
  7759. done
  7760. IFS=$lt_save_ifs
  7761. MAGIC_CMD=$lt_save_MAGIC_CMD
  7762. ;;
  7763. esac
  7764. fi
  7765. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7766. if test -n "$MAGIC_CMD"; then
  7767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7768. printf "%s\n" "$MAGIC_CMD" >&6; }
  7769. else
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7771. printf "%s\n" "no" >&6; }
  7772. fi
  7773. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7774. if test -n "$ac_tool_prefix"; then
  7775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7776. printf %s "checking for file... " >&6; }
  7777. if test ${lt_cv_path_MAGIC_CMD+y}
  7778. then :
  7779. printf %s "(cached) " >&6
  7780. else $as_nop
  7781. case $MAGIC_CMD in
  7782. [\\/*] | ?:[\\/]*)
  7783. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7784. ;;
  7785. *)
  7786. lt_save_MAGIC_CMD=$MAGIC_CMD
  7787. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7788. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7789. for ac_dir in $ac_dummy; do
  7790. IFS=$lt_save_ifs
  7791. test -z "$ac_dir" && ac_dir=.
  7792. if test -f "$ac_dir/file"; then
  7793. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7794. if test -n "$file_magic_test_file"; then
  7795. case $deplibs_check_method in
  7796. "file_magic "*)
  7797. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7798. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7799. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7800. $EGREP "$file_magic_regex" > /dev/null; then
  7801. :
  7802. else
  7803. cat <<_LT_EOF 1>&2
  7804. *** Warning: the command libtool uses to detect shared libraries,
  7805. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7806. *** The result is that libtool may fail to recognize shared libraries
  7807. *** as such. This will affect the creation of libtool libraries that
  7808. *** depend on shared libraries, but programs linked with such libtool
  7809. *** libraries will work regardless of this problem. Nevertheless, you
  7810. *** may want to report the problem to your system manager and/or to
  7811. *** bug-libtool@gnu.org
  7812. _LT_EOF
  7813. fi ;;
  7814. esac
  7815. fi
  7816. break
  7817. fi
  7818. done
  7819. IFS=$lt_save_ifs
  7820. MAGIC_CMD=$lt_save_MAGIC_CMD
  7821. ;;
  7822. esac
  7823. fi
  7824. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7825. if test -n "$MAGIC_CMD"; then
  7826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7827. printf "%s\n" "$MAGIC_CMD" >&6; }
  7828. else
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7830. printf "%s\n" "no" >&6; }
  7831. fi
  7832. else
  7833. MAGIC_CMD=:
  7834. fi
  7835. fi
  7836. fi
  7837. ;;
  7838. esac
  7839. # Use C for the default configuration in the libtool script
  7840. lt_save_CC=$CC
  7841. ac_ext=c
  7842. ac_cpp='$CPP $CPPFLAGS'
  7843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7846. # Source file extension for C test sources.
  7847. ac_ext=c
  7848. # Object file extension for compiled C test sources.
  7849. objext=o
  7850. objext=$objext
  7851. # Code to be used in simple compile tests
  7852. lt_simple_compile_test_code="int some_variable = 0;"
  7853. # Code to be used in simple link tests
  7854. lt_simple_link_test_code='int main(){return(0);}'
  7855. # If no C compiler was specified, use CC.
  7856. LTCC=${LTCC-"$CC"}
  7857. # If no C compiler flags were specified, use CFLAGS.
  7858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7859. # Allow CC to be a program name with arguments.
  7860. compiler=$CC
  7861. # Save the default compiler, since it gets overwritten when the other
  7862. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7863. compiler_DEFAULT=$CC
  7864. # save warnings/boilerplate of simple test code
  7865. ac_outfile=conftest.$ac_objext
  7866. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7867. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7868. _lt_compiler_boilerplate=`cat conftest.err`
  7869. $RM conftest*
  7870. ac_outfile=conftest.$ac_objext
  7871. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7872. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7873. _lt_linker_boilerplate=`cat conftest.err`
  7874. $RM -r conftest*
  7875. ## CAVEAT EMPTOR:
  7876. ## There is no encapsulation within the following macros, do not change
  7877. ## the running order or otherwise move them around unless you know exactly
  7878. ## what you are doing...
  7879. if test -n "$compiler"; then
  7880. lt_prog_compiler_no_builtin_flag=
  7881. if test yes = "$GCC"; then
  7882. case $cc_basename in
  7883. nvcc*)
  7884. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7885. *)
  7886. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7887. esac
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7889. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7890. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7891. then :
  7892. printf %s "(cached) " >&6
  7893. else $as_nop
  7894. lt_cv_prog_compiler_rtti_exceptions=no
  7895. ac_outfile=conftest.$ac_objext
  7896. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7897. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7898. # Insert the option either (1) after the last *FLAGS variable, or
  7899. # (2) before a word containing "conftest.", or (3) at the end.
  7900. # Note that $ac_compile itself does not contain backslashes and begins
  7901. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7902. # The option is referenced via a variable to avoid confusing sed.
  7903. lt_compile=`echo "$ac_compile" | $SED \
  7904. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7906. -e 's:$: $lt_compiler_flag:'`
  7907. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7908. (eval "$lt_compile" 2>conftest.err)
  7909. ac_status=$?
  7910. cat conftest.err >&5
  7911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7912. if (exit $ac_status) && test -s "$ac_outfile"; then
  7913. # The compiler can only warn and ignore the option if not recognized
  7914. # So say no if there are warnings other than the usual output.
  7915. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7916. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7917. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7918. lt_cv_prog_compiler_rtti_exceptions=yes
  7919. fi
  7920. fi
  7921. $RM conftest*
  7922. fi
  7923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7924. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7925. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7926. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7927. else
  7928. :
  7929. fi
  7930. fi
  7931. lt_prog_compiler_wl=
  7932. lt_prog_compiler_pic=
  7933. lt_prog_compiler_static=
  7934. if test yes = "$GCC"; then
  7935. lt_prog_compiler_wl='-Wl,'
  7936. lt_prog_compiler_static='-static'
  7937. case $host_os in
  7938. aix*)
  7939. # All AIX code is PIC.
  7940. if test ia64 = "$host_cpu"; then
  7941. # AIX 5 now supports IA64 processor
  7942. lt_prog_compiler_static='-Bstatic'
  7943. fi
  7944. lt_prog_compiler_pic='-fPIC'
  7945. ;;
  7946. amigaos*)
  7947. case $host_cpu in
  7948. powerpc)
  7949. # see comment about AmigaOS4 .so support
  7950. lt_prog_compiler_pic='-fPIC'
  7951. ;;
  7952. m68k)
  7953. # FIXME: we need at least 68020 code to build shared libraries, but
  7954. # adding the '-m68020' flag to GCC prevents building anything better,
  7955. # like '-m68040'.
  7956. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7957. ;;
  7958. esac
  7959. ;;
  7960. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7961. # PIC is the default for these OSes.
  7962. ;;
  7963. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7964. # This hack is so that the source file can tell whether it is being
  7965. # built for inclusion in a dll (and should export symbols for example).
  7966. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7967. # (--disable-auto-import) libraries
  7968. lt_prog_compiler_pic='-DDLL_EXPORT'
  7969. case $host_os in
  7970. os2*)
  7971. lt_prog_compiler_static='$wl-static'
  7972. ;;
  7973. esac
  7974. ;;
  7975. darwin* | rhapsody*)
  7976. # PIC is the default on this platform
  7977. # Common symbols not allowed in MH_DYLIB files
  7978. lt_prog_compiler_pic='-fno-common'
  7979. ;;
  7980. haiku*)
  7981. # PIC is the default for Haiku.
  7982. # The "-static" flag exists, but is broken.
  7983. lt_prog_compiler_static=
  7984. ;;
  7985. hpux*)
  7986. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7987. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7988. # sets the default TLS model and affects inlining.
  7989. case $host_cpu in
  7990. hppa*64*)
  7991. # +Z the default
  7992. ;;
  7993. *)
  7994. lt_prog_compiler_pic='-fPIC'
  7995. ;;
  7996. esac
  7997. ;;
  7998. interix[3-9]*)
  7999. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8000. # Instead, we relocate shared libraries at runtime.
  8001. ;;
  8002. msdosdjgpp*)
  8003. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8004. # on systems that don't support them.
  8005. lt_prog_compiler_can_build_shared=no
  8006. enable_shared=no
  8007. ;;
  8008. *nto* | *qnx*)
  8009. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8010. # it will coredump.
  8011. lt_prog_compiler_pic='-fPIC -shared'
  8012. ;;
  8013. sysv4*MP*)
  8014. if test -d /usr/nec; then
  8015. lt_prog_compiler_pic=-Kconform_pic
  8016. fi
  8017. ;;
  8018. *)
  8019. lt_prog_compiler_pic='-fPIC'
  8020. ;;
  8021. esac
  8022. case $cc_basename in
  8023. nvcc*) # Cuda Compiler Driver 2.2
  8024. lt_prog_compiler_wl='-Xlinker '
  8025. if test -n "$lt_prog_compiler_pic"; then
  8026. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8027. fi
  8028. ;;
  8029. esac
  8030. else
  8031. # PORTME Check for flag to pass linker flags through the system compiler.
  8032. case $host_os in
  8033. aix*)
  8034. lt_prog_compiler_wl='-Wl,'
  8035. if test ia64 = "$host_cpu"; then
  8036. # AIX 5 now supports IA64 processor
  8037. lt_prog_compiler_static='-Bstatic'
  8038. else
  8039. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8040. fi
  8041. ;;
  8042. darwin* | rhapsody*)
  8043. # PIC is the default on this platform
  8044. # Common symbols not allowed in MH_DYLIB files
  8045. lt_prog_compiler_pic='-fno-common'
  8046. case $cc_basename in
  8047. nagfor*)
  8048. # NAG Fortran compiler
  8049. lt_prog_compiler_wl='-Wl,-Wl,,'
  8050. lt_prog_compiler_pic='-PIC'
  8051. lt_prog_compiler_static='-Bstatic'
  8052. ;;
  8053. esac
  8054. ;;
  8055. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8056. # This hack is so that the source file can tell whether it is being
  8057. # built for inclusion in a dll (and should export symbols for example).
  8058. lt_prog_compiler_pic='-DDLL_EXPORT'
  8059. case $host_os in
  8060. os2*)
  8061. lt_prog_compiler_static='$wl-static'
  8062. ;;
  8063. esac
  8064. ;;
  8065. hpux9* | hpux10* | hpux11*)
  8066. lt_prog_compiler_wl='-Wl,'
  8067. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8068. # not for PA HP-UX.
  8069. case $host_cpu in
  8070. hppa*64*|ia64*)
  8071. # +Z the default
  8072. ;;
  8073. *)
  8074. lt_prog_compiler_pic='+Z'
  8075. ;;
  8076. esac
  8077. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8078. lt_prog_compiler_static='$wl-a ${wl}archive'
  8079. ;;
  8080. irix5* | irix6* | nonstopux*)
  8081. lt_prog_compiler_wl='-Wl,'
  8082. # PIC (with -KPIC) is the default.
  8083. lt_prog_compiler_static='-non_shared'
  8084. ;;
  8085. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8086. case $cc_basename in
  8087. # old Intel for x86_64, which still supported -KPIC.
  8088. ecc*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. lt_prog_compiler_pic='-KPIC'
  8091. lt_prog_compiler_static='-static'
  8092. ;;
  8093. # icc used to be incompatible with GCC.
  8094. # ICC 10 doesn't accept -KPIC any more.
  8095. icc* | ifort*)
  8096. lt_prog_compiler_wl='-Wl,'
  8097. lt_prog_compiler_pic='-fPIC'
  8098. lt_prog_compiler_static='-static'
  8099. ;;
  8100. # Lahey Fortran 8.1.
  8101. lf95*)
  8102. lt_prog_compiler_wl='-Wl,'
  8103. lt_prog_compiler_pic='--shared'
  8104. lt_prog_compiler_static='--static'
  8105. ;;
  8106. nagfor*)
  8107. # NAG Fortran compiler
  8108. lt_prog_compiler_wl='-Wl,-Wl,,'
  8109. lt_prog_compiler_pic='-PIC'
  8110. lt_prog_compiler_static='-Bstatic'
  8111. ;;
  8112. tcc*)
  8113. # Fabrice Bellard et al's Tiny C Compiler
  8114. lt_prog_compiler_wl='-Wl,'
  8115. lt_prog_compiler_pic='-fPIC'
  8116. lt_prog_compiler_static='-static'
  8117. ;;
  8118. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8119. # Portland Group compilers (*not* the Pentium gcc compiler,
  8120. # which looks to be a dead project)
  8121. lt_prog_compiler_wl='-Wl,'
  8122. lt_prog_compiler_pic='-fpic'
  8123. lt_prog_compiler_static='-Bstatic'
  8124. ;;
  8125. ccc*)
  8126. lt_prog_compiler_wl='-Wl,'
  8127. # All Alpha code is PIC.
  8128. lt_prog_compiler_static='-non_shared'
  8129. ;;
  8130. xl* | bgxl* | bgf* | mpixl*)
  8131. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8132. lt_prog_compiler_wl='-Wl,'
  8133. lt_prog_compiler_pic='-qpic'
  8134. lt_prog_compiler_static='-qstaticlink'
  8135. ;;
  8136. *)
  8137. case `$CC -V 2>&1 | sed 5q` in
  8138. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8139. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8140. lt_prog_compiler_pic='-KPIC'
  8141. lt_prog_compiler_static='-Bstatic'
  8142. lt_prog_compiler_wl=''
  8143. ;;
  8144. *Sun\ F* | *Sun*Fortran*)
  8145. lt_prog_compiler_pic='-KPIC'
  8146. lt_prog_compiler_static='-Bstatic'
  8147. lt_prog_compiler_wl='-Qoption ld '
  8148. ;;
  8149. *Sun\ C*)
  8150. # Sun C 5.9
  8151. lt_prog_compiler_pic='-KPIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. lt_prog_compiler_wl='-Wl,'
  8154. ;;
  8155. *Intel*\ [CF]*Compiler*)
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-fPIC'
  8158. lt_prog_compiler_static='-static'
  8159. ;;
  8160. *Portland\ Group*)
  8161. lt_prog_compiler_wl='-Wl,'
  8162. lt_prog_compiler_pic='-fpic'
  8163. lt_prog_compiler_static='-Bstatic'
  8164. ;;
  8165. esac
  8166. ;;
  8167. esac
  8168. ;;
  8169. newsos6)
  8170. lt_prog_compiler_pic='-KPIC'
  8171. lt_prog_compiler_static='-Bstatic'
  8172. ;;
  8173. *nto* | *qnx*)
  8174. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8175. # it will coredump.
  8176. lt_prog_compiler_pic='-fPIC -shared'
  8177. ;;
  8178. osf3* | osf4* | osf5*)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. # All OSF/1 code is PIC.
  8181. lt_prog_compiler_static='-non_shared'
  8182. ;;
  8183. rdos*)
  8184. lt_prog_compiler_static='-non_shared'
  8185. ;;
  8186. solaris*)
  8187. lt_prog_compiler_pic='-KPIC'
  8188. lt_prog_compiler_static='-Bstatic'
  8189. case $cc_basename in
  8190. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8191. lt_prog_compiler_wl='-Qoption ld ';;
  8192. *)
  8193. lt_prog_compiler_wl='-Wl,';;
  8194. esac
  8195. ;;
  8196. sunos4*)
  8197. lt_prog_compiler_wl='-Qoption ld '
  8198. lt_prog_compiler_pic='-PIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. ;;
  8201. sysv4 | sysv4.2uw2* | sysv4.3*)
  8202. lt_prog_compiler_wl='-Wl,'
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. ;;
  8206. sysv4*MP*)
  8207. if test -d /usr/nec; then
  8208. lt_prog_compiler_pic='-Kconform_pic'
  8209. lt_prog_compiler_static='-Bstatic'
  8210. fi
  8211. ;;
  8212. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. ;;
  8217. unicos*)
  8218. lt_prog_compiler_wl='-Wl,'
  8219. lt_prog_compiler_can_build_shared=no
  8220. ;;
  8221. uts4*)
  8222. lt_prog_compiler_pic='-pic'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. *)
  8226. lt_prog_compiler_can_build_shared=no
  8227. ;;
  8228. esac
  8229. fi
  8230. case $host_os in
  8231. # For platforms that do not support PIC, -DPIC is meaningless:
  8232. *djgpp*)
  8233. lt_prog_compiler_pic=
  8234. ;;
  8235. *)
  8236. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8237. ;;
  8238. esac
  8239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8240. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8241. if test ${lt_cv_prog_compiler_pic+y}
  8242. then :
  8243. printf %s "(cached) " >&6
  8244. else $as_nop
  8245. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8246. fi
  8247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8248. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8249. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8250. #
  8251. # Check to make sure the PIC flag actually works.
  8252. #
  8253. if test -n "$lt_prog_compiler_pic"; then
  8254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8255. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8256. if test ${lt_cv_prog_compiler_pic_works+y}
  8257. then :
  8258. printf %s "(cached) " >&6
  8259. else $as_nop
  8260. lt_cv_prog_compiler_pic_works=no
  8261. ac_outfile=conftest.$ac_objext
  8262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8263. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8264. # Insert the option either (1) after the last *FLAGS variable, or
  8265. # (2) before a word containing "conftest.", or (3) at the end.
  8266. # Note that $ac_compile itself does not contain backslashes and begins
  8267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8268. # The option is referenced via a variable to avoid confusing sed.
  8269. lt_compile=`echo "$ac_compile" | $SED \
  8270. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8271. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8272. -e 's:$: $lt_compiler_flag:'`
  8273. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8274. (eval "$lt_compile" 2>conftest.err)
  8275. ac_status=$?
  8276. cat conftest.err >&5
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. if (exit $ac_status) && test -s "$ac_outfile"; then
  8279. # The compiler can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings other than the usual output.
  8281. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8283. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8284. lt_cv_prog_compiler_pic_works=yes
  8285. fi
  8286. fi
  8287. $RM conftest*
  8288. fi
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8290. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8291. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8292. case $lt_prog_compiler_pic in
  8293. "" | " "*) ;;
  8294. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8295. esac
  8296. else
  8297. lt_prog_compiler_pic=
  8298. lt_prog_compiler_can_build_shared=no
  8299. fi
  8300. fi
  8301. #
  8302. # Check to make sure the static flag actually works.
  8303. #
  8304. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8306. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8307. if test ${lt_cv_prog_compiler_static_works+y}
  8308. then :
  8309. printf %s "(cached) " >&6
  8310. else $as_nop
  8311. lt_cv_prog_compiler_static_works=no
  8312. save_LDFLAGS=$LDFLAGS
  8313. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8314. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8315. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8316. # The linker can only warn and ignore the option if not recognized
  8317. # So say no if there are warnings
  8318. if test -s conftest.err; then
  8319. # Append any errors to the config.log.
  8320. cat conftest.err 1>&5
  8321. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8322. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8323. if diff conftest.exp conftest.er2 >/dev/null; then
  8324. lt_cv_prog_compiler_static_works=yes
  8325. fi
  8326. else
  8327. lt_cv_prog_compiler_static_works=yes
  8328. fi
  8329. fi
  8330. $RM -r conftest*
  8331. LDFLAGS=$save_LDFLAGS
  8332. fi
  8333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8334. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8335. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8336. :
  8337. else
  8338. lt_prog_compiler_static=
  8339. fi
  8340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8341. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8342. if test ${lt_cv_prog_compiler_c_o+y}
  8343. then :
  8344. printf %s "(cached) " >&6
  8345. else $as_nop
  8346. lt_cv_prog_compiler_c_o=no
  8347. $RM -r conftest 2>/dev/null
  8348. mkdir conftest
  8349. cd conftest
  8350. mkdir out
  8351. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8352. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8353. # Insert the option either (1) after the last *FLAGS variable, or
  8354. # (2) before a word containing "conftest.", or (3) at the end.
  8355. # Note that $ac_compile itself does not contain backslashes and begins
  8356. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8357. lt_compile=`echo "$ac_compile" | $SED \
  8358. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8359. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8360. -e 's:$: $lt_compiler_flag:'`
  8361. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8362. (eval "$lt_compile" 2>out/conftest.err)
  8363. ac_status=$?
  8364. cat out/conftest.err >&5
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8367. then
  8368. # The compiler can only warn and ignore the option if not recognized
  8369. # So say no if there are warnings
  8370. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8371. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8372. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8373. lt_cv_prog_compiler_c_o=yes
  8374. fi
  8375. fi
  8376. chmod u+w . 2>&5
  8377. $RM conftest*
  8378. # SGI C++ compiler will create directory out/ii_files/ for
  8379. # template instantiation
  8380. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8381. $RM out/* && rmdir out
  8382. cd ..
  8383. $RM -r conftest
  8384. $RM conftest*
  8385. fi
  8386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8387. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8389. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8390. if test ${lt_cv_prog_compiler_c_o+y}
  8391. then :
  8392. printf %s "(cached) " >&6
  8393. else $as_nop
  8394. lt_cv_prog_compiler_c_o=no
  8395. $RM -r conftest 2>/dev/null
  8396. mkdir conftest
  8397. cd conftest
  8398. mkdir out
  8399. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8400. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8401. # Insert the option either (1) after the last *FLAGS variable, or
  8402. # (2) before a word containing "conftest.", or (3) at the end.
  8403. # Note that $ac_compile itself does not contain backslashes and begins
  8404. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8405. lt_compile=`echo "$ac_compile" | $SED \
  8406. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8407. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8408. -e 's:$: $lt_compiler_flag:'`
  8409. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8410. (eval "$lt_compile" 2>out/conftest.err)
  8411. ac_status=$?
  8412. cat out/conftest.err >&5
  8413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8415. then
  8416. # The compiler can only warn and ignore the option if not recognized
  8417. # So say no if there are warnings
  8418. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8419. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8420. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8421. lt_cv_prog_compiler_c_o=yes
  8422. fi
  8423. fi
  8424. chmod u+w . 2>&5
  8425. $RM conftest*
  8426. # SGI C++ compiler will create directory out/ii_files/ for
  8427. # template instantiation
  8428. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8429. $RM out/* && rmdir out
  8430. cd ..
  8431. $RM -r conftest
  8432. $RM conftest*
  8433. fi
  8434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8435. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8436. hard_links=nottested
  8437. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8438. # do not overwrite the value of need_locks provided by the user
  8439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8440. printf %s "checking if we can lock with hard links... " >&6; }
  8441. hard_links=yes
  8442. $RM conftest*
  8443. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8444. touch conftest.a
  8445. ln conftest.a conftest.b 2>&5 || hard_links=no
  8446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8448. printf "%s\n" "$hard_links" >&6; }
  8449. if test no = "$hard_links"; then
  8450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8451. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8452. need_locks=warn
  8453. fi
  8454. else
  8455. need_locks=no
  8456. fi
  8457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8458. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8459. runpath_var=
  8460. allow_undefined_flag=
  8461. always_export_symbols=no
  8462. archive_cmds=
  8463. archive_expsym_cmds=
  8464. compiler_needs_object=no
  8465. enable_shared_with_static_runtimes=no
  8466. export_dynamic_flag_spec=
  8467. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8468. hardcode_automatic=no
  8469. hardcode_direct=no
  8470. hardcode_direct_absolute=no
  8471. hardcode_libdir_flag_spec=
  8472. hardcode_libdir_separator=
  8473. hardcode_minus_L=no
  8474. hardcode_shlibpath_var=unsupported
  8475. inherit_rpath=no
  8476. link_all_deplibs=unknown
  8477. module_cmds=
  8478. module_expsym_cmds=
  8479. old_archive_from_new_cmds=
  8480. old_archive_from_expsyms_cmds=
  8481. thread_safe_flag_spec=
  8482. whole_archive_flag_spec=
  8483. # include_expsyms should be a list of space-separated symbols to be *always*
  8484. # included in the symbol list
  8485. include_expsyms=
  8486. # exclude_expsyms can be an extended regexp of symbols to exclude
  8487. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8488. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8489. # as well as any symbol that contains 'd'.
  8490. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8491. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8492. # platforms (ab)use it in PIC code, but their linkers get confused if
  8493. # the symbol is explicitly referenced. Since portable code cannot
  8494. # rely on this symbol name, it's probably fine to never include it in
  8495. # preloaded symbol tables.
  8496. # Exclude shared library initialization/finalization symbols.
  8497. extract_expsyms_cmds=
  8498. case $host_os in
  8499. cygwin* | mingw* | pw32* | cegcc*)
  8500. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8501. # When not using gcc, we currently assume that we are using
  8502. # Microsoft Visual C++.
  8503. if test yes != "$GCC"; then
  8504. with_gnu_ld=no
  8505. fi
  8506. ;;
  8507. interix*)
  8508. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8509. with_gnu_ld=yes
  8510. ;;
  8511. openbsd* | bitrig*)
  8512. with_gnu_ld=no
  8513. ;;
  8514. esac
  8515. ld_shlibs=yes
  8516. # On some targets, GNU ld is compatible enough with the native linker
  8517. # that we're better off using the native interface for both.
  8518. lt_use_gnu_ld_interface=no
  8519. if test yes = "$with_gnu_ld"; then
  8520. case $host_os in
  8521. aix*)
  8522. # The AIX port of GNU ld has always aspired to compatibility
  8523. # with the native linker. However, as the warning in the GNU ld
  8524. # block says, versions before 2.19.5* couldn't really create working
  8525. # shared libraries, regardless of the interface used.
  8526. case `$LD -v 2>&1` in
  8527. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8528. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8529. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8530. *)
  8531. lt_use_gnu_ld_interface=yes
  8532. ;;
  8533. esac
  8534. ;;
  8535. *)
  8536. lt_use_gnu_ld_interface=yes
  8537. ;;
  8538. esac
  8539. fi
  8540. if test yes = "$lt_use_gnu_ld_interface"; then
  8541. # If archive_cmds runs LD, not CC, wlarc should be empty
  8542. wlarc='$wl'
  8543. # Set some defaults for GNU ld with shared library support. These
  8544. # are reset later if shared libraries are not supported. Putting them
  8545. # here allows them to be overridden if necessary.
  8546. runpath_var=LD_RUN_PATH
  8547. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8548. export_dynamic_flag_spec='$wl--export-dynamic'
  8549. # ancient GNU ld didn't support --whole-archive et. al.
  8550. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8551. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8552. else
  8553. whole_archive_flag_spec=
  8554. fi
  8555. supports_anon_versioning=no
  8556. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8557. *GNU\ gold*) supports_anon_versioning=yes ;;
  8558. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8559. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8560. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8561. *\ 2.11.*) ;; # other 2.11 versions
  8562. *) supports_anon_versioning=yes ;;
  8563. esac
  8564. # See if GNU ld supports shared libraries.
  8565. case $host_os in
  8566. aix[3-9]*)
  8567. # On AIX/PPC, the GNU linker is very broken
  8568. if test ia64 != "$host_cpu"; then
  8569. ld_shlibs=no
  8570. cat <<_LT_EOF 1>&2
  8571. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8572. *** to be unable to reliably create shared libraries on AIX.
  8573. *** Therefore, libtool is disabling shared libraries support. If you
  8574. *** really care for shared libraries, you may want to install binutils
  8575. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8576. *** You will then need to restart the configuration process.
  8577. _LT_EOF
  8578. fi
  8579. ;;
  8580. amigaos*)
  8581. case $host_cpu in
  8582. powerpc)
  8583. # see comment about AmigaOS4 .so support
  8584. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8585. archive_expsym_cmds=''
  8586. ;;
  8587. m68k)
  8588. 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)'
  8589. hardcode_libdir_flag_spec='-L$libdir'
  8590. hardcode_minus_L=yes
  8591. ;;
  8592. esac
  8593. ;;
  8594. beos*)
  8595. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8596. allow_undefined_flag=unsupported
  8597. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8598. # support --undefined. This deserves some investigation. FIXME
  8599. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8600. else
  8601. ld_shlibs=no
  8602. fi
  8603. ;;
  8604. cygwin* | mingw* | pw32* | cegcc*)
  8605. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8606. # as there is no search path for DLLs.
  8607. hardcode_libdir_flag_spec='-L$libdir'
  8608. export_dynamic_flag_spec='$wl--export-all-symbols'
  8609. allow_undefined_flag=unsupported
  8610. always_export_symbols=no
  8611. enable_shared_with_static_runtimes=yes
  8612. 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'
  8613. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8614. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8615. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8616. # If the export-symbols file already is a .def file, use it as
  8617. # is; otherwise, prepend EXPORTS...
  8618. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8619. cp $export_symbols $output_objdir/$soname.def;
  8620. else
  8621. echo EXPORTS > $output_objdir/$soname.def;
  8622. cat $export_symbols >> $output_objdir/$soname.def;
  8623. fi~
  8624. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8625. else
  8626. ld_shlibs=no
  8627. fi
  8628. ;;
  8629. haiku*)
  8630. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8631. link_all_deplibs=yes
  8632. ;;
  8633. os2*)
  8634. hardcode_libdir_flag_spec='-L$libdir'
  8635. hardcode_minus_L=yes
  8636. allow_undefined_flag=unsupported
  8637. shrext_cmds=.dll
  8638. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8639. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8640. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8641. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8642. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8643. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8644. emximp -o $lib $output_objdir/$libname.def'
  8645. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8646. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8647. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8648. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8649. prefix_cmds="$SED"~
  8650. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8651. prefix_cmds="$prefix_cmds -e 1d";
  8652. fi~
  8653. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8654. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8655. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8656. emximp -o $lib $output_objdir/$libname.def'
  8657. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8658. enable_shared_with_static_runtimes=yes
  8659. file_list_spec='@'
  8660. ;;
  8661. interix[3-9]*)
  8662. hardcode_direct=no
  8663. hardcode_shlibpath_var=no
  8664. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8665. export_dynamic_flag_spec='$wl-E'
  8666. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8667. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8668. # default) and relocated if they conflict, which is a slow very memory
  8669. # consuming and fragmenting process. To avoid this, we pick a random,
  8670. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8671. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8672. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8673. 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'
  8674. ;;
  8675. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8676. tmp_diet=no
  8677. if test linux-dietlibc = "$host_os"; then
  8678. case $cc_basename in
  8679. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8680. esac
  8681. fi
  8682. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8683. && test no = "$tmp_diet"
  8684. then
  8685. tmp_addflag=' $pic_flag'
  8686. tmp_sharedflag='-shared'
  8687. case $cc_basename,$host_cpu in
  8688. pgcc*) # Portland Group C compiler
  8689. 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'
  8690. tmp_addflag=' $pic_flag'
  8691. ;;
  8692. pgf77* | pgf90* | pgf95* | pgfortran*)
  8693. # Portland Group f77 and f90 compilers
  8694. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8695. tmp_addflag=' $pic_flag -Mnomain' ;;
  8696. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8697. tmp_addflag=' -i_dynamic' ;;
  8698. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8699. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8700. ifc* | ifort*) # Intel Fortran compiler
  8701. tmp_addflag=' -nofor_main' ;;
  8702. lf95*) # Lahey Fortran 8.1
  8703. whole_archive_flag_spec=
  8704. tmp_sharedflag='--shared' ;;
  8705. nagfor*) # NAGFOR 5.3
  8706. tmp_sharedflag='-Wl,-shared' ;;
  8707. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8708. tmp_sharedflag='-qmkshrobj'
  8709. tmp_addflag= ;;
  8710. nvcc*) # Cuda Compiler Driver 2.2
  8711. 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'
  8712. compiler_needs_object=yes
  8713. ;;
  8714. esac
  8715. case `$CC -V 2>&1 | sed 5q` in
  8716. *Sun\ C*) # Sun C 5.9
  8717. 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'
  8718. compiler_needs_object=yes
  8719. tmp_sharedflag='-G' ;;
  8720. *Sun\ F*) # Sun Fortran 8.3
  8721. tmp_sharedflag='-G' ;;
  8722. esac
  8723. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8724. if test yes = "$supports_anon_versioning"; then
  8725. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8726. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8727. echo "local: *; };" >> $output_objdir/$libname.ver~
  8728. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8729. fi
  8730. case $cc_basename in
  8731. tcc*)
  8732. export_dynamic_flag_spec='-rdynamic'
  8733. ;;
  8734. xlf* | bgf* | bgxlf* | mpixlf*)
  8735. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8736. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8737. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8738. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8739. if test yes = "$supports_anon_versioning"; then
  8740. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8741. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8742. echo "local: *; };" >> $output_objdir/$libname.ver~
  8743. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8744. fi
  8745. ;;
  8746. esac
  8747. else
  8748. ld_shlibs=no
  8749. fi
  8750. ;;
  8751. netbsd*)
  8752. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8753. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8754. wlarc=
  8755. else
  8756. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8757. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8758. fi
  8759. ;;
  8760. solaris*)
  8761. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8762. ld_shlibs=no
  8763. cat <<_LT_EOF 1>&2
  8764. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8765. *** create shared libraries on Solaris systems. Therefore, libtool
  8766. *** is disabling shared libraries support. We urge you to upgrade GNU
  8767. *** binutils to release 2.9.1 or newer. Another option is to modify
  8768. *** your PATH or compiler configuration so that the native linker is
  8769. *** used, and then restart.
  8770. _LT_EOF
  8771. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8772. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8773. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8774. else
  8775. ld_shlibs=no
  8776. fi
  8777. ;;
  8778. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8779. case `$LD -v 2>&1` in
  8780. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8781. ld_shlibs=no
  8782. cat <<_LT_EOF 1>&2
  8783. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8784. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8785. *** is disabling shared libraries support. We urge you to upgrade GNU
  8786. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8787. *** your PATH or compiler configuration so that the native linker is
  8788. *** used, and then restart.
  8789. _LT_EOF
  8790. ;;
  8791. *)
  8792. # For security reasons, it is highly recommended that you always
  8793. # use absolute paths for naming shared libraries, and exclude the
  8794. # DT_RUNPATH tag from executables and libraries. But doing so
  8795. # requires that you compile everything twice, which is a pain.
  8796. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8797. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8798. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8799. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8800. else
  8801. ld_shlibs=no
  8802. fi
  8803. ;;
  8804. esac
  8805. ;;
  8806. sunos4*)
  8807. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8808. wlarc=
  8809. hardcode_direct=yes
  8810. hardcode_shlibpath_var=no
  8811. ;;
  8812. *)
  8813. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8814. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8816. else
  8817. ld_shlibs=no
  8818. fi
  8819. ;;
  8820. esac
  8821. if test no = "$ld_shlibs"; then
  8822. runpath_var=
  8823. hardcode_libdir_flag_spec=
  8824. export_dynamic_flag_spec=
  8825. whole_archive_flag_spec=
  8826. fi
  8827. else
  8828. # PORTME fill in a description of your system's linker (not GNU ld)
  8829. case $host_os in
  8830. aix3*)
  8831. allow_undefined_flag=unsupported
  8832. always_export_symbols=yes
  8833. 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'
  8834. # Note: this linker hardcodes the directories in LIBPATH if there
  8835. # are no directories specified by -L.
  8836. hardcode_minus_L=yes
  8837. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8838. # Neither direct hardcoding nor static linking is supported with a
  8839. # broken collect2.
  8840. hardcode_direct=unsupported
  8841. fi
  8842. ;;
  8843. aix[4-9]*)
  8844. if test ia64 = "$host_cpu"; then
  8845. # On IA64, the linker does run time linking by default, so we don't
  8846. # have to do anything special.
  8847. aix_use_runtimelinking=no
  8848. exp_sym_flag='-Bexport'
  8849. no_entry_flag=
  8850. else
  8851. # If we're using GNU nm, then we don't want the "-C" option.
  8852. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8853. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8854. # weak defined symbols like other global defined symbols, whereas
  8855. # GNU nm marks them as "W".
  8856. # While the 'weak' keyword is ignored in the Export File, we need
  8857. # it in the Import File for the 'aix-soname' feature, so we have
  8858. # to replace the "-B" option with "-P" for AIX nm.
  8859. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8860. 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'
  8861. else
  8862. 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'
  8863. fi
  8864. aix_use_runtimelinking=no
  8865. # Test if we are trying to use run time linking or normal
  8866. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8867. # have runtime linking enabled, and use it for executables.
  8868. # For shared libraries, we enable/disable runtime linking
  8869. # depending on the kind of the shared library created -
  8870. # when "with_aix_soname,aix_use_runtimelinking" is:
  8871. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8872. # "aix,yes" lib.so shared, rtl:yes, for executables
  8873. # lib.a static archive
  8874. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8875. # lib.a(lib.so.V) shared, rtl:no, for executables
  8876. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8877. # lib.a(lib.so.V) shared, rtl:no
  8878. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8879. # lib.a static archive
  8880. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8881. for ld_flag in $LDFLAGS; do
  8882. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8883. aix_use_runtimelinking=yes
  8884. break
  8885. fi
  8886. done
  8887. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8888. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8889. # so we don't have lib.a shared libs to link our executables.
  8890. # We have to force runtime linking in this case.
  8891. aix_use_runtimelinking=yes
  8892. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8893. fi
  8894. ;;
  8895. esac
  8896. exp_sym_flag='-bexport'
  8897. no_entry_flag='-bnoentry'
  8898. fi
  8899. # When large executables or shared objects are built, AIX ld can
  8900. # have problems creating the table of contents. If linking a library
  8901. # or program results in "error TOC overflow" add -mminimal-toc to
  8902. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8903. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8904. archive_cmds=''
  8905. hardcode_direct=yes
  8906. hardcode_direct_absolute=yes
  8907. hardcode_libdir_separator=':'
  8908. link_all_deplibs=yes
  8909. file_list_spec='$wl-f,'
  8910. case $with_aix_soname,$aix_use_runtimelinking in
  8911. aix,*) ;; # traditional, no import file
  8912. svr4,* | *,yes) # use import file
  8913. # The Import File defines what to hardcode.
  8914. hardcode_direct=no
  8915. hardcode_direct_absolute=no
  8916. ;;
  8917. esac
  8918. if test yes = "$GCC"; then
  8919. case $host_os in aix4.[012]|aix4.[012].*)
  8920. # We only want to do this on AIX 4.2 and lower, the check
  8921. # below for broken collect2 doesn't work under 4.3+
  8922. collect2name=`$CC -print-prog-name=collect2`
  8923. if test -f "$collect2name" &&
  8924. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8925. then
  8926. # We have reworked collect2
  8927. :
  8928. else
  8929. # We have old collect2
  8930. hardcode_direct=unsupported
  8931. # It fails to find uninstalled libraries when the uninstalled
  8932. # path is not listed in the libpath. Setting hardcode_minus_L
  8933. # to unsupported forces relinking
  8934. hardcode_minus_L=yes
  8935. hardcode_libdir_flag_spec='-L$libdir'
  8936. hardcode_libdir_separator=
  8937. fi
  8938. ;;
  8939. esac
  8940. shared_flag='-shared'
  8941. if test yes = "$aix_use_runtimelinking"; then
  8942. shared_flag="$shared_flag "'$wl-G'
  8943. fi
  8944. # Need to ensure runtime linking is disabled for the traditional
  8945. # shared library, or the linker may eventually find shared libraries
  8946. # /with/ Import File - we do not want to mix them.
  8947. shared_flag_aix='-shared'
  8948. shared_flag_svr4='-shared $wl-G'
  8949. else
  8950. # not using gcc
  8951. if test ia64 = "$host_cpu"; then
  8952. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8953. # chokes on -Wl,-G. The following line is correct:
  8954. shared_flag='-G'
  8955. else
  8956. if test yes = "$aix_use_runtimelinking"; then
  8957. shared_flag='$wl-G'
  8958. else
  8959. shared_flag='$wl-bM:SRE'
  8960. fi
  8961. shared_flag_aix='$wl-bM:SRE'
  8962. shared_flag_svr4='$wl-G'
  8963. fi
  8964. fi
  8965. export_dynamic_flag_spec='$wl-bexpall'
  8966. # It seems that -bexpall does not export symbols beginning with
  8967. # underscore (_), so it is better to generate a list of symbols to export.
  8968. always_export_symbols=yes
  8969. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8970. # Warning - without using the other runtime loading flags (-brtl),
  8971. # -berok will link without error, but may produce a broken library.
  8972. allow_undefined_flag='-berok'
  8973. # Determine the default libpath from the value encoded in an
  8974. # empty executable.
  8975. if test set = "${lt_cv_aix_libpath+set}"; then
  8976. aix_libpath=$lt_cv_aix_libpath
  8977. else
  8978. if test ${lt_cv_aix_libpath_+y}
  8979. then :
  8980. printf %s "(cached) " >&6
  8981. else $as_nop
  8982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8983. /* end confdefs.h. */
  8984. int
  8985. main (void)
  8986. {
  8987. ;
  8988. return 0;
  8989. }
  8990. _ACEOF
  8991. if ac_fn_c_try_link "$LINENO"
  8992. then :
  8993. lt_aix_libpath_sed='
  8994. /Import File Strings/,/^$/ {
  8995. /^0/ {
  8996. s/^0 *\([^ ]*\) *$/\1/
  8997. p
  8998. }
  8999. }'
  9000. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9001. # Check for a 64-bit object if we didn't find anything.
  9002. if test -z "$lt_cv_aix_libpath_"; then
  9003. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9004. fi
  9005. fi
  9006. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9007. conftest$ac_exeext conftest.$ac_ext
  9008. if test -z "$lt_cv_aix_libpath_"; then
  9009. lt_cv_aix_libpath_=/usr/lib:/lib
  9010. fi
  9011. fi
  9012. aix_libpath=$lt_cv_aix_libpath_
  9013. fi
  9014. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9015. 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
  9016. else
  9017. if test ia64 = "$host_cpu"; then
  9018. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9019. allow_undefined_flag="-z nodefs"
  9020. 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"
  9021. else
  9022. # Determine the default libpath from the value encoded in an
  9023. # empty executable.
  9024. if test set = "${lt_cv_aix_libpath+set}"; then
  9025. aix_libpath=$lt_cv_aix_libpath
  9026. else
  9027. if test ${lt_cv_aix_libpath_+y}
  9028. then :
  9029. printf %s "(cached) " >&6
  9030. else $as_nop
  9031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9032. /* end confdefs.h. */
  9033. int
  9034. main (void)
  9035. {
  9036. ;
  9037. return 0;
  9038. }
  9039. _ACEOF
  9040. if ac_fn_c_try_link "$LINENO"
  9041. then :
  9042. lt_aix_libpath_sed='
  9043. /Import File Strings/,/^$/ {
  9044. /^0/ {
  9045. s/^0 *\([^ ]*\) *$/\1/
  9046. p
  9047. }
  9048. }'
  9049. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9050. # Check for a 64-bit object if we didn't find anything.
  9051. if test -z "$lt_cv_aix_libpath_"; then
  9052. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9053. fi
  9054. fi
  9055. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9056. conftest$ac_exeext conftest.$ac_ext
  9057. if test -z "$lt_cv_aix_libpath_"; then
  9058. lt_cv_aix_libpath_=/usr/lib:/lib
  9059. fi
  9060. fi
  9061. aix_libpath=$lt_cv_aix_libpath_
  9062. fi
  9063. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9064. # Warning - without using the other run time loading flags,
  9065. # -berok will link without error, but may produce a broken library.
  9066. no_undefined_flag=' $wl-bernotok'
  9067. allow_undefined_flag=' $wl-berok'
  9068. if test yes = "$with_gnu_ld"; then
  9069. # We only use this code for GNU lds that support --whole-archive.
  9070. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9071. else
  9072. # Exported symbols can be pulled into shared objects from archives
  9073. whole_archive_flag_spec='$convenience'
  9074. fi
  9075. archive_cmds_need_lc=yes
  9076. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9077. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9078. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9079. if test svr4 != "$with_aix_soname"; then
  9080. # This is similar to how AIX traditionally builds its shared libraries.
  9081. 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'
  9082. fi
  9083. if test aix != "$with_aix_soname"; then
  9084. 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'
  9085. else
  9086. # used by -dlpreopen to get the symbols
  9087. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9088. fi
  9089. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9090. fi
  9091. fi
  9092. ;;
  9093. amigaos*)
  9094. case $host_cpu in
  9095. powerpc)
  9096. # see comment about AmigaOS4 .so support
  9097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9098. archive_expsym_cmds=''
  9099. ;;
  9100. m68k)
  9101. 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)'
  9102. hardcode_libdir_flag_spec='-L$libdir'
  9103. hardcode_minus_L=yes
  9104. ;;
  9105. esac
  9106. ;;
  9107. bsdi[45]*)
  9108. export_dynamic_flag_spec=-rdynamic
  9109. ;;
  9110. cygwin* | mingw* | pw32* | cegcc*)
  9111. # When not using gcc, we currently assume that we are using
  9112. # Microsoft Visual C++.
  9113. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9114. # no search path for DLLs.
  9115. case $cc_basename in
  9116. cl*)
  9117. # Native MSVC
  9118. hardcode_libdir_flag_spec=' '
  9119. allow_undefined_flag=unsupported
  9120. always_export_symbols=yes
  9121. file_list_spec='@'
  9122. # Tell ltmain to make .lib files, not .a files.
  9123. libext=lib
  9124. # Tell ltmain to make .dll files, not .so files.
  9125. shrext_cmds=.dll
  9126. # FIXME: Setting linknames here is a bad hack.
  9127. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9128. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9129. cp "$export_symbols" "$output_objdir/$soname.def";
  9130. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9131. else
  9132. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9133. fi~
  9134. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9135. linknames='
  9136. # The linker will not automatically build a static lib if we build a DLL.
  9137. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9138. enable_shared_with_static_runtimes=yes
  9139. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9140. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9141. # Don't use ranlib
  9142. old_postinstall_cmds='chmod 644 $oldlib'
  9143. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9144. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9145. case $lt_outputfile in
  9146. *.exe|*.EXE) ;;
  9147. *)
  9148. lt_outputfile=$lt_outputfile.exe
  9149. lt_tool_outputfile=$lt_tool_outputfile.exe
  9150. ;;
  9151. esac~
  9152. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9153. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9154. $RM "$lt_outputfile.manifest";
  9155. fi'
  9156. ;;
  9157. *)
  9158. # Assume MSVC wrapper
  9159. hardcode_libdir_flag_spec=' '
  9160. allow_undefined_flag=unsupported
  9161. # Tell ltmain to make .lib files, not .a files.
  9162. libext=lib
  9163. # Tell ltmain to make .dll files, not .so files.
  9164. shrext_cmds=.dll
  9165. # FIXME: Setting linknames here is a bad hack.
  9166. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9167. # The linker will automatically build a .lib file if we build a DLL.
  9168. old_archive_from_new_cmds='true'
  9169. # FIXME: Should let the user specify the lib program.
  9170. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9171. enable_shared_with_static_runtimes=yes
  9172. ;;
  9173. esac
  9174. ;;
  9175. darwin* | rhapsody*)
  9176. archive_cmds_need_lc=no
  9177. hardcode_direct=no
  9178. hardcode_automatic=yes
  9179. hardcode_shlibpath_var=unsupported
  9180. if test yes = "$lt_cv_ld_force_load"; then
  9181. 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\"`'
  9182. else
  9183. whole_archive_flag_spec=''
  9184. fi
  9185. link_all_deplibs=yes
  9186. allow_undefined_flag=$_lt_dar_allow_undefined
  9187. case $cc_basename in
  9188. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9189. *) _lt_dar_can_shared=$GCC ;;
  9190. esac
  9191. if test yes = "$_lt_dar_can_shared"; then
  9192. output_verbose_link_cmd=func_echo_all
  9193. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9194. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9195. 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"
  9196. 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"
  9197. else
  9198. ld_shlibs=no
  9199. fi
  9200. ;;
  9201. dgux*)
  9202. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9203. hardcode_libdir_flag_spec='-L$libdir'
  9204. hardcode_shlibpath_var=no
  9205. ;;
  9206. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9207. # support. Future versions do this automatically, but an explicit c++rt0.o
  9208. # does not break anything, and helps significantly (at the cost of a little
  9209. # extra space).
  9210. freebsd2.2*)
  9211. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9212. hardcode_libdir_flag_spec='-R$libdir'
  9213. hardcode_direct=yes
  9214. hardcode_shlibpath_var=no
  9215. ;;
  9216. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9217. freebsd2.*)
  9218. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9219. hardcode_direct=yes
  9220. hardcode_minus_L=yes
  9221. hardcode_shlibpath_var=no
  9222. ;;
  9223. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9224. freebsd* | dragonfly* | midnightbsd*)
  9225. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9226. hardcode_libdir_flag_spec='-R$libdir'
  9227. hardcode_direct=yes
  9228. hardcode_shlibpath_var=no
  9229. ;;
  9230. hpux9*)
  9231. if test yes = "$GCC"; then
  9232. 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'
  9233. else
  9234. 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'
  9235. fi
  9236. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9237. hardcode_libdir_separator=:
  9238. hardcode_direct=yes
  9239. # hardcode_minus_L: Not really in the search PATH,
  9240. # but as the default location of the library.
  9241. hardcode_minus_L=yes
  9242. export_dynamic_flag_spec='$wl-E'
  9243. ;;
  9244. hpux10*)
  9245. if test yes,no = "$GCC,$with_gnu_ld"; then
  9246. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9247. else
  9248. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9249. fi
  9250. if test no = "$with_gnu_ld"; then
  9251. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9252. hardcode_libdir_separator=:
  9253. hardcode_direct=yes
  9254. hardcode_direct_absolute=yes
  9255. export_dynamic_flag_spec='$wl-E'
  9256. # hardcode_minus_L: Not really in the search PATH,
  9257. # but as the default location of the library.
  9258. hardcode_minus_L=yes
  9259. fi
  9260. ;;
  9261. hpux11*)
  9262. if test yes,no = "$GCC,$with_gnu_ld"; then
  9263. case $host_cpu in
  9264. hppa*64*)
  9265. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9266. ;;
  9267. ia64*)
  9268. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9269. ;;
  9270. *)
  9271. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9272. ;;
  9273. esac
  9274. else
  9275. case $host_cpu in
  9276. hppa*64*)
  9277. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9278. ;;
  9279. ia64*)
  9280. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9281. ;;
  9282. *)
  9283. # Older versions of the 11.00 compiler do not understand -b yet
  9284. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9286. printf %s "checking if $CC understands -b... " >&6; }
  9287. if test ${lt_cv_prog_compiler__b+y}
  9288. then :
  9289. printf %s "(cached) " >&6
  9290. else $as_nop
  9291. lt_cv_prog_compiler__b=no
  9292. save_LDFLAGS=$LDFLAGS
  9293. LDFLAGS="$LDFLAGS -b"
  9294. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9295. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9296. # The linker can only warn and ignore the option if not recognized
  9297. # So say no if there are warnings
  9298. if test -s conftest.err; then
  9299. # Append any errors to the config.log.
  9300. cat conftest.err 1>&5
  9301. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9302. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9303. if diff conftest.exp conftest.er2 >/dev/null; then
  9304. lt_cv_prog_compiler__b=yes
  9305. fi
  9306. else
  9307. lt_cv_prog_compiler__b=yes
  9308. fi
  9309. fi
  9310. $RM -r conftest*
  9311. LDFLAGS=$save_LDFLAGS
  9312. fi
  9313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9314. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9315. if test yes = "$lt_cv_prog_compiler__b"; then
  9316. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9317. else
  9318. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9319. fi
  9320. ;;
  9321. esac
  9322. fi
  9323. if test no = "$with_gnu_ld"; then
  9324. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9325. hardcode_libdir_separator=:
  9326. case $host_cpu in
  9327. hppa*64*|ia64*)
  9328. hardcode_direct=no
  9329. hardcode_shlibpath_var=no
  9330. ;;
  9331. *)
  9332. hardcode_direct=yes
  9333. hardcode_direct_absolute=yes
  9334. export_dynamic_flag_spec='$wl-E'
  9335. # hardcode_minus_L: Not really in the search PATH,
  9336. # but as the default location of the library.
  9337. hardcode_minus_L=yes
  9338. ;;
  9339. esac
  9340. fi
  9341. ;;
  9342. irix5* | irix6* | nonstopux*)
  9343. if test yes = "$GCC"; then
  9344. 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'
  9345. # Try to use the -exported_symbol ld option, if it does not
  9346. # work, assume that -exports_file does not work either and
  9347. # implicitly export all symbols.
  9348. # This should be the same for all languages, so no per-tag cache variable.
  9349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9350. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9351. if test ${lt_cv_irix_exported_symbol+y}
  9352. then :
  9353. printf %s "(cached) " >&6
  9354. else $as_nop
  9355. save_LDFLAGS=$LDFLAGS
  9356. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9358. /* end confdefs.h. */
  9359. int foo (void) { return 0; }
  9360. _ACEOF
  9361. if ac_fn_c_try_link "$LINENO"
  9362. then :
  9363. lt_cv_irix_exported_symbol=yes
  9364. else $as_nop
  9365. lt_cv_irix_exported_symbol=no
  9366. fi
  9367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9368. conftest$ac_exeext conftest.$ac_ext
  9369. LDFLAGS=$save_LDFLAGS
  9370. fi
  9371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9372. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9373. if test yes = "$lt_cv_irix_exported_symbol"; then
  9374. 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'
  9375. fi
  9376. else
  9377. 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'
  9378. 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'
  9379. fi
  9380. archive_cmds_need_lc='no'
  9381. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9382. hardcode_libdir_separator=:
  9383. inherit_rpath=yes
  9384. link_all_deplibs=yes
  9385. ;;
  9386. linux*)
  9387. case $cc_basename in
  9388. tcc*)
  9389. # Fabrice Bellard et al's Tiny C Compiler
  9390. ld_shlibs=yes
  9391. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9392. ;;
  9393. esac
  9394. ;;
  9395. netbsd*)
  9396. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9397. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9398. else
  9399. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9400. fi
  9401. hardcode_libdir_flag_spec='-R$libdir'
  9402. hardcode_direct=yes
  9403. hardcode_shlibpath_var=no
  9404. ;;
  9405. newsos6)
  9406. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9407. hardcode_direct=yes
  9408. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9409. hardcode_libdir_separator=:
  9410. hardcode_shlibpath_var=no
  9411. ;;
  9412. *nto* | *qnx*)
  9413. ;;
  9414. openbsd* | bitrig*)
  9415. if test -f /usr/libexec/ld.so; then
  9416. hardcode_direct=yes
  9417. hardcode_shlibpath_var=no
  9418. hardcode_direct_absolute=yes
  9419. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9420. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9421. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9422. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9423. export_dynamic_flag_spec='$wl-E'
  9424. else
  9425. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9426. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9427. fi
  9428. else
  9429. ld_shlibs=no
  9430. fi
  9431. ;;
  9432. os2*)
  9433. hardcode_libdir_flag_spec='-L$libdir'
  9434. hardcode_minus_L=yes
  9435. allow_undefined_flag=unsupported
  9436. shrext_cmds=.dll
  9437. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9438. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9439. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9440. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9441. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9442. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9443. emximp -o $lib $output_objdir/$libname.def'
  9444. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9445. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9446. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9447. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9448. prefix_cmds="$SED"~
  9449. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9450. prefix_cmds="$prefix_cmds -e 1d";
  9451. fi~
  9452. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9453. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9454. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9455. emximp -o $lib $output_objdir/$libname.def'
  9456. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9457. enable_shared_with_static_runtimes=yes
  9458. file_list_spec='@'
  9459. ;;
  9460. osf3*)
  9461. if test yes = "$GCC"; then
  9462. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9463. 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'
  9464. else
  9465. allow_undefined_flag=' -expect_unresolved \*'
  9466. 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'
  9467. fi
  9468. archive_cmds_need_lc='no'
  9469. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9470. hardcode_libdir_separator=:
  9471. ;;
  9472. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9473. if test yes = "$GCC"; then
  9474. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9475. 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'
  9476. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9477. else
  9478. allow_undefined_flag=' -expect_unresolved \*'
  9479. 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'
  9480. 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~
  9481. $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'
  9482. # Both c and cxx compiler support -rpath directly
  9483. hardcode_libdir_flag_spec='-rpath $libdir'
  9484. fi
  9485. archive_cmds_need_lc='no'
  9486. hardcode_libdir_separator=:
  9487. ;;
  9488. solaris*)
  9489. no_undefined_flag=' -z defs'
  9490. if test yes = "$GCC"; then
  9491. wlarc='$wl'
  9492. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$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 -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'
  9495. else
  9496. case `$CC -V 2>&1` in
  9497. *"Compilers 5.0"*)
  9498. wlarc=''
  9499. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9500. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9501. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9502. ;;
  9503. *)
  9504. wlarc='$wl'
  9505. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9506. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9507. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9508. ;;
  9509. esac
  9510. fi
  9511. hardcode_libdir_flag_spec='-R$libdir'
  9512. hardcode_shlibpath_var=no
  9513. case $host_os in
  9514. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9515. *)
  9516. # The compiler driver will combine and reorder linker options,
  9517. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9518. # but is careful enough not to reorder.
  9519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9520. if test yes = "$GCC"; then
  9521. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9522. else
  9523. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9524. fi
  9525. ;;
  9526. esac
  9527. link_all_deplibs=yes
  9528. ;;
  9529. sunos4*)
  9530. if test sequent = "$host_vendor"; then
  9531. # Use $CC to link under sequent, because it throws in some extra .o
  9532. # files that make .init and .fini sections work.
  9533. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9534. else
  9535. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9536. fi
  9537. hardcode_libdir_flag_spec='-L$libdir'
  9538. hardcode_direct=yes
  9539. hardcode_minus_L=yes
  9540. hardcode_shlibpath_var=no
  9541. ;;
  9542. sysv4)
  9543. case $host_vendor in
  9544. sni)
  9545. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9546. hardcode_direct=yes # is this really true???
  9547. ;;
  9548. siemens)
  9549. ## LD is ld it makes a PLAMLIB
  9550. ## CC just makes a GrossModule.
  9551. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9552. reload_cmds='$CC -r -o $output$reload_objs'
  9553. hardcode_direct=no
  9554. ;;
  9555. motorola)
  9556. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9557. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9558. ;;
  9559. esac
  9560. runpath_var='LD_RUN_PATH'
  9561. hardcode_shlibpath_var=no
  9562. ;;
  9563. sysv4.3*)
  9564. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9565. hardcode_shlibpath_var=no
  9566. export_dynamic_flag_spec='-Bexport'
  9567. ;;
  9568. sysv4*MP*)
  9569. if test -d /usr/nec; then
  9570. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9571. hardcode_shlibpath_var=no
  9572. runpath_var=LD_RUN_PATH
  9573. hardcode_runpath_var=yes
  9574. ld_shlibs=yes
  9575. fi
  9576. ;;
  9577. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9578. no_undefined_flag='$wl-z,text'
  9579. archive_cmds_need_lc=no
  9580. hardcode_shlibpath_var=no
  9581. runpath_var='LD_RUN_PATH'
  9582. if test yes = "$GCC"; then
  9583. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9584. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9585. else
  9586. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9587. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9588. fi
  9589. ;;
  9590. sysv5* | sco3.2v5* | sco5v6*)
  9591. # Note: We CANNOT use -z defs as we might desire, because we do not
  9592. # link with -lc, and that would cause any symbols used from libc to
  9593. # always be unresolved, which means just about no library would
  9594. # ever link correctly. If we're not using GNU ld we use -z text
  9595. # though, which does catch some bad symbols but isn't as heavy-handed
  9596. # as -z defs.
  9597. no_undefined_flag='$wl-z,text'
  9598. allow_undefined_flag='$wl-z,nodefs'
  9599. archive_cmds_need_lc=no
  9600. hardcode_shlibpath_var=no
  9601. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9602. hardcode_libdir_separator=':'
  9603. link_all_deplibs=yes
  9604. export_dynamic_flag_spec='$wl-Bexport'
  9605. runpath_var='LD_RUN_PATH'
  9606. if test yes = "$GCC"; then
  9607. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9608. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9609. else
  9610. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9611. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9612. fi
  9613. ;;
  9614. uts4*)
  9615. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9616. hardcode_libdir_flag_spec='-L$libdir'
  9617. hardcode_shlibpath_var=no
  9618. ;;
  9619. *)
  9620. ld_shlibs=no
  9621. ;;
  9622. esac
  9623. if test sni = "$host_vendor"; then
  9624. case $host in
  9625. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9626. export_dynamic_flag_spec='$wl-Blargedynsym'
  9627. ;;
  9628. esac
  9629. fi
  9630. fi
  9631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9632. printf "%s\n" "$ld_shlibs" >&6; }
  9633. test no = "$ld_shlibs" && can_build_shared=no
  9634. with_gnu_ld=$with_gnu_ld
  9635. #
  9636. # Do we need to explicitly link libc?
  9637. #
  9638. case "x$archive_cmds_need_lc" in
  9639. x|xyes)
  9640. # Assume -lc should be added
  9641. archive_cmds_need_lc=yes
  9642. if test yes,yes = "$GCC,$enable_shared"; then
  9643. case $archive_cmds in
  9644. *'~'*)
  9645. # FIXME: we may have to deal with multi-command sequences.
  9646. ;;
  9647. '$CC '*)
  9648. # Test whether the compiler implicitly links with -lc since on some
  9649. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9650. # to ld, don't add -lc before -lgcc.
  9651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9652. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9653. if test ${lt_cv_archive_cmds_need_lc+y}
  9654. then :
  9655. printf %s "(cached) " >&6
  9656. else $as_nop
  9657. $RM conftest*
  9658. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9660. (eval $ac_compile) 2>&5
  9661. ac_status=$?
  9662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9663. test $ac_status = 0; } 2>conftest.err; then
  9664. soname=conftest
  9665. lib=conftest
  9666. libobjs=conftest.$ac_objext
  9667. deplibs=
  9668. wl=$lt_prog_compiler_wl
  9669. pic_flag=$lt_prog_compiler_pic
  9670. compiler_flags=-v
  9671. linker_flags=-v
  9672. verstring=
  9673. output_objdir=.
  9674. libname=conftest
  9675. lt_save_allow_undefined_flag=$allow_undefined_flag
  9676. allow_undefined_flag=
  9677. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9678. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9679. ac_status=$?
  9680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9681. test $ac_status = 0; }
  9682. then
  9683. lt_cv_archive_cmds_need_lc=no
  9684. else
  9685. lt_cv_archive_cmds_need_lc=yes
  9686. fi
  9687. allow_undefined_flag=$lt_save_allow_undefined_flag
  9688. else
  9689. cat conftest.err 1>&5
  9690. fi
  9691. $RM conftest*
  9692. fi
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9694. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9695. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9696. ;;
  9697. esac
  9698. fi
  9699. ;;
  9700. esac
  9701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9702. printf %s "checking dynamic linker characteristics... " >&6; }
  9703. if test yes = "$GCC"; then
  9704. case $host_os in
  9705. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9706. *) lt_awk_arg='/^libraries:/' ;;
  9707. esac
  9708. case $host_os in
  9709. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9710. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9711. esac
  9712. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9713. case $lt_search_path_spec in
  9714. *\;*)
  9715. # if the path contains ";" then we assume it to be the separator
  9716. # otherwise default to the standard path separator (i.e. ":") - it is
  9717. # assumed that no part of a normal pathname contains ";" but that should
  9718. # okay in the real world where ";" in dirpaths is itself problematic.
  9719. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9720. ;;
  9721. *)
  9722. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9723. ;;
  9724. esac
  9725. # Ok, now we have the path, separated by spaces, we can step through it
  9726. # and add multilib dir if necessary...
  9727. lt_tmp_lt_search_path_spec=
  9728. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9729. # ...but if some path component already ends with the multilib dir we assume
  9730. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9731. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9732. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9733. lt_multi_os_dir=
  9734. ;;
  9735. esac
  9736. for lt_sys_path in $lt_search_path_spec; do
  9737. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9738. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9739. elif test -n "$lt_multi_os_dir"; then
  9740. test -d "$lt_sys_path" && \
  9741. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9742. fi
  9743. done
  9744. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9745. BEGIN {RS = " "; FS = "/|\n";} {
  9746. lt_foo = "";
  9747. lt_count = 0;
  9748. for (lt_i = NF; lt_i > 0; lt_i--) {
  9749. if ($lt_i != "" && $lt_i != ".") {
  9750. if ($lt_i == "..") {
  9751. lt_count++;
  9752. } else {
  9753. if (lt_count == 0) {
  9754. lt_foo = "/" $lt_i lt_foo;
  9755. } else {
  9756. lt_count--;
  9757. }
  9758. }
  9759. }
  9760. }
  9761. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9762. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9763. }'`
  9764. # AWK program above erroneously prepends '/' to C:/dos/paths
  9765. # for these hosts.
  9766. case $host_os in
  9767. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9768. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9769. esac
  9770. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9771. else
  9772. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9773. fi
  9774. library_names_spec=
  9775. libname_spec='lib$name'
  9776. soname_spec=
  9777. shrext_cmds=.so
  9778. postinstall_cmds=
  9779. postuninstall_cmds=
  9780. finish_cmds=
  9781. finish_eval=
  9782. shlibpath_var=
  9783. shlibpath_overrides_runpath=unknown
  9784. version_type=none
  9785. dynamic_linker="$host_os ld.so"
  9786. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9787. need_lib_prefix=unknown
  9788. hardcode_into_libs=no
  9789. # when you set need_version to no, make sure it does not cause -set_version
  9790. # flags to be left without arguments
  9791. need_version=unknown
  9792. case $host_os in
  9793. aix3*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9796. shlibpath_var=LIBPATH
  9797. # AIX 3 has no versioning support, so we append a major version to the name.
  9798. soname_spec='$libname$release$shared_ext$major'
  9799. ;;
  9800. aix[4-9]*)
  9801. version_type=linux # correct to gnu/linux during the next big refactor
  9802. need_lib_prefix=no
  9803. need_version=no
  9804. hardcode_into_libs=yes
  9805. if test ia64 = "$host_cpu"; then
  9806. # AIX 5 supports IA64
  9807. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9808. shlibpath_var=LD_LIBRARY_PATH
  9809. else
  9810. # With GCC up to 2.95.x, collect2 would create an import file
  9811. # for dependence libraries. The import file would start with
  9812. # the line '#! .'. This would cause the generated library to
  9813. # depend on '.', always an invalid library. This was fixed in
  9814. # development snapshots of GCC prior to 3.0.
  9815. case $host_os in
  9816. aix4 | aix4.[01] | aix4.[01].*)
  9817. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9818. echo ' yes '
  9819. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9820. :
  9821. else
  9822. can_build_shared=no
  9823. fi
  9824. ;;
  9825. esac
  9826. # Using Import Files as archive members, it is possible to support
  9827. # filename-based versioning of shared library archives on AIX. While
  9828. # this would work for both with and without runtime linking, it will
  9829. # prevent static linking of such archives. So we do filename-based
  9830. # shared library versioning with .so extension only, which is used
  9831. # when both runtime linking and shared linking is enabled.
  9832. # Unfortunately, runtime linking may impact performance, so we do
  9833. # not want this to be the default eventually. Also, we use the
  9834. # versioned .so libs for executables only if there is the -brtl
  9835. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9836. # To allow for filename-based versioning support, we need to create
  9837. # libNAME.so.V as an archive file, containing:
  9838. # *) an Import File, referring to the versioned filename of the
  9839. # archive as well as the shared archive member, telling the
  9840. # bitwidth (32 or 64) of that shared object, and providing the
  9841. # list of exported symbols of that shared object, eventually
  9842. # decorated with the 'weak' keyword
  9843. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9844. # it being seen by the linker.
  9845. # At run time we better use the real file rather than another symlink,
  9846. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9847. case $with_aix_soname,$aix_use_runtimelinking in
  9848. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9849. # soname into executable. Probably we can add versioning support to
  9850. # collect2, so additional links can be useful in future.
  9851. aix,yes) # traditional libtool
  9852. dynamic_linker='AIX unversionable lib.so'
  9853. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9854. # instead of lib<name>.a to let people know that these are not
  9855. # typical AIX shared libraries.
  9856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9857. ;;
  9858. aix,no) # traditional AIX only
  9859. dynamic_linker='AIX lib.a(lib.so.V)'
  9860. # We preserve .a as extension for shared libraries through AIX4.2
  9861. # and later when we are not doing run time linking.
  9862. library_names_spec='$libname$release.a $libname.a'
  9863. soname_spec='$libname$release$shared_ext$major'
  9864. ;;
  9865. svr4,*) # full svr4 only
  9866. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9867. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9868. # We do not specify a path in Import Files, so LIBPATH fires.
  9869. shlibpath_overrides_runpath=yes
  9870. ;;
  9871. *,yes) # both, prefer svr4
  9872. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9873. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9874. # unpreferred sharedlib libNAME.a needs extra handling
  9875. 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"'
  9876. 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"'
  9877. # We do not specify a path in Import Files, so LIBPATH fires.
  9878. shlibpath_overrides_runpath=yes
  9879. ;;
  9880. *,no) # both, prefer aix
  9881. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9882. library_names_spec='$libname$release.a $libname.a'
  9883. soname_spec='$libname$release$shared_ext$major'
  9884. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9885. 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)'
  9886. 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"'
  9887. ;;
  9888. esac
  9889. shlibpath_var=LIBPATH
  9890. fi
  9891. ;;
  9892. amigaos*)
  9893. case $host_cpu in
  9894. powerpc)
  9895. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9896. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9897. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9898. ;;
  9899. m68k)
  9900. library_names_spec='$libname.ixlibrary $libname.a'
  9901. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9902. 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'
  9903. ;;
  9904. esac
  9905. ;;
  9906. beos*)
  9907. library_names_spec='$libname$shared_ext'
  9908. dynamic_linker="$host_os ld.so"
  9909. shlibpath_var=LIBRARY_PATH
  9910. ;;
  9911. bsdi[45]*)
  9912. version_type=linux # correct to gnu/linux during the next big refactor
  9913. need_version=no
  9914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9915. soname_spec='$libname$release$shared_ext$major'
  9916. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9917. shlibpath_var=LD_LIBRARY_PATH
  9918. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9919. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9920. # the default ld.so.conf also contains /usr/contrib/lib and
  9921. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9922. # libtool to hard-code these into programs
  9923. ;;
  9924. cygwin* | mingw* | pw32* | cegcc*)
  9925. version_type=windows
  9926. shrext_cmds=.dll
  9927. need_version=no
  9928. need_lib_prefix=no
  9929. case $GCC,$cc_basename in
  9930. yes,*)
  9931. # gcc
  9932. library_names_spec='$libname.dll.a'
  9933. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9934. postinstall_cmds='base_file=`basename \$file`~
  9935. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9936. dldir=$destdir/`dirname \$dlpath`~
  9937. test -d \$dldir || mkdir -p \$dldir~
  9938. $install_prog $dir/$dlname \$dldir/$dlname~
  9939. chmod a+x \$dldir/$dlname~
  9940. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9941. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9942. fi'
  9943. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9944. dlpath=$dir/\$dldll~
  9945. $RM \$dlpath'
  9946. shlibpath_overrides_runpath=yes
  9947. case $host_os in
  9948. cygwin*)
  9949. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9950. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9951. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9952. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9953. ;;
  9954. mingw* | cegcc*)
  9955. # MinGW DLLs use traditional 'lib' prefix
  9956. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9957. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9958. ;;
  9959. pw32*)
  9960. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9961. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9962. ;;
  9963. esac
  9964. dynamic_linker='Win32 ld.exe'
  9965. ;;
  9966. *,cl*)
  9967. # Native MSVC
  9968. libname_spec='$name'
  9969. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9970. library_names_spec='$libname.dll.lib'
  9971. case $build_os in
  9972. mingw*)
  9973. sys_lib_search_path_spec=
  9974. lt_save_ifs=$IFS
  9975. IFS=';'
  9976. for lt_path in $LIB
  9977. do
  9978. IFS=$lt_save_ifs
  9979. # Let DOS variable expansion print the short 8.3 style file name.
  9980. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9981. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9982. done
  9983. IFS=$lt_save_ifs
  9984. # Convert to MSYS style.
  9985. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9986. ;;
  9987. cygwin*)
  9988. # Convert to unix form, then to dos form, then back to unix form
  9989. # but this time dos style (no spaces!) so that the unix form looks
  9990. # like /cygdrive/c/PROGRA~1:/cygdr...
  9991. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9992. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9993. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9994. ;;
  9995. *)
  9996. sys_lib_search_path_spec=$LIB
  9997. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9998. # It is most probably a Windows format PATH.
  9999. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10000. else
  10001. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10002. fi
  10003. # FIXME: find the short name or the path components, as spaces are
  10004. # common. (e.g. "Program Files" -> "PROGRA~1")
  10005. ;;
  10006. esac
  10007. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10008. postinstall_cmds='base_file=`basename \$file`~
  10009. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10010. dldir=$destdir/`dirname \$dlpath`~
  10011. test -d \$dldir || mkdir -p \$dldir~
  10012. $install_prog $dir/$dlname \$dldir/$dlname'
  10013. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10014. dlpath=$dir/\$dldll~
  10015. $RM \$dlpath'
  10016. shlibpath_overrides_runpath=yes
  10017. dynamic_linker='Win32 link.exe'
  10018. ;;
  10019. *)
  10020. # Assume MSVC wrapper
  10021. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10022. dynamic_linker='Win32 ld.exe'
  10023. ;;
  10024. esac
  10025. # FIXME: first we should search . and the directory the executable is in
  10026. shlibpath_var=PATH
  10027. ;;
  10028. darwin* | rhapsody*)
  10029. dynamic_linker="$host_os dyld"
  10030. version_type=darwin
  10031. need_lib_prefix=no
  10032. need_version=no
  10033. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10034. soname_spec='$libname$release$major$shared_ext'
  10035. shlibpath_overrides_runpath=yes
  10036. shlibpath_var=DYLD_LIBRARY_PATH
  10037. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10038. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10039. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10040. ;;
  10041. dgux*)
  10042. version_type=linux # correct to gnu/linux during the next big refactor
  10043. need_lib_prefix=no
  10044. need_version=no
  10045. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10046. soname_spec='$libname$release$shared_ext$major'
  10047. shlibpath_var=LD_LIBRARY_PATH
  10048. ;;
  10049. freebsd* | dragonfly* | midnightbsd*)
  10050. # DragonFly does not have aout. When/if they implement a new
  10051. # versioning mechanism, adjust this.
  10052. if test -x /usr/bin/objformat; then
  10053. objformat=`/usr/bin/objformat`
  10054. else
  10055. case $host_os in
  10056. freebsd[23].*) objformat=aout ;;
  10057. *) objformat=elf ;;
  10058. esac
  10059. fi
  10060. version_type=freebsd-$objformat
  10061. case $version_type in
  10062. freebsd-elf*)
  10063. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10064. soname_spec='$libname$release$shared_ext$major'
  10065. need_version=no
  10066. need_lib_prefix=no
  10067. ;;
  10068. freebsd-*)
  10069. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10070. need_version=yes
  10071. ;;
  10072. esac
  10073. shlibpath_var=LD_LIBRARY_PATH
  10074. case $host_os in
  10075. freebsd2.*)
  10076. shlibpath_overrides_runpath=yes
  10077. ;;
  10078. freebsd3.[01]* | freebsdelf3.[01]*)
  10079. shlibpath_overrides_runpath=yes
  10080. hardcode_into_libs=yes
  10081. ;;
  10082. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10083. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10084. shlibpath_overrides_runpath=no
  10085. hardcode_into_libs=yes
  10086. ;;
  10087. *) # from 4.6 on, and DragonFly
  10088. shlibpath_overrides_runpath=yes
  10089. hardcode_into_libs=yes
  10090. ;;
  10091. esac
  10092. ;;
  10093. haiku*)
  10094. version_type=linux # correct to gnu/linux during the next big refactor
  10095. need_lib_prefix=no
  10096. need_version=no
  10097. dynamic_linker="$host_os runtime_loader"
  10098. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10099. soname_spec='$libname$release$shared_ext$major'
  10100. shlibpath_var=LIBRARY_PATH
  10101. shlibpath_overrides_runpath=no
  10102. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10103. hardcode_into_libs=yes
  10104. ;;
  10105. hpux9* | hpux10* | hpux11*)
  10106. # Give a soname corresponding to the major version so that dld.sl refuses to
  10107. # link against other versions.
  10108. version_type=sunos
  10109. need_lib_prefix=no
  10110. need_version=no
  10111. case $host_cpu in
  10112. ia64*)
  10113. shrext_cmds='.so'
  10114. hardcode_into_libs=yes
  10115. dynamic_linker="$host_os dld.so"
  10116. shlibpath_var=LD_LIBRARY_PATH
  10117. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10119. soname_spec='$libname$release$shared_ext$major'
  10120. if test 32 = "$HPUX_IA64_MODE"; then
  10121. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10122. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10123. else
  10124. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10125. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10126. fi
  10127. ;;
  10128. hppa*64*)
  10129. shrext_cmds='.sl'
  10130. hardcode_into_libs=yes
  10131. dynamic_linker="$host_os dld.sl"
  10132. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10133. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10135. soname_spec='$libname$release$shared_ext$major'
  10136. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10137. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10138. ;;
  10139. *)
  10140. shrext_cmds='.sl'
  10141. dynamic_linker="$host_os dld.sl"
  10142. shlibpath_var=SHLIB_PATH
  10143. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  10147. esac
  10148. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10149. postinstall_cmds='chmod 555 $lib'
  10150. # or fails outright, so override atomically:
  10151. install_override_mode=555
  10152. ;;
  10153. interix[3-9]*)
  10154. version_type=linux # correct to gnu/linux during the next big refactor
  10155. need_lib_prefix=no
  10156. need_version=no
  10157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10158. soname_spec='$libname$release$shared_ext$major'
  10159. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. shlibpath_overrides_runpath=no
  10162. hardcode_into_libs=yes
  10163. ;;
  10164. irix5* | irix6* | nonstopux*)
  10165. case $host_os in
  10166. nonstopux*) version_type=nonstopux ;;
  10167. *)
  10168. if test yes = "$lt_cv_prog_gnu_ld"; then
  10169. version_type=linux # correct to gnu/linux during the next big refactor
  10170. else
  10171. version_type=irix
  10172. fi ;;
  10173. esac
  10174. need_lib_prefix=no
  10175. need_version=no
  10176. soname_spec='$libname$release$shared_ext$major'
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10178. case $host_os in
  10179. irix5* | nonstopux*)
  10180. libsuff= shlibsuff=
  10181. ;;
  10182. *)
  10183. case $LD in # libtool.m4 will add one of these switches to LD
  10184. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10185. libsuff= shlibsuff= libmagic=32-bit;;
  10186. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10187. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10188. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10189. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10190. *) libsuff= shlibsuff= libmagic=never-match;;
  10191. esac
  10192. ;;
  10193. esac
  10194. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10195. shlibpath_overrides_runpath=no
  10196. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10197. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10198. hardcode_into_libs=yes
  10199. ;;
  10200. # No shared lib support for Linux oldld, aout, or coff.
  10201. linux*oldld* | linux*aout* | linux*coff*)
  10202. dynamic_linker=no
  10203. ;;
  10204. linux*android*)
  10205. version_type=none # Android doesn't support versioned libraries.
  10206. need_lib_prefix=no
  10207. need_version=no
  10208. library_names_spec='$libname$release$shared_ext'
  10209. soname_spec='$libname$release$shared_ext'
  10210. finish_cmds=
  10211. shlibpath_var=LD_LIBRARY_PATH
  10212. shlibpath_overrides_runpath=yes
  10213. # This implies no fast_install, which is unacceptable.
  10214. # Some rework will be needed to allow for fast_install
  10215. # before this can be enabled.
  10216. hardcode_into_libs=yes
  10217. dynamic_linker='Android linker'
  10218. # Don't embed -rpath directories since the linker doesn't support them.
  10219. hardcode_libdir_flag_spec='-L$libdir'
  10220. ;;
  10221. # This must be glibc/ELF.
  10222. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10223. version_type=linux # correct to gnu/linux during the next big refactor
  10224. need_lib_prefix=no
  10225. need_version=no
  10226. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10227. soname_spec='$libname$release$shared_ext$major'
  10228. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10229. shlibpath_var=LD_LIBRARY_PATH
  10230. shlibpath_overrides_runpath=no
  10231. # Some binutils ld are patched to set DT_RUNPATH
  10232. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10233. then :
  10234. printf %s "(cached) " >&6
  10235. else $as_nop
  10236. lt_cv_shlibpath_overrides_runpath=no
  10237. save_LDFLAGS=$LDFLAGS
  10238. save_libdir=$libdir
  10239. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10240. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. /* end confdefs.h. */
  10243. int
  10244. main (void)
  10245. {
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. if ac_fn_c_try_link "$LINENO"
  10251. then :
  10252. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10253. then :
  10254. lt_cv_shlibpath_overrides_runpath=yes
  10255. fi
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10258. conftest$ac_exeext conftest.$ac_ext
  10259. LDFLAGS=$save_LDFLAGS
  10260. libdir=$save_libdir
  10261. fi
  10262. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10263. # This implies no fast_install, which is unacceptable.
  10264. # Some rework will be needed to allow for fast_install
  10265. # before this can be enabled.
  10266. hardcode_into_libs=yes
  10267. # Add ABI-specific directories to the system library path.
  10268. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10269. # Ideally, we could use ldconfig to report *all* directores which are
  10270. # searched for libraries, however this is still not possible. Aside from not
  10271. # being certain /sbin/ldconfig is available, command
  10272. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10273. # even though it is searched at run-time. Try to do the best guess by
  10274. # appending ld.so.conf contents (and includes) to the search path.
  10275. if test -f /etc/ld.so.conf; then
  10276. 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' ' '`
  10277. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10278. fi
  10279. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10280. # powerpc, because MkLinux only supported shared libraries with the
  10281. # GNU dynamic linker. Since this was broken with cross compilers,
  10282. # most powerpc-linux boxes support dynamic linking these days and
  10283. # people can always --disable-shared, the test was removed, and we
  10284. # assume the GNU/Linux dynamic linker is in use.
  10285. dynamic_linker='GNU/Linux ld.so'
  10286. ;;
  10287. netbsd*)
  10288. version_type=sunos
  10289. need_lib_prefix=no
  10290. need_version=no
  10291. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10292. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10293. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10294. dynamic_linker='NetBSD (a.out) ld.so'
  10295. else
  10296. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10297. soname_spec='$libname$release$shared_ext$major'
  10298. dynamic_linker='NetBSD ld.elf_so'
  10299. fi
  10300. shlibpath_var=LD_LIBRARY_PATH
  10301. shlibpath_overrides_runpath=yes
  10302. hardcode_into_libs=yes
  10303. ;;
  10304. newsos6)
  10305. version_type=linux # correct to gnu/linux during the next big refactor
  10306. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10307. shlibpath_var=LD_LIBRARY_PATH
  10308. shlibpath_overrides_runpath=yes
  10309. ;;
  10310. *nto* | *qnx*)
  10311. version_type=qnx
  10312. need_lib_prefix=no
  10313. need_version=no
  10314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10315. soname_spec='$libname$release$shared_ext$major'
  10316. shlibpath_var=LD_LIBRARY_PATH
  10317. shlibpath_overrides_runpath=no
  10318. hardcode_into_libs=yes
  10319. dynamic_linker='ldqnx.so'
  10320. ;;
  10321. openbsd* | bitrig*)
  10322. version_type=sunos
  10323. sys_lib_dlsearch_path_spec=/usr/lib
  10324. need_lib_prefix=no
  10325. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10326. need_version=no
  10327. else
  10328. need_version=yes
  10329. fi
  10330. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10331. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10332. shlibpath_var=LD_LIBRARY_PATH
  10333. shlibpath_overrides_runpath=yes
  10334. ;;
  10335. os2*)
  10336. libname_spec='$name'
  10337. shrext_cmds=.dll
  10338. need_lib_prefix=no
  10339. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10340. # SDL customization: removed versioning support.
  10341. # version_type=windows
  10342. # need_version=no
  10343. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10344. # v=$($ECHO $release$versuffix | tr -d .-);
  10345. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10346. # $ECHO $n$v`$shared_ext'
  10347. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10348. library_names_spec='${libname}_dll.$libext'
  10349. dynamic_linker='OS/2 ld.exe'
  10350. shlibpath_var=BEGINLIBPATH
  10351. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10352. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10353. postinstall_cmds='base_file=`basename \$file`~
  10354. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10355. dldir=$destdir/`dirname \$dlpath`~
  10356. test -d \$dldir || mkdir -p \$dldir~
  10357. $install_prog $dir/$dlname \$dldir/$dlname~
  10358. chmod a+x \$dldir/$dlname~
  10359. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10360. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10361. fi'
  10362. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10363. dlpath=$dir/\$dldll~
  10364. $RM \$dlpath'
  10365. ;;
  10366. osf3* | osf4* | osf5*)
  10367. version_type=osf
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. soname_spec='$libname$release$shared_ext$major'
  10371. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10372. shlibpath_var=LD_LIBRARY_PATH
  10373. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10374. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10375. ;;
  10376. rdos*)
  10377. dynamic_linker=no
  10378. ;;
  10379. solaris*)
  10380. version_type=linux # correct to gnu/linux during the next big refactor
  10381. need_lib_prefix=no
  10382. need_version=no
  10383. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10384. soname_spec='$libname$release$shared_ext$major'
  10385. shlibpath_var=LD_LIBRARY_PATH
  10386. shlibpath_overrides_runpath=yes
  10387. hardcode_into_libs=yes
  10388. # ldd complains unless libraries are executable
  10389. postinstall_cmds='chmod +x $lib'
  10390. ;;
  10391. sunos4*)
  10392. version_type=sunos
  10393. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10394. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10395. shlibpath_var=LD_LIBRARY_PATH
  10396. shlibpath_overrides_runpath=yes
  10397. if test yes = "$with_gnu_ld"; then
  10398. need_lib_prefix=no
  10399. fi
  10400. need_version=yes
  10401. ;;
  10402. sysv4 | sysv4.3*)
  10403. version_type=linux # correct to gnu/linux during the next big refactor
  10404. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10405. soname_spec='$libname$release$shared_ext$major'
  10406. shlibpath_var=LD_LIBRARY_PATH
  10407. case $host_vendor in
  10408. sni)
  10409. shlibpath_overrides_runpath=no
  10410. need_lib_prefix=no
  10411. runpath_var=LD_RUN_PATH
  10412. ;;
  10413. siemens)
  10414. need_lib_prefix=no
  10415. ;;
  10416. motorola)
  10417. need_lib_prefix=no
  10418. need_version=no
  10419. shlibpath_overrides_runpath=no
  10420. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10421. ;;
  10422. esac
  10423. ;;
  10424. sysv4*MP*)
  10425. if test -d /usr/nec; then
  10426. version_type=linux # correct to gnu/linux during the next big refactor
  10427. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10428. soname_spec='$libname$shared_ext.$major'
  10429. shlibpath_var=LD_LIBRARY_PATH
  10430. fi
  10431. ;;
  10432. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10433. version_type=sco
  10434. need_lib_prefix=no
  10435. need_version=no
  10436. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10437. soname_spec='$libname$release$shared_ext$major'
  10438. shlibpath_var=LD_LIBRARY_PATH
  10439. shlibpath_overrides_runpath=yes
  10440. hardcode_into_libs=yes
  10441. if test yes = "$with_gnu_ld"; then
  10442. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10443. else
  10444. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10445. case $host_os in
  10446. sco3.2v5*)
  10447. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10448. ;;
  10449. esac
  10450. fi
  10451. sys_lib_dlsearch_path_spec='/usr/lib'
  10452. ;;
  10453. tpf*)
  10454. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10455. version_type=linux # correct to gnu/linux during the next big refactor
  10456. need_lib_prefix=no
  10457. need_version=no
  10458. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10459. shlibpath_var=LD_LIBRARY_PATH
  10460. shlibpath_overrides_runpath=no
  10461. hardcode_into_libs=yes
  10462. ;;
  10463. uts4*)
  10464. version_type=linux # correct to gnu/linux during the next big refactor
  10465. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10466. soname_spec='$libname$release$shared_ext$major'
  10467. shlibpath_var=LD_LIBRARY_PATH
  10468. ;;
  10469. *)
  10470. dynamic_linker=no
  10471. ;;
  10472. esac
  10473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10474. printf "%s\n" "$dynamic_linker" >&6; }
  10475. test no = "$dynamic_linker" && can_build_shared=no
  10476. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10477. if test yes = "$GCC"; then
  10478. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10479. fi
  10480. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10481. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10482. fi
  10483. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10484. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10485. fi
  10486. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10487. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10488. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10489. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10490. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10491. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10493. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10494. hardcode_action=
  10495. if test -n "$hardcode_libdir_flag_spec" ||
  10496. test -n "$runpath_var" ||
  10497. test yes = "$hardcode_automatic"; then
  10498. # We can hardcode non-existent directories.
  10499. if test no != "$hardcode_direct" &&
  10500. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10501. # have to relink, otherwise we might link with an installed library
  10502. # when we should be linking with a yet-to-be-installed one
  10503. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10504. test no != "$hardcode_minus_L"; then
  10505. # Linking always hardcodes the temporary library directory.
  10506. hardcode_action=relink
  10507. else
  10508. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10509. hardcode_action=immediate
  10510. fi
  10511. else
  10512. # We cannot hardcode anything, or else we can only hardcode existing
  10513. # directories.
  10514. hardcode_action=unsupported
  10515. fi
  10516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10517. printf "%s\n" "$hardcode_action" >&6; }
  10518. if test relink = "$hardcode_action" ||
  10519. test yes = "$inherit_rpath"; then
  10520. # Fast installation is not supported
  10521. enable_fast_install=no
  10522. elif test yes = "$shlibpath_overrides_runpath" ||
  10523. test no = "$enable_shared"; then
  10524. # Fast installation is not necessary
  10525. enable_fast_install=needless
  10526. fi
  10527. if test yes != "$enable_dlopen"; then
  10528. enable_dlopen=unknown
  10529. enable_dlopen_self=unknown
  10530. enable_dlopen_self_static=unknown
  10531. else
  10532. lt_cv_dlopen=no
  10533. lt_cv_dlopen_libs=
  10534. case $host_os in
  10535. beos*)
  10536. lt_cv_dlopen=load_add_on
  10537. lt_cv_dlopen_libs=
  10538. lt_cv_dlopen_self=yes
  10539. ;;
  10540. mingw* | pw32* | cegcc*)
  10541. lt_cv_dlopen=LoadLibrary
  10542. lt_cv_dlopen_libs=
  10543. ;;
  10544. cygwin*)
  10545. lt_cv_dlopen=dlopen
  10546. lt_cv_dlopen_libs=
  10547. ;;
  10548. darwin*)
  10549. # if libdl is installed we need to link against it
  10550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10551. printf %s "checking for dlopen in -ldl... " >&6; }
  10552. if test ${ac_cv_lib_dl_dlopen+y}
  10553. then :
  10554. printf %s "(cached) " >&6
  10555. else $as_nop
  10556. ac_check_lib_save_LIBS=$LIBS
  10557. LIBS="-ldl $LIBS"
  10558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10559. /* end confdefs.h. */
  10560. /* Override any GCC internal prototype to avoid an error.
  10561. Use char because int might match the return type of a GCC
  10562. builtin and then its argument prototype would still apply. */
  10563. char dlopen ();
  10564. int
  10565. main (void)
  10566. {
  10567. return dlopen ();
  10568. ;
  10569. return 0;
  10570. }
  10571. _ACEOF
  10572. if ac_fn_c_try_link "$LINENO"
  10573. then :
  10574. ac_cv_lib_dl_dlopen=yes
  10575. else $as_nop
  10576. ac_cv_lib_dl_dlopen=no
  10577. fi
  10578. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10579. conftest$ac_exeext conftest.$ac_ext
  10580. LIBS=$ac_check_lib_save_LIBS
  10581. fi
  10582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10583. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10584. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10585. then :
  10586. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10587. else $as_nop
  10588. lt_cv_dlopen=dyld
  10589. lt_cv_dlopen_libs=
  10590. lt_cv_dlopen_self=yes
  10591. fi
  10592. ;;
  10593. tpf*)
  10594. # Don't try to run any link tests for TPF. We know it's impossible
  10595. # because TPF is a cross-compiler, and we know how we open DSOs.
  10596. lt_cv_dlopen=dlopen
  10597. lt_cv_dlopen_libs=
  10598. lt_cv_dlopen_self=no
  10599. ;;
  10600. *)
  10601. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10602. if test "x$ac_cv_func_shl_load" = xyes
  10603. then :
  10604. lt_cv_dlopen=shl_load
  10605. else $as_nop
  10606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10607. printf %s "checking for shl_load in -ldld... " >&6; }
  10608. if test ${ac_cv_lib_dld_shl_load+y}
  10609. then :
  10610. printf %s "(cached) " >&6
  10611. else $as_nop
  10612. ac_check_lib_save_LIBS=$LIBS
  10613. LIBS="-ldld $LIBS"
  10614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10615. /* end confdefs.h. */
  10616. /* Override any GCC internal prototype to avoid an error.
  10617. Use char because int might match the return type of a GCC
  10618. builtin and then its argument prototype would still apply. */
  10619. char shl_load ();
  10620. int
  10621. main (void)
  10622. {
  10623. return shl_load ();
  10624. ;
  10625. return 0;
  10626. }
  10627. _ACEOF
  10628. if ac_fn_c_try_link "$LINENO"
  10629. then :
  10630. ac_cv_lib_dld_shl_load=yes
  10631. else $as_nop
  10632. ac_cv_lib_dld_shl_load=no
  10633. fi
  10634. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10635. conftest$ac_exeext conftest.$ac_ext
  10636. LIBS=$ac_check_lib_save_LIBS
  10637. fi
  10638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10639. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10640. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10641. then :
  10642. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10643. else $as_nop
  10644. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10645. if test "x$ac_cv_func_dlopen" = xyes
  10646. then :
  10647. lt_cv_dlopen=dlopen
  10648. else $as_nop
  10649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10650. printf %s "checking for dlopen in -ldl... " >&6; }
  10651. if test ${ac_cv_lib_dl_dlopen+y}
  10652. then :
  10653. printf %s "(cached) " >&6
  10654. else $as_nop
  10655. ac_check_lib_save_LIBS=$LIBS
  10656. LIBS="-ldl $LIBS"
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. /* Override any GCC internal prototype to avoid an error.
  10660. Use char because int might match the return type of a GCC
  10661. builtin and then its argument prototype would still apply. */
  10662. char dlopen ();
  10663. int
  10664. main (void)
  10665. {
  10666. return dlopen ();
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. if ac_fn_c_try_link "$LINENO"
  10672. then :
  10673. ac_cv_lib_dl_dlopen=yes
  10674. else $as_nop
  10675. ac_cv_lib_dl_dlopen=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10678. conftest$ac_exeext conftest.$ac_ext
  10679. LIBS=$ac_check_lib_save_LIBS
  10680. fi
  10681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10682. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10683. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10684. then :
  10685. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10686. else $as_nop
  10687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10688. printf %s "checking for dlopen in -lsvld... " >&6; }
  10689. if test ${ac_cv_lib_svld_dlopen+y}
  10690. then :
  10691. printf %s "(cached) " >&6
  10692. else $as_nop
  10693. ac_check_lib_save_LIBS=$LIBS
  10694. LIBS="-lsvld $LIBS"
  10695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10696. /* end confdefs.h. */
  10697. /* Override any GCC internal prototype to avoid an error.
  10698. Use char because int might match the return type of a GCC
  10699. builtin and then its argument prototype would still apply. */
  10700. char dlopen ();
  10701. int
  10702. main (void)
  10703. {
  10704. return dlopen ();
  10705. ;
  10706. return 0;
  10707. }
  10708. _ACEOF
  10709. if ac_fn_c_try_link "$LINENO"
  10710. then :
  10711. ac_cv_lib_svld_dlopen=yes
  10712. else $as_nop
  10713. ac_cv_lib_svld_dlopen=no
  10714. fi
  10715. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10716. conftest$ac_exeext conftest.$ac_ext
  10717. LIBS=$ac_check_lib_save_LIBS
  10718. fi
  10719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10720. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10721. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10722. then :
  10723. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10724. else $as_nop
  10725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10726. printf %s "checking for dld_link in -ldld... " >&6; }
  10727. if test ${ac_cv_lib_dld_dld_link+y}
  10728. then :
  10729. printf %s "(cached) " >&6
  10730. else $as_nop
  10731. ac_check_lib_save_LIBS=$LIBS
  10732. LIBS="-ldld $LIBS"
  10733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10734. /* end confdefs.h. */
  10735. /* Override any GCC internal prototype to avoid an error.
  10736. Use char because int might match the return type of a GCC
  10737. builtin and then its argument prototype would still apply. */
  10738. char dld_link ();
  10739. int
  10740. main (void)
  10741. {
  10742. return dld_link ();
  10743. ;
  10744. return 0;
  10745. }
  10746. _ACEOF
  10747. if ac_fn_c_try_link "$LINENO"
  10748. then :
  10749. ac_cv_lib_dld_dld_link=yes
  10750. else $as_nop
  10751. ac_cv_lib_dld_dld_link=no
  10752. fi
  10753. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10754. conftest$ac_exeext conftest.$ac_ext
  10755. LIBS=$ac_check_lib_save_LIBS
  10756. fi
  10757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10758. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10759. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10760. then :
  10761. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10762. fi
  10763. fi
  10764. fi
  10765. fi
  10766. fi
  10767. fi
  10768. ;;
  10769. esac
  10770. if test no = "$lt_cv_dlopen"; then
  10771. enable_dlopen=no
  10772. else
  10773. enable_dlopen=yes
  10774. fi
  10775. case $lt_cv_dlopen in
  10776. dlopen)
  10777. save_CPPFLAGS=$CPPFLAGS
  10778. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10779. save_LDFLAGS=$LDFLAGS
  10780. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10781. save_LIBS=$LIBS
  10782. LIBS="$lt_cv_dlopen_libs $LIBS"
  10783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10784. printf %s "checking whether a program can dlopen itself... " >&6; }
  10785. if test ${lt_cv_dlopen_self+y}
  10786. then :
  10787. printf %s "(cached) " >&6
  10788. else $as_nop
  10789. if test yes = "$cross_compiling"; then :
  10790. lt_cv_dlopen_self=cross
  10791. else
  10792. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10793. lt_status=$lt_dlunknown
  10794. cat > conftest.$ac_ext <<_LT_EOF
  10795. #line $LINENO "configure"
  10796. #include "confdefs.h"
  10797. #if HAVE_DLFCN_H
  10798. #include <dlfcn.h>
  10799. #endif
  10800. #include <stdio.h>
  10801. #ifdef RTLD_GLOBAL
  10802. # define LT_DLGLOBAL RTLD_GLOBAL
  10803. #else
  10804. # ifdef DL_GLOBAL
  10805. # define LT_DLGLOBAL DL_GLOBAL
  10806. # else
  10807. # define LT_DLGLOBAL 0
  10808. # endif
  10809. #endif
  10810. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10811. find out it does not work in some platform. */
  10812. #ifndef LT_DLLAZY_OR_NOW
  10813. # ifdef RTLD_LAZY
  10814. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10815. # else
  10816. # ifdef DL_LAZY
  10817. # define LT_DLLAZY_OR_NOW DL_LAZY
  10818. # else
  10819. # ifdef RTLD_NOW
  10820. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10821. # else
  10822. # ifdef DL_NOW
  10823. # define LT_DLLAZY_OR_NOW DL_NOW
  10824. # else
  10825. # define LT_DLLAZY_OR_NOW 0
  10826. # endif
  10827. # endif
  10828. # endif
  10829. # endif
  10830. #endif
  10831. /* When -fvisibility=hidden is used, assume the code has been annotated
  10832. correspondingly for the symbols needed. */
  10833. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10834. int fnord () __attribute__((visibility("default")));
  10835. #endif
  10836. int fnord () { return 42; }
  10837. int main ()
  10838. {
  10839. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10840. int status = $lt_dlunknown;
  10841. if (self)
  10842. {
  10843. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10844. else
  10845. {
  10846. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10847. else puts (dlerror ());
  10848. }
  10849. /* dlclose (self); */
  10850. }
  10851. else
  10852. puts (dlerror ());
  10853. return status;
  10854. }
  10855. _LT_EOF
  10856. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10857. (eval $ac_link) 2>&5
  10858. ac_status=$?
  10859. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10860. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10861. (./conftest; exit; ) >&5 2>/dev/null
  10862. lt_status=$?
  10863. case x$lt_status in
  10864. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10865. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10866. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10867. esac
  10868. else :
  10869. # compilation failed
  10870. lt_cv_dlopen_self=no
  10871. fi
  10872. fi
  10873. rm -fr conftest*
  10874. fi
  10875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10876. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10877. if test yes = "$lt_cv_dlopen_self"; then
  10878. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10880. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10881. if test ${lt_cv_dlopen_self_static+y}
  10882. then :
  10883. printf %s "(cached) " >&6
  10884. else $as_nop
  10885. if test yes = "$cross_compiling"; then :
  10886. lt_cv_dlopen_self_static=cross
  10887. else
  10888. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10889. lt_status=$lt_dlunknown
  10890. cat > conftest.$ac_ext <<_LT_EOF
  10891. #line $LINENO "configure"
  10892. #include "confdefs.h"
  10893. #if HAVE_DLFCN_H
  10894. #include <dlfcn.h>
  10895. #endif
  10896. #include <stdio.h>
  10897. #ifdef RTLD_GLOBAL
  10898. # define LT_DLGLOBAL RTLD_GLOBAL
  10899. #else
  10900. # ifdef DL_GLOBAL
  10901. # define LT_DLGLOBAL DL_GLOBAL
  10902. # else
  10903. # define LT_DLGLOBAL 0
  10904. # endif
  10905. #endif
  10906. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10907. find out it does not work in some platform. */
  10908. #ifndef LT_DLLAZY_OR_NOW
  10909. # ifdef RTLD_LAZY
  10910. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10911. # else
  10912. # ifdef DL_LAZY
  10913. # define LT_DLLAZY_OR_NOW DL_LAZY
  10914. # else
  10915. # ifdef RTLD_NOW
  10916. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10917. # else
  10918. # ifdef DL_NOW
  10919. # define LT_DLLAZY_OR_NOW DL_NOW
  10920. # else
  10921. # define LT_DLLAZY_OR_NOW 0
  10922. # endif
  10923. # endif
  10924. # endif
  10925. # endif
  10926. #endif
  10927. /* When -fvisibility=hidden is used, assume the code has been annotated
  10928. correspondingly for the symbols needed. */
  10929. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10930. int fnord () __attribute__((visibility("default")));
  10931. #endif
  10932. int fnord () { return 42; }
  10933. int main ()
  10934. {
  10935. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10936. int status = $lt_dlunknown;
  10937. if (self)
  10938. {
  10939. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10940. else
  10941. {
  10942. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10943. else puts (dlerror ());
  10944. }
  10945. /* dlclose (self); */
  10946. }
  10947. else
  10948. puts (dlerror ());
  10949. return status;
  10950. }
  10951. _LT_EOF
  10952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10953. (eval $ac_link) 2>&5
  10954. ac_status=$?
  10955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10956. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10957. (./conftest; exit; ) >&5 2>/dev/null
  10958. lt_status=$?
  10959. case x$lt_status in
  10960. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10961. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10962. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10963. esac
  10964. else :
  10965. # compilation failed
  10966. lt_cv_dlopen_self_static=no
  10967. fi
  10968. fi
  10969. rm -fr conftest*
  10970. fi
  10971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10972. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10973. fi
  10974. CPPFLAGS=$save_CPPFLAGS
  10975. LDFLAGS=$save_LDFLAGS
  10976. LIBS=$save_LIBS
  10977. ;;
  10978. esac
  10979. case $lt_cv_dlopen_self in
  10980. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10981. *) enable_dlopen_self=unknown ;;
  10982. esac
  10983. case $lt_cv_dlopen_self_static in
  10984. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10985. *) enable_dlopen_self_static=unknown ;;
  10986. esac
  10987. fi
  10988. striplib=
  10989. old_striplib=
  10990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10991. printf %s "checking whether stripping libraries is possible... " >&6; }
  10992. if test -z "$STRIP"; then
  10993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10994. printf "%s\n" "no" >&6; }
  10995. else
  10996. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10997. old_striplib="$STRIP --strip-debug"
  10998. striplib="$STRIP --strip-unneeded"
  10999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11000. printf "%s\n" "yes" >&6; }
  11001. else
  11002. case $host_os in
  11003. darwin*)
  11004. # FIXME - insert some real tests, host_os isn't really good enough
  11005. striplib="$STRIP -x"
  11006. old_striplib="$STRIP -S"
  11007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11008. printf "%s\n" "yes" >&6; }
  11009. ;;
  11010. freebsd*)
  11011. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11012. old_striplib="$STRIP --strip-debug"
  11013. striplib="$STRIP --strip-unneeded"
  11014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11015. printf "%s\n" "yes" >&6; }
  11016. else
  11017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11018. printf "%s\n" "no" >&6; }
  11019. fi
  11020. ;;
  11021. *)
  11022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11023. printf "%s\n" "no" >&6; }
  11024. ;;
  11025. esac
  11026. fi
  11027. fi
  11028. # Report what library types will actually be built
  11029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11030. printf %s "checking if libtool supports shared libraries... " >&6; }
  11031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11032. printf "%s\n" "$can_build_shared" >&6; }
  11033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11034. printf %s "checking whether to build shared libraries... " >&6; }
  11035. test no = "$can_build_shared" && enable_shared=no
  11036. # On AIX, shared libraries and static libraries use the same namespace, and
  11037. # are all built from PIC.
  11038. case $host_os in
  11039. aix3*)
  11040. test yes = "$enable_shared" && enable_static=no
  11041. if test -n "$RANLIB"; then
  11042. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11043. postinstall_cmds='$RANLIB $lib'
  11044. fi
  11045. ;;
  11046. aix[4-9]*)
  11047. if test ia64 != "$host_cpu"; then
  11048. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11049. yes,aix,yes) ;; # shared object as lib.so file only
  11050. yes,svr4,*) ;; # shared object as lib.so archive member only
  11051. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11052. esac
  11053. fi
  11054. ;;
  11055. esac
  11056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11057. printf "%s\n" "$enable_shared" >&6; }
  11058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11059. printf %s "checking whether to build static libraries... " >&6; }
  11060. # Make sure either enable_shared or enable_static is yes.
  11061. test yes = "$enable_shared" || enable_static=yes
  11062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11063. printf "%s\n" "$enable_static" >&6; }
  11064. fi
  11065. ac_ext=c
  11066. ac_cpp='$CPP $CPPFLAGS'
  11067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11070. CC=$lt_save_CC
  11071. ac_config_commands="$ac_config_commands libtool"
  11072. # Only expand once:
  11073. if test -n "$ac_tool_prefix"; then
  11074. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11075. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11077. printf %s "checking for $ac_word... " >&6; }
  11078. if test ${ac_cv_prog_RC+y}
  11079. then :
  11080. printf %s "(cached) " >&6
  11081. else $as_nop
  11082. if test -n "$RC"; then
  11083. ac_cv_prog_RC="$RC" # Let the user override the test.
  11084. else
  11085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11086. for as_dir in $PATH
  11087. do
  11088. IFS=$as_save_IFS
  11089. case $as_dir in #(((
  11090. '') as_dir=./ ;;
  11091. */) ;;
  11092. *) as_dir=$as_dir/ ;;
  11093. esac
  11094. for ac_exec_ext in '' $ac_executable_extensions; do
  11095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11096. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11098. break 2
  11099. fi
  11100. done
  11101. done
  11102. IFS=$as_save_IFS
  11103. fi
  11104. fi
  11105. RC=$ac_cv_prog_RC
  11106. if test -n "$RC"; then
  11107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11108. printf "%s\n" "$RC" >&6; }
  11109. else
  11110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11111. printf "%s\n" "no" >&6; }
  11112. fi
  11113. fi
  11114. if test -z "$ac_cv_prog_RC"; then
  11115. ac_ct_RC=$RC
  11116. # Extract the first word of "windres", so it can be a program name with args.
  11117. set dummy windres; ac_word=$2
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11119. printf %s "checking for $ac_word... " >&6; }
  11120. if test ${ac_cv_prog_ac_ct_RC+y}
  11121. then :
  11122. printf %s "(cached) " >&6
  11123. else $as_nop
  11124. if test -n "$ac_ct_RC"; then
  11125. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11126. else
  11127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11128. for as_dir in $PATH
  11129. do
  11130. IFS=$as_save_IFS
  11131. case $as_dir in #(((
  11132. '') as_dir=./ ;;
  11133. */) ;;
  11134. *) as_dir=$as_dir/ ;;
  11135. esac
  11136. for ac_exec_ext in '' $ac_executable_extensions; do
  11137. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11138. ac_cv_prog_ac_ct_RC="windres"
  11139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11140. break 2
  11141. fi
  11142. done
  11143. done
  11144. IFS=$as_save_IFS
  11145. fi
  11146. fi
  11147. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11148. if test -n "$ac_ct_RC"; then
  11149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11150. printf "%s\n" "$ac_ct_RC" >&6; }
  11151. else
  11152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. printf "%s\n" "no" >&6; }
  11154. fi
  11155. if test "x$ac_ct_RC" = x; then
  11156. RC=""
  11157. else
  11158. case $cross_compiling:$ac_tool_warned in
  11159. yes:)
  11160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11161. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11162. ac_tool_warned=yes ;;
  11163. esac
  11164. RC=$ac_ct_RC
  11165. fi
  11166. else
  11167. RC="$ac_cv_prog_RC"
  11168. fi
  11169. # Source file extension for RC test sources.
  11170. ac_ext=rc
  11171. # Object file extension for compiled RC test sources.
  11172. objext=o
  11173. objext_RC=$objext
  11174. # Code to be used in simple compile tests
  11175. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11176. # Code to be used in simple link tests
  11177. lt_simple_link_test_code=$lt_simple_compile_test_code
  11178. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11179. # If no C compiler was specified, use CC.
  11180. LTCC=${LTCC-"$CC"}
  11181. # If no C compiler flags were specified, use CFLAGS.
  11182. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11183. # Allow CC to be a program name with arguments.
  11184. compiler=$CC
  11185. # save warnings/boilerplate of simple test code
  11186. ac_outfile=conftest.$ac_objext
  11187. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11188. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11189. _lt_compiler_boilerplate=`cat conftest.err`
  11190. $RM conftest*
  11191. ac_outfile=conftest.$ac_objext
  11192. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11193. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11194. _lt_linker_boilerplate=`cat conftest.err`
  11195. $RM -r conftest*
  11196. # Allow CC to be a program name with arguments.
  11197. lt_save_CC=$CC
  11198. lt_save_CFLAGS=$CFLAGS
  11199. lt_save_GCC=$GCC
  11200. GCC=
  11201. CC=${RC-"windres"}
  11202. CFLAGS=
  11203. compiler=$CC
  11204. compiler_RC=$CC
  11205. func_cc_basename $compiler
  11206. cc_basename=$func_cc_basename_result
  11207. lt_cv_prog_compiler_c_o_RC=yes
  11208. if test -n "$compiler"; then
  11209. :
  11210. fi
  11211. GCC=$lt_save_GCC
  11212. ac_ext=c
  11213. ac_cpp='$CPP $CPPFLAGS'
  11214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11217. CC=$lt_save_CC
  11218. CFLAGS=$lt_save_CFLAGS
  11219. # For historical reasons, the library name redundantly includes the major
  11220. # version twice: libSDL3-3.0.so.0.
  11221. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11222. LT_RELEASE=3.0
  11223. # Increment this if there is an incompatible change - but if that happens,
  11224. # we should rename the library from SDL2 to SDL3, at which point this would
  11225. # reset to 0 anyway.
  11226. LT_MAJOR=0
  11227. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11228. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11229. LT_REVISION=$SDL_INTERFACE_AGE
  11230. for ac_prog in gawk mawk nawk awk
  11231. do
  11232. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11233. set dummy $ac_prog; ac_word=$2
  11234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11235. printf %s "checking for $ac_word... " >&6; }
  11236. if test ${ac_cv_prog_AWK+y}
  11237. then :
  11238. printf %s "(cached) " >&6
  11239. else $as_nop
  11240. if test -n "$AWK"; then
  11241. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11242. else
  11243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11244. for as_dir in $PATH
  11245. do
  11246. IFS=$as_save_IFS
  11247. case $as_dir in #(((
  11248. '') as_dir=./ ;;
  11249. */) ;;
  11250. *) as_dir=$as_dir/ ;;
  11251. esac
  11252. for ac_exec_ext in '' $ac_executable_extensions; do
  11253. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11254. ac_cv_prog_AWK="$ac_prog"
  11255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11256. break 2
  11257. fi
  11258. done
  11259. done
  11260. IFS=$as_save_IFS
  11261. fi
  11262. fi
  11263. AWK=$ac_cv_prog_AWK
  11264. if test -n "$AWK"; then
  11265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11266. printf "%s\n" "$AWK" >&6; }
  11267. else
  11268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11269. printf "%s\n" "no" >&6; }
  11270. fi
  11271. test -n "$AWK" && break
  11272. done
  11273. ac_ext=c
  11274. ac_cpp='$CPP $CPPFLAGS'
  11275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11278. if test -n "$ac_tool_prefix"; then
  11279. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11280. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11282. printf %s "checking for $ac_word... " >&6; }
  11283. if test ${ac_cv_prog_CC+y}
  11284. then :
  11285. printf %s "(cached) " >&6
  11286. else $as_nop
  11287. if test -n "$CC"; then
  11288. ac_cv_prog_CC="$CC" # Let the user override the test.
  11289. else
  11290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11291. for as_dir in $PATH
  11292. do
  11293. IFS=$as_save_IFS
  11294. case $as_dir in #(((
  11295. '') as_dir=./ ;;
  11296. */) ;;
  11297. *) as_dir=$as_dir/ ;;
  11298. esac
  11299. for ac_exec_ext in '' $ac_executable_extensions; do
  11300. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11301. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11302. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11303. break 2
  11304. fi
  11305. done
  11306. done
  11307. IFS=$as_save_IFS
  11308. fi
  11309. fi
  11310. CC=$ac_cv_prog_CC
  11311. if test -n "$CC"; then
  11312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11313. printf "%s\n" "$CC" >&6; }
  11314. else
  11315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11316. printf "%s\n" "no" >&6; }
  11317. fi
  11318. fi
  11319. if test -z "$ac_cv_prog_CC"; then
  11320. ac_ct_CC=$CC
  11321. # Extract the first word of "gcc", so it can be a program name with args.
  11322. set dummy gcc; ac_word=$2
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11324. printf %s "checking for $ac_word... " >&6; }
  11325. if test ${ac_cv_prog_ac_ct_CC+y}
  11326. then :
  11327. printf %s "(cached) " >&6
  11328. else $as_nop
  11329. if test -n "$ac_ct_CC"; then
  11330. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11331. else
  11332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11333. for as_dir in $PATH
  11334. do
  11335. IFS=$as_save_IFS
  11336. case $as_dir in #(((
  11337. '') as_dir=./ ;;
  11338. */) ;;
  11339. *) as_dir=$as_dir/ ;;
  11340. esac
  11341. for ac_exec_ext in '' $ac_executable_extensions; do
  11342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11343. ac_cv_prog_ac_ct_CC="gcc"
  11344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11345. break 2
  11346. fi
  11347. done
  11348. done
  11349. IFS=$as_save_IFS
  11350. fi
  11351. fi
  11352. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11353. if test -n "$ac_ct_CC"; then
  11354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11355. printf "%s\n" "$ac_ct_CC" >&6; }
  11356. else
  11357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11358. printf "%s\n" "no" >&6; }
  11359. fi
  11360. if test "x$ac_ct_CC" = x; then
  11361. CC=""
  11362. else
  11363. case $cross_compiling:$ac_tool_warned in
  11364. yes:)
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11366. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11367. ac_tool_warned=yes ;;
  11368. esac
  11369. CC=$ac_ct_CC
  11370. fi
  11371. else
  11372. CC="$ac_cv_prog_CC"
  11373. fi
  11374. if test -z "$CC"; then
  11375. if test -n "$ac_tool_prefix"; then
  11376. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11377. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11379. printf %s "checking for $ac_word... " >&6; }
  11380. if test ${ac_cv_prog_CC+y}
  11381. then :
  11382. printf %s "(cached) " >&6
  11383. else $as_nop
  11384. if test -n "$CC"; then
  11385. ac_cv_prog_CC="$CC" # Let the user override the test.
  11386. else
  11387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11388. for as_dir in $PATH
  11389. do
  11390. IFS=$as_save_IFS
  11391. case $as_dir in #(((
  11392. '') as_dir=./ ;;
  11393. */) ;;
  11394. *) as_dir=$as_dir/ ;;
  11395. esac
  11396. for ac_exec_ext in '' $ac_executable_extensions; do
  11397. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11398. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11399. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11400. break 2
  11401. fi
  11402. done
  11403. done
  11404. IFS=$as_save_IFS
  11405. fi
  11406. fi
  11407. CC=$ac_cv_prog_CC
  11408. if test -n "$CC"; then
  11409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11410. printf "%s\n" "$CC" >&6; }
  11411. else
  11412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11413. printf "%s\n" "no" >&6; }
  11414. fi
  11415. fi
  11416. fi
  11417. if test -z "$CC"; then
  11418. # Extract the first word of "cc", so it can be a program name with args.
  11419. set dummy cc; ac_word=$2
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11421. printf %s "checking for $ac_word... " >&6; }
  11422. if test ${ac_cv_prog_CC+y}
  11423. then :
  11424. printf %s "(cached) " >&6
  11425. else $as_nop
  11426. if test -n "$CC"; then
  11427. ac_cv_prog_CC="$CC" # Let the user override the test.
  11428. else
  11429. ac_prog_rejected=no
  11430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11431. for as_dir in $PATH
  11432. do
  11433. IFS=$as_save_IFS
  11434. case $as_dir in #(((
  11435. '') as_dir=./ ;;
  11436. */) ;;
  11437. *) as_dir=$as_dir/ ;;
  11438. esac
  11439. for ac_exec_ext in '' $ac_executable_extensions; do
  11440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11441. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11442. ac_prog_rejected=yes
  11443. continue
  11444. fi
  11445. ac_cv_prog_CC="cc"
  11446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11447. break 2
  11448. fi
  11449. done
  11450. done
  11451. IFS=$as_save_IFS
  11452. if test $ac_prog_rejected = yes; then
  11453. # We found a bogon in the path, so make sure we never use it.
  11454. set dummy $ac_cv_prog_CC
  11455. shift
  11456. if test $# != 0; then
  11457. # We chose a different compiler from the bogus one.
  11458. # However, it has the same basename, so the bogon will be chosen
  11459. # first if we set CC to just the basename; use the full file name.
  11460. shift
  11461. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11462. fi
  11463. fi
  11464. fi
  11465. fi
  11466. CC=$ac_cv_prog_CC
  11467. if test -n "$CC"; then
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11469. printf "%s\n" "$CC" >&6; }
  11470. else
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11472. printf "%s\n" "no" >&6; }
  11473. fi
  11474. fi
  11475. if test -z "$CC"; then
  11476. if test -n "$ac_tool_prefix"; then
  11477. for ac_prog in cl.exe
  11478. do
  11479. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11480. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11482. printf %s "checking for $ac_word... " >&6; }
  11483. if test ${ac_cv_prog_CC+y}
  11484. then :
  11485. printf %s "(cached) " >&6
  11486. else $as_nop
  11487. if test -n "$CC"; then
  11488. ac_cv_prog_CC="$CC" # Let the user override the test.
  11489. else
  11490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11491. for as_dir in $PATH
  11492. do
  11493. IFS=$as_save_IFS
  11494. case $as_dir in #(((
  11495. '') as_dir=./ ;;
  11496. */) ;;
  11497. *) as_dir=$as_dir/ ;;
  11498. esac
  11499. for ac_exec_ext in '' $ac_executable_extensions; do
  11500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11501. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11503. break 2
  11504. fi
  11505. done
  11506. done
  11507. IFS=$as_save_IFS
  11508. fi
  11509. fi
  11510. CC=$ac_cv_prog_CC
  11511. if test -n "$CC"; then
  11512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11513. printf "%s\n" "$CC" >&6; }
  11514. else
  11515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11516. printf "%s\n" "no" >&6; }
  11517. fi
  11518. test -n "$CC" && break
  11519. done
  11520. fi
  11521. if test -z "$CC"; then
  11522. ac_ct_CC=$CC
  11523. for ac_prog in cl.exe
  11524. do
  11525. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11526. set dummy $ac_prog; ac_word=$2
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. printf %s "checking for $ac_word... " >&6; }
  11529. if test ${ac_cv_prog_ac_ct_CC+y}
  11530. then :
  11531. printf %s "(cached) " >&6
  11532. else $as_nop
  11533. if test -n "$ac_ct_CC"; then
  11534. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11535. else
  11536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11537. for as_dir in $PATH
  11538. do
  11539. IFS=$as_save_IFS
  11540. case $as_dir in #(((
  11541. '') as_dir=./ ;;
  11542. */) ;;
  11543. *) as_dir=$as_dir/ ;;
  11544. esac
  11545. for ac_exec_ext in '' $ac_executable_extensions; do
  11546. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11547. ac_cv_prog_ac_ct_CC="$ac_prog"
  11548. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11549. break 2
  11550. fi
  11551. done
  11552. done
  11553. IFS=$as_save_IFS
  11554. fi
  11555. fi
  11556. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11557. if test -n "$ac_ct_CC"; then
  11558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11559. printf "%s\n" "$ac_ct_CC" >&6; }
  11560. else
  11561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11562. printf "%s\n" "no" >&6; }
  11563. fi
  11564. test -n "$ac_ct_CC" && break
  11565. done
  11566. if test "x$ac_ct_CC" = x; then
  11567. CC=""
  11568. else
  11569. case $cross_compiling:$ac_tool_warned in
  11570. yes:)
  11571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11572. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11573. ac_tool_warned=yes ;;
  11574. esac
  11575. CC=$ac_ct_CC
  11576. fi
  11577. fi
  11578. fi
  11579. if test -z "$CC"; then
  11580. if test -n "$ac_tool_prefix"; then
  11581. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11582. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11584. printf %s "checking for $ac_word... " >&6; }
  11585. if test ${ac_cv_prog_CC+y}
  11586. then :
  11587. printf %s "(cached) " >&6
  11588. else $as_nop
  11589. if test -n "$CC"; then
  11590. ac_cv_prog_CC="$CC" # Let the user override the test.
  11591. else
  11592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11593. for as_dir in $PATH
  11594. do
  11595. IFS=$as_save_IFS
  11596. case $as_dir in #(((
  11597. '') as_dir=./ ;;
  11598. */) ;;
  11599. *) as_dir=$as_dir/ ;;
  11600. esac
  11601. for ac_exec_ext in '' $ac_executable_extensions; do
  11602. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11603. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11604. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11605. break 2
  11606. fi
  11607. done
  11608. done
  11609. IFS=$as_save_IFS
  11610. fi
  11611. fi
  11612. CC=$ac_cv_prog_CC
  11613. if test -n "$CC"; then
  11614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11615. printf "%s\n" "$CC" >&6; }
  11616. else
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11618. printf "%s\n" "no" >&6; }
  11619. fi
  11620. fi
  11621. if test -z "$ac_cv_prog_CC"; then
  11622. ac_ct_CC=$CC
  11623. # Extract the first word of "clang", so it can be a program name with args.
  11624. set dummy clang; ac_word=$2
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11626. printf %s "checking for $ac_word... " >&6; }
  11627. if test ${ac_cv_prog_ac_ct_CC+y}
  11628. then :
  11629. printf %s "(cached) " >&6
  11630. else $as_nop
  11631. if test -n "$ac_ct_CC"; then
  11632. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11633. else
  11634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11635. for as_dir in $PATH
  11636. do
  11637. IFS=$as_save_IFS
  11638. case $as_dir in #(((
  11639. '') as_dir=./ ;;
  11640. */) ;;
  11641. *) as_dir=$as_dir/ ;;
  11642. esac
  11643. for ac_exec_ext in '' $ac_executable_extensions; do
  11644. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11645. ac_cv_prog_ac_ct_CC="clang"
  11646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11647. break 2
  11648. fi
  11649. done
  11650. done
  11651. IFS=$as_save_IFS
  11652. fi
  11653. fi
  11654. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11655. if test -n "$ac_ct_CC"; then
  11656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11657. printf "%s\n" "$ac_ct_CC" >&6; }
  11658. else
  11659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11660. printf "%s\n" "no" >&6; }
  11661. fi
  11662. if test "x$ac_ct_CC" = x; then
  11663. CC=""
  11664. else
  11665. case $cross_compiling:$ac_tool_warned in
  11666. yes:)
  11667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11668. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11669. ac_tool_warned=yes ;;
  11670. esac
  11671. CC=$ac_ct_CC
  11672. fi
  11673. else
  11674. CC="$ac_cv_prog_CC"
  11675. fi
  11676. fi
  11677. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11678. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11679. as_fn_error $? "no acceptable C compiler found in \$PATH
  11680. See \`config.log' for more details" "$LINENO" 5; }
  11681. # Provide some information about the compiler.
  11682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11683. set X $ac_compile
  11684. ac_compiler=$2
  11685. for ac_option in --version -v -V -qversion -version; do
  11686. { { ac_try="$ac_compiler $ac_option >&5"
  11687. case "(($ac_try" in
  11688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11689. *) ac_try_echo=$ac_try;;
  11690. esac
  11691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11692. printf "%s\n" "$ac_try_echo"; } >&5
  11693. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11694. ac_status=$?
  11695. if test -s conftest.err; then
  11696. sed '10a\
  11697. ... rest of stderr output deleted ...
  11698. 10q' conftest.err >conftest.er1
  11699. cat conftest.er1 >&5
  11700. fi
  11701. rm -f conftest.er1 conftest.err
  11702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11703. test $ac_status = 0; }
  11704. done
  11705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11706. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11707. if test ${ac_cv_c_compiler_gnu+y}
  11708. then :
  11709. printf %s "(cached) " >&6
  11710. else $as_nop
  11711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11712. /* end confdefs.h. */
  11713. int
  11714. main (void)
  11715. {
  11716. #ifndef __GNUC__
  11717. choke me
  11718. #endif
  11719. ;
  11720. return 0;
  11721. }
  11722. _ACEOF
  11723. if ac_fn_c_try_compile "$LINENO"
  11724. then :
  11725. ac_compiler_gnu=yes
  11726. else $as_nop
  11727. ac_compiler_gnu=no
  11728. fi
  11729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11730. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11731. fi
  11732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11733. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11734. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11735. if test $ac_compiler_gnu = yes; then
  11736. GCC=yes
  11737. else
  11738. GCC=
  11739. fi
  11740. ac_test_CFLAGS=${CFLAGS+y}
  11741. ac_save_CFLAGS=$CFLAGS
  11742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11743. printf %s "checking whether $CC accepts -g... " >&6; }
  11744. if test ${ac_cv_prog_cc_g+y}
  11745. then :
  11746. printf %s "(cached) " >&6
  11747. else $as_nop
  11748. ac_save_c_werror_flag=$ac_c_werror_flag
  11749. ac_c_werror_flag=yes
  11750. ac_cv_prog_cc_g=no
  11751. CFLAGS="-g"
  11752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11753. /* end confdefs.h. */
  11754. int
  11755. main (void)
  11756. {
  11757. ;
  11758. return 0;
  11759. }
  11760. _ACEOF
  11761. if ac_fn_c_try_compile "$LINENO"
  11762. then :
  11763. ac_cv_prog_cc_g=yes
  11764. else $as_nop
  11765. CFLAGS=""
  11766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11767. /* end confdefs.h. */
  11768. int
  11769. main (void)
  11770. {
  11771. ;
  11772. return 0;
  11773. }
  11774. _ACEOF
  11775. if ac_fn_c_try_compile "$LINENO"
  11776. then :
  11777. else $as_nop
  11778. ac_c_werror_flag=$ac_save_c_werror_flag
  11779. CFLAGS="-g"
  11780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11781. /* end confdefs.h. */
  11782. int
  11783. main (void)
  11784. {
  11785. ;
  11786. return 0;
  11787. }
  11788. _ACEOF
  11789. if ac_fn_c_try_compile "$LINENO"
  11790. then :
  11791. ac_cv_prog_cc_g=yes
  11792. fi
  11793. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11794. fi
  11795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11798. ac_c_werror_flag=$ac_save_c_werror_flag
  11799. fi
  11800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11801. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11802. if test $ac_test_CFLAGS; then
  11803. CFLAGS=$ac_save_CFLAGS
  11804. elif test $ac_cv_prog_cc_g = yes; then
  11805. if test "$GCC" = yes; then
  11806. CFLAGS="-g -O2"
  11807. else
  11808. CFLAGS="-g"
  11809. fi
  11810. else
  11811. if test "$GCC" = yes; then
  11812. CFLAGS="-O2"
  11813. else
  11814. CFLAGS=
  11815. fi
  11816. fi
  11817. ac_prog_cc_stdc=no
  11818. if test x$ac_prog_cc_stdc = xno
  11819. then :
  11820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11821. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11822. if test ${ac_cv_prog_cc_c11+y}
  11823. then :
  11824. printf %s "(cached) " >&6
  11825. else $as_nop
  11826. ac_cv_prog_cc_c11=no
  11827. ac_save_CC=$CC
  11828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11829. /* end confdefs.h. */
  11830. $ac_c_conftest_c11_program
  11831. _ACEOF
  11832. for ac_arg in '' -std=gnu11
  11833. do
  11834. CC="$ac_save_CC $ac_arg"
  11835. if ac_fn_c_try_compile "$LINENO"
  11836. then :
  11837. ac_cv_prog_cc_c11=$ac_arg
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11840. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11841. done
  11842. rm -f conftest.$ac_ext
  11843. CC=$ac_save_CC
  11844. fi
  11845. if test "x$ac_cv_prog_cc_c11" = xno
  11846. then :
  11847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11848. printf "%s\n" "unsupported" >&6; }
  11849. else $as_nop
  11850. if test "x$ac_cv_prog_cc_c11" = x
  11851. then :
  11852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11853. printf "%s\n" "none needed" >&6; }
  11854. else $as_nop
  11855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11856. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11857. CC="$CC $ac_cv_prog_cc_c11"
  11858. fi
  11859. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11860. ac_prog_cc_stdc=c11
  11861. fi
  11862. fi
  11863. if test x$ac_prog_cc_stdc = xno
  11864. then :
  11865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11866. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11867. if test ${ac_cv_prog_cc_c99+y}
  11868. then :
  11869. printf %s "(cached) " >&6
  11870. else $as_nop
  11871. ac_cv_prog_cc_c99=no
  11872. ac_save_CC=$CC
  11873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11874. /* end confdefs.h. */
  11875. $ac_c_conftest_c99_program
  11876. _ACEOF
  11877. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11878. do
  11879. CC="$ac_save_CC $ac_arg"
  11880. if ac_fn_c_try_compile "$LINENO"
  11881. then :
  11882. ac_cv_prog_cc_c99=$ac_arg
  11883. fi
  11884. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11885. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11886. done
  11887. rm -f conftest.$ac_ext
  11888. CC=$ac_save_CC
  11889. fi
  11890. if test "x$ac_cv_prog_cc_c99" = xno
  11891. then :
  11892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11893. printf "%s\n" "unsupported" >&6; }
  11894. else $as_nop
  11895. if test "x$ac_cv_prog_cc_c99" = x
  11896. then :
  11897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11898. printf "%s\n" "none needed" >&6; }
  11899. else $as_nop
  11900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11901. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11902. CC="$CC $ac_cv_prog_cc_c99"
  11903. fi
  11904. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11905. ac_prog_cc_stdc=c99
  11906. fi
  11907. fi
  11908. if test x$ac_prog_cc_stdc = xno
  11909. then :
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11911. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11912. if test ${ac_cv_prog_cc_c89+y}
  11913. then :
  11914. printf %s "(cached) " >&6
  11915. else $as_nop
  11916. ac_cv_prog_cc_c89=no
  11917. ac_save_CC=$CC
  11918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11919. /* end confdefs.h. */
  11920. $ac_c_conftest_c89_program
  11921. _ACEOF
  11922. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11923. do
  11924. CC="$ac_save_CC $ac_arg"
  11925. if ac_fn_c_try_compile "$LINENO"
  11926. then :
  11927. ac_cv_prog_cc_c89=$ac_arg
  11928. fi
  11929. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11930. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11931. done
  11932. rm -f conftest.$ac_ext
  11933. CC=$ac_save_CC
  11934. fi
  11935. if test "x$ac_cv_prog_cc_c89" = xno
  11936. then :
  11937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11938. printf "%s\n" "unsupported" >&6; }
  11939. else $as_nop
  11940. if test "x$ac_cv_prog_cc_c89" = x
  11941. then :
  11942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11943. printf "%s\n" "none needed" >&6; }
  11944. else $as_nop
  11945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11946. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11947. CC="$CC $ac_cv_prog_cc_c89"
  11948. fi
  11949. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11950. ac_prog_cc_stdc=c89
  11951. fi
  11952. fi
  11953. ac_ext=c
  11954. ac_cpp='$CPP $CPPFLAGS'
  11955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11958. ac_ext=cpp
  11959. ac_cpp='$CXXCPP $CPPFLAGS'
  11960. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11961. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11962. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11963. if test -z "$CXX"; then
  11964. if test -n "$CCC"; then
  11965. CXX=$CCC
  11966. else
  11967. if test -n "$ac_tool_prefix"; then
  11968. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11969. do
  11970. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11971. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11973. printf %s "checking for $ac_word... " >&6; }
  11974. if test ${ac_cv_prog_CXX+y}
  11975. then :
  11976. printf %s "(cached) " >&6
  11977. else $as_nop
  11978. if test -n "$CXX"; then
  11979. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11980. else
  11981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11982. for as_dir in $PATH
  11983. do
  11984. IFS=$as_save_IFS
  11985. case $as_dir in #(((
  11986. '') as_dir=./ ;;
  11987. */) ;;
  11988. *) as_dir=$as_dir/ ;;
  11989. esac
  11990. for ac_exec_ext in '' $ac_executable_extensions; do
  11991. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11992. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11994. break 2
  11995. fi
  11996. done
  11997. done
  11998. IFS=$as_save_IFS
  11999. fi
  12000. fi
  12001. CXX=$ac_cv_prog_CXX
  12002. if test -n "$CXX"; then
  12003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12004. printf "%s\n" "$CXX" >&6; }
  12005. else
  12006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12007. printf "%s\n" "no" >&6; }
  12008. fi
  12009. test -n "$CXX" && break
  12010. done
  12011. fi
  12012. if test -z "$CXX"; then
  12013. ac_ct_CXX=$CXX
  12014. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12015. do
  12016. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12017. set dummy $ac_prog; ac_word=$2
  12018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12019. printf %s "checking for $ac_word... " >&6; }
  12020. if test ${ac_cv_prog_ac_ct_CXX+y}
  12021. then :
  12022. printf %s "(cached) " >&6
  12023. else $as_nop
  12024. if test -n "$ac_ct_CXX"; then
  12025. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12026. else
  12027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12028. for as_dir in $PATH
  12029. do
  12030. IFS=$as_save_IFS
  12031. case $as_dir in #(((
  12032. '') as_dir=./ ;;
  12033. */) ;;
  12034. *) as_dir=$as_dir/ ;;
  12035. esac
  12036. for ac_exec_ext in '' $ac_executable_extensions; do
  12037. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12038. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12040. break 2
  12041. fi
  12042. done
  12043. done
  12044. IFS=$as_save_IFS
  12045. fi
  12046. fi
  12047. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12048. if test -n "$ac_ct_CXX"; then
  12049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12050. printf "%s\n" "$ac_ct_CXX" >&6; }
  12051. else
  12052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12053. printf "%s\n" "no" >&6; }
  12054. fi
  12055. test -n "$ac_ct_CXX" && break
  12056. done
  12057. if test "x$ac_ct_CXX" = x; then
  12058. CXX="g++"
  12059. else
  12060. case $cross_compiling:$ac_tool_warned in
  12061. yes:)
  12062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12063. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12064. ac_tool_warned=yes ;;
  12065. esac
  12066. CXX=$ac_ct_CXX
  12067. fi
  12068. fi
  12069. fi
  12070. fi
  12071. # Provide some information about the compiler.
  12072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12073. set X $ac_compile
  12074. ac_compiler=$2
  12075. for ac_option in --version -v -V -qversion; do
  12076. { { ac_try="$ac_compiler $ac_option >&5"
  12077. case "(($ac_try" in
  12078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12079. *) ac_try_echo=$ac_try;;
  12080. esac
  12081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12082. printf "%s\n" "$ac_try_echo"; } >&5
  12083. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12084. ac_status=$?
  12085. if test -s conftest.err; then
  12086. sed '10a\
  12087. ... rest of stderr output deleted ...
  12088. 10q' conftest.err >conftest.er1
  12089. cat conftest.er1 >&5
  12090. fi
  12091. rm -f conftest.er1 conftest.err
  12092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12093. test $ac_status = 0; }
  12094. done
  12095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12096. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12097. if test ${ac_cv_cxx_compiler_gnu+y}
  12098. then :
  12099. printf %s "(cached) " >&6
  12100. else $as_nop
  12101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12102. /* end confdefs.h. */
  12103. int
  12104. main (void)
  12105. {
  12106. #ifndef __GNUC__
  12107. choke me
  12108. #endif
  12109. ;
  12110. return 0;
  12111. }
  12112. _ACEOF
  12113. if ac_fn_cxx_try_compile "$LINENO"
  12114. then :
  12115. ac_compiler_gnu=yes
  12116. else $as_nop
  12117. ac_compiler_gnu=no
  12118. fi
  12119. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12120. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12121. fi
  12122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12123. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12125. if test $ac_compiler_gnu = yes; then
  12126. GXX=yes
  12127. else
  12128. GXX=
  12129. fi
  12130. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12131. ac_save_CXXFLAGS=$CXXFLAGS
  12132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12133. printf %s "checking whether $CXX accepts -g... " >&6; }
  12134. if test ${ac_cv_prog_cxx_g+y}
  12135. then :
  12136. printf %s "(cached) " >&6
  12137. else $as_nop
  12138. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12139. ac_cxx_werror_flag=yes
  12140. ac_cv_prog_cxx_g=no
  12141. CXXFLAGS="-g"
  12142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12143. /* end confdefs.h. */
  12144. int
  12145. main (void)
  12146. {
  12147. ;
  12148. return 0;
  12149. }
  12150. _ACEOF
  12151. if ac_fn_cxx_try_compile "$LINENO"
  12152. then :
  12153. ac_cv_prog_cxx_g=yes
  12154. else $as_nop
  12155. CXXFLAGS=""
  12156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12157. /* end confdefs.h. */
  12158. int
  12159. main (void)
  12160. {
  12161. ;
  12162. return 0;
  12163. }
  12164. _ACEOF
  12165. if ac_fn_cxx_try_compile "$LINENO"
  12166. then :
  12167. else $as_nop
  12168. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12169. CXXFLAGS="-g"
  12170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12171. /* end confdefs.h. */
  12172. int
  12173. main (void)
  12174. {
  12175. ;
  12176. return 0;
  12177. }
  12178. _ACEOF
  12179. if ac_fn_cxx_try_compile "$LINENO"
  12180. then :
  12181. ac_cv_prog_cxx_g=yes
  12182. fi
  12183. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12184. fi
  12185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12186. fi
  12187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12188. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12189. fi
  12190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12191. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12192. if test $ac_test_CXXFLAGS; then
  12193. CXXFLAGS=$ac_save_CXXFLAGS
  12194. elif test $ac_cv_prog_cxx_g = yes; then
  12195. if test "$GXX" = yes; then
  12196. CXXFLAGS="-g -O2"
  12197. else
  12198. CXXFLAGS="-g"
  12199. fi
  12200. else
  12201. if test "$GXX" = yes; then
  12202. CXXFLAGS="-O2"
  12203. else
  12204. CXXFLAGS=
  12205. fi
  12206. fi
  12207. ac_prog_cxx_stdcxx=no
  12208. if test x$ac_prog_cxx_stdcxx = xno
  12209. then :
  12210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12211. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12212. if test ${ac_cv_prog_cxx_11+y}
  12213. then :
  12214. printf %s "(cached) " >&6
  12215. else $as_nop
  12216. ac_cv_prog_cxx_11=no
  12217. ac_save_CXX=$CXX
  12218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12219. /* end confdefs.h. */
  12220. $ac_cxx_conftest_cxx11_program
  12221. _ACEOF
  12222. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12223. do
  12224. CXX="$ac_save_CXX $ac_arg"
  12225. if ac_fn_cxx_try_compile "$LINENO"
  12226. then :
  12227. ac_cv_prog_cxx_cxx11=$ac_arg
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12230. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12231. done
  12232. rm -f conftest.$ac_ext
  12233. CXX=$ac_save_CXX
  12234. fi
  12235. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12236. then :
  12237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12238. printf "%s\n" "unsupported" >&6; }
  12239. else $as_nop
  12240. if test "x$ac_cv_prog_cxx_cxx11" = x
  12241. then :
  12242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12243. printf "%s\n" "none needed" >&6; }
  12244. else $as_nop
  12245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12246. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12247. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12248. fi
  12249. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12250. ac_prog_cxx_stdcxx=cxx11
  12251. fi
  12252. fi
  12253. if test x$ac_prog_cxx_stdcxx = xno
  12254. then :
  12255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12256. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12257. if test ${ac_cv_prog_cxx_98+y}
  12258. then :
  12259. printf %s "(cached) " >&6
  12260. else $as_nop
  12261. ac_cv_prog_cxx_98=no
  12262. ac_save_CXX=$CXX
  12263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12264. /* end confdefs.h. */
  12265. $ac_cxx_conftest_cxx98_program
  12266. _ACEOF
  12267. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12268. do
  12269. CXX="$ac_save_CXX $ac_arg"
  12270. if ac_fn_cxx_try_compile "$LINENO"
  12271. then :
  12272. ac_cv_prog_cxx_cxx98=$ac_arg
  12273. fi
  12274. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12275. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12276. done
  12277. rm -f conftest.$ac_ext
  12278. CXX=$ac_save_CXX
  12279. fi
  12280. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12281. then :
  12282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12283. printf "%s\n" "unsupported" >&6; }
  12284. else $as_nop
  12285. if test "x$ac_cv_prog_cxx_cxx98" = x
  12286. then :
  12287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12288. printf "%s\n" "none needed" >&6; }
  12289. else $as_nop
  12290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12291. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12292. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12293. fi
  12294. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12295. ac_prog_cxx_stdcxx=cxx98
  12296. fi
  12297. fi
  12298. ac_ext=c
  12299. ac_cpp='$CPP $CPPFLAGS'
  12300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12303. func_stripname_cnf ()
  12304. {
  12305. case $2 in
  12306. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12307. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12308. esac
  12309. } # func_stripname_cnf
  12310. if test -n "$CXX" && ( test no != "$CXX" &&
  12311. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12312. (test g++ != "$CXX"))); then
  12313. ac_ext=cpp
  12314. ac_cpp='$CXXCPP $CPPFLAGS'
  12315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12319. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12320. if test -z "$CXXCPP"; then
  12321. if test ${ac_cv_prog_CXXCPP+y}
  12322. then :
  12323. printf %s "(cached) " >&6
  12324. else $as_nop
  12325. # Double quotes because $CXX needs to be expanded
  12326. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12327. do
  12328. ac_preproc_ok=false
  12329. for ac_cxx_preproc_warn_flag in '' yes
  12330. do
  12331. # Use a header file that comes with gcc, so configuring glibc
  12332. # with a fresh cross-compiler works.
  12333. # On the NeXT, cc -E runs the code through the compiler's parser,
  12334. # not just through cpp. "Syntax error" is here to catch this case.
  12335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12336. /* end confdefs.h. */
  12337. #include <limits.h>
  12338. Syntax error
  12339. _ACEOF
  12340. if ac_fn_cxx_try_cpp "$LINENO"
  12341. then :
  12342. else $as_nop
  12343. # Broken: fails on valid input.
  12344. continue
  12345. fi
  12346. rm -f conftest.err conftest.i conftest.$ac_ext
  12347. # OK, works on sane cases. Now check whether nonexistent headers
  12348. # can be detected and how.
  12349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12350. /* end confdefs.h. */
  12351. #include <ac_nonexistent.h>
  12352. _ACEOF
  12353. if ac_fn_cxx_try_cpp "$LINENO"
  12354. then :
  12355. # Broken: success on invalid input.
  12356. continue
  12357. else $as_nop
  12358. # Passes both tests.
  12359. ac_preproc_ok=:
  12360. break
  12361. fi
  12362. rm -f conftest.err conftest.i conftest.$ac_ext
  12363. done
  12364. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12365. rm -f conftest.i conftest.err conftest.$ac_ext
  12366. if $ac_preproc_ok
  12367. then :
  12368. break
  12369. fi
  12370. done
  12371. ac_cv_prog_CXXCPP=$CXXCPP
  12372. fi
  12373. CXXCPP=$ac_cv_prog_CXXCPP
  12374. else
  12375. ac_cv_prog_CXXCPP=$CXXCPP
  12376. fi
  12377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12378. printf "%s\n" "$CXXCPP" >&6; }
  12379. ac_preproc_ok=false
  12380. for ac_cxx_preproc_warn_flag in '' yes
  12381. do
  12382. # Use a header file that comes with gcc, so configuring glibc
  12383. # with a fresh cross-compiler works.
  12384. # On the NeXT, cc -E runs the code through the compiler's parser,
  12385. # not just through cpp. "Syntax error" is here to catch this case.
  12386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12387. /* end confdefs.h. */
  12388. #include <limits.h>
  12389. Syntax error
  12390. _ACEOF
  12391. if ac_fn_cxx_try_cpp "$LINENO"
  12392. then :
  12393. else $as_nop
  12394. # Broken: fails on valid input.
  12395. continue
  12396. fi
  12397. rm -f conftest.err conftest.i conftest.$ac_ext
  12398. # OK, works on sane cases. Now check whether nonexistent headers
  12399. # can be detected and how.
  12400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12401. /* end confdefs.h. */
  12402. #include <ac_nonexistent.h>
  12403. _ACEOF
  12404. if ac_fn_cxx_try_cpp "$LINENO"
  12405. then :
  12406. # Broken: success on invalid input.
  12407. continue
  12408. else $as_nop
  12409. # Passes both tests.
  12410. ac_preproc_ok=:
  12411. break
  12412. fi
  12413. rm -f conftest.err conftest.i conftest.$ac_ext
  12414. done
  12415. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12416. rm -f conftest.i conftest.err conftest.$ac_ext
  12417. if $ac_preproc_ok
  12418. then :
  12419. else $as_nop
  12420. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12421. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12422. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12423. See \`config.log' for more details" "$LINENO" 5; }
  12424. fi
  12425. ac_ext=c
  12426. ac_cpp='$CPP $CPPFLAGS'
  12427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12430. else
  12431. _lt_caught_CXX_error=yes
  12432. fi
  12433. ac_ext=cpp
  12434. ac_cpp='$CXXCPP $CPPFLAGS'
  12435. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12436. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12437. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12438. archive_cmds_need_lc_CXX=no
  12439. allow_undefined_flag_CXX=
  12440. always_export_symbols_CXX=no
  12441. archive_expsym_cmds_CXX=
  12442. compiler_needs_object_CXX=no
  12443. export_dynamic_flag_spec_CXX=
  12444. hardcode_direct_CXX=no
  12445. hardcode_direct_absolute_CXX=no
  12446. hardcode_libdir_flag_spec_CXX=
  12447. hardcode_libdir_separator_CXX=
  12448. hardcode_minus_L_CXX=no
  12449. hardcode_shlibpath_var_CXX=unsupported
  12450. hardcode_automatic_CXX=no
  12451. inherit_rpath_CXX=no
  12452. module_cmds_CXX=
  12453. module_expsym_cmds_CXX=
  12454. link_all_deplibs_CXX=unknown
  12455. old_archive_cmds_CXX=$old_archive_cmds
  12456. reload_flag_CXX=$reload_flag
  12457. reload_cmds_CXX=$reload_cmds
  12458. no_undefined_flag_CXX=
  12459. whole_archive_flag_spec_CXX=
  12460. enable_shared_with_static_runtimes_CXX=no
  12461. # Source file extension for C++ test sources.
  12462. ac_ext=cpp
  12463. # Object file extension for compiled C++ test sources.
  12464. objext=o
  12465. objext_CXX=$objext
  12466. # No sense in running all these tests if we already determined that
  12467. # the CXX compiler isn't working. Some variables (like enable_shared)
  12468. # are currently assumed to apply to all compilers on this platform,
  12469. # and will be corrupted by setting them based on a non-working compiler.
  12470. if test yes != "$_lt_caught_CXX_error"; then
  12471. # Code to be used in simple compile tests
  12472. lt_simple_compile_test_code="int some_variable = 0;"
  12473. # Code to be used in simple link tests
  12474. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12475. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12476. # If no C compiler was specified, use CC.
  12477. LTCC=${LTCC-"$CC"}
  12478. # If no C compiler flags were specified, use CFLAGS.
  12479. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12480. # Allow CC to be a program name with arguments.
  12481. compiler=$CC
  12482. # save warnings/boilerplate of simple test code
  12483. ac_outfile=conftest.$ac_objext
  12484. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12485. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12486. _lt_compiler_boilerplate=`cat conftest.err`
  12487. $RM conftest*
  12488. ac_outfile=conftest.$ac_objext
  12489. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12490. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12491. _lt_linker_boilerplate=`cat conftest.err`
  12492. $RM -r conftest*
  12493. # Allow CC to be a program name with arguments.
  12494. lt_save_CC=$CC
  12495. lt_save_CFLAGS=$CFLAGS
  12496. lt_save_LD=$LD
  12497. lt_save_GCC=$GCC
  12498. GCC=$GXX
  12499. lt_save_with_gnu_ld=$with_gnu_ld
  12500. lt_save_path_LD=$lt_cv_path_LD
  12501. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12502. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12503. else
  12504. $as_unset lt_cv_prog_gnu_ld
  12505. fi
  12506. if test -n "${lt_cv_path_LDCXX+set}"; then
  12507. lt_cv_path_LD=$lt_cv_path_LDCXX
  12508. else
  12509. $as_unset lt_cv_path_LD
  12510. fi
  12511. test -z "${LDCXX+set}" || LD=$LDCXX
  12512. CC=${CXX-"c++"}
  12513. CFLAGS=$CXXFLAGS
  12514. compiler=$CC
  12515. compiler_CXX=$CC
  12516. func_cc_basename $compiler
  12517. cc_basename=$func_cc_basename_result
  12518. if test -n "$compiler"; then
  12519. # We don't want -fno-exception when compiling C++ code, so set the
  12520. # no_builtin_flag separately
  12521. if test yes = "$GXX"; then
  12522. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12523. else
  12524. lt_prog_compiler_no_builtin_flag_CXX=
  12525. fi
  12526. if test yes = "$GXX"; then
  12527. # Set up default GNU C++ configuration
  12528. # Check whether --with-gnu-ld was given.
  12529. if test ${with_gnu_ld+y}
  12530. then :
  12531. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12532. else $as_nop
  12533. with_gnu_ld=no
  12534. fi
  12535. ac_prog=ld
  12536. if test yes = "$GCC"; then
  12537. # Check if gcc -print-prog-name=ld gives a path.
  12538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12539. printf %s "checking for ld used by $CC... " >&6; }
  12540. case $host in
  12541. *-*-mingw*)
  12542. # gcc leaves a trailing carriage return, which upsets mingw
  12543. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12544. *)
  12545. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12546. esac
  12547. case $ac_prog in
  12548. # Accept absolute paths.
  12549. [\\/]* | ?:[\\/]*)
  12550. re_direlt='/[^/][^/]*/\.\./'
  12551. # Canonicalize the pathname of ld
  12552. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12553. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12554. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12555. done
  12556. test -z "$LD" && LD=$ac_prog
  12557. ;;
  12558. "")
  12559. # If it fails, then pretend we aren't using GCC.
  12560. ac_prog=ld
  12561. ;;
  12562. *)
  12563. # If it is relative, then search for the first ld in PATH.
  12564. with_gnu_ld=unknown
  12565. ;;
  12566. esac
  12567. elif test yes = "$with_gnu_ld"; then
  12568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12569. printf %s "checking for GNU ld... " >&6; }
  12570. else
  12571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12572. printf %s "checking for non-GNU ld... " >&6; }
  12573. fi
  12574. if test ${lt_cv_path_LD+y}
  12575. then :
  12576. printf %s "(cached) " >&6
  12577. else $as_nop
  12578. if test -z "$LD"; then
  12579. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12580. for ac_dir in $PATH; do
  12581. IFS=$lt_save_ifs
  12582. test -z "$ac_dir" && ac_dir=.
  12583. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12584. lt_cv_path_LD=$ac_dir/$ac_prog
  12585. # Check to see if the program is GNU ld. I'd rather use --version,
  12586. # but apparently some variants of GNU ld only accept -v.
  12587. # Break only if it was the GNU/non-GNU ld that we prefer.
  12588. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12589. *GNU* | *'with BFD'*)
  12590. test no != "$with_gnu_ld" && break
  12591. ;;
  12592. *)
  12593. test yes != "$with_gnu_ld" && break
  12594. ;;
  12595. esac
  12596. fi
  12597. done
  12598. IFS=$lt_save_ifs
  12599. else
  12600. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12601. fi
  12602. fi
  12603. LD=$lt_cv_path_LD
  12604. if test -n "$LD"; then
  12605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12606. printf "%s\n" "$LD" >&6; }
  12607. else
  12608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12609. printf "%s\n" "no" >&6; }
  12610. fi
  12611. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12613. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12614. if test ${lt_cv_prog_gnu_ld+y}
  12615. then :
  12616. printf %s "(cached) " >&6
  12617. else $as_nop
  12618. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12619. case `$LD -v 2>&1 </dev/null` in
  12620. *GNU* | *'with BFD'*)
  12621. lt_cv_prog_gnu_ld=yes
  12622. ;;
  12623. *)
  12624. lt_cv_prog_gnu_ld=no
  12625. ;;
  12626. esac
  12627. fi
  12628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12629. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12630. with_gnu_ld=$lt_cv_prog_gnu_ld
  12631. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12632. # archiving commands below assume that GNU ld is being used.
  12633. if test yes = "$with_gnu_ld"; then
  12634. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12635. 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'
  12636. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12637. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12638. # If archive_cmds runs LD, not CC, wlarc should be empty
  12639. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12640. # investigate it a little bit more. (MM)
  12641. wlarc='$wl'
  12642. # ancient GNU ld didn't support --whole-archive et. al.
  12643. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12644. $GREP 'no-whole-archive' > /dev/null; then
  12645. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12646. else
  12647. whole_archive_flag_spec_CXX=
  12648. fi
  12649. else
  12650. with_gnu_ld=no
  12651. wlarc=
  12652. # A generic and very simple default shared library creation
  12653. # command for GNU C++ for the case where it uses the native
  12654. # linker, instead of GNU ld. If possible, this setting should
  12655. # overridden to take advantage of the native linker features on
  12656. # the platform it is being used on.
  12657. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12658. fi
  12659. # Commands to make compiler produce verbose output that lists
  12660. # what "hidden" libraries, object files and flags are used when
  12661. # linking a shared library.
  12662. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12663. else
  12664. GXX=no
  12665. with_gnu_ld=no
  12666. wlarc=
  12667. fi
  12668. # PORTME: fill in a description of your system's C++ link characteristics
  12669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12670. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12671. ld_shlibs_CXX=yes
  12672. case $host_os in
  12673. aix3*)
  12674. # FIXME: insert proper C++ library support
  12675. ld_shlibs_CXX=no
  12676. ;;
  12677. aix[4-9]*)
  12678. if test ia64 = "$host_cpu"; then
  12679. # On IA64, the linker does run time linking by default, so we don't
  12680. # have to do anything special.
  12681. aix_use_runtimelinking=no
  12682. exp_sym_flag='-Bexport'
  12683. no_entry_flag=
  12684. else
  12685. aix_use_runtimelinking=no
  12686. # Test if we are trying to use run time linking or normal
  12687. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12688. # have runtime linking enabled, and use it for executables.
  12689. # For shared libraries, we enable/disable runtime linking
  12690. # depending on the kind of the shared library created -
  12691. # when "with_aix_soname,aix_use_runtimelinking" is:
  12692. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12693. # "aix,yes" lib.so shared, rtl:yes, for executables
  12694. # lib.a static archive
  12695. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12696. # lib.a(lib.so.V) shared, rtl:no, for executables
  12697. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12698. # lib.a(lib.so.V) shared, rtl:no
  12699. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12700. # lib.a static archive
  12701. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12702. for ld_flag in $LDFLAGS; do
  12703. case $ld_flag in
  12704. *-brtl*)
  12705. aix_use_runtimelinking=yes
  12706. break
  12707. ;;
  12708. esac
  12709. done
  12710. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12711. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12712. # so we don't have lib.a shared libs to link our executables.
  12713. # We have to force runtime linking in this case.
  12714. aix_use_runtimelinking=yes
  12715. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12716. fi
  12717. ;;
  12718. esac
  12719. exp_sym_flag='-bexport'
  12720. no_entry_flag='-bnoentry'
  12721. fi
  12722. # When large executables or shared objects are built, AIX ld can
  12723. # have problems creating the table of contents. If linking a library
  12724. # or program results in "error TOC overflow" add -mminimal-toc to
  12725. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12726. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12727. archive_cmds_CXX=''
  12728. hardcode_direct_CXX=yes
  12729. hardcode_direct_absolute_CXX=yes
  12730. hardcode_libdir_separator_CXX=':'
  12731. link_all_deplibs_CXX=yes
  12732. file_list_spec_CXX='$wl-f,'
  12733. case $with_aix_soname,$aix_use_runtimelinking in
  12734. aix,*) ;; # no import file
  12735. svr4,* | *,yes) # use import file
  12736. # The Import File defines what to hardcode.
  12737. hardcode_direct_CXX=no
  12738. hardcode_direct_absolute_CXX=no
  12739. ;;
  12740. esac
  12741. if test yes = "$GXX"; then
  12742. case $host_os in aix4.[012]|aix4.[012].*)
  12743. # We only want to do this on AIX 4.2 and lower, the check
  12744. # below for broken collect2 doesn't work under 4.3+
  12745. collect2name=`$CC -print-prog-name=collect2`
  12746. if test -f "$collect2name" &&
  12747. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12748. then
  12749. # We have reworked collect2
  12750. :
  12751. else
  12752. # We have old collect2
  12753. hardcode_direct_CXX=unsupported
  12754. # It fails to find uninstalled libraries when the uninstalled
  12755. # path is not listed in the libpath. Setting hardcode_minus_L
  12756. # to unsupported forces relinking
  12757. hardcode_minus_L_CXX=yes
  12758. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12759. hardcode_libdir_separator_CXX=
  12760. fi
  12761. esac
  12762. shared_flag='-shared'
  12763. if test yes = "$aix_use_runtimelinking"; then
  12764. shared_flag=$shared_flag' $wl-G'
  12765. fi
  12766. # Need to ensure runtime linking is disabled for the traditional
  12767. # shared library, or the linker may eventually find shared libraries
  12768. # /with/ Import File - we do not want to mix them.
  12769. shared_flag_aix='-shared'
  12770. shared_flag_svr4='-shared $wl-G'
  12771. else
  12772. # not using gcc
  12773. if test ia64 = "$host_cpu"; then
  12774. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12775. # chokes on -Wl,-G. The following line is correct:
  12776. shared_flag='-G'
  12777. else
  12778. if test yes = "$aix_use_runtimelinking"; then
  12779. shared_flag='$wl-G'
  12780. else
  12781. shared_flag='$wl-bM:SRE'
  12782. fi
  12783. shared_flag_aix='$wl-bM:SRE'
  12784. shared_flag_svr4='$wl-G'
  12785. fi
  12786. fi
  12787. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12788. # It seems that -bexpall does not export symbols beginning with
  12789. # underscore (_), so it is better to generate a list of symbols to
  12790. # export.
  12791. always_export_symbols_CXX=yes
  12792. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12793. # Warning - without using the other runtime loading flags (-brtl),
  12794. # -berok will link without error, but may produce a broken library.
  12795. # The "-G" linker flag allows undefined symbols.
  12796. no_undefined_flag_CXX='-bernotok'
  12797. # Determine the default libpath from the value encoded in an empty
  12798. # executable.
  12799. if test set = "${lt_cv_aix_libpath+set}"; then
  12800. aix_libpath=$lt_cv_aix_libpath
  12801. else
  12802. if test ${lt_cv_aix_libpath__CXX+y}
  12803. then :
  12804. printf %s "(cached) " >&6
  12805. else $as_nop
  12806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12807. /* end confdefs.h. */
  12808. int
  12809. main (void)
  12810. {
  12811. ;
  12812. return 0;
  12813. }
  12814. _ACEOF
  12815. if ac_fn_cxx_try_link "$LINENO"
  12816. then :
  12817. lt_aix_libpath_sed='
  12818. /Import File Strings/,/^$/ {
  12819. /^0/ {
  12820. s/^0 *\([^ ]*\) *$/\1/
  12821. p
  12822. }
  12823. }'
  12824. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12825. # Check for a 64-bit object if we didn't find anything.
  12826. if test -z "$lt_cv_aix_libpath__CXX"; then
  12827. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12828. fi
  12829. fi
  12830. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12831. conftest$ac_exeext conftest.$ac_ext
  12832. if test -z "$lt_cv_aix_libpath__CXX"; then
  12833. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12834. fi
  12835. fi
  12836. aix_libpath=$lt_cv_aix_libpath__CXX
  12837. fi
  12838. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12839. 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
  12840. else
  12841. if test ia64 = "$host_cpu"; then
  12842. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12843. allow_undefined_flag_CXX="-z nodefs"
  12844. 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"
  12845. else
  12846. # Determine the default libpath from the value encoded in an
  12847. # empty executable.
  12848. if test set = "${lt_cv_aix_libpath+set}"; then
  12849. aix_libpath=$lt_cv_aix_libpath
  12850. else
  12851. if test ${lt_cv_aix_libpath__CXX+y}
  12852. then :
  12853. printf %s "(cached) " >&6
  12854. else $as_nop
  12855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12856. /* end confdefs.h. */
  12857. int
  12858. main (void)
  12859. {
  12860. ;
  12861. return 0;
  12862. }
  12863. _ACEOF
  12864. if ac_fn_cxx_try_link "$LINENO"
  12865. then :
  12866. lt_aix_libpath_sed='
  12867. /Import File Strings/,/^$/ {
  12868. /^0/ {
  12869. s/^0 *\([^ ]*\) *$/\1/
  12870. p
  12871. }
  12872. }'
  12873. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12874. # Check for a 64-bit object if we didn't find anything.
  12875. if test -z "$lt_cv_aix_libpath__CXX"; then
  12876. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12877. fi
  12878. fi
  12879. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12880. conftest$ac_exeext conftest.$ac_ext
  12881. if test -z "$lt_cv_aix_libpath__CXX"; then
  12882. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12883. fi
  12884. fi
  12885. aix_libpath=$lt_cv_aix_libpath__CXX
  12886. fi
  12887. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12888. # Warning - without using the other run time loading flags,
  12889. # -berok will link without error, but may produce a broken library.
  12890. no_undefined_flag_CXX=' $wl-bernotok'
  12891. allow_undefined_flag_CXX=' $wl-berok'
  12892. if test yes = "$with_gnu_ld"; then
  12893. # We only use this code for GNU lds that support --whole-archive.
  12894. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12895. else
  12896. # Exported symbols can be pulled into shared objects from archives
  12897. whole_archive_flag_spec_CXX='$convenience'
  12898. fi
  12899. archive_cmds_need_lc_CXX=yes
  12900. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12901. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12902. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12903. if test svr4 != "$with_aix_soname"; then
  12904. # This is similar to how AIX traditionally builds its shared
  12905. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12906. 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'
  12907. fi
  12908. if test aix != "$with_aix_soname"; then
  12909. 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'
  12910. else
  12911. # used by -dlpreopen to get the symbols
  12912. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12913. fi
  12914. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12915. fi
  12916. fi
  12917. ;;
  12918. beos*)
  12919. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12920. allow_undefined_flag_CXX=unsupported
  12921. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12922. # support --undefined. This deserves some investigation. FIXME
  12923. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12924. else
  12925. ld_shlibs_CXX=no
  12926. fi
  12927. ;;
  12928. chorus*)
  12929. case $cc_basename in
  12930. *)
  12931. # FIXME: insert proper C++ library support
  12932. ld_shlibs_CXX=no
  12933. ;;
  12934. esac
  12935. ;;
  12936. cygwin* | mingw* | pw32* | cegcc*)
  12937. case $GXX,$cc_basename in
  12938. ,cl* | no,cl*)
  12939. # Native MSVC
  12940. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12941. # no search path for DLLs.
  12942. hardcode_libdir_flag_spec_CXX=' '
  12943. allow_undefined_flag_CXX=unsupported
  12944. always_export_symbols_CXX=yes
  12945. file_list_spec_CXX='@'
  12946. # Tell ltmain to make .lib files, not .a files.
  12947. libext=lib
  12948. # Tell ltmain to make .dll files, not .so files.
  12949. shrext_cmds=.dll
  12950. # FIXME: Setting linknames here is a bad hack.
  12951. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12952. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12953. cp "$export_symbols" "$output_objdir/$soname.def";
  12954. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12955. else
  12956. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12957. fi~
  12958. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12959. linknames='
  12960. # The linker will not automatically build a static lib if we build a DLL.
  12961. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12962. enable_shared_with_static_runtimes_CXX=yes
  12963. # Don't use ranlib
  12964. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12965. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12966. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12967. case $lt_outputfile in
  12968. *.exe|*.EXE) ;;
  12969. *)
  12970. lt_outputfile=$lt_outputfile.exe
  12971. lt_tool_outputfile=$lt_tool_outputfile.exe
  12972. ;;
  12973. esac~
  12974. func_to_tool_file "$lt_outputfile"~
  12975. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12976. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12977. $RM "$lt_outputfile.manifest";
  12978. fi'
  12979. ;;
  12980. *)
  12981. # g++
  12982. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12983. # as there is no search path for DLLs.
  12984. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12985. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12986. allow_undefined_flag_CXX=unsupported
  12987. always_export_symbols_CXX=no
  12988. enable_shared_with_static_runtimes_CXX=yes
  12989. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12990. 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'
  12991. # If the export-symbols file already is a .def file, use it as
  12992. # is; otherwise, prepend EXPORTS...
  12993. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12994. cp $export_symbols $output_objdir/$soname.def;
  12995. else
  12996. echo EXPORTS > $output_objdir/$soname.def;
  12997. cat $export_symbols >> $output_objdir/$soname.def;
  12998. fi~
  12999. $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'
  13000. else
  13001. ld_shlibs_CXX=no
  13002. fi
  13003. ;;
  13004. esac
  13005. ;;
  13006. darwin* | rhapsody*)
  13007. archive_cmds_need_lc_CXX=no
  13008. hardcode_direct_CXX=no
  13009. hardcode_automatic_CXX=yes
  13010. hardcode_shlibpath_var_CXX=unsupported
  13011. if test yes = "$lt_cv_ld_force_load"; then
  13012. 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\"`'
  13013. else
  13014. whole_archive_flag_spec_CXX=''
  13015. fi
  13016. link_all_deplibs_CXX=yes
  13017. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13018. case $cc_basename in
  13019. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13020. *) _lt_dar_can_shared=$GCC ;;
  13021. esac
  13022. if test yes = "$_lt_dar_can_shared"; then
  13023. output_verbose_link_cmd=func_echo_all
  13024. 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"
  13025. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13026. 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"
  13027. 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"
  13028. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13029. 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"
  13030. 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"
  13031. fi
  13032. else
  13033. ld_shlibs_CXX=no
  13034. fi
  13035. ;;
  13036. os2*)
  13037. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13038. hardcode_minus_L_CXX=yes
  13039. allow_undefined_flag_CXX=unsupported
  13040. shrext_cmds=.dll
  13041. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13042. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13043. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13044. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13045. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13046. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13047. emximp -o $lib $output_objdir/$libname.def'
  13048. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13049. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13050. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13051. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13052. prefix_cmds="$SED"~
  13053. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13054. prefix_cmds="$prefix_cmds -e 1d";
  13055. fi~
  13056. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13057. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13058. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13059. emximp -o $lib $output_objdir/$libname.def'
  13060. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13061. enable_shared_with_static_runtimes_CXX=yes
  13062. file_list_spec_CXX='@'
  13063. ;;
  13064. dgux*)
  13065. case $cc_basename in
  13066. ec++*)
  13067. # FIXME: insert proper C++ library support
  13068. ld_shlibs_CXX=no
  13069. ;;
  13070. ghcx*)
  13071. # Green Hills C++ Compiler
  13072. # FIXME: insert proper C++ library support
  13073. ld_shlibs_CXX=no
  13074. ;;
  13075. *)
  13076. # FIXME: insert proper C++ library support
  13077. ld_shlibs_CXX=no
  13078. ;;
  13079. esac
  13080. ;;
  13081. freebsd2.*)
  13082. # C++ shared libraries reported to be fairly broken before
  13083. # switch to ELF
  13084. ld_shlibs_CXX=no
  13085. ;;
  13086. freebsd-elf*)
  13087. archive_cmds_need_lc_CXX=no
  13088. ;;
  13089. freebsd* | dragonfly* | midnightbsd*)
  13090. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13091. # conventions
  13092. ld_shlibs_CXX=yes
  13093. ;;
  13094. haiku*)
  13095. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13096. link_all_deplibs_CXX=yes
  13097. ;;
  13098. hpux9*)
  13099. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13100. hardcode_libdir_separator_CXX=:
  13101. export_dynamic_flag_spec_CXX='$wl-E'
  13102. hardcode_direct_CXX=yes
  13103. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13104. # but as the default
  13105. # location of the library.
  13106. case $cc_basename in
  13107. CC*)
  13108. # FIXME: insert proper C++ library support
  13109. ld_shlibs_CXX=no
  13110. ;;
  13111. aCC*)
  13112. 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'
  13113. # Commands to make compiler produce verbose output that lists
  13114. # what "hidden" libraries, object files and flags are used when
  13115. # linking a shared library.
  13116. #
  13117. # There doesn't appear to be a way to prevent this compiler from
  13118. # explicitly linking system object files so we need to strip them
  13119. # from the output so that they don't get included in the library
  13120. # dependencies.
  13121. 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"'
  13122. ;;
  13123. *)
  13124. if test yes = "$GXX"; then
  13125. 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'
  13126. else
  13127. # FIXME: insert proper C++ library support
  13128. ld_shlibs_CXX=no
  13129. fi
  13130. ;;
  13131. esac
  13132. ;;
  13133. hpux10*|hpux11*)
  13134. if test no = "$with_gnu_ld"; then
  13135. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13136. hardcode_libdir_separator_CXX=:
  13137. case $host_cpu in
  13138. hppa*64*|ia64*)
  13139. ;;
  13140. *)
  13141. export_dynamic_flag_spec_CXX='$wl-E'
  13142. ;;
  13143. esac
  13144. fi
  13145. case $host_cpu in
  13146. hppa*64*|ia64*)
  13147. hardcode_direct_CXX=no
  13148. hardcode_shlibpath_var_CXX=no
  13149. ;;
  13150. *)
  13151. hardcode_direct_CXX=yes
  13152. hardcode_direct_absolute_CXX=yes
  13153. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13154. # but as the default
  13155. # location of the library.
  13156. ;;
  13157. esac
  13158. case $cc_basename in
  13159. CC*)
  13160. # FIXME: insert proper C++ library support
  13161. ld_shlibs_CXX=no
  13162. ;;
  13163. aCC*)
  13164. case $host_cpu in
  13165. hppa*64*)
  13166. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13167. ;;
  13168. ia64*)
  13169. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13170. ;;
  13171. *)
  13172. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13173. ;;
  13174. esac
  13175. # Commands to make compiler produce verbose output that lists
  13176. # what "hidden" libraries, object files and flags are used when
  13177. # linking a shared library.
  13178. #
  13179. # There doesn't appear to be a way to prevent this compiler from
  13180. # explicitly linking system object files so we need to strip them
  13181. # from the output so that they don't get included in the library
  13182. # dependencies.
  13183. 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"'
  13184. ;;
  13185. *)
  13186. if test yes = "$GXX"; then
  13187. if test no = "$with_gnu_ld"; then
  13188. case $host_cpu in
  13189. hppa*64*)
  13190. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13191. ;;
  13192. ia64*)
  13193. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13194. ;;
  13195. *)
  13196. 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'
  13197. ;;
  13198. esac
  13199. fi
  13200. else
  13201. # FIXME: insert proper C++ library support
  13202. ld_shlibs_CXX=no
  13203. fi
  13204. ;;
  13205. esac
  13206. ;;
  13207. interix[3-9]*)
  13208. hardcode_direct_CXX=no
  13209. hardcode_shlibpath_var_CXX=no
  13210. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13211. export_dynamic_flag_spec_CXX='$wl-E'
  13212. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13213. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13214. # default) and relocated if they conflict, which is a slow very memory
  13215. # consuming and fragmenting process. To avoid this, we pick a random,
  13216. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13217. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13218. 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'
  13219. 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'
  13220. ;;
  13221. irix5* | irix6*)
  13222. case $cc_basename in
  13223. CC*)
  13224. # SGI C++
  13225. 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'
  13226. # Archives containing C++ object files must be created using
  13227. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13228. # necessary to make sure instantiated templates are included
  13229. # in the archive.
  13230. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13231. ;;
  13232. *)
  13233. if test yes = "$GXX"; then
  13234. if test no = "$with_gnu_ld"; then
  13235. 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'
  13236. else
  13237. 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'
  13238. fi
  13239. fi
  13240. link_all_deplibs_CXX=yes
  13241. ;;
  13242. esac
  13243. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13244. hardcode_libdir_separator_CXX=:
  13245. inherit_rpath_CXX=yes
  13246. ;;
  13247. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13248. case $cc_basename in
  13249. KCC*)
  13250. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13251. # KCC will only create a shared library if the output file
  13252. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13253. # to its proper name (with version) after linking.
  13254. 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'
  13255. 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'
  13256. # Commands to make compiler produce verbose output that lists
  13257. # what "hidden" libraries, object files and flags are used when
  13258. # linking a shared library.
  13259. #
  13260. # There doesn't appear to be a way to prevent this compiler from
  13261. # explicitly linking system object files so we need to strip them
  13262. # from the output so that they don't get included in the library
  13263. # dependencies.
  13264. 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"'
  13265. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13266. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13267. # Archives containing C++ object files must be created using
  13268. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13269. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13270. ;;
  13271. icpc* | ecpc* )
  13272. # Intel C++
  13273. with_gnu_ld=yes
  13274. # version 8.0 and above of icpc choke on multiply defined symbols
  13275. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13276. # earlier do not add the objects themselves.
  13277. case `$CC -V 2>&1` in
  13278. *"Version 7."*)
  13279. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13280. 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'
  13281. ;;
  13282. *) # Version 8.0 or newer
  13283. tmp_idyn=
  13284. case $host_cpu in
  13285. ia64*) tmp_idyn=' -i_dynamic';;
  13286. esac
  13287. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13288. 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'
  13289. ;;
  13290. esac
  13291. archive_cmds_need_lc_CXX=no
  13292. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13293. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13294. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13295. ;;
  13296. pgCC* | pgcpp*)
  13297. # Portland Group C++ compiler
  13298. case `$CC -V` in
  13299. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13300. prelink_cmds_CXX='tpldir=Template.dir~
  13301. rm -rf $tpldir~
  13302. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13303. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13304. old_archive_cmds_CXX='tpldir=Template.dir~
  13305. rm -rf $tpldir~
  13306. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13307. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13308. $RANLIB $oldlib'
  13309. archive_cmds_CXX='tpldir=Template.dir~
  13310. rm -rf $tpldir~
  13311. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13312. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13313. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13314. rm -rf $tpldir~
  13315. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13316. $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'
  13317. ;;
  13318. *) # Version 6 and above use weak symbols
  13319. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13320. 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'
  13321. ;;
  13322. esac
  13323. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13324. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13325. 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'
  13326. ;;
  13327. cxx*)
  13328. # Compaq C++
  13329. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13330. 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'
  13331. runpath_var=LD_RUN_PATH
  13332. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13333. hardcode_libdir_separator_CXX=:
  13334. # Commands to make compiler produce verbose output that lists
  13335. # what "hidden" libraries, object files and flags are used when
  13336. # linking a shared library.
  13337. #
  13338. # There doesn't appear to be a way to prevent this compiler from
  13339. # explicitly linking system object files so we need to strip them
  13340. # from the output so that they don't get included in the library
  13341. # dependencies.
  13342. 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'
  13343. ;;
  13344. xl* | mpixl* | bgxl*)
  13345. # IBM XL 8.0 on PPC, with GNU ld
  13346. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13347. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13348. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13349. if test yes = "$supports_anon_versioning"; then
  13350. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13351. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13352. echo "local: *; };" >> $output_objdir/$libname.ver~
  13353. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13354. fi
  13355. ;;
  13356. *)
  13357. case `$CC -V 2>&1 | sed 5q` in
  13358. *Sun\ C*)
  13359. # Sun C++ 5.9
  13360. no_undefined_flag_CXX=' -zdefs'
  13361. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13362. 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'
  13363. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13364. 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'
  13365. compiler_needs_object_CXX=yes
  13366. # Not sure whether something based on
  13367. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13368. # would be better.
  13369. output_verbose_link_cmd='func_echo_all'
  13370. # Archives containing C++ object files must be created using
  13371. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13372. # necessary to make sure instantiated templates are included
  13373. # in the archive.
  13374. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13375. ;;
  13376. esac
  13377. ;;
  13378. esac
  13379. ;;
  13380. lynxos*)
  13381. # FIXME: insert proper C++ library support
  13382. ld_shlibs_CXX=no
  13383. ;;
  13384. m88k*)
  13385. # FIXME: insert proper C++ library support
  13386. ld_shlibs_CXX=no
  13387. ;;
  13388. mvs*)
  13389. case $cc_basename in
  13390. cxx*)
  13391. # FIXME: insert proper C++ library support
  13392. ld_shlibs_CXX=no
  13393. ;;
  13394. *)
  13395. # FIXME: insert proper C++ library support
  13396. ld_shlibs_CXX=no
  13397. ;;
  13398. esac
  13399. ;;
  13400. netbsd*)
  13401. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13402. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13403. wlarc=
  13404. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13405. hardcode_direct_CXX=yes
  13406. hardcode_shlibpath_var_CXX=no
  13407. fi
  13408. # Workaround some broken pre-1.5 toolchains
  13409. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13410. ;;
  13411. *nto* | *qnx*)
  13412. ld_shlibs_CXX=yes
  13413. ;;
  13414. openbsd* | bitrig*)
  13415. if test -f /usr/libexec/ld.so; then
  13416. hardcode_direct_CXX=yes
  13417. hardcode_shlibpath_var_CXX=no
  13418. hardcode_direct_absolute_CXX=yes
  13419. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13420. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13421. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13422. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13423. export_dynamic_flag_spec_CXX='$wl-E'
  13424. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13425. fi
  13426. output_verbose_link_cmd=func_echo_all
  13427. else
  13428. ld_shlibs_CXX=no
  13429. fi
  13430. ;;
  13431. osf3* | osf4* | osf5*)
  13432. case $cc_basename in
  13433. KCC*)
  13434. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13435. # KCC will only create a shared library if the output file
  13436. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13437. # to its proper name (with version) after linking.
  13438. 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'
  13439. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13440. hardcode_libdir_separator_CXX=:
  13441. # Archives containing C++ object files must be created using
  13442. # the KAI C++ compiler.
  13443. case $host in
  13444. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13445. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13446. esac
  13447. ;;
  13448. RCC*)
  13449. # Rational C++ 2.4.1
  13450. # FIXME: insert proper C++ library support
  13451. ld_shlibs_CXX=no
  13452. ;;
  13453. cxx*)
  13454. case $host in
  13455. osf3*)
  13456. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13457. 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'
  13458. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13459. ;;
  13460. *)
  13461. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13462. 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'
  13463. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13464. echo "-hidden">> $lib.exp~
  13465. $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~
  13466. $RM $lib.exp'
  13467. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13468. ;;
  13469. esac
  13470. hardcode_libdir_separator_CXX=:
  13471. # Commands to make compiler produce verbose output that lists
  13472. # what "hidden" libraries, object files and flags are used when
  13473. # linking a shared library.
  13474. #
  13475. # There doesn't appear to be a way to prevent this compiler from
  13476. # explicitly linking system object files so we need to strip them
  13477. # from the output so that they don't get included in the library
  13478. # dependencies.
  13479. 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"'
  13480. ;;
  13481. *)
  13482. if test yes,no = "$GXX,$with_gnu_ld"; then
  13483. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13484. case $host in
  13485. osf3*)
  13486. 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'
  13487. ;;
  13488. *)
  13489. 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'
  13490. ;;
  13491. esac
  13492. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13493. hardcode_libdir_separator_CXX=:
  13494. # Commands to make compiler produce verbose output that lists
  13495. # what "hidden" libraries, object files and flags are used when
  13496. # linking a shared library.
  13497. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13498. else
  13499. # FIXME: insert proper C++ library support
  13500. ld_shlibs_CXX=no
  13501. fi
  13502. ;;
  13503. esac
  13504. ;;
  13505. psos*)
  13506. # FIXME: insert proper C++ library support
  13507. ld_shlibs_CXX=no
  13508. ;;
  13509. sunos4*)
  13510. case $cc_basename in
  13511. CC*)
  13512. # Sun C++ 4.x
  13513. # FIXME: insert proper C++ library support
  13514. ld_shlibs_CXX=no
  13515. ;;
  13516. lcc*)
  13517. # Lucid
  13518. # FIXME: insert proper C++ library support
  13519. ld_shlibs_CXX=no
  13520. ;;
  13521. *)
  13522. # FIXME: insert proper C++ library support
  13523. ld_shlibs_CXX=no
  13524. ;;
  13525. esac
  13526. ;;
  13527. solaris*)
  13528. case $cc_basename in
  13529. CC* | sunCC*)
  13530. # Sun C++ 4.2, 5.x and Centerline C++
  13531. archive_cmds_need_lc_CXX=yes
  13532. no_undefined_flag_CXX=' -zdefs'
  13533. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13534. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13535. $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'
  13536. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13537. hardcode_shlibpath_var_CXX=no
  13538. case $host_os in
  13539. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13540. *)
  13541. # The compiler driver will combine and reorder linker options,
  13542. # but understands '-z linker_flag'.
  13543. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13544. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13545. ;;
  13546. esac
  13547. link_all_deplibs_CXX=yes
  13548. output_verbose_link_cmd='func_echo_all'
  13549. # Archives containing C++ object files must be created using
  13550. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13551. # necessary to make sure instantiated templates are included
  13552. # in the archive.
  13553. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13554. ;;
  13555. gcx*)
  13556. # Green Hills C++ Compiler
  13557. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13558. # The C++ compiler must be used to create the archive.
  13559. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13560. ;;
  13561. *)
  13562. # GNU C++ compiler with Solaris linker
  13563. if test yes,no = "$GXX,$with_gnu_ld"; then
  13564. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13565. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13566. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13567. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13568. $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'
  13569. # Commands to make compiler produce verbose output that lists
  13570. # what "hidden" libraries, object files and flags are used when
  13571. # linking a shared library.
  13572. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13573. else
  13574. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13575. # platform.
  13576. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13577. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13578. $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'
  13579. # Commands to make compiler produce verbose output that lists
  13580. # what "hidden" libraries, object files and flags are used when
  13581. # linking a shared library.
  13582. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13583. fi
  13584. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13585. case $host_os in
  13586. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13587. *)
  13588. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13589. ;;
  13590. esac
  13591. fi
  13592. ;;
  13593. esac
  13594. ;;
  13595. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13596. no_undefined_flag_CXX='$wl-z,text'
  13597. archive_cmds_need_lc_CXX=no
  13598. hardcode_shlibpath_var_CXX=no
  13599. runpath_var='LD_RUN_PATH'
  13600. case $cc_basename in
  13601. CC*)
  13602. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13603. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13604. ;;
  13605. *)
  13606. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13607. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13608. ;;
  13609. esac
  13610. ;;
  13611. sysv5* | sco3.2v5* | sco5v6*)
  13612. # Note: We CANNOT use -z defs as we might desire, because we do not
  13613. # link with -lc, and that would cause any symbols used from libc to
  13614. # always be unresolved, which means just about no library would
  13615. # ever link correctly. If we're not using GNU ld we use -z text
  13616. # though, which does catch some bad symbols but isn't as heavy-handed
  13617. # as -z defs.
  13618. no_undefined_flag_CXX='$wl-z,text'
  13619. allow_undefined_flag_CXX='$wl-z,nodefs'
  13620. archive_cmds_need_lc_CXX=no
  13621. hardcode_shlibpath_var_CXX=no
  13622. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13623. hardcode_libdir_separator_CXX=':'
  13624. link_all_deplibs_CXX=yes
  13625. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13626. runpath_var='LD_RUN_PATH'
  13627. case $cc_basename in
  13628. CC*)
  13629. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13630. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13631. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13632. '"$old_archive_cmds_CXX"
  13633. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13634. '"$reload_cmds_CXX"
  13635. ;;
  13636. *)
  13637. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13638. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13639. ;;
  13640. esac
  13641. ;;
  13642. tandem*)
  13643. case $cc_basename in
  13644. NCC*)
  13645. # NonStop-UX NCC 3.20
  13646. # FIXME: insert proper C++ library support
  13647. ld_shlibs_CXX=no
  13648. ;;
  13649. *)
  13650. # FIXME: insert proper C++ library support
  13651. ld_shlibs_CXX=no
  13652. ;;
  13653. esac
  13654. ;;
  13655. vxworks*)
  13656. # FIXME: insert proper C++ library support
  13657. ld_shlibs_CXX=no
  13658. ;;
  13659. *)
  13660. # FIXME: insert proper C++ library support
  13661. ld_shlibs_CXX=no
  13662. ;;
  13663. esac
  13664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13665. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13666. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13667. GCC_CXX=$GXX
  13668. LD_CXX=$LD
  13669. ## CAVEAT EMPTOR:
  13670. ## There is no encapsulation within the following macros, do not change
  13671. ## the running order or otherwise move them around unless you know exactly
  13672. ## what you are doing...
  13673. # Dependencies to place before and after the object being linked:
  13674. predep_objects_CXX=
  13675. postdep_objects_CXX=
  13676. predeps_CXX=
  13677. postdeps_CXX=
  13678. compiler_lib_search_path_CXX=
  13679. cat > conftest.$ac_ext <<_LT_EOF
  13680. class Foo
  13681. {
  13682. public:
  13683. Foo (void) { a = 0; }
  13684. private:
  13685. int a;
  13686. };
  13687. _LT_EOF
  13688. _lt_libdeps_save_CFLAGS=$CFLAGS
  13689. case "$CC $CFLAGS " in #(
  13690. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13691. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13692. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13693. esac
  13694. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13695. (eval $ac_compile) 2>&5
  13696. ac_status=$?
  13697. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13698. test $ac_status = 0; }; then
  13699. # Parse the compiler output and extract the necessary
  13700. # objects, libraries and library flags.
  13701. # Sentinel used to keep track of whether or not we are before
  13702. # the conftest object file.
  13703. pre_test_object_deps_done=no
  13704. for p in `eval "$output_verbose_link_cmd"`; do
  13705. case $prev$p in
  13706. -L* | -R* | -l*)
  13707. # Some compilers place space between "-{L,R}" and the path.
  13708. # Remove the space.
  13709. if test x-L = "x$p" ||
  13710. test x-R = "x$p" ||
  13711. test x-l = "x$p"; then
  13712. prev=$p
  13713. continue
  13714. fi
  13715. # Expand the sysroot to ease extracting the directories later.
  13716. if test -z "$prev"; then
  13717. case $p in
  13718. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13719. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13720. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13721. esac
  13722. fi
  13723. case $p in
  13724. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13725. esac
  13726. if test no = "$pre_test_object_deps_done"; then
  13727. case $prev in
  13728. -L | -R)
  13729. # Internal compiler library paths should come after those
  13730. # provided the user. The postdeps already come after the
  13731. # user supplied libs so there is no need to process them.
  13732. if test -z "$compiler_lib_search_path_CXX"; then
  13733. compiler_lib_search_path_CXX=$prev$p
  13734. else
  13735. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13736. fi
  13737. ;;
  13738. # The "-l" case would never come before the object being
  13739. # linked, so don't bother handling this case.
  13740. esac
  13741. else
  13742. if test -z "$postdeps_CXX"; then
  13743. postdeps_CXX=$prev$p
  13744. else
  13745. postdeps_CXX="${postdeps_CXX} $prev$p"
  13746. fi
  13747. fi
  13748. prev=
  13749. ;;
  13750. *.lto.$objext) ;; # Ignore GCC LTO objects
  13751. *.$objext)
  13752. # This assumes that the test object file only shows up
  13753. # once in the compiler output.
  13754. if test "$p" = "conftest.$objext"; then
  13755. pre_test_object_deps_done=yes
  13756. continue
  13757. fi
  13758. if test no = "$pre_test_object_deps_done"; then
  13759. if test -z "$predep_objects_CXX"; then
  13760. predep_objects_CXX=$p
  13761. else
  13762. predep_objects_CXX="$predep_objects_CXX $p"
  13763. fi
  13764. else
  13765. if test -z "$postdep_objects_CXX"; then
  13766. postdep_objects_CXX=$p
  13767. else
  13768. postdep_objects_CXX="$postdep_objects_CXX $p"
  13769. fi
  13770. fi
  13771. ;;
  13772. *) ;; # Ignore the rest.
  13773. esac
  13774. done
  13775. # Clean up.
  13776. rm -f a.out a.exe
  13777. else
  13778. echo "libtool.m4: error: problem compiling CXX test program"
  13779. fi
  13780. $RM -f confest.$objext
  13781. CFLAGS=$_lt_libdeps_save_CFLAGS
  13782. # PORTME: override above test on systems where it is broken
  13783. case $host_os in
  13784. interix[3-9]*)
  13785. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13786. # hack all around it, let's just trust "g++" to DTRT.
  13787. predep_objects_CXX=
  13788. postdep_objects_CXX=
  13789. postdeps_CXX=
  13790. ;;
  13791. esac
  13792. case " $postdeps_CXX " in
  13793. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13794. esac
  13795. compiler_lib_search_dirs_CXX=
  13796. if test -n "${compiler_lib_search_path_CXX}"; then
  13797. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13798. fi
  13799. lt_prog_compiler_wl_CXX=
  13800. lt_prog_compiler_pic_CXX=
  13801. lt_prog_compiler_static_CXX=
  13802. # C++ specific cases for pic, static, wl, etc.
  13803. if test yes = "$GXX"; then
  13804. lt_prog_compiler_wl_CXX='-Wl,'
  13805. lt_prog_compiler_static_CXX='-static'
  13806. case $host_os in
  13807. aix*)
  13808. # All AIX code is PIC.
  13809. if test ia64 = "$host_cpu"; then
  13810. # AIX 5 now supports IA64 processor
  13811. lt_prog_compiler_static_CXX='-Bstatic'
  13812. fi
  13813. lt_prog_compiler_pic_CXX='-fPIC'
  13814. ;;
  13815. amigaos*)
  13816. case $host_cpu in
  13817. powerpc)
  13818. # see comment about AmigaOS4 .so support
  13819. lt_prog_compiler_pic_CXX='-fPIC'
  13820. ;;
  13821. m68k)
  13822. # FIXME: we need at least 68020 code to build shared libraries, but
  13823. # adding the '-m68020' flag to GCC prevents building anything better,
  13824. # like '-m68040'.
  13825. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13826. ;;
  13827. esac
  13828. ;;
  13829. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13830. # PIC is the default for these OSes.
  13831. ;;
  13832. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13833. # This hack is so that the source file can tell whether it is being
  13834. # built for inclusion in a dll (and should export symbols for example).
  13835. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13836. # (--disable-auto-import) libraries
  13837. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13838. case $host_os in
  13839. os2*)
  13840. lt_prog_compiler_static_CXX='$wl-static'
  13841. ;;
  13842. esac
  13843. ;;
  13844. darwin* | rhapsody*)
  13845. # PIC is the default on this platform
  13846. # Common symbols not allowed in MH_DYLIB files
  13847. lt_prog_compiler_pic_CXX='-fno-common'
  13848. ;;
  13849. *djgpp*)
  13850. # DJGPP does not support shared libraries at all
  13851. lt_prog_compiler_pic_CXX=
  13852. ;;
  13853. haiku*)
  13854. # PIC is the default for Haiku.
  13855. # The "-static" flag exists, but is broken.
  13856. lt_prog_compiler_static_CXX=
  13857. ;;
  13858. interix[3-9]*)
  13859. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13860. # Instead, we relocate shared libraries at runtime.
  13861. ;;
  13862. sysv4*MP*)
  13863. if test -d /usr/nec; then
  13864. lt_prog_compiler_pic_CXX=-Kconform_pic
  13865. fi
  13866. ;;
  13867. hpux*)
  13868. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13869. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13870. # sets the default TLS model and affects inlining.
  13871. case $host_cpu in
  13872. hppa*64*)
  13873. ;;
  13874. *)
  13875. lt_prog_compiler_pic_CXX='-fPIC'
  13876. ;;
  13877. esac
  13878. ;;
  13879. *qnx* | *nto*)
  13880. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13881. # it will coredump.
  13882. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13883. ;;
  13884. *)
  13885. lt_prog_compiler_pic_CXX='-fPIC'
  13886. ;;
  13887. esac
  13888. else
  13889. case $host_os in
  13890. aix[4-9]*)
  13891. # All AIX code is PIC.
  13892. if test ia64 = "$host_cpu"; then
  13893. # AIX 5 now supports IA64 processor
  13894. lt_prog_compiler_static_CXX='-Bstatic'
  13895. else
  13896. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13897. fi
  13898. ;;
  13899. chorus*)
  13900. case $cc_basename in
  13901. cxch68*)
  13902. # Green Hills C++ Compiler
  13903. # _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"
  13904. ;;
  13905. esac
  13906. ;;
  13907. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13908. # This hack is so that the source file can tell whether it is being
  13909. # built for inclusion in a dll (and should export symbols for example).
  13910. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13911. ;;
  13912. dgux*)
  13913. case $cc_basename in
  13914. ec++*)
  13915. lt_prog_compiler_pic_CXX='-KPIC'
  13916. ;;
  13917. ghcx*)
  13918. # Green Hills C++ Compiler
  13919. lt_prog_compiler_pic_CXX='-pic'
  13920. ;;
  13921. *)
  13922. ;;
  13923. esac
  13924. ;;
  13925. freebsd* | dragonfly* | midnightbsd*)
  13926. # FreeBSD uses GNU C++
  13927. ;;
  13928. hpux9* | hpux10* | hpux11*)
  13929. case $cc_basename in
  13930. CC*)
  13931. lt_prog_compiler_wl_CXX='-Wl,'
  13932. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13933. if test ia64 != "$host_cpu"; then
  13934. lt_prog_compiler_pic_CXX='+Z'
  13935. fi
  13936. ;;
  13937. aCC*)
  13938. lt_prog_compiler_wl_CXX='-Wl,'
  13939. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13940. case $host_cpu in
  13941. hppa*64*|ia64*)
  13942. # +Z the default
  13943. ;;
  13944. *)
  13945. lt_prog_compiler_pic_CXX='+Z'
  13946. ;;
  13947. esac
  13948. ;;
  13949. *)
  13950. ;;
  13951. esac
  13952. ;;
  13953. interix*)
  13954. # This is c89, which is MS Visual C++ (no shared libs)
  13955. # Anyone wants to do a port?
  13956. ;;
  13957. irix5* | irix6* | nonstopux*)
  13958. case $cc_basename in
  13959. CC*)
  13960. lt_prog_compiler_wl_CXX='-Wl,'
  13961. lt_prog_compiler_static_CXX='-non_shared'
  13962. # CC pic flag -KPIC is the default.
  13963. ;;
  13964. *)
  13965. ;;
  13966. esac
  13967. ;;
  13968. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13969. case $cc_basename in
  13970. KCC*)
  13971. # KAI C++ Compiler
  13972. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13973. lt_prog_compiler_pic_CXX='-fPIC'
  13974. ;;
  13975. ecpc* )
  13976. # old Intel C++ for x86_64, which still supported -KPIC.
  13977. lt_prog_compiler_wl_CXX='-Wl,'
  13978. lt_prog_compiler_pic_CXX='-KPIC'
  13979. lt_prog_compiler_static_CXX='-static'
  13980. ;;
  13981. icpc* )
  13982. # Intel C++, used to be incompatible with GCC.
  13983. # ICC 10 doesn't accept -KPIC any more.
  13984. lt_prog_compiler_wl_CXX='-Wl,'
  13985. lt_prog_compiler_pic_CXX='-fPIC'
  13986. lt_prog_compiler_static_CXX='-static'
  13987. ;;
  13988. pgCC* | pgcpp*)
  13989. # Portland Group C++ compiler
  13990. lt_prog_compiler_wl_CXX='-Wl,'
  13991. lt_prog_compiler_pic_CXX='-fpic'
  13992. lt_prog_compiler_static_CXX='-Bstatic'
  13993. ;;
  13994. cxx*)
  13995. # Compaq C++
  13996. # Make sure the PIC flag is empty. It appears that all Alpha
  13997. # Linux and Compaq Tru64 Unix objects are PIC.
  13998. lt_prog_compiler_pic_CXX=
  13999. lt_prog_compiler_static_CXX='-non_shared'
  14000. ;;
  14001. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14002. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14003. lt_prog_compiler_wl_CXX='-Wl,'
  14004. lt_prog_compiler_pic_CXX='-qpic'
  14005. lt_prog_compiler_static_CXX='-qstaticlink'
  14006. ;;
  14007. *)
  14008. case `$CC -V 2>&1 | sed 5q` in
  14009. *Sun\ C*)
  14010. # Sun C++ 5.9
  14011. lt_prog_compiler_pic_CXX='-KPIC'
  14012. lt_prog_compiler_static_CXX='-Bstatic'
  14013. lt_prog_compiler_wl_CXX='-Qoption ld '
  14014. ;;
  14015. esac
  14016. ;;
  14017. esac
  14018. ;;
  14019. lynxos*)
  14020. ;;
  14021. m88k*)
  14022. ;;
  14023. mvs*)
  14024. case $cc_basename in
  14025. cxx*)
  14026. lt_prog_compiler_pic_CXX='-W c,exportall'
  14027. ;;
  14028. *)
  14029. ;;
  14030. esac
  14031. ;;
  14032. netbsd*)
  14033. ;;
  14034. *qnx* | *nto*)
  14035. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14036. # it will coredump.
  14037. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14038. ;;
  14039. osf3* | osf4* | osf5*)
  14040. case $cc_basename in
  14041. KCC*)
  14042. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14043. ;;
  14044. RCC*)
  14045. # Rational C++ 2.4.1
  14046. lt_prog_compiler_pic_CXX='-pic'
  14047. ;;
  14048. cxx*)
  14049. # Digital/Compaq C++
  14050. lt_prog_compiler_wl_CXX='-Wl,'
  14051. # Make sure the PIC flag is empty. It appears that all Alpha
  14052. # Linux and Compaq Tru64 Unix objects are PIC.
  14053. lt_prog_compiler_pic_CXX=
  14054. lt_prog_compiler_static_CXX='-non_shared'
  14055. ;;
  14056. *)
  14057. ;;
  14058. esac
  14059. ;;
  14060. psos*)
  14061. ;;
  14062. solaris*)
  14063. case $cc_basename in
  14064. CC* | sunCC*)
  14065. # Sun C++ 4.2, 5.x and Centerline C++
  14066. lt_prog_compiler_pic_CXX='-KPIC'
  14067. lt_prog_compiler_static_CXX='-Bstatic'
  14068. lt_prog_compiler_wl_CXX='-Qoption ld '
  14069. ;;
  14070. gcx*)
  14071. # Green Hills C++ Compiler
  14072. lt_prog_compiler_pic_CXX='-PIC'
  14073. ;;
  14074. *)
  14075. ;;
  14076. esac
  14077. ;;
  14078. sunos4*)
  14079. case $cc_basename in
  14080. CC*)
  14081. # Sun C++ 4.x
  14082. lt_prog_compiler_pic_CXX='-pic'
  14083. lt_prog_compiler_static_CXX='-Bstatic'
  14084. ;;
  14085. lcc*)
  14086. # Lucid
  14087. lt_prog_compiler_pic_CXX='-pic'
  14088. ;;
  14089. *)
  14090. ;;
  14091. esac
  14092. ;;
  14093. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14094. case $cc_basename in
  14095. CC*)
  14096. lt_prog_compiler_wl_CXX='-Wl,'
  14097. lt_prog_compiler_pic_CXX='-KPIC'
  14098. lt_prog_compiler_static_CXX='-Bstatic'
  14099. ;;
  14100. esac
  14101. ;;
  14102. tandem*)
  14103. case $cc_basename in
  14104. NCC*)
  14105. # NonStop-UX NCC 3.20
  14106. lt_prog_compiler_pic_CXX='-KPIC'
  14107. ;;
  14108. *)
  14109. ;;
  14110. esac
  14111. ;;
  14112. vxworks*)
  14113. ;;
  14114. *)
  14115. lt_prog_compiler_can_build_shared_CXX=no
  14116. ;;
  14117. esac
  14118. fi
  14119. case $host_os in
  14120. # For platforms that do not support PIC, -DPIC is meaningless:
  14121. *djgpp*)
  14122. lt_prog_compiler_pic_CXX=
  14123. ;;
  14124. *)
  14125. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14126. ;;
  14127. esac
  14128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14129. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14130. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14131. then :
  14132. printf %s "(cached) " >&6
  14133. else $as_nop
  14134. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14135. fi
  14136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14137. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14138. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14139. #
  14140. # Check to make sure the PIC flag actually works.
  14141. #
  14142. if test -n "$lt_prog_compiler_pic_CXX"; then
  14143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14144. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14145. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14146. then :
  14147. printf %s "(cached) " >&6
  14148. else $as_nop
  14149. lt_cv_prog_compiler_pic_works_CXX=no
  14150. ac_outfile=conftest.$ac_objext
  14151. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14152. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14153. # Insert the option either (1) after the last *FLAGS variable, or
  14154. # (2) before a word containing "conftest.", or (3) at the end.
  14155. # Note that $ac_compile itself does not contain backslashes and begins
  14156. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14157. # The option is referenced via a variable to avoid confusing sed.
  14158. lt_compile=`echo "$ac_compile" | $SED \
  14159. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14160. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14161. -e 's:$: $lt_compiler_flag:'`
  14162. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14163. (eval "$lt_compile" 2>conftest.err)
  14164. ac_status=$?
  14165. cat conftest.err >&5
  14166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14167. if (exit $ac_status) && test -s "$ac_outfile"; then
  14168. # The compiler can only warn and ignore the option if not recognized
  14169. # So say no if there are warnings other than the usual output.
  14170. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14171. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14172. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14173. lt_cv_prog_compiler_pic_works_CXX=yes
  14174. fi
  14175. fi
  14176. $RM conftest*
  14177. fi
  14178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14179. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14180. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14181. case $lt_prog_compiler_pic_CXX in
  14182. "" | " "*) ;;
  14183. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14184. esac
  14185. else
  14186. lt_prog_compiler_pic_CXX=
  14187. lt_prog_compiler_can_build_shared_CXX=no
  14188. fi
  14189. fi
  14190. #
  14191. # Check to make sure the static flag actually works.
  14192. #
  14193. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14195. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14196. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14197. then :
  14198. printf %s "(cached) " >&6
  14199. else $as_nop
  14200. lt_cv_prog_compiler_static_works_CXX=no
  14201. save_LDFLAGS=$LDFLAGS
  14202. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14203. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14204. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14205. # The linker can only warn and ignore the option if not recognized
  14206. # So say no if there are warnings
  14207. if test -s conftest.err; then
  14208. # Append any errors to the config.log.
  14209. cat conftest.err 1>&5
  14210. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14211. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14212. if diff conftest.exp conftest.er2 >/dev/null; then
  14213. lt_cv_prog_compiler_static_works_CXX=yes
  14214. fi
  14215. else
  14216. lt_cv_prog_compiler_static_works_CXX=yes
  14217. fi
  14218. fi
  14219. $RM -r conftest*
  14220. LDFLAGS=$save_LDFLAGS
  14221. fi
  14222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14223. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14224. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14225. :
  14226. else
  14227. lt_prog_compiler_static_CXX=
  14228. fi
  14229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14230. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14231. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14232. then :
  14233. printf %s "(cached) " >&6
  14234. else $as_nop
  14235. lt_cv_prog_compiler_c_o_CXX=no
  14236. $RM -r conftest 2>/dev/null
  14237. mkdir conftest
  14238. cd conftest
  14239. mkdir out
  14240. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14241. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14242. # Insert the option either (1) after the last *FLAGS variable, or
  14243. # (2) before a word containing "conftest.", or (3) at the end.
  14244. # Note that $ac_compile itself does not contain backslashes and begins
  14245. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14246. lt_compile=`echo "$ac_compile" | $SED \
  14247. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14248. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14249. -e 's:$: $lt_compiler_flag:'`
  14250. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14251. (eval "$lt_compile" 2>out/conftest.err)
  14252. ac_status=$?
  14253. cat out/conftest.err >&5
  14254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14255. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14256. then
  14257. # The compiler can only warn and ignore the option if not recognized
  14258. # So say no if there are warnings
  14259. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14260. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14261. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14262. lt_cv_prog_compiler_c_o_CXX=yes
  14263. fi
  14264. fi
  14265. chmod u+w . 2>&5
  14266. $RM conftest*
  14267. # SGI C++ compiler will create directory out/ii_files/ for
  14268. # template instantiation
  14269. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14270. $RM out/* && rmdir out
  14271. cd ..
  14272. $RM -r conftest
  14273. $RM conftest*
  14274. fi
  14275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14276. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14278. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14279. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14280. then :
  14281. printf %s "(cached) " >&6
  14282. else $as_nop
  14283. lt_cv_prog_compiler_c_o_CXX=no
  14284. $RM -r conftest 2>/dev/null
  14285. mkdir conftest
  14286. cd conftest
  14287. mkdir out
  14288. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14289. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14290. # Insert the option either (1) after the last *FLAGS variable, or
  14291. # (2) before a word containing "conftest.", or (3) at the end.
  14292. # Note that $ac_compile itself does not contain backslashes and begins
  14293. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14294. lt_compile=`echo "$ac_compile" | $SED \
  14295. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14296. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14297. -e 's:$: $lt_compiler_flag:'`
  14298. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14299. (eval "$lt_compile" 2>out/conftest.err)
  14300. ac_status=$?
  14301. cat out/conftest.err >&5
  14302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14303. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14304. then
  14305. # The compiler can only warn and ignore the option if not recognized
  14306. # So say no if there are warnings
  14307. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14308. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14309. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14310. lt_cv_prog_compiler_c_o_CXX=yes
  14311. fi
  14312. fi
  14313. chmod u+w . 2>&5
  14314. $RM conftest*
  14315. # SGI C++ compiler will create directory out/ii_files/ for
  14316. # template instantiation
  14317. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14318. $RM out/* && rmdir out
  14319. cd ..
  14320. $RM -r conftest
  14321. $RM conftest*
  14322. fi
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14324. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14325. hard_links=nottested
  14326. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14327. # do not overwrite the value of need_locks provided by the user
  14328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14329. printf %s "checking if we can lock with hard links... " >&6; }
  14330. hard_links=yes
  14331. $RM conftest*
  14332. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14333. touch conftest.a
  14334. ln conftest.a conftest.b 2>&5 || hard_links=no
  14335. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14337. printf "%s\n" "$hard_links" >&6; }
  14338. if test no = "$hard_links"; then
  14339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14340. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14341. need_locks=warn
  14342. fi
  14343. else
  14344. need_locks=no
  14345. fi
  14346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14347. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14348. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14349. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14350. case $host_os in
  14351. aix[4-9]*)
  14352. # If we're using GNU nm, then we don't want the "-C" option.
  14353. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14354. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14355. # weak defined symbols like other global defined symbols, whereas
  14356. # GNU nm marks them as "W".
  14357. # While the 'weak' keyword is ignored in the Export File, we need
  14358. # it in the Import File for the 'aix-soname' feature, so we have
  14359. # to replace the "-B" option with "-P" for AIX nm.
  14360. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14361. 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'
  14362. else
  14363. 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'
  14364. fi
  14365. ;;
  14366. pw32*)
  14367. export_symbols_cmds_CXX=$ltdll_cmds
  14368. ;;
  14369. cygwin* | mingw* | cegcc*)
  14370. case $cc_basename in
  14371. cl*)
  14372. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14373. ;;
  14374. *)
  14375. 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'
  14376. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14377. ;;
  14378. esac
  14379. ;;
  14380. *)
  14381. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14382. ;;
  14383. esac
  14384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14385. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14386. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14387. with_gnu_ld_CXX=$with_gnu_ld
  14388. #
  14389. # Do we need to explicitly link libc?
  14390. #
  14391. case "x$archive_cmds_need_lc_CXX" in
  14392. x|xyes)
  14393. # Assume -lc should be added
  14394. archive_cmds_need_lc_CXX=yes
  14395. if test yes,yes = "$GCC,$enable_shared"; then
  14396. case $archive_cmds_CXX in
  14397. *'~'*)
  14398. # FIXME: we may have to deal with multi-command sequences.
  14399. ;;
  14400. '$CC '*)
  14401. # Test whether the compiler implicitly links with -lc since on some
  14402. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14403. # to ld, don't add -lc before -lgcc.
  14404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14405. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14406. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14407. then :
  14408. printf %s "(cached) " >&6
  14409. else $as_nop
  14410. $RM conftest*
  14411. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14413. (eval $ac_compile) 2>&5
  14414. ac_status=$?
  14415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14416. test $ac_status = 0; } 2>conftest.err; then
  14417. soname=conftest
  14418. lib=conftest
  14419. libobjs=conftest.$ac_objext
  14420. deplibs=
  14421. wl=$lt_prog_compiler_wl_CXX
  14422. pic_flag=$lt_prog_compiler_pic_CXX
  14423. compiler_flags=-v
  14424. linker_flags=-v
  14425. verstring=
  14426. output_objdir=.
  14427. libname=conftest
  14428. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14429. allow_undefined_flag_CXX=
  14430. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14431. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14432. ac_status=$?
  14433. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14434. test $ac_status = 0; }
  14435. then
  14436. lt_cv_archive_cmds_need_lc_CXX=no
  14437. else
  14438. lt_cv_archive_cmds_need_lc_CXX=yes
  14439. fi
  14440. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14441. else
  14442. cat conftest.err 1>&5
  14443. fi
  14444. $RM conftest*
  14445. fi
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14447. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14448. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14449. ;;
  14450. esac
  14451. fi
  14452. ;;
  14453. esac
  14454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14455. printf %s "checking dynamic linker characteristics... " >&6; }
  14456. library_names_spec=
  14457. libname_spec='lib$name'
  14458. soname_spec=
  14459. shrext_cmds=.so
  14460. postinstall_cmds=
  14461. postuninstall_cmds=
  14462. finish_cmds=
  14463. finish_eval=
  14464. shlibpath_var=
  14465. shlibpath_overrides_runpath=unknown
  14466. version_type=none
  14467. dynamic_linker="$host_os ld.so"
  14468. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14469. need_lib_prefix=unknown
  14470. hardcode_into_libs=no
  14471. # when you set need_version to no, make sure it does not cause -set_version
  14472. # flags to be left without arguments
  14473. need_version=unknown
  14474. case $host_os in
  14475. aix3*)
  14476. version_type=linux # correct to gnu/linux during the next big refactor
  14477. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14478. shlibpath_var=LIBPATH
  14479. # AIX 3 has no versioning support, so we append a major version to the name.
  14480. soname_spec='$libname$release$shared_ext$major'
  14481. ;;
  14482. aix[4-9]*)
  14483. version_type=linux # correct to gnu/linux during the next big refactor
  14484. need_lib_prefix=no
  14485. need_version=no
  14486. hardcode_into_libs=yes
  14487. if test ia64 = "$host_cpu"; then
  14488. # AIX 5 supports IA64
  14489. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14490. shlibpath_var=LD_LIBRARY_PATH
  14491. else
  14492. # With GCC up to 2.95.x, collect2 would create an import file
  14493. # for dependence libraries. The import file would start with
  14494. # the line '#! .'. This would cause the generated library to
  14495. # depend on '.', always an invalid library. This was fixed in
  14496. # development snapshots of GCC prior to 3.0.
  14497. case $host_os in
  14498. aix4 | aix4.[01] | aix4.[01].*)
  14499. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14500. echo ' yes '
  14501. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14502. :
  14503. else
  14504. can_build_shared=no
  14505. fi
  14506. ;;
  14507. esac
  14508. # Using Import Files as archive members, it is possible to support
  14509. # filename-based versioning of shared library archives on AIX. While
  14510. # this would work for both with and without runtime linking, it will
  14511. # prevent static linking of such archives. So we do filename-based
  14512. # shared library versioning with .so extension only, which is used
  14513. # when both runtime linking and shared linking is enabled.
  14514. # Unfortunately, runtime linking may impact performance, so we do
  14515. # not want this to be the default eventually. Also, we use the
  14516. # versioned .so libs for executables only if there is the -brtl
  14517. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14518. # To allow for filename-based versioning support, we need to create
  14519. # libNAME.so.V as an archive file, containing:
  14520. # *) an Import File, referring to the versioned filename of the
  14521. # archive as well as the shared archive member, telling the
  14522. # bitwidth (32 or 64) of that shared object, and providing the
  14523. # list of exported symbols of that shared object, eventually
  14524. # decorated with the 'weak' keyword
  14525. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14526. # it being seen by the linker.
  14527. # At run time we better use the real file rather than another symlink,
  14528. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14529. case $with_aix_soname,$aix_use_runtimelinking in
  14530. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14531. # soname into executable. Probably we can add versioning support to
  14532. # collect2, so additional links can be useful in future.
  14533. aix,yes) # traditional libtool
  14534. dynamic_linker='AIX unversionable lib.so'
  14535. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14536. # instead of lib<name>.a to let people know that these are not
  14537. # typical AIX shared libraries.
  14538. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14539. ;;
  14540. aix,no) # traditional AIX only
  14541. dynamic_linker='AIX lib.a(lib.so.V)'
  14542. # We preserve .a as extension for shared libraries through AIX4.2
  14543. # and later when we are not doing run time linking.
  14544. library_names_spec='$libname$release.a $libname.a'
  14545. soname_spec='$libname$release$shared_ext$major'
  14546. ;;
  14547. svr4,*) # full svr4 only
  14548. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14549. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14550. # We do not specify a path in Import Files, so LIBPATH fires.
  14551. shlibpath_overrides_runpath=yes
  14552. ;;
  14553. *,yes) # both, prefer svr4
  14554. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14555. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14556. # unpreferred sharedlib libNAME.a needs extra handling
  14557. 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"'
  14558. 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"'
  14559. # We do not specify a path in Import Files, so LIBPATH fires.
  14560. shlibpath_overrides_runpath=yes
  14561. ;;
  14562. *,no) # both, prefer aix
  14563. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14564. library_names_spec='$libname$release.a $libname.a'
  14565. soname_spec='$libname$release$shared_ext$major'
  14566. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14567. 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)'
  14568. 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"'
  14569. ;;
  14570. esac
  14571. shlibpath_var=LIBPATH
  14572. fi
  14573. ;;
  14574. amigaos*)
  14575. case $host_cpu in
  14576. powerpc)
  14577. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14578. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14580. ;;
  14581. m68k)
  14582. library_names_spec='$libname.ixlibrary $libname.a'
  14583. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14584. 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'
  14585. ;;
  14586. esac
  14587. ;;
  14588. beos*)
  14589. library_names_spec='$libname$shared_ext'
  14590. dynamic_linker="$host_os ld.so"
  14591. shlibpath_var=LIBRARY_PATH
  14592. ;;
  14593. bsdi[45]*)
  14594. version_type=linux # correct to gnu/linux during the next big refactor
  14595. need_version=no
  14596. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14597. soname_spec='$libname$release$shared_ext$major'
  14598. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14599. shlibpath_var=LD_LIBRARY_PATH
  14600. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14601. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14602. # the default ld.so.conf also contains /usr/contrib/lib and
  14603. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14604. # libtool to hard-code these into programs
  14605. ;;
  14606. cygwin* | mingw* | pw32* | cegcc*)
  14607. version_type=windows
  14608. shrext_cmds=.dll
  14609. need_version=no
  14610. need_lib_prefix=no
  14611. case $GCC,$cc_basename in
  14612. yes,*)
  14613. # gcc
  14614. library_names_spec='$libname.dll.a'
  14615. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14616. postinstall_cmds='base_file=`basename \$file`~
  14617. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14618. dldir=$destdir/`dirname \$dlpath`~
  14619. test -d \$dldir || mkdir -p \$dldir~
  14620. $install_prog $dir/$dlname \$dldir/$dlname~
  14621. chmod a+x \$dldir/$dlname~
  14622. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14623. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14624. fi'
  14625. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14626. dlpath=$dir/\$dldll~
  14627. $RM \$dlpath'
  14628. shlibpath_overrides_runpath=yes
  14629. case $host_os in
  14630. cygwin*)
  14631. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14632. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14633. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14634. ;;
  14635. mingw* | cegcc*)
  14636. # MinGW DLLs use traditional 'lib' prefix
  14637. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14638. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14639. ;;
  14640. pw32*)
  14641. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14642. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14643. ;;
  14644. esac
  14645. dynamic_linker='Win32 ld.exe'
  14646. ;;
  14647. *,cl*)
  14648. # Native MSVC
  14649. libname_spec='$name'
  14650. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14651. library_names_spec='$libname.dll.lib'
  14652. case $build_os in
  14653. mingw*)
  14654. sys_lib_search_path_spec=
  14655. lt_save_ifs=$IFS
  14656. IFS=';'
  14657. for lt_path in $LIB
  14658. do
  14659. IFS=$lt_save_ifs
  14660. # Let DOS variable expansion print the short 8.3 style file name.
  14661. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14662. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14663. done
  14664. IFS=$lt_save_ifs
  14665. # Convert to MSYS style.
  14666. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14667. ;;
  14668. cygwin*)
  14669. # Convert to unix form, then to dos form, then back to unix form
  14670. # but this time dos style (no spaces!) so that the unix form looks
  14671. # like /cygdrive/c/PROGRA~1:/cygdr...
  14672. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14673. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14674. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14675. ;;
  14676. *)
  14677. sys_lib_search_path_spec=$LIB
  14678. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14679. # It is most probably a Windows format PATH.
  14680. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14681. else
  14682. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14683. fi
  14684. # FIXME: find the short name or the path components, as spaces are
  14685. # common. (e.g. "Program Files" -> "PROGRA~1")
  14686. ;;
  14687. esac
  14688. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14689. postinstall_cmds='base_file=`basename \$file`~
  14690. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14691. dldir=$destdir/`dirname \$dlpath`~
  14692. test -d \$dldir || mkdir -p \$dldir~
  14693. $install_prog $dir/$dlname \$dldir/$dlname'
  14694. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14695. dlpath=$dir/\$dldll~
  14696. $RM \$dlpath'
  14697. shlibpath_overrides_runpath=yes
  14698. dynamic_linker='Win32 link.exe'
  14699. ;;
  14700. *)
  14701. # Assume MSVC wrapper
  14702. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14703. dynamic_linker='Win32 ld.exe'
  14704. ;;
  14705. esac
  14706. # FIXME: first we should search . and the directory the executable is in
  14707. shlibpath_var=PATH
  14708. ;;
  14709. darwin* | rhapsody*)
  14710. dynamic_linker="$host_os dyld"
  14711. version_type=darwin
  14712. need_lib_prefix=no
  14713. need_version=no
  14714. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14715. soname_spec='$libname$release$major$shared_ext'
  14716. shlibpath_overrides_runpath=yes
  14717. shlibpath_var=DYLD_LIBRARY_PATH
  14718. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14719. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14720. ;;
  14721. dgux*)
  14722. version_type=linux # correct to gnu/linux during the next big refactor
  14723. need_lib_prefix=no
  14724. need_version=no
  14725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14726. soname_spec='$libname$release$shared_ext$major'
  14727. shlibpath_var=LD_LIBRARY_PATH
  14728. ;;
  14729. freebsd* | dragonfly* | midnightbsd*)
  14730. # DragonFly does not have aout. When/if they implement a new
  14731. # versioning mechanism, adjust this.
  14732. if test -x /usr/bin/objformat; then
  14733. objformat=`/usr/bin/objformat`
  14734. else
  14735. case $host_os in
  14736. freebsd[23].*) objformat=aout ;;
  14737. *) objformat=elf ;;
  14738. esac
  14739. fi
  14740. version_type=freebsd-$objformat
  14741. case $version_type in
  14742. freebsd-elf*)
  14743. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14744. soname_spec='$libname$release$shared_ext$major'
  14745. need_version=no
  14746. need_lib_prefix=no
  14747. ;;
  14748. freebsd-*)
  14749. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14750. need_version=yes
  14751. ;;
  14752. esac
  14753. shlibpath_var=LD_LIBRARY_PATH
  14754. case $host_os in
  14755. freebsd2.*)
  14756. shlibpath_overrides_runpath=yes
  14757. ;;
  14758. freebsd3.[01]* | freebsdelf3.[01]*)
  14759. shlibpath_overrides_runpath=yes
  14760. hardcode_into_libs=yes
  14761. ;;
  14762. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14763. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14764. shlibpath_overrides_runpath=no
  14765. hardcode_into_libs=yes
  14766. ;;
  14767. *) # from 4.6 on, and DragonFly
  14768. shlibpath_overrides_runpath=yes
  14769. hardcode_into_libs=yes
  14770. ;;
  14771. esac
  14772. ;;
  14773. haiku*)
  14774. version_type=linux # correct to gnu/linux during the next big refactor
  14775. need_lib_prefix=no
  14776. need_version=no
  14777. dynamic_linker="$host_os runtime_loader"
  14778. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14779. soname_spec='$libname$release$shared_ext$major'
  14780. shlibpath_var=LIBRARY_PATH
  14781. shlibpath_overrides_runpath=no
  14782. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14783. hardcode_into_libs=yes
  14784. ;;
  14785. hpux9* | hpux10* | hpux11*)
  14786. # Give a soname corresponding to the major version so that dld.sl refuses to
  14787. # link against other versions.
  14788. version_type=sunos
  14789. need_lib_prefix=no
  14790. need_version=no
  14791. case $host_cpu in
  14792. ia64*)
  14793. shrext_cmds='.so'
  14794. hardcode_into_libs=yes
  14795. dynamic_linker="$host_os dld.so"
  14796. shlibpath_var=LD_LIBRARY_PATH
  14797. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14798. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14799. soname_spec='$libname$release$shared_ext$major'
  14800. if test 32 = "$HPUX_IA64_MODE"; then
  14801. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14802. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14803. else
  14804. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14805. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14806. fi
  14807. ;;
  14808. hppa*64*)
  14809. shrext_cmds='.sl'
  14810. hardcode_into_libs=yes
  14811. dynamic_linker="$host_os dld.sl"
  14812. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14813. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14814. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14815. soname_spec='$libname$release$shared_ext$major'
  14816. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14817. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14818. ;;
  14819. *)
  14820. shrext_cmds='.sl'
  14821. dynamic_linker="$host_os dld.sl"
  14822. shlibpath_var=SHLIB_PATH
  14823. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  14827. esac
  14828. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14829. postinstall_cmds='chmod 555 $lib'
  14830. # or fails outright, so override atomically:
  14831. install_override_mode=555
  14832. ;;
  14833. interix[3-9]*)
  14834. version_type=linux # correct to gnu/linux during the next big refactor
  14835. need_lib_prefix=no
  14836. need_version=no
  14837. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14838. soname_spec='$libname$release$shared_ext$major'
  14839. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14840. shlibpath_var=LD_LIBRARY_PATH
  14841. shlibpath_overrides_runpath=no
  14842. hardcode_into_libs=yes
  14843. ;;
  14844. irix5* | irix6* | nonstopux*)
  14845. case $host_os in
  14846. nonstopux*) version_type=nonstopux ;;
  14847. *)
  14848. if test yes = "$lt_cv_prog_gnu_ld"; then
  14849. version_type=linux # correct to gnu/linux during the next big refactor
  14850. else
  14851. version_type=irix
  14852. fi ;;
  14853. esac
  14854. need_lib_prefix=no
  14855. need_version=no
  14856. soname_spec='$libname$release$shared_ext$major'
  14857. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14858. case $host_os in
  14859. irix5* | nonstopux*)
  14860. libsuff= shlibsuff=
  14861. ;;
  14862. *)
  14863. case $LD in # libtool.m4 will add one of these switches to LD
  14864. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14865. libsuff= shlibsuff= libmagic=32-bit;;
  14866. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14867. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14868. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14869. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14870. *) libsuff= shlibsuff= libmagic=never-match;;
  14871. esac
  14872. ;;
  14873. esac
  14874. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14875. shlibpath_overrides_runpath=no
  14876. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14877. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14878. hardcode_into_libs=yes
  14879. ;;
  14880. # No shared lib support for Linux oldld, aout, or coff.
  14881. linux*oldld* | linux*aout* | linux*coff*)
  14882. dynamic_linker=no
  14883. ;;
  14884. linux*android*)
  14885. version_type=none # Android doesn't support versioned libraries.
  14886. need_lib_prefix=no
  14887. need_version=no
  14888. library_names_spec='$libname$release$shared_ext'
  14889. soname_spec='$libname$release$shared_ext'
  14890. finish_cmds=
  14891. shlibpath_var=LD_LIBRARY_PATH
  14892. shlibpath_overrides_runpath=yes
  14893. # This implies no fast_install, which is unacceptable.
  14894. # Some rework will be needed to allow for fast_install
  14895. # before this can be enabled.
  14896. hardcode_into_libs=yes
  14897. dynamic_linker='Android linker'
  14898. # Don't embed -rpath directories since the linker doesn't support them.
  14899. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14900. ;;
  14901. # This must be glibc/ELF.
  14902. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14903. version_type=linux # correct to gnu/linux during the next big refactor
  14904. need_lib_prefix=no
  14905. need_version=no
  14906. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14907. soname_spec='$libname$release$shared_ext$major'
  14908. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14909. shlibpath_var=LD_LIBRARY_PATH
  14910. shlibpath_overrides_runpath=no
  14911. # Some binutils ld are patched to set DT_RUNPATH
  14912. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14913. then :
  14914. printf %s "(cached) " >&6
  14915. else $as_nop
  14916. lt_cv_shlibpath_overrides_runpath=no
  14917. save_LDFLAGS=$LDFLAGS
  14918. save_libdir=$libdir
  14919. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14920. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. /* end confdefs.h. */
  14923. int
  14924. main (void)
  14925. {
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_cxx_try_link "$LINENO"
  14931. then :
  14932. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14933. then :
  14934. lt_cv_shlibpath_overrides_runpath=yes
  14935. fi
  14936. fi
  14937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14938. conftest$ac_exeext conftest.$ac_ext
  14939. LDFLAGS=$save_LDFLAGS
  14940. libdir=$save_libdir
  14941. fi
  14942. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14943. # This implies no fast_install, which is unacceptable.
  14944. # Some rework will be needed to allow for fast_install
  14945. # before this can be enabled.
  14946. hardcode_into_libs=yes
  14947. # Add ABI-specific directories to the system library path.
  14948. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14949. # Ideally, we could use ldconfig to report *all* directores which are
  14950. # searched for libraries, however this is still not possible. Aside from not
  14951. # being certain /sbin/ldconfig is available, command
  14952. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14953. # even though it is searched at run-time. Try to do the best guess by
  14954. # appending ld.so.conf contents (and includes) to the search path.
  14955. if test -f /etc/ld.so.conf; then
  14956. 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' ' '`
  14957. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14958. fi
  14959. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14960. # powerpc, because MkLinux only supported shared libraries with the
  14961. # GNU dynamic linker. Since this was broken with cross compilers,
  14962. # most powerpc-linux boxes support dynamic linking these days and
  14963. # people can always --disable-shared, the test was removed, and we
  14964. # assume the GNU/Linux dynamic linker is in use.
  14965. dynamic_linker='GNU/Linux ld.so'
  14966. ;;
  14967. netbsd*)
  14968. version_type=sunos
  14969. need_lib_prefix=no
  14970. need_version=no
  14971. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14972. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14974. dynamic_linker='NetBSD (a.out) ld.so'
  14975. else
  14976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14977. soname_spec='$libname$release$shared_ext$major'
  14978. dynamic_linker='NetBSD ld.elf_so'
  14979. fi
  14980. shlibpath_var=LD_LIBRARY_PATH
  14981. shlibpath_overrides_runpath=yes
  14982. hardcode_into_libs=yes
  14983. ;;
  14984. newsos6)
  14985. version_type=linux # correct to gnu/linux during the next big refactor
  14986. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14987. shlibpath_var=LD_LIBRARY_PATH
  14988. shlibpath_overrides_runpath=yes
  14989. ;;
  14990. *nto* | *qnx*)
  14991. version_type=qnx
  14992. need_lib_prefix=no
  14993. need_version=no
  14994. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14995. soname_spec='$libname$release$shared_ext$major'
  14996. shlibpath_var=LD_LIBRARY_PATH
  14997. shlibpath_overrides_runpath=no
  14998. hardcode_into_libs=yes
  14999. dynamic_linker='ldqnx.so'
  15000. ;;
  15001. openbsd* | bitrig*)
  15002. version_type=sunos
  15003. sys_lib_dlsearch_path_spec=/usr/lib
  15004. need_lib_prefix=no
  15005. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15006. need_version=no
  15007. else
  15008. need_version=yes
  15009. fi
  15010. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15011. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15012. shlibpath_var=LD_LIBRARY_PATH
  15013. shlibpath_overrides_runpath=yes
  15014. ;;
  15015. os2*)
  15016. libname_spec='$name'
  15017. shrext_cmds=.dll
  15018. need_lib_prefix=no
  15019. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15020. # SDL customization: removed versioning support.
  15021. # version_type=windows
  15022. # need_version=no
  15023. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15024. # v=$($ECHO $release$versuffix | tr -d .-);
  15025. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15026. # $ECHO $n$v`$shared_ext'
  15027. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15028. library_names_spec='${libname}_dll.$libext'
  15029. dynamic_linker='OS/2 ld.exe'
  15030. shlibpath_var=BEGINLIBPATH
  15031. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15032. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15033. postinstall_cmds='base_file=`basename \$file`~
  15034. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15035. dldir=$destdir/`dirname \$dlpath`~
  15036. test -d \$dldir || mkdir -p \$dldir~
  15037. $install_prog $dir/$dlname \$dldir/$dlname~
  15038. chmod a+x \$dldir/$dlname~
  15039. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15040. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15041. fi'
  15042. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15043. dlpath=$dir/\$dldll~
  15044. $RM \$dlpath'
  15045. ;;
  15046. osf3* | osf4* | osf5*)
  15047. version_type=osf
  15048. need_lib_prefix=no
  15049. need_version=no
  15050. soname_spec='$libname$release$shared_ext$major'
  15051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15052. shlibpath_var=LD_LIBRARY_PATH
  15053. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15055. ;;
  15056. rdos*)
  15057. dynamic_linker=no
  15058. ;;
  15059. solaris*)
  15060. version_type=linux # correct to gnu/linux during the next big refactor
  15061. need_lib_prefix=no
  15062. need_version=no
  15063. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15064. soname_spec='$libname$release$shared_ext$major'
  15065. shlibpath_var=LD_LIBRARY_PATH
  15066. shlibpath_overrides_runpath=yes
  15067. hardcode_into_libs=yes
  15068. # ldd complains unless libraries are executable
  15069. postinstall_cmds='chmod +x $lib'
  15070. ;;
  15071. sunos4*)
  15072. version_type=sunos
  15073. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15074. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15075. shlibpath_var=LD_LIBRARY_PATH
  15076. shlibpath_overrides_runpath=yes
  15077. if test yes = "$with_gnu_ld"; then
  15078. need_lib_prefix=no
  15079. fi
  15080. need_version=yes
  15081. ;;
  15082. sysv4 | sysv4.3*)
  15083. version_type=linux # correct to gnu/linux during the next big refactor
  15084. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15085. soname_spec='$libname$release$shared_ext$major'
  15086. shlibpath_var=LD_LIBRARY_PATH
  15087. case $host_vendor in
  15088. sni)
  15089. shlibpath_overrides_runpath=no
  15090. need_lib_prefix=no
  15091. runpath_var=LD_RUN_PATH
  15092. ;;
  15093. siemens)
  15094. need_lib_prefix=no
  15095. ;;
  15096. motorola)
  15097. need_lib_prefix=no
  15098. need_version=no
  15099. shlibpath_overrides_runpath=no
  15100. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15101. ;;
  15102. esac
  15103. ;;
  15104. sysv4*MP*)
  15105. if test -d /usr/nec; then
  15106. version_type=linux # correct to gnu/linux during the next big refactor
  15107. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15108. soname_spec='$libname$shared_ext.$major'
  15109. shlibpath_var=LD_LIBRARY_PATH
  15110. fi
  15111. ;;
  15112. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15113. version_type=sco
  15114. need_lib_prefix=no
  15115. need_version=no
  15116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15117. soname_spec='$libname$release$shared_ext$major'
  15118. shlibpath_var=LD_LIBRARY_PATH
  15119. shlibpath_overrides_runpath=yes
  15120. hardcode_into_libs=yes
  15121. if test yes = "$with_gnu_ld"; then
  15122. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15123. else
  15124. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15125. case $host_os in
  15126. sco3.2v5*)
  15127. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15128. ;;
  15129. esac
  15130. fi
  15131. sys_lib_dlsearch_path_spec='/usr/lib'
  15132. ;;
  15133. tpf*)
  15134. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15135. version_type=linux # correct to gnu/linux during the next big refactor
  15136. need_lib_prefix=no
  15137. need_version=no
  15138. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15139. shlibpath_var=LD_LIBRARY_PATH
  15140. shlibpath_overrides_runpath=no
  15141. hardcode_into_libs=yes
  15142. ;;
  15143. uts4*)
  15144. version_type=linux # correct to gnu/linux during the next big refactor
  15145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15146. soname_spec='$libname$release$shared_ext$major'
  15147. shlibpath_var=LD_LIBRARY_PATH
  15148. ;;
  15149. *)
  15150. dynamic_linker=no
  15151. ;;
  15152. esac
  15153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15154. printf "%s\n" "$dynamic_linker" >&6; }
  15155. test no = "$dynamic_linker" && can_build_shared=no
  15156. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15157. if test yes = "$GCC"; then
  15158. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15159. fi
  15160. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15161. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15162. fi
  15163. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15164. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15165. fi
  15166. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15167. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15168. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15169. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15170. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15171. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15173. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15174. hardcode_action_CXX=
  15175. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15176. test -n "$runpath_var_CXX" ||
  15177. test yes = "$hardcode_automatic_CXX"; then
  15178. # We can hardcode non-existent directories.
  15179. if test no != "$hardcode_direct_CXX" &&
  15180. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15181. # have to relink, otherwise we might link with an installed library
  15182. # when we should be linking with a yet-to-be-installed one
  15183. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15184. test no != "$hardcode_minus_L_CXX"; then
  15185. # Linking always hardcodes the temporary library directory.
  15186. hardcode_action_CXX=relink
  15187. else
  15188. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15189. hardcode_action_CXX=immediate
  15190. fi
  15191. else
  15192. # We cannot hardcode anything, or else we can only hardcode existing
  15193. # directories.
  15194. hardcode_action_CXX=unsupported
  15195. fi
  15196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15197. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15198. if test relink = "$hardcode_action_CXX" ||
  15199. test yes = "$inherit_rpath_CXX"; then
  15200. # Fast installation is not supported
  15201. enable_fast_install=no
  15202. elif test yes = "$shlibpath_overrides_runpath" ||
  15203. test no = "$enable_shared"; then
  15204. # Fast installation is not necessary
  15205. enable_fast_install=needless
  15206. fi
  15207. fi # test -n "$compiler"
  15208. CC=$lt_save_CC
  15209. CFLAGS=$lt_save_CFLAGS
  15210. LDCXX=$LD
  15211. LD=$lt_save_LD
  15212. GCC=$lt_save_GCC
  15213. with_gnu_ld=$lt_save_with_gnu_ld
  15214. lt_cv_path_LDCXX=$lt_cv_path_LD
  15215. lt_cv_path_LD=$lt_save_path_LD
  15216. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15217. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15218. fi # test yes != "$_lt_caught_CXX_error"
  15219. ac_ext=c
  15220. ac_cpp='$CPP $CPPFLAGS'
  15221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15225. printf %s "checking for egrep... " >&6; }
  15226. if test ${ac_cv_path_EGREP+y}
  15227. then :
  15228. printf %s "(cached) " >&6
  15229. else $as_nop
  15230. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15231. then ac_cv_path_EGREP="$GREP -E"
  15232. else
  15233. if test -z "$EGREP"; then
  15234. ac_path_EGREP_found=false
  15235. # Loop through the user's path and test for each of PROGNAME-LIST
  15236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15237. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15238. do
  15239. IFS=$as_save_IFS
  15240. case $as_dir in #(((
  15241. '') as_dir=./ ;;
  15242. */) ;;
  15243. *) as_dir=$as_dir/ ;;
  15244. esac
  15245. for ac_prog in egrep
  15246. do
  15247. for ac_exec_ext in '' $ac_executable_extensions; do
  15248. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15249. as_fn_executable_p "$ac_path_EGREP" || continue
  15250. # Check for GNU ac_path_EGREP and select it if it is found.
  15251. # Check for GNU $ac_path_EGREP
  15252. case `"$ac_path_EGREP" --version 2>&1` in
  15253. *GNU*)
  15254. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15255. *)
  15256. ac_count=0
  15257. printf %s 0123456789 >"conftest.in"
  15258. while :
  15259. do
  15260. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15261. mv "conftest.tmp" "conftest.in"
  15262. cp "conftest.in" "conftest.nl"
  15263. printf "%s\n" 'EGREP' >> "conftest.nl"
  15264. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15265. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15266. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15267. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15268. # Best one so far, save it but keep looking for a better one
  15269. ac_cv_path_EGREP="$ac_path_EGREP"
  15270. ac_path_EGREP_max=$ac_count
  15271. fi
  15272. # 10*(2^10) chars as input seems more than enough
  15273. test $ac_count -gt 10 && break
  15274. done
  15275. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15276. esac
  15277. $ac_path_EGREP_found && break 3
  15278. done
  15279. done
  15280. done
  15281. IFS=$as_save_IFS
  15282. if test -z "$ac_cv_path_EGREP"; then
  15283. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15284. fi
  15285. else
  15286. ac_cv_path_EGREP=$EGREP
  15287. fi
  15288. fi
  15289. fi
  15290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15291. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15292. EGREP="$ac_cv_path_EGREP"
  15293. # Find a good install program. We prefer a C program (faster),
  15294. # so one script is as good as another. But avoid the broken or
  15295. # incompatible versions:
  15296. # SysV /etc/install, /usr/sbin/install
  15297. # SunOS /usr/etc/install
  15298. # IRIX /sbin/install
  15299. # AIX /bin/install
  15300. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15301. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15302. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15303. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15304. # OS/2's system install, which has a completely different semantic
  15305. # ./install, which can be erroneously created by make from ./install.sh.
  15306. # Reject install programs that cannot install multiple files.
  15307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15308. printf %s "checking for a BSD-compatible install... " >&6; }
  15309. if test -z "$INSTALL"; then
  15310. if test ${ac_cv_path_install+y}
  15311. then :
  15312. printf %s "(cached) " >&6
  15313. else $as_nop
  15314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15315. for as_dir in $PATH
  15316. do
  15317. IFS=$as_save_IFS
  15318. case $as_dir in #(((
  15319. '') as_dir=./ ;;
  15320. */) ;;
  15321. *) as_dir=$as_dir/ ;;
  15322. esac
  15323. # Account for fact that we put trailing slashes in our PATH walk.
  15324. case $as_dir in #((
  15325. ./ | /[cC]/* | \
  15326. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15327. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15328. /usr/ucb/* ) ;;
  15329. *)
  15330. # OSF1 and SCO ODT 3.0 have their own names for install.
  15331. # Don't use installbsd from OSF since it installs stuff as root
  15332. # by default.
  15333. for ac_prog in ginstall scoinst install; do
  15334. for ac_exec_ext in '' $ac_executable_extensions; do
  15335. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15336. if test $ac_prog = install &&
  15337. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15338. # AIX install. It has an incompatible calling convention.
  15339. :
  15340. elif test $ac_prog = install &&
  15341. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15342. # program-specific install script used by HP pwplus--don't use.
  15343. :
  15344. else
  15345. rm -rf conftest.one conftest.two conftest.dir
  15346. echo one > conftest.one
  15347. echo two > conftest.two
  15348. mkdir conftest.dir
  15349. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15350. test -s conftest.one && test -s conftest.two &&
  15351. test -s conftest.dir/conftest.one &&
  15352. test -s conftest.dir/conftest.two
  15353. then
  15354. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15355. break 3
  15356. fi
  15357. fi
  15358. fi
  15359. done
  15360. done
  15361. ;;
  15362. esac
  15363. done
  15364. IFS=$as_save_IFS
  15365. rm -rf conftest.one conftest.two conftest.dir
  15366. fi
  15367. if test ${ac_cv_path_install+y}; then
  15368. INSTALL=$ac_cv_path_install
  15369. else
  15370. # As a last resort, use the slow shell script. Don't cache a
  15371. # value for INSTALL within a source directory, because that will
  15372. # break other packages using the cache if that directory is
  15373. # removed, or if the value is a relative name.
  15374. INSTALL=$ac_install_sh
  15375. fi
  15376. fi
  15377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15378. printf "%s\n" "$INSTALL" >&6; }
  15379. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15380. # It thinks the first close brace ends the variable substitution.
  15381. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15382. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15383. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15385. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15386. set x ${MAKE-make}
  15387. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15388. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15389. then :
  15390. printf %s "(cached) " >&6
  15391. else $as_nop
  15392. cat >conftest.make <<\_ACEOF
  15393. SHELL = /bin/sh
  15394. all:
  15395. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15396. _ACEOF
  15397. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15398. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15399. *@@@%%%=?*=@@@%%%*)
  15400. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15401. *)
  15402. eval ac_cv_prog_make_${ac_make}_set=no;;
  15403. esac
  15404. rm -f conftest.make
  15405. fi
  15406. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15408. printf "%s\n" "yes" >&6; }
  15409. SET_MAKE=
  15410. else
  15411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15412. printf "%s\n" "no" >&6; }
  15413. SET_MAKE="MAKE=${MAKE-make}"
  15414. fi
  15415. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15416. if test -n "$ac_tool_prefix"; then
  15417. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15418. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15420. printf %s "checking for $ac_word... " >&6; }
  15421. if test ${ac_cv_path_PKG_CONFIG+y}
  15422. then :
  15423. printf %s "(cached) " >&6
  15424. else $as_nop
  15425. case $PKG_CONFIG in
  15426. [\\/]* | ?:[\\/]*)
  15427. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15428. ;;
  15429. *)
  15430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15431. for as_dir in $PATH
  15432. do
  15433. IFS=$as_save_IFS
  15434. case $as_dir in #(((
  15435. '') as_dir=./ ;;
  15436. */) ;;
  15437. *) as_dir=$as_dir/ ;;
  15438. esac
  15439. for ac_exec_ext in '' $ac_executable_extensions; do
  15440. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15441. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15443. break 2
  15444. fi
  15445. done
  15446. done
  15447. IFS=$as_save_IFS
  15448. ;;
  15449. esac
  15450. fi
  15451. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15452. if test -n "$PKG_CONFIG"; then
  15453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15454. printf "%s\n" "$PKG_CONFIG" >&6; }
  15455. else
  15456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15457. printf "%s\n" "no" >&6; }
  15458. fi
  15459. fi
  15460. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15461. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15462. # Extract the first word of "pkg-config", so it can be a program name with args.
  15463. set dummy pkg-config; ac_word=$2
  15464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15465. printf %s "checking for $ac_word... " >&6; }
  15466. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15467. then :
  15468. printf %s "(cached) " >&6
  15469. else $as_nop
  15470. case $ac_pt_PKG_CONFIG in
  15471. [\\/]* | ?:[\\/]*)
  15472. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15473. ;;
  15474. *)
  15475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15476. for as_dir in $PATH
  15477. do
  15478. IFS=$as_save_IFS
  15479. case $as_dir in #(((
  15480. '') as_dir=./ ;;
  15481. */) ;;
  15482. *) as_dir=$as_dir/ ;;
  15483. esac
  15484. for ac_exec_ext in '' $ac_executable_extensions; do
  15485. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15486. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15488. break 2
  15489. fi
  15490. done
  15491. done
  15492. IFS=$as_save_IFS
  15493. ;;
  15494. esac
  15495. fi
  15496. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15497. if test -n "$ac_pt_PKG_CONFIG"; then
  15498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15499. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15500. else
  15501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15502. printf "%s\n" "no" >&6; }
  15503. fi
  15504. if test "x$ac_pt_PKG_CONFIG" = x; then
  15505. PKG_CONFIG=""
  15506. else
  15507. case $cross_compiling:$ac_tool_warned in
  15508. yes:)
  15509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15510. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15511. ac_tool_warned=yes ;;
  15512. esac
  15513. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15514. fi
  15515. else
  15516. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15517. fi
  15518. fi
  15519. if test -n "$PKG_CONFIG"; then
  15520. _pkg_min_version=0.9.0
  15521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15522. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15523. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15525. printf "%s\n" "yes" >&6; }
  15526. else
  15527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15528. printf "%s\n" "no" >&6; }
  15529. PKG_CONFIG=""
  15530. fi
  15531. fi
  15532. if test -z "$AWK" ; then
  15533. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15534. fi
  15535. for ac_prog in gsort sort
  15536. do
  15537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15538. set dummy $ac_prog; ac_word=$2
  15539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15540. printf %s "checking for $ac_word... " >&6; }
  15541. if test ${ac_cv_prog_SORT+y}
  15542. then :
  15543. printf %s "(cached) " >&6
  15544. else $as_nop
  15545. if test -n "$SORT"; then
  15546. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15547. else
  15548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15549. for as_dir in $PATH
  15550. do
  15551. IFS=$as_save_IFS
  15552. case $as_dir in #(((
  15553. '') as_dir=./ ;;
  15554. */) ;;
  15555. *) as_dir=$as_dir/ ;;
  15556. esac
  15557. for ac_exec_ext in '' $ac_executable_extensions; do
  15558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15559. ac_cv_prog_SORT="$ac_prog"
  15560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15561. break 2
  15562. fi
  15563. done
  15564. done
  15565. IFS=$as_save_IFS
  15566. fi
  15567. fi
  15568. SORT=$ac_cv_prog_SORT
  15569. if test -n "$SORT"; then
  15570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15571. printf "%s\n" "$SORT" >&6; }
  15572. else
  15573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15574. printf "%s\n" "no" >&6; }
  15575. fi
  15576. test -n "$SORT" && break
  15577. done
  15578. test -n "$SORT" || SORT="false"
  15579. if ! "$SORT" -V </dev/null >/dev/null
  15580. then :
  15581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15582. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15583. fi
  15584. # Check whether --enable-largefile was given.
  15585. if test ${enable_largefile+y}
  15586. then :
  15587. enableval=$enable_largefile;
  15588. fi
  15589. if test "$enable_largefile" != no; then
  15590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15591. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15592. if test ${ac_cv_sys_largefile_CC+y}
  15593. then :
  15594. printf %s "(cached) " >&6
  15595. else $as_nop
  15596. ac_cv_sys_largefile_CC=no
  15597. if test "$GCC" != yes; then
  15598. ac_save_CC=$CC
  15599. while :; do
  15600. # IRIX 6.2 and later do not support large files by default,
  15601. # so use the C compiler's -n32 option if that helps.
  15602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15603. /* end confdefs.h. */
  15604. #include <sys/types.h>
  15605. /* Check that off_t can represent 2**63 - 1 correctly.
  15606. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15607. since some C++ compilers masquerading as C compilers
  15608. incorrectly reject 9223372036854775807. */
  15609. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15610. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15611. && LARGE_OFF_T % 2147483647 == 1)
  15612. ? 1 : -1];
  15613. int
  15614. main (void)
  15615. {
  15616. ;
  15617. return 0;
  15618. }
  15619. _ACEOF
  15620. if ac_fn_c_try_compile "$LINENO"
  15621. then :
  15622. break
  15623. fi
  15624. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15625. CC="$CC -n32"
  15626. if ac_fn_c_try_compile "$LINENO"
  15627. then :
  15628. ac_cv_sys_largefile_CC=' -n32'; break
  15629. fi
  15630. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15631. break
  15632. done
  15633. CC=$ac_save_CC
  15634. rm -f conftest.$ac_ext
  15635. fi
  15636. fi
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15638. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15639. if test "$ac_cv_sys_largefile_CC" != no; then
  15640. CC=$CC$ac_cv_sys_largefile_CC
  15641. fi
  15642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15643. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15644. if test ${ac_cv_sys_file_offset_bits+y}
  15645. then :
  15646. printf %s "(cached) " >&6
  15647. else $as_nop
  15648. while :; do
  15649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15650. /* end confdefs.h. */
  15651. #include <sys/types.h>
  15652. /* Check that off_t can represent 2**63 - 1 correctly.
  15653. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15654. since some C++ compilers masquerading as C compilers
  15655. incorrectly reject 9223372036854775807. */
  15656. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15657. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15658. && LARGE_OFF_T % 2147483647 == 1)
  15659. ? 1 : -1];
  15660. int
  15661. main (void)
  15662. {
  15663. ;
  15664. return 0;
  15665. }
  15666. _ACEOF
  15667. if ac_fn_c_try_compile "$LINENO"
  15668. then :
  15669. ac_cv_sys_file_offset_bits=no; break
  15670. fi
  15671. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15673. /* end confdefs.h. */
  15674. #define _FILE_OFFSET_BITS 64
  15675. #include <sys/types.h>
  15676. /* Check that off_t can represent 2**63 - 1 correctly.
  15677. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15678. since some C++ compilers masquerading as C compilers
  15679. incorrectly reject 9223372036854775807. */
  15680. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15681. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15682. && LARGE_OFF_T % 2147483647 == 1)
  15683. ? 1 : -1];
  15684. int
  15685. main (void)
  15686. {
  15687. ;
  15688. return 0;
  15689. }
  15690. _ACEOF
  15691. if ac_fn_c_try_compile "$LINENO"
  15692. then :
  15693. ac_cv_sys_file_offset_bits=64; break
  15694. fi
  15695. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15696. ac_cv_sys_file_offset_bits=unknown
  15697. break
  15698. done
  15699. fi
  15700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15701. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15702. case $ac_cv_sys_file_offset_bits in #(
  15703. no | unknown) ;;
  15704. *)
  15705. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15706. ;;
  15707. esac
  15708. rm -rf conftest*
  15709. if test $ac_cv_sys_file_offset_bits = unknown; then
  15710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15711. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15712. if test ${ac_cv_sys_large_files+y}
  15713. then :
  15714. printf %s "(cached) " >&6
  15715. else $as_nop
  15716. while :; do
  15717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15718. /* end confdefs.h. */
  15719. #include <sys/types.h>
  15720. /* Check that off_t can represent 2**63 - 1 correctly.
  15721. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15722. since some C++ compilers masquerading as C compilers
  15723. incorrectly reject 9223372036854775807. */
  15724. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15725. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15726. && LARGE_OFF_T % 2147483647 == 1)
  15727. ? 1 : -1];
  15728. int
  15729. main (void)
  15730. {
  15731. ;
  15732. return 0;
  15733. }
  15734. _ACEOF
  15735. if ac_fn_c_try_compile "$LINENO"
  15736. then :
  15737. ac_cv_sys_large_files=no; break
  15738. fi
  15739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15741. /* end confdefs.h. */
  15742. #define _LARGE_FILES 1
  15743. #include <sys/types.h>
  15744. /* Check that off_t can represent 2**63 - 1 correctly.
  15745. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15746. since some C++ compilers masquerading as C compilers
  15747. incorrectly reject 9223372036854775807. */
  15748. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15749. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15750. && LARGE_OFF_T % 2147483647 == 1)
  15751. ? 1 : -1];
  15752. int
  15753. main (void)
  15754. {
  15755. ;
  15756. return 0;
  15757. }
  15758. _ACEOF
  15759. if ac_fn_c_try_compile "$LINENO"
  15760. then :
  15761. ac_cv_sys_large_files=1; break
  15762. fi
  15763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15764. ac_cv_sys_large_files=unknown
  15765. break
  15766. done
  15767. fi
  15768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15769. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15770. case $ac_cv_sys_large_files in #(
  15771. no | unknown) ;;
  15772. *)
  15773. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15774. ;;
  15775. esac
  15776. rm -rf conftest*
  15777. fi
  15778. fi
  15779. case "$host" in
  15780. *-*-mingw*)
  15781. # Except on msys, where make can't handle full pathnames (bug 1972)
  15782. ;;
  15783. *)
  15784. srcdir=`cd $srcdir && pwd`
  15785. ;;
  15786. esac
  15787. INCLUDE="-I$srcdir/include"
  15788. case "$host" in
  15789. *-*-nto-qnx*)
  15790. ;;
  15791. *)
  15792. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15793. ;;
  15794. esac
  15795. case "$host" in
  15796. *-*-haiku*)
  15797. LINKER='$(CXX)'
  15798. LIBTOOLLINKERTAG='CXX'
  15799. ;;
  15800. *)
  15801. LINKER='$(CC)'
  15802. LIBTOOLLINKERTAG='CC'
  15803. ;;
  15804. esac
  15805. if test x$srcdir != x.; then
  15806. INCLUDE="-Iinclude $INCLUDE"
  15807. elif test -d .git; then
  15808. as_fn_error $? "
  15809. *** When building from a git clone you should configure and build in a
  15810. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15811. " "$LINENO" 5
  15812. fi
  15813. BASE_CFLAGS=""
  15814. BASE_LDFLAGS=""
  15815. case "$host" in
  15816. *-*-cygwin*)
  15817. # We build SDL on cygwin without the UNIX emulation layer
  15818. save_CFLAGS="$CFLAGS"
  15819. have_no_cygwin=no
  15820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15821. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15822. CFLAGS="$save_CFLAGS -mno-cygwin"
  15823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15824. /* end confdefs.h. */
  15825. int
  15826. main (void)
  15827. {
  15828. ;
  15829. return 0;
  15830. }
  15831. _ACEOF
  15832. if ac_fn_c_try_compile "$LINENO"
  15833. then :
  15834. have_no_cygwin=yes
  15835. fi
  15836. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15838. printf "%s\n" "$have_no_cygwin" >&6; }
  15839. CFLAGS="$save_CFLAGS"
  15840. if test x$have_no_cygwin = xyes; then
  15841. BASE_CFLAGS="-mno-cygwin"
  15842. BASE_LDFLAGS="-mno-cygwin"
  15843. fi
  15844. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15845. ;;
  15846. esac
  15847. # Uncomment the following line if you want to force SDL and applications
  15848. # built with it to be compiled for a particular architecture.
  15849. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15850. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15851. # The default optimization for SDL is -O3 (Bug #31)
  15852. if test "x$orig_CFLAGS" = x; then
  15853. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15854. fi
  15855. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15856. BUILD_LDFLAGS="$LDFLAGS"
  15857. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15858. ## These are common directories to find software packages
  15859. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15860. # if test -d $path/include; then
  15861. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15862. # fi
  15863. # if test -d $path/lib; then
  15864. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15865. # fi
  15866. #done
  15867. SDL_CFLAGS="$BASE_CFLAGS"
  15868. SDL_LIBS="-lSDL3"
  15869. if test "x$BASE_LDFLAGS" != x; then
  15870. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15871. fi
  15872. if test "x$EXTRA_CFLAGS" != x; then
  15873. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15874. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15875. fi
  15876. if test "x$EXTRA_LDFLAGS" != x; then
  15877. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15878. fi
  15879. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15880. find_lib()
  15881. {
  15882. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15883. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15884. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15885. if test "$cross_compiling" = yes; then
  15886. host_lib_path=""
  15887. else
  15888. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15889. fi
  15890. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15891. 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`
  15892. if test x$lib != x; then
  15893. echo $lib
  15894. return
  15895. fi
  15896. done
  15897. }
  15898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15899. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15900. if test ${ac_cv_c_const+y}
  15901. then :
  15902. printf %s "(cached) " >&6
  15903. else $as_nop
  15904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15905. /* end confdefs.h. */
  15906. int
  15907. main (void)
  15908. {
  15909. #ifndef __cplusplus
  15910. /* Ultrix mips cc rejects this sort of thing. */
  15911. typedef int charset[2];
  15912. const charset cs = { 0, 0 };
  15913. /* SunOS 4.1.1 cc rejects this. */
  15914. char const *const *pcpcc;
  15915. char **ppc;
  15916. /* NEC SVR4.0.2 mips cc rejects this. */
  15917. struct point {int x, y;};
  15918. static struct point const zero = {0,0};
  15919. /* IBM XL C 1.02.0.0 rejects this.
  15920. It does not let you subtract one const X* pointer from another in
  15921. an arm of an if-expression whose if-part is not a constant
  15922. expression */
  15923. const char *g = "string";
  15924. pcpcc = &g + (g ? g-g : 0);
  15925. /* HPUX 7.0 cc rejects these. */
  15926. ++pcpcc;
  15927. ppc = (char**) pcpcc;
  15928. pcpcc = (char const *const *) ppc;
  15929. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15930. char tx;
  15931. char *t = &tx;
  15932. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15933. *t++ = 0;
  15934. if (s) return 0;
  15935. }
  15936. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15937. int x[] = {25, 17};
  15938. const int *foo = &x[0];
  15939. ++foo;
  15940. }
  15941. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15942. typedef const int *iptr;
  15943. iptr p = 0;
  15944. ++p;
  15945. }
  15946. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15947. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15948. struct s { int j; const int *ap[3]; } bx;
  15949. struct s *b = &bx; b->j = 5;
  15950. }
  15951. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15952. const int foo = 10;
  15953. if (!foo) return 0;
  15954. }
  15955. return !cs[0] && !zero.x;
  15956. #endif
  15957. ;
  15958. return 0;
  15959. }
  15960. _ACEOF
  15961. if ac_fn_c_try_compile "$LINENO"
  15962. then :
  15963. ac_cv_c_const=yes
  15964. else $as_nop
  15965. ac_cv_c_const=no
  15966. fi
  15967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15968. fi
  15969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15970. printf "%s\n" "$ac_cv_c_const" >&6; }
  15971. if test $ac_cv_c_const = no; then
  15972. printf "%s\n" "#define const /**/" >>confdefs.h
  15973. fi
  15974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15975. printf %s "checking for inline... " >&6; }
  15976. if test ${ac_cv_c_inline+y}
  15977. then :
  15978. printf %s "(cached) " >&6
  15979. else $as_nop
  15980. ac_cv_c_inline=no
  15981. for ac_kw in inline __inline__ __inline; do
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. #ifndef __cplusplus
  15985. typedef int foo_t;
  15986. static $ac_kw foo_t static_foo (void) {return 0; }
  15987. $ac_kw foo_t foo (void) {return 0; }
  15988. #endif
  15989. _ACEOF
  15990. if ac_fn_c_try_compile "$LINENO"
  15991. then :
  15992. ac_cv_c_inline=$ac_kw
  15993. fi
  15994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15995. test "$ac_cv_c_inline" != no && break
  15996. done
  15997. fi
  15998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15999. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16000. case $ac_cv_c_inline in
  16001. inline | yes) ;;
  16002. *)
  16003. case $ac_cv_c_inline in
  16004. no) ac_val=;;
  16005. *) ac_val=$ac_cv_c_inline;;
  16006. esac
  16007. cat >>confdefs.h <<_ACEOF
  16008. #ifndef __cplusplus
  16009. #define inline $ac_val
  16010. #endif
  16011. _ACEOF
  16012. ;;
  16013. esac
  16014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16015. printf %s "checking for working volatile... " >&6; }
  16016. if test ${ac_cv_c_volatile+y}
  16017. then :
  16018. printf %s "(cached) " >&6
  16019. else $as_nop
  16020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16021. /* end confdefs.h. */
  16022. int
  16023. main (void)
  16024. {
  16025. volatile int x;
  16026. int * volatile y = (int *) 0;
  16027. return !x && !y;
  16028. ;
  16029. return 0;
  16030. }
  16031. _ACEOF
  16032. if ac_fn_c_try_compile "$LINENO"
  16033. then :
  16034. ac_cv_c_volatile=yes
  16035. else $as_nop
  16036. ac_cv_c_volatile=no
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16039. fi
  16040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16041. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16042. if test $ac_cv_c_volatile = no; then
  16043. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16044. fi
  16045. # Check whether --enable-assertions was given.
  16046. if test ${enable_assertions+y}
  16047. then :
  16048. enableval=$enable_assertions;
  16049. else $as_nop
  16050. enable_assertions=auto
  16051. fi
  16052. case "$enable_assertions" in
  16053. auto) # Use optimization settings to determine assertion level
  16054. ;;
  16055. disabled)
  16056. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16057. ;;
  16058. release)
  16059. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16060. ;;
  16061. enabled)
  16062. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16063. ;;
  16064. paranoid)
  16065. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16066. ;;
  16067. *)
  16068. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16069. ;;
  16070. esac
  16071. 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"
  16072. # Check whether --enable-dependency-tracking was given.
  16073. if test ${enable_dependency_tracking+y}
  16074. then :
  16075. enableval=$enable_dependency_tracking;
  16076. else $as_nop
  16077. enable_dependency_tracking=yes
  16078. fi
  16079. if test x$enable_dependency_tracking = xyes; then
  16080. have_gcc_mmd_mt=no
  16081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16082. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16084. /* end confdefs.h. */
  16085. #if !defined(__GNUC__) || __GNUC__ < 3
  16086. #error Dependency tracking requires GCC 3.0 or newer
  16087. #endif
  16088. int
  16089. main (void)
  16090. {
  16091. ;
  16092. return 0;
  16093. }
  16094. _ACEOF
  16095. if ac_fn_c_try_compile "$LINENO"
  16096. then :
  16097. have_gcc_mmd_mt=yes
  16098. fi
  16099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16101. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16102. if test x$have_gcc_mmd_mt = xyes; then
  16103. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16104. fi
  16105. fi
  16106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16107. printf %s "checking for linker option --no-undefined... " >&6; }
  16108. have_no_undefined=no
  16109. case "$host" in
  16110. *-*-openbsd*)
  16111. ;;
  16112. *)
  16113. save_LDFLAGS="$LDFLAGS"
  16114. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16116. /* end confdefs.h. */
  16117. int
  16118. main (void)
  16119. {
  16120. ;
  16121. return 0;
  16122. }
  16123. _ACEOF
  16124. if ac_fn_c_try_link "$LINENO"
  16125. then :
  16126. have_no_undefined=yes
  16127. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16128. fi
  16129. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16130. conftest$ac_exeext conftest.$ac_ext
  16131. LDFLAGS="$save_LDFLAGS"
  16132. ;;
  16133. esac
  16134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16135. printf "%s\n" "$have_no_undefined" >&6; }
  16136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16137. printf %s "checking for linker option --dynamicbase... " >&6; }
  16138. have_dynamicbase=no
  16139. case "$host" in
  16140. *)
  16141. save_LDFLAGS="$LDFLAGS"
  16142. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16144. /* end confdefs.h. */
  16145. int
  16146. main (void)
  16147. {
  16148. ;
  16149. return 0;
  16150. }
  16151. _ACEOF
  16152. if ac_fn_c_try_link "$LINENO"
  16153. then :
  16154. have_dynamicbase=yes
  16155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16156. fi
  16157. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16158. conftest$ac_exeext conftest.$ac_ext
  16159. LDFLAGS="$save_LDFLAGS"
  16160. ;;
  16161. esac
  16162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16163. printf "%s\n" "$have_dynamicbase" >&6; }
  16164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16165. printf %s "checking for linker option --nxcompat... " >&6; }
  16166. have_nxcompat=no
  16167. case "$host" in
  16168. *)
  16169. save_LDFLAGS="$LDFLAGS"
  16170. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16172. /* end confdefs.h. */
  16173. int
  16174. main (void)
  16175. {
  16176. ;
  16177. return 0;
  16178. }
  16179. _ACEOF
  16180. if ac_fn_c_try_link "$LINENO"
  16181. then :
  16182. have_nxcompat=yes
  16183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16186. conftest$ac_exeext conftest.$ac_ext
  16187. LDFLAGS="$save_LDFLAGS"
  16188. ;;
  16189. esac
  16190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16191. printf "%s\n" "$have_nxcompat" >&6; }
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16193. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16194. have_high_entropy_va=no
  16195. case "$host" in
  16196. *)
  16197. save_LDFLAGS="$LDFLAGS"
  16198. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. int
  16202. main (void)
  16203. {
  16204. ;
  16205. return 0;
  16206. }
  16207. _ACEOF
  16208. if ac_fn_c_try_link "$LINENO"
  16209. then :
  16210. have_high_entropy_va=yes
  16211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16212. fi
  16213. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16214. conftest$ac_exeext conftest.$ac_ext
  16215. LDFLAGS="$save_LDFLAGS"
  16216. ;;
  16217. esac
  16218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16219. printf "%s\n" "$have_high_entropy_va" >&6; }
  16220. # Check whether --enable-libc was given.
  16221. if test ${enable_libc+y}
  16222. then :
  16223. enableval=$enable_libc;
  16224. else $as_nop
  16225. enable_libc=yes
  16226. fi
  16227. # Check whether --enable-system-iconv was given.
  16228. if test ${enable_system_iconv+y}
  16229. then :
  16230. enableval=$enable_system_iconv;
  16231. else $as_nop
  16232. enable_system_iconv=yes
  16233. fi
  16234. if test x$enable_libc = xyes; then
  16235. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16236. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16237. if test "x$ac_cv_header_sys_types_h" = xyes
  16238. then :
  16239. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16240. fi
  16241. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16242. if test "x$ac_cv_header_stdio_h" = xyes
  16243. then :
  16244. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16245. fi
  16246. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16247. if test "x$ac_cv_header_stdlib_h" = xyes
  16248. then :
  16249. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16250. fi
  16251. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16252. if test "x$ac_cv_header_stddef_h" = xyes
  16253. then :
  16254. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16255. fi
  16256. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16257. if test "x$ac_cv_header_stdarg_h" = xyes
  16258. then :
  16259. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16260. fi
  16261. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16262. if test "x$ac_cv_header_malloc_h" = xyes
  16263. then :
  16264. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16265. fi
  16266. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16267. if test "x$ac_cv_header_memory_h" = xyes
  16268. then :
  16269. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16270. fi
  16271. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16272. if test "x$ac_cv_header_string_h" = xyes
  16273. then :
  16274. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16275. fi
  16276. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16277. if test "x$ac_cv_header_strings_h" = xyes
  16278. then :
  16279. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16280. fi
  16281. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16282. if test "x$ac_cv_header_wchar_h" = xyes
  16283. then :
  16284. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16285. fi
  16286. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16287. if test "x$ac_cv_header_inttypes_h" = xyes
  16288. then :
  16289. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16290. fi
  16291. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16292. if test "x$ac_cv_header_stdint_h" = xyes
  16293. then :
  16294. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16295. fi
  16296. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16297. if test "x$ac_cv_header_limits_h" = xyes
  16298. then :
  16299. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16300. fi
  16301. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16302. if test "x$ac_cv_header_ctype_h" = xyes
  16303. then :
  16304. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16305. fi
  16306. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16307. if test "x$ac_cv_header_math_h" = xyes
  16308. then :
  16309. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16310. fi
  16311. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16312. if test "x$ac_cv_header_float_h" = xyes
  16313. then :
  16314. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16315. fi
  16316. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16317. if test "x$ac_cv_header_iconv_h" = xyes
  16318. then :
  16319. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16320. fi
  16321. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16322. if test "x$ac_cv_header_signal_h" = xyes
  16323. then :
  16324. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16325. fi
  16326. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16327. if test "x$ac_cv_header_linux_input_h" = xyes
  16328. then :
  16329. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16330. fi
  16331. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16332. if test "x$ac_cv_type_size_t" = xyes
  16333. then :
  16334. else $as_nop
  16335. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16336. fi
  16337. ac_ext=c
  16338. ac_cpp='$CPP $CPPFLAGS'
  16339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16343. printf %s "checking how to run the C preprocessor... " >&6; }
  16344. # On Suns, sometimes $CPP names a directory.
  16345. if test -n "$CPP" && test -d "$CPP"; then
  16346. CPP=
  16347. fi
  16348. if test -z "$CPP"; then
  16349. if test ${ac_cv_prog_CPP+y}
  16350. then :
  16351. printf %s "(cached) " >&6
  16352. else $as_nop
  16353. # Double quotes because $CC needs to be expanded
  16354. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16355. do
  16356. ac_preproc_ok=false
  16357. for ac_c_preproc_warn_flag in '' yes
  16358. do
  16359. # Use a header file that comes with gcc, so configuring glibc
  16360. # with a fresh cross-compiler works.
  16361. # On the NeXT, cc -E runs the code through the compiler's parser,
  16362. # not just through cpp. "Syntax error" is here to catch this case.
  16363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16364. /* end confdefs.h. */
  16365. #include <limits.h>
  16366. Syntax error
  16367. _ACEOF
  16368. if ac_fn_c_try_cpp "$LINENO"
  16369. then :
  16370. else $as_nop
  16371. # Broken: fails on valid input.
  16372. continue
  16373. fi
  16374. rm -f conftest.err conftest.i conftest.$ac_ext
  16375. # OK, works on sane cases. Now check whether nonexistent headers
  16376. # can be detected and how.
  16377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16378. /* end confdefs.h. */
  16379. #include <ac_nonexistent.h>
  16380. _ACEOF
  16381. if ac_fn_c_try_cpp "$LINENO"
  16382. then :
  16383. # Broken: success on invalid input.
  16384. continue
  16385. else $as_nop
  16386. # Passes both tests.
  16387. ac_preproc_ok=:
  16388. break
  16389. fi
  16390. rm -f conftest.err conftest.i conftest.$ac_ext
  16391. done
  16392. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16393. rm -f conftest.i conftest.err conftest.$ac_ext
  16394. if $ac_preproc_ok
  16395. then :
  16396. break
  16397. fi
  16398. done
  16399. ac_cv_prog_CPP=$CPP
  16400. fi
  16401. CPP=$ac_cv_prog_CPP
  16402. else
  16403. ac_cv_prog_CPP=$CPP
  16404. fi
  16405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16406. printf "%s\n" "$CPP" >&6; }
  16407. ac_preproc_ok=false
  16408. for ac_c_preproc_warn_flag in '' yes
  16409. do
  16410. # Use a header file that comes with gcc, so configuring glibc
  16411. # with a fresh cross-compiler works.
  16412. # On the NeXT, cc -E runs the code through the compiler's parser,
  16413. # not just through cpp. "Syntax error" is here to catch this case.
  16414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16415. /* end confdefs.h. */
  16416. #include <limits.h>
  16417. Syntax error
  16418. _ACEOF
  16419. if ac_fn_c_try_cpp "$LINENO"
  16420. then :
  16421. else $as_nop
  16422. # Broken: fails on valid input.
  16423. continue
  16424. fi
  16425. rm -f conftest.err conftest.i conftest.$ac_ext
  16426. # OK, works on sane cases. Now check whether nonexistent headers
  16427. # can be detected and how.
  16428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16429. /* end confdefs.h. */
  16430. #include <ac_nonexistent.h>
  16431. _ACEOF
  16432. if ac_fn_c_try_cpp "$LINENO"
  16433. then :
  16434. # Broken: success on invalid input.
  16435. continue
  16436. else $as_nop
  16437. # Passes both tests.
  16438. ac_preproc_ok=:
  16439. break
  16440. fi
  16441. rm -f conftest.err conftest.i conftest.$ac_ext
  16442. done
  16443. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16444. rm -f conftest.i conftest.err conftest.$ac_ext
  16445. if $ac_preproc_ok
  16446. then :
  16447. else $as_nop
  16448. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16449. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16450. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16451. See \`config.log' for more details" "$LINENO" 5; }
  16452. fi
  16453. ac_ext=c
  16454. ac_cpp='$CPP $CPPFLAGS'
  16455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16459. printf %s "checking for M_PI in math.h... " >&6; }
  16460. if test ${ac_cv_define_M_PI+y}
  16461. then :
  16462. printf %s "(cached) " >&6
  16463. else $as_nop
  16464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16465. /* end confdefs.h. */
  16466. #include <math.h>
  16467. #ifdef M_PI
  16468. YES_IS_DEFINED
  16469. #endif
  16470. _ACEOF
  16471. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16472. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16473. then :
  16474. ac_cv_define_M_PI=yes
  16475. else $as_nop
  16476. ac_cv_define_M_PI=no
  16477. fi
  16478. rm -rf conftest*
  16479. fi
  16480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16481. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16482. if test "$ac_cv_define_M_PI" = "yes" ; then
  16483. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16484. fi
  16485. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16486. # for constant arguments. Useless!
  16487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16488. printf %s "checking for working alloca.h... " >&6; }
  16489. if test ${ac_cv_working_alloca_h+y}
  16490. then :
  16491. printf %s "(cached) " >&6
  16492. else $as_nop
  16493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16494. /* end confdefs.h. */
  16495. #include <alloca.h>
  16496. int
  16497. main (void)
  16498. {
  16499. char *p = (char *) alloca (2 * sizeof (int));
  16500. if (p) return 0;
  16501. ;
  16502. return 0;
  16503. }
  16504. _ACEOF
  16505. if ac_fn_c_try_link "$LINENO"
  16506. then :
  16507. ac_cv_working_alloca_h=yes
  16508. else $as_nop
  16509. ac_cv_working_alloca_h=no
  16510. fi
  16511. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16512. conftest$ac_exeext conftest.$ac_ext
  16513. fi
  16514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16515. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16516. if test $ac_cv_working_alloca_h = yes; then
  16517. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16518. fi
  16519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16520. printf %s "checking for alloca... " >&6; }
  16521. if test ${ac_cv_func_alloca_works+y}
  16522. then :
  16523. printf %s "(cached) " >&6
  16524. else $as_nop
  16525. if test $ac_cv_working_alloca_h = yes; then
  16526. ac_cv_func_alloca_works=yes
  16527. else
  16528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16529. /* end confdefs.h. */
  16530. #include <stdlib.h>
  16531. #include <stddef.h>
  16532. #ifndef alloca
  16533. # ifdef __GNUC__
  16534. # define alloca __builtin_alloca
  16535. # elif defined _MSC_VER
  16536. # include <malloc.h>
  16537. # define alloca _alloca
  16538. # else
  16539. # ifdef __cplusplus
  16540. extern "C"
  16541. # endif
  16542. void *alloca (size_t);
  16543. # endif
  16544. #endif
  16545. int
  16546. main (void)
  16547. {
  16548. char *p = (char *) alloca (1);
  16549. if (p) return 0;
  16550. ;
  16551. return 0;
  16552. }
  16553. _ACEOF
  16554. if ac_fn_c_try_link "$LINENO"
  16555. then :
  16556. ac_cv_func_alloca_works=yes
  16557. else $as_nop
  16558. ac_cv_func_alloca_works=no
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16561. conftest$ac_exeext conftest.$ac_ext
  16562. fi
  16563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16564. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16565. fi
  16566. if test $ac_cv_func_alloca_works = yes; then
  16567. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16568. else
  16569. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16570. # that cause trouble. Some versions do not even contain alloca or
  16571. # contain a buggy version. If you still want to use their alloca,
  16572. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16573. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16574. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16576. printf %s "checking stack direction for C alloca... " >&6; }
  16577. if test ${ac_cv_c_stack_direction+y}
  16578. then :
  16579. printf %s "(cached) " >&6
  16580. else $as_nop
  16581. if test "$cross_compiling" = yes
  16582. then :
  16583. ac_cv_c_stack_direction=0
  16584. else $as_nop
  16585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16586. /* end confdefs.h. */
  16587. $ac_includes_default
  16588. int
  16589. find_stack_direction (int *addr, int depth)
  16590. {
  16591. int dir, dummy = 0;
  16592. if (! addr)
  16593. addr = &dummy;
  16594. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16595. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16596. return dir + dummy;
  16597. }
  16598. int
  16599. main (int argc, char **argv)
  16600. {
  16601. return find_stack_direction (0, argc + !argv + 20) < 0;
  16602. }
  16603. _ACEOF
  16604. if ac_fn_c_try_run "$LINENO"
  16605. then :
  16606. ac_cv_c_stack_direction=1
  16607. else $as_nop
  16608. ac_cv_c_stack_direction=-1
  16609. fi
  16610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16612. fi
  16613. fi
  16614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16615. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16616. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16617. fi
  16618. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16619. if test "x$ac_cv_func_mprotect" = xyes
  16620. then :
  16621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16622. /* end confdefs.h. */
  16623. #include <sys/types.h>
  16624. #include <sys/mman.h>
  16625. int
  16626. main (void)
  16627. {
  16628. ;
  16629. return 0;
  16630. }
  16631. _ACEOF
  16632. if ac_fn_c_try_compile "$LINENO"
  16633. then :
  16634. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16635. fi
  16636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16637. fi
  16638. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16639. if test "x$ac_cv_func_malloc" = xyes
  16640. then :
  16641. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16642. fi
  16643. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16644. if test "x$ac_cv_func_calloc" = xyes
  16645. then :
  16646. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16647. fi
  16648. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16649. if test "x$ac_cv_func_realloc" = xyes
  16650. then :
  16651. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16652. fi
  16653. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16654. if test "x$ac_cv_func_free" = xyes
  16655. then :
  16656. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16657. fi
  16658. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16659. if test "x$ac_cv_func_getenv" = xyes
  16660. then :
  16661. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16662. fi
  16663. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16664. if test "x$ac_cv_func_setenv" = xyes
  16665. then :
  16666. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16667. fi
  16668. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16669. if test "x$ac_cv_func_putenv" = xyes
  16670. then :
  16671. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16672. fi
  16673. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16674. if test "x$ac_cv_func_unsetenv" = xyes
  16675. then :
  16676. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16677. fi
  16678. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16679. if test "x$ac_cv_func_bsearch" = xyes
  16680. then :
  16681. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16682. fi
  16683. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16684. if test "x$ac_cv_func_qsort" = xyes
  16685. then :
  16686. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16687. fi
  16688. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16689. if test "x$ac_cv_func_abs" = xyes
  16690. then :
  16691. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16692. fi
  16693. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16694. if test "x$ac_cv_func_bcopy" = xyes
  16695. then :
  16696. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16697. fi
  16698. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16699. if test "x$ac_cv_func_memset" = xyes
  16700. then :
  16701. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16702. fi
  16703. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16704. if test "x$ac_cv_func_memcmp" = xyes
  16705. then :
  16706. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16707. fi
  16708. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16709. if test "x$ac_cv_func_memcpy" = xyes
  16710. then :
  16711. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16712. fi
  16713. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16714. if test "x$ac_cv_func_memmove" = xyes
  16715. then :
  16716. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16717. fi
  16718. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16719. if test "x$ac_cv_func_wcslen" = xyes
  16720. then :
  16721. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16722. fi
  16723. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16724. if test "x$ac_cv_func_wcslcpy" = xyes
  16725. then :
  16726. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16727. fi
  16728. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16729. if test "x$ac_cv_func_wcslcat" = xyes
  16730. then :
  16731. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16732. fi
  16733. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16734. if test "x$ac_cv_func__wcsdup" = xyes
  16735. then :
  16736. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16737. fi
  16738. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16739. if test "x$ac_cv_func_wcsdup" = xyes
  16740. then :
  16741. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16742. fi
  16743. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16744. if test "x$ac_cv_func_wcsstr" = xyes
  16745. then :
  16746. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16747. fi
  16748. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16749. if test "x$ac_cv_func_wcscmp" = xyes
  16750. then :
  16751. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16752. fi
  16753. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16754. if test "x$ac_cv_func_wcsncmp" = xyes
  16755. then :
  16756. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16757. fi
  16758. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16759. if test "x$ac_cv_func_wcscasecmp" = xyes
  16760. then :
  16761. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16762. fi
  16763. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16764. if test "x$ac_cv_func__wcsicmp" = xyes
  16765. then :
  16766. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16767. fi
  16768. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16769. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16770. then :
  16771. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16772. fi
  16773. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16774. if test "x$ac_cv_func__wcsnicmp" = xyes
  16775. then :
  16776. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16777. fi
  16778. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16779. if test "x$ac_cv_func_strlen" = xyes
  16780. then :
  16781. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16782. fi
  16783. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16784. if test "x$ac_cv_func_strlcpy" = xyes
  16785. then :
  16786. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16787. fi
  16788. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16789. if test "x$ac_cv_func_strlcat" = xyes
  16790. then :
  16791. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16792. fi
  16793. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16794. if test "x$ac_cv_func__strrev" = xyes
  16795. then :
  16796. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16797. fi
  16798. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16799. if test "x$ac_cv_func__strupr" = xyes
  16800. then :
  16801. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16802. fi
  16803. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16804. if test "x$ac_cv_func__strlwr" = xyes
  16805. then :
  16806. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16807. fi
  16808. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16809. if test "x$ac_cv_func_index" = xyes
  16810. then :
  16811. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16812. fi
  16813. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16814. if test "x$ac_cv_func_rindex" = xyes
  16815. then :
  16816. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16817. fi
  16818. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16819. if test "x$ac_cv_func_strchr" = xyes
  16820. then :
  16821. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16822. fi
  16823. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16824. if test "x$ac_cv_func_strrchr" = xyes
  16825. then :
  16826. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16827. fi
  16828. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16829. if test "x$ac_cv_func_strstr" = xyes
  16830. then :
  16831. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16832. fi
  16833. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16834. if test "x$ac_cv_func_strtok_r" = xyes
  16835. then :
  16836. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16837. fi
  16838. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16839. if test "x$ac_cv_func_itoa" = xyes
  16840. then :
  16841. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16842. fi
  16843. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16844. if test "x$ac_cv_func__ltoa" = xyes
  16845. then :
  16846. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16847. fi
  16848. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16849. if test "x$ac_cv_func__uitoa" = xyes
  16850. then :
  16851. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16852. fi
  16853. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16854. if test "x$ac_cv_func__ultoa" = xyes
  16855. then :
  16856. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16857. fi
  16858. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16859. if test "x$ac_cv_func_strtod" = xyes
  16860. then :
  16861. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16862. fi
  16863. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16864. if test "x$ac_cv_func_strtol" = xyes
  16865. then :
  16866. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16867. fi
  16868. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16869. if test "x$ac_cv_func_strtoul" = xyes
  16870. then :
  16871. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16872. fi
  16873. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16874. if test "x$ac_cv_func__i64toa" = xyes
  16875. then :
  16876. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16877. fi
  16878. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16879. if test "x$ac_cv_func__ui64toa" = xyes
  16880. then :
  16881. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16882. fi
  16883. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16884. if test "x$ac_cv_func_strtoll" = xyes
  16885. then :
  16886. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16887. fi
  16888. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16889. if test "x$ac_cv_func_strtoull" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16892. fi
  16893. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16894. if test "x$ac_cv_func_atoi" = xyes
  16895. then :
  16896. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16897. fi
  16898. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16899. if test "x$ac_cv_func_atof" = xyes
  16900. then :
  16901. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16902. fi
  16903. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16904. if test "x$ac_cv_func_strcmp" = xyes
  16905. then :
  16906. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16907. fi
  16908. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16909. if test "x$ac_cv_func_strncmp" = xyes
  16910. then :
  16911. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16912. fi
  16913. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16914. if test "x$ac_cv_func__stricmp" = xyes
  16915. then :
  16916. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16917. fi
  16918. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16919. if test "x$ac_cv_func_strcasecmp" = xyes
  16920. then :
  16921. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16922. fi
  16923. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16924. if test "x$ac_cv_func__strnicmp" = xyes
  16925. then :
  16926. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16927. fi
  16928. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16929. if test "x$ac_cv_func_strncasecmp" = xyes
  16930. then :
  16931. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16932. fi
  16933. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16934. if test "x$ac_cv_func_strcasestr" = xyes
  16935. then :
  16936. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16937. fi
  16938. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16939. if test "x$ac_cv_func_vsscanf" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16942. fi
  16943. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16944. if test "x$ac_cv_func_vsnprintf" = xyes
  16945. then :
  16946. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16947. fi
  16948. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16949. if test "x$ac_cv_func_fopen64" = xyes
  16950. then :
  16951. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16952. fi
  16953. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16954. if test "x$ac_cv_func_fseeko" = xyes
  16955. then :
  16956. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16957. fi
  16958. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16959. if test "x$ac_cv_func_fseeko64" = xyes
  16960. then :
  16961. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16962. fi
  16963. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16964. if test "x$ac_cv_func_sigaction" = xyes
  16965. then :
  16966. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16967. fi
  16968. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16969. if test "x$ac_cv_func_setjmp" = xyes
  16970. then :
  16971. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16972. fi
  16973. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16974. if test "x$ac_cv_func_nanosleep" = xyes
  16975. then :
  16976. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16977. fi
  16978. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16979. if test "x$ac_cv_func_sysconf" = xyes
  16980. then :
  16981. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16982. fi
  16983. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16984. if test "x$ac_cv_func_sysctlbyname" = xyes
  16985. then :
  16986. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16987. fi
  16988. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16989. if test "x$ac_cv_func_getauxval" = xyes
  16990. then :
  16991. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16992. fi
  16993. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16994. if test "x$ac_cv_func_elf_aux_info" = xyes
  16995. then :
  16996. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16997. fi
  16998. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16999. if test "x$ac_cv_func_poll" = xyes
  17000. then :
  17001. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17002. fi
  17003. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17004. if test "x$ac_cv_func__Exit" = xyes
  17005. then :
  17006. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17007. fi
  17008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17009. printf %s "checking for pow in -lm... " >&6; }
  17010. if test ${ac_cv_lib_m_pow+y}
  17011. then :
  17012. printf %s "(cached) " >&6
  17013. else $as_nop
  17014. ac_check_lib_save_LIBS=$LIBS
  17015. LIBS="-lm $LIBS"
  17016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17017. /* end confdefs.h. */
  17018. /* Override any GCC internal prototype to avoid an error.
  17019. Use char because int might match the return type of a GCC
  17020. builtin and then its argument prototype would still apply. */
  17021. char pow ();
  17022. int
  17023. main (void)
  17024. {
  17025. return pow ();
  17026. ;
  17027. return 0;
  17028. }
  17029. _ACEOF
  17030. if ac_fn_c_try_link "$LINENO"
  17031. then :
  17032. ac_cv_lib_m_pow=yes
  17033. else $as_nop
  17034. ac_cv_lib_m_pow=no
  17035. fi
  17036. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17037. conftest$ac_exeext conftest.$ac_ext
  17038. LIBS=$ac_check_lib_save_LIBS
  17039. fi
  17040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17041. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17042. if test "x$ac_cv_lib_m_pow" = xyes
  17043. then :
  17044. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17047. if test "x$ac_cv_func_acos" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17052. if test "x$ac_cv_func_acosf" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17055. fi
  17056. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17057. if test "x$ac_cv_func_asin" = xyes
  17058. then :
  17059. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17060. fi
  17061. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17062. if test "x$ac_cv_func_asinf" = xyes
  17063. then :
  17064. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17065. fi
  17066. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17067. if test "x$ac_cv_func_atan" = xyes
  17068. then :
  17069. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17070. fi
  17071. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17072. if test "x$ac_cv_func_atanf" = xyes
  17073. then :
  17074. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17075. fi
  17076. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17077. if test "x$ac_cv_func_atan2" = xyes
  17078. then :
  17079. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17080. fi
  17081. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17082. if test "x$ac_cv_func_atan2f" = xyes
  17083. then :
  17084. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17085. fi
  17086. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17087. if test "x$ac_cv_func_ceil" = xyes
  17088. then :
  17089. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17090. fi
  17091. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17092. if test "x$ac_cv_func_ceilf" = xyes
  17093. then :
  17094. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17095. fi
  17096. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17097. if test "x$ac_cv_func_copysign" = xyes
  17098. then :
  17099. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17100. fi
  17101. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17102. if test "x$ac_cv_func_copysignf" = xyes
  17103. then :
  17104. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17105. fi
  17106. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17107. if test "x$ac_cv_func_cos" = xyes
  17108. then :
  17109. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17110. fi
  17111. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17112. if test "x$ac_cv_func_cosf" = xyes
  17113. then :
  17114. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17115. fi
  17116. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17117. if test "x$ac_cv_func_exp" = xyes
  17118. then :
  17119. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17120. fi
  17121. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17122. if test "x$ac_cv_func_expf" = xyes
  17123. then :
  17124. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17125. fi
  17126. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17127. if test "x$ac_cv_func_fabs" = xyes
  17128. then :
  17129. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17130. fi
  17131. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17132. if test "x$ac_cv_func_fabsf" = xyes
  17133. then :
  17134. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17135. fi
  17136. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17137. if test "x$ac_cv_func_floor" = xyes
  17138. then :
  17139. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17140. fi
  17141. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17142. if test "x$ac_cv_func_floorf" = xyes
  17143. then :
  17144. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17145. fi
  17146. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17147. if test "x$ac_cv_func_trunc" = xyes
  17148. then :
  17149. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17150. fi
  17151. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17152. if test "x$ac_cv_func_truncf" = xyes
  17153. then :
  17154. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17155. fi
  17156. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17157. if test "x$ac_cv_func_fmod" = xyes
  17158. then :
  17159. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17160. fi
  17161. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17162. if test "x$ac_cv_func_fmodf" = xyes
  17163. then :
  17164. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17165. fi
  17166. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17167. if test "x$ac_cv_func_log" = xyes
  17168. then :
  17169. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17170. fi
  17171. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17172. if test "x$ac_cv_func_logf" = xyes
  17173. then :
  17174. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17175. fi
  17176. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17177. if test "x$ac_cv_func_log10" = xyes
  17178. then :
  17179. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17180. fi
  17181. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17182. if test "x$ac_cv_func_log10f" = xyes
  17183. then :
  17184. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17185. fi
  17186. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17187. if test "x$ac_cv_func_lround" = xyes
  17188. then :
  17189. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17190. fi
  17191. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17192. if test "x$ac_cv_func_lroundf" = xyes
  17193. then :
  17194. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17195. fi
  17196. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17197. if test "x$ac_cv_func_pow" = xyes
  17198. then :
  17199. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17200. fi
  17201. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17202. if test "x$ac_cv_func_powf" = xyes
  17203. then :
  17204. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17205. fi
  17206. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17207. if test "x$ac_cv_func_round" = xyes
  17208. then :
  17209. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17210. fi
  17211. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17212. if test "x$ac_cv_func_roundf" = xyes
  17213. then :
  17214. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17215. fi
  17216. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17217. if test "x$ac_cv_func_scalbn" = xyes
  17218. then :
  17219. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17220. fi
  17221. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17222. if test "x$ac_cv_func_scalbnf" = xyes
  17223. then :
  17224. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17225. fi
  17226. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17227. if test "x$ac_cv_func_sin" = xyes
  17228. then :
  17229. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17230. fi
  17231. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17232. if test "x$ac_cv_func_sinf" = xyes
  17233. then :
  17234. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17235. fi
  17236. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17237. if test "x$ac_cv_func_sqrt" = xyes
  17238. then :
  17239. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17240. fi
  17241. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17242. if test "x$ac_cv_func_sqrtf" = xyes
  17243. then :
  17244. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17245. fi
  17246. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17247. if test "x$ac_cv_func_tan" = xyes
  17248. then :
  17249. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17250. fi
  17251. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17252. if test "x$ac_cv_func_tanf" = xyes
  17253. then :
  17254. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17255. fi
  17256. if test x$enable_system_iconv = xyes; then
  17257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17258. printf %s "checking for iconv_open in -liconv... " >&6; }
  17259. if test ${ac_cv_lib_iconv_iconv_open+y}
  17260. then :
  17261. printf %s "(cached) " >&6
  17262. else $as_nop
  17263. ac_check_lib_save_LIBS=$LIBS
  17264. LIBS="-liconv $LIBS"
  17265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17266. /* end confdefs.h. */
  17267. /* Override any GCC internal prototype to avoid an error.
  17268. Use char because int might match the return type of a GCC
  17269. builtin and then its argument prototype would still apply. */
  17270. char iconv_open ();
  17271. int
  17272. main (void)
  17273. {
  17274. return iconv_open ();
  17275. ;
  17276. return 0;
  17277. }
  17278. _ACEOF
  17279. if ac_fn_c_try_link "$LINENO"
  17280. then :
  17281. ac_cv_lib_iconv_iconv_open=yes
  17282. else $as_nop
  17283. ac_cv_lib_iconv_iconv_open=no
  17284. fi
  17285. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17286. conftest$ac_exeext conftest.$ac_ext
  17287. LIBS=$ac_check_lib_save_LIBS
  17288. fi
  17289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17290. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17291. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17292. then :
  17293. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17294. fi
  17295. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17296. if test "x$ac_cv_func_iconv" = xyes
  17297. then :
  17298. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17299. fi
  17300. fi
  17301. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17302. "
  17303. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17308. if test "x$ac_cv_header_libunwind_h" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17311. fi
  17312. fi
  17313. # Check whether --enable-gcc-atomics was given.
  17314. if test ${enable_gcc_atomics+y}
  17315. then :
  17316. enableval=$enable_gcc_atomics;
  17317. else $as_nop
  17318. enable_gcc_atomics=yes
  17319. fi
  17320. if test x$enable_gcc_atomics = xyes; then
  17321. have_gcc_atomics=no
  17322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17323. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17325. /* end confdefs.h. */
  17326. int
  17327. main (void)
  17328. {
  17329. int a;
  17330. void *x, *y, *z;
  17331. __sync_lock_test_and_set(&a, 4);
  17332. __sync_lock_test_and_set(&x, y);
  17333. __sync_fetch_and_add(&a, 1);
  17334. __sync_bool_compare_and_swap(&a, 5, 10);
  17335. __sync_bool_compare_and_swap(&x, y, z);
  17336. ;
  17337. return 0;
  17338. }
  17339. _ACEOF
  17340. if ac_fn_c_try_link "$LINENO"
  17341. then :
  17342. have_gcc_atomics=yes
  17343. fi
  17344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17345. conftest$ac_exeext conftest.$ac_ext
  17346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17347. printf "%s\n" "$have_gcc_atomics" >&6; }
  17348. if test x$have_gcc_atomics = xyes; then
  17349. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17350. else
  17351. # See if we have the minimum operation needed for GCC atomics
  17352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17353. /* end confdefs.h. */
  17354. int
  17355. main (void)
  17356. {
  17357. int a;
  17358. __sync_lock_test_and_set(&a, 1);
  17359. __sync_lock_release(&a);
  17360. ;
  17361. return 0;
  17362. }
  17363. _ACEOF
  17364. if ac_fn_c_try_link "$LINENO"
  17365. then :
  17366. have_gcc_sync_lock_test_and_set=yes
  17367. fi
  17368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17369. conftest$ac_exeext conftest.$ac_ext
  17370. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17371. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17372. fi
  17373. fi
  17374. fi
  17375. # Standard C sources
  17376. SOURCES="$SOURCES $srcdir/src/*.c"
  17377. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17378. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17380. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17381. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17382. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17383. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17384. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17385. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17386. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17387. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17388. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17389. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17390. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17391. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17392. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17393. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17394. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17395. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17396. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17397. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17398. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17399. case "$host" in
  17400. *-*-emscripten*)
  17401. default_atomic=no
  17402. ;;
  17403. *)
  17404. default_atomic=yes
  17405. ;;
  17406. esac
  17407. # Check whether --enable-atomic was given.
  17408. if test ${enable_atomic+y}
  17409. then :
  17410. enableval=$enable_atomic;
  17411. else $as_nop
  17412. enable_atomic=$default_atomic
  17413. fi
  17414. if test x$enable_atomic != xyes; then
  17415. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17416. else
  17417. SUMMARY_modules="${SUMMARY_modules} atomic"
  17418. fi
  17419. # Check whether --enable-audio was given.
  17420. if test ${enable_audio+y}
  17421. then :
  17422. enableval=$enable_audio;
  17423. else $as_nop
  17424. enable_audio=yes
  17425. fi
  17426. if test x$enable_audio != xyes; then
  17427. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17428. else
  17429. SUMMARY_modules="${SUMMARY_modules} audio"
  17430. fi
  17431. # Check whether --enable-video was given.
  17432. if test ${enable_video+y}
  17433. then :
  17434. enableval=$enable_video;
  17435. else $as_nop
  17436. enable_video=yes
  17437. fi
  17438. if test x$enable_video != xyes; then
  17439. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17440. else
  17441. SUMMARY_modules="${SUMMARY_modules} video"
  17442. fi
  17443. # Check whether --enable-render was given.
  17444. if test ${enable_render+y}
  17445. then :
  17446. enableval=$enable_render;
  17447. else $as_nop
  17448. enable_render=yes
  17449. fi
  17450. if test x$enable_render != xyes; then
  17451. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17452. else
  17453. SUMMARY_modules="${SUMMARY_modules} render"
  17454. fi
  17455. # Check whether --enable-events was given.
  17456. if test ${enable_events+y}
  17457. then :
  17458. enableval=$enable_events;
  17459. else $as_nop
  17460. enable_events=yes
  17461. fi
  17462. if test x$enable_events != xyes; then
  17463. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17464. else
  17465. SUMMARY_modules="${SUMMARY_modules} events"
  17466. fi
  17467. # Check whether --enable-joystick was given.
  17468. if test ${enable_joystick+y}
  17469. then :
  17470. enableval=$enable_joystick;
  17471. else $as_nop
  17472. enable_joystick=yes
  17473. fi
  17474. if test x$enable_joystick != xyes; then
  17475. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17476. else
  17477. SUMMARY_modules="${SUMMARY_modules} joystick"
  17478. fi
  17479. # Check whether --enable-haptic was given.
  17480. if test ${enable_haptic+y}
  17481. then :
  17482. enableval=$enable_haptic;
  17483. else $as_nop
  17484. enable_haptic=yes
  17485. fi
  17486. if test x$enable_haptic != xyes; then
  17487. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17488. else
  17489. SUMMARY_modules="${SUMMARY_modules} haptic"
  17490. fi
  17491. # Check whether --enable-hidapi was given.
  17492. if test ${enable_hidapi+y}
  17493. then :
  17494. enableval=$enable_hidapi;
  17495. else $as_nop
  17496. enable_hidapi=yes
  17497. fi
  17498. if test x$enable_hidapi != xyes; then
  17499. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17500. else
  17501. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17502. fi
  17503. # Check whether --enable-sensor was given.
  17504. if test ${enable_sensor+y}
  17505. then :
  17506. enableval=$enable_sensor;
  17507. else $as_nop
  17508. enable_sensor=yes
  17509. fi
  17510. if test x$enable_sensor != xyes; then
  17511. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17512. else
  17513. SUMMARY_modules="${SUMMARY_modules} sensor"
  17514. fi
  17515. # Check whether --enable-power was given.
  17516. if test ${enable_power+y}
  17517. then :
  17518. enableval=$enable_power;
  17519. else $as_nop
  17520. enable_power=yes
  17521. fi
  17522. if test x$enable_power != xyes; then
  17523. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17524. else
  17525. SUMMARY_modules="${SUMMARY_modules} power"
  17526. fi
  17527. # Check whether --enable-filesystem was given.
  17528. if test ${enable_filesystem+y}
  17529. then :
  17530. enableval=$enable_filesystem;
  17531. else $as_nop
  17532. enable_filesystem=yes
  17533. fi
  17534. if test x$enable_filesystem != xyes; then
  17535. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17536. else
  17537. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17538. fi
  17539. # Many subsystems depend on threads, so leave them enabled by default
  17540. #AC_ARG_ENABLE(threads,
  17541. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17542. # , enable_threads=yes)
  17543. enable_threads=yes
  17544. if test x$enable_threads != xyes; then
  17545. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17546. else
  17547. SUMMARY_modules="${SUMMARY_modules} threads"
  17548. fi
  17549. # Check whether --enable-timers was given.
  17550. if test ${enable_timers+y}
  17551. then :
  17552. enableval=$enable_timers;
  17553. else $as_nop
  17554. enable_timers=yes
  17555. fi
  17556. if test x$enable_timers != xyes; then
  17557. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17558. else
  17559. SUMMARY_modules="${SUMMARY_modules} timers"
  17560. fi
  17561. # Check whether --enable-file was given.
  17562. if test ${enable_file+y}
  17563. then :
  17564. enableval=$enable_file;
  17565. else $as_nop
  17566. enable_file=yes
  17567. fi
  17568. if test x$enable_file != xyes; then
  17569. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17570. else
  17571. SUMMARY_modules="${SUMMARY_modules} file"
  17572. fi
  17573. # Check whether --enable-misc was given.
  17574. if test ${enable_misc+y}
  17575. then :
  17576. enableval=$enable_misc;
  17577. else $as_nop
  17578. enable_misc=yes
  17579. fi
  17580. if test x$enable_misc != xyes; then
  17581. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17582. else
  17583. SUMMARY_modules="${SUMMARY_modules} misc"
  17584. fi
  17585. # Check whether --enable-locale was given.
  17586. if test ${enable_locale+y}
  17587. then :
  17588. enableval=$enable_locale;
  17589. else $as_nop
  17590. enable_locale=yes
  17591. fi
  17592. if test x$enable_locale != xyes; then
  17593. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17594. else
  17595. SUMMARY_modules="${SUMMARY_modules} locale"
  17596. fi
  17597. # Check whether --enable-loadso was given.
  17598. if test ${enable_loadso+y}
  17599. then :
  17600. enableval=$enable_loadso;
  17601. else $as_nop
  17602. enable_loadso=yes
  17603. fi
  17604. if test x$enable_loadso != xyes; then
  17605. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17606. else
  17607. SUMMARY_modules="${SUMMARY_modules} loadso"
  17608. fi
  17609. # Check whether --enable-cpuinfo was given.
  17610. if test ${enable_cpuinfo+y}
  17611. then :
  17612. enableval=$enable_cpuinfo;
  17613. else $as_nop
  17614. enable_cpuinfo=yes
  17615. fi
  17616. if test x$enable_cpuinfo != xyes; then
  17617. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17618. else
  17619. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17620. fi
  17621. # Check whether --enable-assembly was given.
  17622. if test ${enable_assembly+y}
  17623. then :
  17624. enableval=$enable_assembly;
  17625. else $as_nop
  17626. enable_assembly=yes
  17627. fi
  17628. if test x$enable_assembly = xyes; then
  17629. SUMMARY_modules="${SUMMARY_modules} assembly"
  17630. # Make sure that we don't generate floating point code that would
  17631. # cause illegal instruction exceptions on older processors
  17632. case "$host" in
  17633. *-*-darwin*)
  17634. # Don't need to worry about Apple hardware, it's all SSE capable
  17635. default_ssemath=yes
  17636. ;;
  17637. *64-*-*)
  17638. # x86 64-bit architectures all have SSE instructions
  17639. default_ssemath=yes
  17640. ;;
  17641. *)
  17642. default_ssemath=no
  17643. ;;
  17644. esac
  17645. # Check whether --enable-ssemath was given.
  17646. if test ${enable_ssemath+y}
  17647. then :
  17648. enableval=$enable_ssemath;
  17649. else $as_nop
  17650. enable_ssemath=$default_ssemath
  17651. fi
  17652. if test x$enable_ssemath = xno; then
  17653. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17654. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17655. fi
  17656. fi
  17657. # Check whether --enable-mmx was given.
  17658. if test ${enable_mmx+y}
  17659. then :
  17660. enableval=$enable_mmx;
  17661. else $as_nop
  17662. enable_mmx=yes
  17663. fi
  17664. if test x$enable_mmx = xyes; then
  17665. save_CFLAGS="$CFLAGS"
  17666. have_gcc_mmx=no
  17667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17668. printf %s "checking for GCC -mmmx option... " >&6; }
  17669. mmx_CFLAGS="-mmmx"
  17670. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17672. /* end confdefs.h. */
  17673. #ifdef __MINGW32__
  17674. #include <_mingw.h>
  17675. #ifdef __MINGW64_VERSION_MAJOR
  17676. #include <intrin.h>
  17677. #else
  17678. #include <mmintrin.h>
  17679. #endif
  17680. #else
  17681. #include <mmintrin.h>
  17682. #endif
  17683. #ifndef __MMX__
  17684. #error Assembler CPP flag not enabled
  17685. #endif
  17686. int
  17687. main (void)
  17688. {
  17689. ;
  17690. return 0;
  17691. }
  17692. _ACEOF
  17693. if ac_fn_c_try_compile "$LINENO"
  17694. then :
  17695. have_gcc_mmx=yes
  17696. fi
  17697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17699. printf "%s\n" "$have_gcc_mmx" >&6; }
  17700. CFLAGS="$save_CFLAGS"
  17701. if test x$have_gcc_mmx = xyes; then
  17702. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17703. SUMMARY_math="${SUMMARY_math} mmx"
  17704. fi
  17705. fi
  17706. # Check whether --enable-3dnow was given.
  17707. if test ${enable_3dnow+y}
  17708. then :
  17709. enableval=$enable_3dnow;
  17710. else $as_nop
  17711. enable_3dnow=yes
  17712. fi
  17713. if test x$enable_3dnow = xyes; then
  17714. save_CFLAGS="$CFLAGS"
  17715. have_gcc_3dnow=no
  17716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17717. printf %s "checking for GCC -m3dnow option... " >&6; }
  17718. amd3dnow_CFLAGS="-m3dnow"
  17719. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17721. /* end confdefs.h. */
  17722. #include <mm3dnow.h>
  17723. #ifndef __3dNOW__
  17724. #error Assembler CPP flag not enabled
  17725. #endif
  17726. int
  17727. main (void)
  17728. {
  17729. void *p = 0;
  17730. _m_prefetch(p);
  17731. ;
  17732. return 0;
  17733. }
  17734. _ACEOF
  17735. if ac_fn_c_try_link "$LINENO"
  17736. then :
  17737. have_gcc_3dnow=yes
  17738. fi
  17739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17740. conftest$ac_exeext conftest.$ac_ext
  17741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17742. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17743. CFLAGS="$save_CFLAGS"
  17744. if test x$have_gcc_3dnow = xyes; then
  17745. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17746. SUMMARY_math="${SUMMARY_math} 3dnow"
  17747. fi
  17748. fi
  17749. # Check whether --enable-sse was given.
  17750. if test ${enable_sse+y}
  17751. then :
  17752. enableval=$enable_sse;
  17753. else $as_nop
  17754. enable_sse=yes
  17755. fi
  17756. if test x$enable_sse = xyes; then
  17757. save_CFLAGS="$CFLAGS"
  17758. have_gcc_sse=no
  17759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17760. printf %s "checking for GCC -msse option... " >&6; }
  17761. sse_CFLAGS="-msse"
  17762. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17764. /* end confdefs.h. */
  17765. #ifdef __MINGW32__
  17766. #include <_mingw.h>
  17767. #ifdef __MINGW64_VERSION_MAJOR
  17768. #include <intrin.h>
  17769. #else
  17770. #include <xmmintrin.h>
  17771. #endif
  17772. #else
  17773. #include <xmmintrin.h>
  17774. #endif
  17775. #ifndef __SSE__
  17776. #error Assembler CPP flag not enabled
  17777. #endif
  17778. int
  17779. main (void)
  17780. {
  17781. ;
  17782. return 0;
  17783. }
  17784. _ACEOF
  17785. if ac_fn_c_try_compile "$LINENO"
  17786. then :
  17787. have_gcc_sse=yes
  17788. fi
  17789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17791. printf "%s\n" "$have_gcc_sse" >&6; }
  17792. CFLAGS="$save_CFLAGS"
  17793. if test x$have_gcc_sse = xyes; then
  17794. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17795. SUMMARY_math="${SUMMARY_math} sse"
  17796. fi
  17797. fi
  17798. # Check whether --enable-sse2 was given.
  17799. if test ${enable_sse2+y}
  17800. then :
  17801. enableval=$enable_sse2;
  17802. else $as_nop
  17803. enable_sse2=$default_ssemath
  17804. fi
  17805. if test x$enable_sse2 = xyes; then
  17806. save_CFLAGS="$CFLAGS"
  17807. have_gcc_sse2=no
  17808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17809. printf %s "checking for GCC -msse2 option... " >&6; }
  17810. sse2_CFLAGS="-msse2"
  17811. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17813. /* end confdefs.h. */
  17814. #ifdef __MINGW32__
  17815. #include <_mingw.h>
  17816. #ifdef __MINGW64_VERSION_MAJOR
  17817. #include <intrin.h>
  17818. #else
  17819. #include <emmintrin.h>
  17820. #endif
  17821. #else
  17822. #include <emmintrin.h>
  17823. #endif
  17824. #ifndef __SSE2__
  17825. #error Assembler CPP flag not enabled
  17826. #endif
  17827. int
  17828. main (void)
  17829. {
  17830. ;
  17831. return 0;
  17832. }
  17833. _ACEOF
  17834. if ac_fn_c_try_compile "$LINENO"
  17835. then :
  17836. have_gcc_sse2=yes
  17837. fi
  17838. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17840. printf "%s\n" "$have_gcc_sse2" >&6; }
  17841. CFLAGS="$save_CFLAGS"
  17842. if test x$have_gcc_sse2 = xyes; then
  17843. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17844. SUMMARY_math="${SUMMARY_math} sse2"
  17845. fi
  17846. fi
  17847. # Check whether --enable-sse3 was given.
  17848. if test ${enable_sse3+y}
  17849. then :
  17850. enableval=$enable_sse3;
  17851. else $as_nop
  17852. enable_sse3=$default_ssemath
  17853. fi
  17854. if test x$enable_sse3 = xyes; then
  17855. save_CFLAGS="$CFLAGS"
  17856. have_gcc_sse3=no
  17857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17858. printf %s "checking for GCC -msse3 option... " >&6; }
  17859. sse3_CFLAGS="-msse3"
  17860. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17862. /* end confdefs.h. */
  17863. #ifdef __MINGW32__
  17864. #include <_mingw.h>
  17865. #ifdef __MINGW64_VERSION_MAJOR
  17866. #include <intrin.h>
  17867. #else
  17868. #include <pmmintrin.h>
  17869. #endif
  17870. #else
  17871. #include <pmmintrin.h>
  17872. #endif
  17873. #ifndef __SSE2__
  17874. #error Assembler CPP flag not enabled
  17875. #endif
  17876. int
  17877. main (void)
  17878. {
  17879. ;
  17880. return 0;
  17881. }
  17882. _ACEOF
  17883. if ac_fn_c_try_compile "$LINENO"
  17884. then :
  17885. have_gcc_sse3=yes
  17886. fi
  17887. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17889. printf "%s\n" "$have_gcc_sse3" >&6; }
  17890. CFLAGS="$save_CFLAGS"
  17891. if test x$have_gcc_sse3 = xyes; then
  17892. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17893. SUMMARY_math="${SUMMARY_math} sse3"
  17894. fi
  17895. fi
  17896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17897. printf %s "checking for immintrin.h... " >&6; }
  17898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17899. /* end confdefs.h. */
  17900. #include <immintrin.h>
  17901. int
  17902. main (void)
  17903. {
  17904. ;
  17905. return 0;
  17906. }
  17907. _ACEOF
  17908. if ac_fn_c_try_compile "$LINENO"
  17909. then :
  17910. have_immintrin_h_hdr=yes
  17911. else $as_nop
  17912. have_immintrin_h_hdr=no
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17916. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17917. if test x$have_immintrin_h_hdr = xyes; then
  17918. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17919. fi
  17920. # Check whether --enable-altivec was given.
  17921. if test ${enable_altivec+y}
  17922. then :
  17923. enableval=$enable_altivec;
  17924. else $as_nop
  17925. enable_altivec=yes
  17926. fi
  17927. if test x$enable_altivec = xyes; then
  17928. save_CFLAGS="$CFLAGS"
  17929. have_gcc_altivec=no
  17930. have_altivec_h_hdr=no
  17931. altivec_CFLAGS="-maltivec"
  17932. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17934. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17936. /* end confdefs.h. */
  17937. #include <altivec.h>
  17938. vector unsigned int vzero() {
  17939. return vec_splat_u32(0);
  17940. }
  17941. int
  17942. main (void)
  17943. {
  17944. ;
  17945. return 0;
  17946. }
  17947. _ACEOF
  17948. if ac_fn_c_try_compile "$LINENO"
  17949. then :
  17950. have_gcc_altivec=yes
  17951. have_altivec_h_hdr=yes
  17952. fi
  17953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17955. printf "%s\n" "$have_gcc_altivec" >&6; }
  17956. if test x$have_gcc_altivec = xno; then
  17957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17958. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17960. /* end confdefs.h. */
  17961. vector unsigned int vzero() {
  17962. return vec_splat_u32(0);
  17963. }
  17964. int
  17965. main (void)
  17966. {
  17967. ;
  17968. return 0;
  17969. }
  17970. _ACEOF
  17971. if ac_fn_c_try_compile "$LINENO"
  17972. then :
  17973. have_gcc_altivec=yes
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17977. printf "%s\n" "$have_gcc_altivec" >&6; }
  17978. fi
  17979. if test x$have_gcc_altivec = xno; then
  17980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17981. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17982. altivec_CFLAGS="-faltivec"
  17983. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. #include <altivec.h>
  17987. vector unsigned int vzero() {
  17988. return vec_splat_u32(0);
  17989. }
  17990. int
  17991. main (void)
  17992. {
  17993. ;
  17994. return 0;
  17995. }
  17996. _ACEOF
  17997. if ac_fn_c_try_compile "$LINENO"
  17998. then :
  17999. have_gcc_altivec=yes
  18000. have_altivec_h_hdr=yes
  18001. fi
  18002. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18004. printf "%s\n" "$have_gcc_altivec" >&6; }
  18005. fi
  18006. if test x$have_gcc_altivec = xno; then
  18007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18008. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18010. /* end confdefs.h. */
  18011. vector unsigned int vzero() {
  18012. return vec_splat_u32(0);
  18013. }
  18014. int
  18015. main (void)
  18016. {
  18017. ;
  18018. return 0;
  18019. }
  18020. _ACEOF
  18021. if ac_fn_c_try_compile "$LINENO"
  18022. then :
  18023. have_gcc_altivec=yes
  18024. fi
  18025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18027. printf "%s\n" "$have_gcc_altivec" >&6; }
  18028. fi
  18029. CFLAGS="$save_CFLAGS"
  18030. if test x$have_gcc_altivec = xyes; then
  18031. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18032. if test x$have_altivec_h_hdr = xyes; then
  18033. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18034. fi
  18035. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18036. SUMMARY_math="${SUMMARY_math} altivec"
  18037. fi
  18038. fi
  18039. fi
  18040. # Check whether --enable-lsx was given.
  18041. if test ${enable_lsx+y}
  18042. then :
  18043. enableval=$enable_lsx;
  18044. else $as_nop
  18045. enable_lsx=yes
  18046. fi
  18047. if test x$enable_lsx = xyes; then
  18048. save_CFLAGS="$CFLAGS"
  18049. have_gcc_lsx=no
  18050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18051. printf %s "checking for GCC -mlsx option... " >&6; }
  18052. lsx_CFLAGS="-mlsx"
  18053. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18055. /* end confdefs.h. */
  18056. #ifndef __loongarch_sx
  18057. #error Assembler CPP flag not enabled
  18058. #endif
  18059. int
  18060. main (void)
  18061. {
  18062. ;
  18063. return 0;
  18064. }
  18065. _ACEOF
  18066. if ac_fn_c_try_compile "$LINENO"
  18067. then :
  18068. have_gcc_lsx=yes
  18069. fi
  18070. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18072. printf "%s\n" "$have_gcc_lsx" >&6; }
  18073. CFLAGS="$save_CFLAGS"
  18074. if test x$have_gcc_lsx = xyes; then
  18075. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18076. SUMMARY_math="${SUMMARY_math} lsx"
  18077. fi
  18078. fi
  18079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18080. printf %s "checking for lsxintrin.h... " >&6; }
  18081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18082. /* end confdefs.h. */
  18083. #include <lsxintrin.h>
  18084. int
  18085. main (void)
  18086. {
  18087. ;
  18088. return 0;
  18089. }
  18090. _ACEOF
  18091. if ac_fn_c_try_compile "$LINENO"
  18092. then :
  18093. have_lsxintrin_h_hdr=yes
  18094. else $as_nop
  18095. have_lsxintrin_h_hdr=no
  18096. fi
  18097. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18099. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18100. if test x$have_lsxintrin_h_hdr = xyes; then
  18101. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18102. fi
  18103. # Check whether --enable-lasx was given.
  18104. if test ${enable_lasx+y}
  18105. then :
  18106. enableval=$enable_lasx;
  18107. else $as_nop
  18108. enable_LASX=yes
  18109. fi
  18110. if test x$enable_LASX = xyes; then
  18111. save_CFLAGS="$CFLAGS"
  18112. have_gcc_lasx=no
  18113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18114. printf %s "checking for GCC -mlasx option... " >&6; }
  18115. lasx_CFLAGS="-mlasx"
  18116. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18118. /* end confdefs.h. */
  18119. #ifndef __loongarch_asx
  18120. #error Assembler CPP flag not enabled
  18121. #endif
  18122. int
  18123. main (void)
  18124. {
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. if ac_fn_c_try_compile "$LINENO"
  18130. then :
  18131. have_gcc_lasx=yes
  18132. fi
  18133. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18135. printf "%s\n" "$have_gcc_lasx" >&6; }
  18136. CFLAGS="$save_CFLAGS"
  18137. if test x$have_gcc_lasx = xyes; then
  18138. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18139. SUMMARY_math="${SUMMARY_math} lasx"
  18140. fi
  18141. fi
  18142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18143. printf %s "checking for lasxintrin.h... " >&6; }
  18144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18145. /* end confdefs.h. */
  18146. #include <lasxintrin.h>
  18147. int
  18148. main (void)
  18149. {
  18150. ;
  18151. return 0;
  18152. }
  18153. _ACEOF
  18154. if ac_fn_c_try_compile "$LINENO"
  18155. then :
  18156. have_lasxintrin_h_hdr=yes
  18157. else $as_nop
  18158. have_lasxintrin_h_hdr=no
  18159. fi
  18160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18162. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18163. if test x$have_lasxintrin_h_hdr = xyes; then
  18164. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18165. fi
  18166. CheckOSS()
  18167. {
  18168. # Check whether --enable-oss was given.
  18169. if test ${enable_oss+y}
  18170. then :
  18171. enableval=$enable_oss;
  18172. else $as_nop
  18173. enable_oss=maybe
  18174. fi
  18175. if test x$enable_oss = xmaybe; then
  18176. enable_oss=yes
  18177. fi
  18178. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18180. printf %s "checking for OSS audio support... " >&6; }
  18181. have_oss=no
  18182. if test x$have_oss != xyes; then
  18183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18184. /* end confdefs.h. */
  18185. #include <sys/soundcard.h>
  18186. int
  18187. main (void)
  18188. {
  18189. int arg = SNDCTL_DSP_SETFRAGMENT;
  18190. ;
  18191. return 0;
  18192. }
  18193. _ACEOF
  18194. if ac_fn_c_try_compile "$LINENO"
  18195. then :
  18196. have_oss=yes
  18197. fi
  18198. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18199. fi
  18200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18201. printf "%s\n" "$have_oss" >&6; }
  18202. if test x$have_oss = xyes; then
  18203. SUMMARY_audio="${SUMMARY_audio} oss"
  18204. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18205. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18206. have_audio=yes
  18207. # We may need to link with ossaudio emulation library
  18208. case "$host" in
  18209. *-*-netbsd*)
  18210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18211. esac
  18212. fi
  18213. fi
  18214. }
  18215. CheckALSA()
  18216. {
  18217. # Check whether --enable-alsa was given.
  18218. if test ${enable_alsa+y}
  18219. then :
  18220. enableval=$enable_alsa;
  18221. else $as_nop
  18222. enable_alsa=yes
  18223. fi
  18224. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18225. alsa_save_CFLAGS="$CFLAGS"
  18226. alsa_save_LDFLAGS="$LDFLAGS"
  18227. alsa_save_LIBS="$LIBS"
  18228. alsa_found=yes
  18229. # Check whether --with-alsa-prefix was given.
  18230. if test ${with_alsa_prefix+y}
  18231. then :
  18232. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18233. else $as_nop
  18234. alsa_prefix=""
  18235. fi
  18236. # Check whether --with-alsa-inc-prefix was given.
  18237. if test ${with_alsa_inc_prefix+y}
  18238. then :
  18239. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18240. else $as_nop
  18241. alsa_inc_prefix=""
  18242. fi
  18243. # Check whether --enable-alsatest was given.
  18244. if test ${enable_alsatest+y}
  18245. then :
  18246. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18247. else $as_nop
  18248. enable_alsatest=yes
  18249. fi
  18250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18251. printf %s "checking for ALSA CFLAGS... " >&6; }
  18252. if test "$alsa_inc_prefix" != "" ; then
  18253. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18254. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18255. fi
  18256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18257. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18259. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18260. if test "$alsa_prefix" != "" ; then
  18261. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18262. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18263. fi
  18264. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18265. LIBS=`echo $LIBS | sed 's/-lm//'`
  18266. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18267. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18268. LIBS=`echo $LIBS | sed 's/ //'`
  18269. LIBS="$ALSA_LIBS $LIBS"
  18270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18271. printf "%s\n" "$ALSA_LIBS" >&6; }
  18272. min_alsa_version=1.0.11
  18273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18274. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18275. no_alsa=""
  18276. alsa_min_major_version=`echo $min_alsa_version | \
  18277. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18278. alsa_min_minor_version=`echo $min_alsa_version | \
  18279. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18280. alsa_min_micro_version=`echo $min_alsa_version | \
  18281. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18282. ac_ext=c
  18283. ac_cpp='$CPP $CPPFLAGS'
  18284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18288. /* end confdefs.h. */
  18289. #include <alsa/asoundlib.h>
  18290. int
  18291. main (void)
  18292. {
  18293. /* ensure backward compatibility */
  18294. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18295. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18296. #endif
  18297. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18298. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18299. #endif
  18300. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18301. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18302. #endif
  18303. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18304. exit(0);
  18305. # else
  18306. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18307. # error not present
  18308. # endif
  18309. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18310. exit(0);
  18311. # else
  18312. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18313. # error not present
  18314. # endif
  18315. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18316. # error not present
  18317. # endif
  18318. # endif
  18319. # endif
  18320. exit(0);
  18321. ;
  18322. return 0;
  18323. }
  18324. _ACEOF
  18325. if ac_fn_c_try_compile "$LINENO"
  18326. then :
  18327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18328. printf "%s\n" "found." >&6; }
  18329. else $as_nop
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18331. printf "%s\n" "not present." >&6; }
  18332. alsa_found=no
  18333. fi
  18334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18335. ac_ext=c
  18336. ac_cpp='$CPP $CPPFLAGS'
  18337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18340. if test "x$enable_alsatest" = "xyes"; then
  18341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18342. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18343. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18344. then :
  18345. printf %s "(cached) " >&6
  18346. else $as_nop
  18347. ac_check_lib_save_LIBS=$LIBS
  18348. LIBS="-lasound $LIBS"
  18349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18350. /* end confdefs.h. */
  18351. /* Override any GCC internal prototype to avoid an error.
  18352. Use char because int might match the return type of a GCC
  18353. builtin and then its argument prototype would still apply. */
  18354. char snd_ctl_open ();
  18355. int
  18356. main (void)
  18357. {
  18358. return snd_ctl_open ();
  18359. ;
  18360. return 0;
  18361. }
  18362. _ACEOF
  18363. if ac_fn_c_try_link "$LINENO"
  18364. then :
  18365. ac_cv_lib_asound_snd_ctl_open=yes
  18366. else $as_nop
  18367. ac_cv_lib_asound_snd_ctl_open=no
  18368. fi
  18369. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18370. conftest$ac_exeext conftest.$ac_ext
  18371. LIBS=$ac_check_lib_save_LIBS
  18372. fi
  18373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18374. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18375. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18376. then :
  18377. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18378. LIBS="-lasound $LIBS"
  18379. else $as_nop
  18380. alsa_found=no
  18381. fi
  18382. fi
  18383. if test "x$alsa_found" = "xyes" ; then
  18384. have_alsa=yes
  18385. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18386. LIBS=`echo $LIBS | sed 's/ //'`
  18387. LIBS="-lasound $LIBS"
  18388. fi
  18389. if test "x$alsa_found" = "xno" ; then
  18390. have_alsa=no
  18391. CFLAGS="$alsa_save_CFLAGS"
  18392. LDFLAGS="$alsa_save_LDFLAGS"
  18393. LIBS="$alsa_save_LIBS"
  18394. ALSA_CFLAGS=""
  18395. ALSA_LIBS=""
  18396. fi
  18397. # Restore all flags from before the ALSA detection runs
  18398. CFLAGS="$alsa_save_CFLAGS"
  18399. LDFLAGS="$alsa_save_LDFLAGS"
  18400. LIBS="$alsa_save_LIBS"
  18401. if test x$have_alsa = xyes; then
  18402. # Check whether --enable-alsa-shared was given.
  18403. if test ${enable_alsa_shared+y}
  18404. then :
  18405. enableval=$enable_alsa_shared;
  18406. else $as_nop
  18407. enable_alsa_shared=yes
  18408. fi
  18409. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18410. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18411. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18412. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18413. if test x$have_loadso != xyes && \
  18414. test x$enable_alsa_shared = xyes; then
  18415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18416. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18417. fi
  18418. if test x$have_loadso = xyes && \
  18419. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18420. echo "-- dynamic libasound -> $alsa_lib"
  18421. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18422. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18423. else
  18424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18425. SUMMARY_audio="${SUMMARY_audio} alsa"
  18426. fi
  18427. have_audio=yes
  18428. fi
  18429. fi
  18430. }
  18431. CheckPipewire()
  18432. {
  18433. # Check whether --enable-pipewire was given.
  18434. if test ${enable_pipewire+y}
  18435. then :
  18436. enableval=$enable_pipewire;
  18437. else $as_nop
  18438. enable_pipewire=yes
  18439. fi
  18440. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18441. pkg_failed=no
  18442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18443. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18444. if test -n "$PIPEWIRE_CFLAGS"; then
  18445. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18446. elif test -n "$PKG_CONFIG"; then
  18447. if test -n "$PKG_CONFIG" && \
  18448. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18449. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18450. ac_status=$?
  18451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18452. test $ac_status = 0; }; then
  18453. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18454. test "x$?" != "x0" && pkg_failed=yes
  18455. else
  18456. pkg_failed=yes
  18457. fi
  18458. else
  18459. pkg_failed=untried
  18460. fi
  18461. if test -n "$PIPEWIRE_LIBS"; then
  18462. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18463. elif test -n "$PKG_CONFIG"; then
  18464. if test -n "$PKG_CONFIG" && \
  18465. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18466. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18467. ac_status=$?
  18468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18469. test $ac_status = 0; }; then
  18470. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18471. test "x$?" != "x0" && pkg_failed=yes
  18472. else
  18473. pkg_failed=yes
  18474. fi
  18475. else
  18476. pkg_failed=untried
  18477. fi
  18478. if test $pkg_failed = yes; then
  18479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18480. printf "%s\n" "no" >&6; }
  18481. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18482. _pkg_short_errors_supported=yes
  18483. else
  18484. _pkg_short_errors_supported=no
  18485. fi
  18486. if test $_pkg_short_errors_supported = yes; then
  18487. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18488. else
  18489. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18490. fi
  18491. # Put the nasty error message in config.log where it belongs
  18492. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18493. audio_pipewire=no
  18494. elif test $pkg_failed = untried; then
  18495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18496. printf "%s\n" "no" >&6; }
  18497. audio_pipewire=no
  18498. else
  18499. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18500. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18502. printf "%s\n" "yes" >&6; }
  18503. audio_pipewire=yes
  18504. fi
  18505. if test x$audio_pipewire = xyes; then
  18506. # Check whether --enable-pipewire-shared was given.
  18507. if test ${enable_pipewire_shared+y}
  18508. then :
  18509. enableval=$enable_pipewire_shared;
  18510. else $as_nop
  18511. enable_pipewire_shared=yes
  18512. fi
  18513. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18514. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18515. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18516. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18517. if test x$have_loadso != xyes && \
  18518. test x$enable_pipewire_shared = xyes; then
  18519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18520. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18521. fi
  18522. if test x$have_loadso = xyes && \
  18523. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18524. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18525. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18526. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18527. else
  18528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18529. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18530. fi
  18531. have_audio=yes
  18532. fi
  18533. fi
  18534. }
  18535. CheckPulseAudio()
  18536. {
  18537. # Check whether --enable-pulseaudio was given.
  18538. if test ${enable_pulseaudio+y}
  18539. then :
  18540. enableval=$enable_pulseaudio;
  18541. else $as_nop
  18542. enable_pulseaudio=yes
  18543. fi
  18544. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18545. pkg_failed=no
  18546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18547. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18548. if test -n "$PULSEAUDIO_CFLAGS"; then
  18549. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18550. elif test -n "$PKG_CONFIG"; then
  18551. if test -n "$PKG_CONFIG" && \
  18552. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18553. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18554. ac_status=$?
  18555. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18556. test $ac_status = 0; }; then
  18557. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18558. test "x$?" != "x0" && pkg_failed=yes
  18559. else
  18560. pkg_failed=yes
  18561. fi
  18562. else
  18563. pkg_failed=untried
  18564. fi
  18565. if test -n "$PULSEAUDIO_LIBS"; then
  18566. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18567. elif test -n "$PKG_CONFIG"; then
  18568. if test -n "$PKG_CONFIG" && \
  18569. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18570. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18571. ac_status=$?
  18572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18573. test $ac_status = 0; }; then
  18574. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18575. test "x$?" != "x0" && pkg_failed=yes
  18576. else
  18577. pkg_failed=yes
  18578. fi
  18579. else
  18580. pkg_failed=untried
  18581. fi
  18582. if test $pkg_failed = yes; then
  18583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18584. printf "%s\n" "no" >&6; }
  18585. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18586. _pkg_short_errors_supported=yes
  18587. else
  18588. _pkg_short_errors_supported=no
  18589. fi
  18590. if test $_pkg_short_errors_supported = yes; then
  18591. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18592. else
  18593. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18594. fi
  18595. # Put the nasty error message in config.log where it belongs
  18596. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18597. audio_pulseaudio=no
  18598. elif test $pkg_failed = untried; then
  18599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18600. printf "%s\n" "no" >&6; }
  18601. audio_pulseaudio=no
  18602. else
  18603. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18604. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18606. printf "%s\n" "yes" >&6; }
  18607. audio_pulseaudio=yes
  18608. fi
  18609. if test x$audio_pulseaudio = xyes; then
  18610. # Check whether --enable-pulseaudio-shared was given.
  18611. if test ${enable_pulseaudio_shared+y}
  18612. then :
  18613. enableval=$enable_pulseaudio_shared;
  18614. else $as_nop
  18615. enable_pulseaudio_shared=yes
  18616. fi
  18617. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18618. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18619. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18620. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18621. if test x$have_loadso != xyes && \
  18622. test x$enable_pulseaudio_shared = xyes; then
  18623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18624. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18625. fi
  18626. if test x$have_loadso = xyes && \
  18627. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18628. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18629. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18630. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18631. case "$host" in
  18632. # On Solaris, pulseaudio must be linked deferred explicitly
  18633. # to prevent undefined symbol failures.
  18634. *-*-solaris*)
  18635. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18636. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18637. esac
  18638. else
  18639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18640. SUMMARY_audio="${SUMMARY_audio} pulse"
  18641. fi
  18642. have_audio=yes
  18643. fi
  18644. fi
  18645. }
  18646. CheckDiskAudio()
  18647. {
  18648. # Check whether --enable-diskaudio was given.
  18649. if test ${enable_diskaudio+y}
  18650. then :
  18651. enableval=$enable_diskaudio;
  18652. else $as_nop
  18653. enable_diskaudio=yes
  18654. fi
  18655. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18656. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18657. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18658. SUMMARY_audio="${SUMMARY_audio} disk"
  18659. have_audio=yes
  18660. fi
  18661. }
  18662. CheckDummyAudio()
  18663. {
  18664. # Check whether --enable-dummyaudio was given.
  18665. if test ${enable_dummyaudio+y}
  18666. then :
  18667. enableval=$enable_dummyaudio;
  18668. else $as_nop
  18669. enable_dummyaudio=yes
  18670. fi
  18671. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18672. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18673. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18674. SUMMARY_audio="${SUMMARY_audio} dummy"
  18675. have_audio=yes
  18676. fi
  18677. }
  18678. CheckLibSampleRate()
  18679. {
  18680. # Check whether --enable-libsamplerate was given.
  18681. if test ${enable_libsamplerate+y}
  18682. then :
  18683. enableval=$enable_libsamplerate;
  18684. else $as_nop
  18685. enable_libsamplerate=yes
  18686. fi
  18687. if test x$enable_libsamplerate = xyes; then
  18688. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18689. if test "x$ac_cv_header_samplerate_h" = xyes
  18690. then :
  18691. have_samplerate_h_hdr=yes
  18692. else $as_nop
  18693. have_samplerate_h_hdr=no
  18694. fi
  18695. if test x$have_samplerate_h_hdr = xyes; then
  18696. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18697. # Check whether --enable-libsamplerate-shared was given.
  18698. if test ${enable_libsamplerate_shared+y}
  18699. then :
  18700. enableval=$enable_libsamplerate_shared;
  18701. else $as_nop
  18702. enable_libsamplerate_shared=yes
  18703. fi
  18704. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18705. if test x$have_loadso != xyes && \
  18706. test x$enable_libsamplerate_shared = xyes; then
  18707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18708. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18709. fi
  18710. if test x$have_loadso = xyes && \
  18711. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18712. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18713. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18714. else
  18715. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18716. fi
  18717. fi
  18718. fi
  18719. }
  18720. CheckARM()
  18721. {
  18722. # Check whether --enable-arm-simd was given.
  18723. if test ${enable_arm_simd+y}
  18724. then :
  18725. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18726. else $as_nop
  18727. enable_arm_simd=no
  18728. fi
  18729. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18730. save_CFLAGS="$CFLAGS"
  18731. have_arm_simd=no
  18732. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18734. printf %s "checking for ARM SIMD... " >&6; }
  18735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18736. /* end confdefs.h. */
  18737. .text
  18738. .arch armv6
  18739. .object_arch armv4
  18740. .arm
  18741. .altmacro
  18742. #ifndef __ARM_EABI__
  18743. #error EABI is required (to be sure that calling conventions are compatible)
  18744. #endif
  18745. pld [r0]
  18746. uqadd8 r0, r0, r0
  18747. _ACEOF
  18748. if ac_fn_c_try_compile "$LINENO"
  18749. then :
  18750. have_arm_simd=yes
  18751. fi
  18752. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18754. printf "%s\n" "$have_arm_simd" >&6; }
  18755. CFLAGS="$save_CFLAGS"
  18756. if test x$have_arm_simd = xyes; then
  18757. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18758. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18759. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18760. fi
  18761. fi
  18762. }
  18763. CheckNEON()
  18764. {
  18765. # Check whether --enable-arm-neon was given.
  18766. if test ${enable_arm_neon+y}
  18767. then :
  18768. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18769. else $as_nop
  18770. enable_arm_neon=no
  18771. fi
  18772. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18773. save_CFLAGS="$CFLAGS"
  18774. have_arm_neon=no
  18775. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18777. printf %s "checking for ARM NEON... " >&6; }
  18778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18779. /* end confdefs.h. */
  18780. .text
  18781. .fpu neon
  18782. .arch armv7a
  18783. .object_arch armv4
  18784. .eabi_attribute 10, 0
  18785. .arm
  18786. .altmacro
  18787. #ifndef __ARM_EABI__
  18788. #error EABI is required (to be sure that calling conventions are compatible)
  18789. #endif
  18790. pld [r0]
  18791. vmovn.u16 d0, q0
  18792. _ACEOF
  18793. if ac_fn_c_try_compile "$LINENO"
  18794. then :
  18795. have_arm_neon=yes
  18796. fi
  18797. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  18799. printf "%s\n" "$have_arm_neon" >&6; }
  18800. CFLAGS="$save_CFLAGS"
  18801. if test x$have_arm_neon = xyes; then
  18802. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  18803. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  18804. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  18805. fi
  18806. fi
  18807. }
  18808. CheckObjectiveCARC()
  18809. {
  18810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  18811. printf %s "checking for clang -fobjc-arc option... " >&6; }
  18812. have_clang_objc_arc=no
  18813. save_CFLAGS="$CFLAGS"
  18814. CFLAGS="$save_CFLAGS -fobjc-arc"
  18815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18816. /* end confdefs.h. */
  18817. int x = 0;
  18818. int
  18819. main (void)
  18820. {
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. if ac_fn_c_try_compile "$LINENO"
  18826. then :
  18827. have_clang_objc_arc=yes
  18828. fi
  18829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  18831. printf "%s\n" "$have_clang_objc_arc" >&6; }
  18832. CFLAGS="$save_CFLAGS"
  18833. if test x$have_clang_objc_arc = xyes; then
  18834. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  18835. fi
  18836. }
  18837. CheckGDwarf4()
  18838. {
  18839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  18840. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  18841. have_gcc_gdwarf4=no
  18842. save_CFLAGS="$CFLAGS"
  18843. CFLAGS="$save_CFLAGS -gdwarf-4"
  18844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18845. /* end confdefs.h. */
  18846. int x = 0;
  18847. int
  18848. main (void)
  18849. {
  18850. ;
  18851. return 0;
  18852. }
  18853. _ACEOF
  18854. if ac_fn_c_try_compile "$LINENO"
  18855. then :
  18856. have_gcc_gdwarf4=yes
  18857. fi
  18858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  18860. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  18861. CFLAGS="$save_CFLAGS"
  18862. if test x$have_gcc_gdwarf4 = xyes; then
  18863. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  18864. fi
  18865. }
  18866. CheckVisibilityHidden()
  18867. {
  18868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18869. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  18870. have_gcc_fvisibility=no
  18871. visibility_CFLAGS="-fvisibility=hidden"
  18872. save_CFLAGS="$CFLAGS"
  18873. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18875. /* end confdefs.h. */
  18876. #if !defined(__GNUC__) || __GNUC__ < 4
  18877. #error SDL only uses visibility attributes in GCC 4 or newer
  18878. #endif
  18879. int
  18880. main (void)
  18881. {
  18882. ;
  18883. return 0;
  18884. }
  18885. _ACEOF
  18886. if ac_fn_c_try_compile "$LINENO"
  18887. then :
  18888. have_gcc_fvisibility=yes
  18889. fi
  18890. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18892. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  18893. CFLAGS="$save_CFLAGS"
  18894. if test x$have_gcc_fvisibility = xyes; then
  18895. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18896. fi
  18897. }
  18898. CheckNoStrictAliasing()
  18899. {
  18900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  18901. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  18902. have_gcc_no_strict_aliasing=no
  18903. save_CFLAGS="$CFLAGS"
  18904. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  18905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18906. /* end confdefs.h. */
  18907. int x = 0;
  18908. int
  18909. main (void)
  18910. {
  18911. ;
  18912. return 0;
  18913. }
  18914. _ACEOF
  18915. if ac_fn_c_try_compile "$LINENO"
  18916. then :
  18917. have_gcc_no_strict_aliasing=yes
  18918. fi
  18919. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  18921. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  18922. CFLAGS="$save_CFLAGS"
  18923. if test x$have_gcc_no_strict_aliasing = xyes; then
  18924. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  18925. fi
  18926. }
  18927. CheckStackBoundary()
  18928. {
  18929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  18930. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  18931. have_gcc_preferred_stack_boundary=no
  18932. save_CFLAGS="$CFLAGS"
  18933. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  18934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18935. /* end confdefs.h. */
  18936. int x = 0;
  18937. int
  18938. main (void)
  18939. {
  18940. ;
  18941. return 0;
  18942. }
  18943. _ACEOF
  18944. if ac_fn_c_try_compile "$LINENO"
  18945. then :
  18946. have_gcc_preferred_stack_boundary=yes
  18947. fi
  18948. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18950. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  18951. CFLAGS="$save_CFLAGS"
  18952. if test x$have_gcc_preferred_stack_boundary = xyes; then
  18953. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18954. fi
  18955. }
  18956. CheckWerror()
  18957. {
  18958. # Check whether --enable-werror was given.
  18959. if test ${enable_werror+y}
  18960. then :
  18961. enableval=$enable_werror; enable_werror=$enableval
  18962. else $as_nop
  18963. enable_werror=no
  18964. fi
  18965. if test x$enable_werror = xyes; then
  18966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  18967. printf %s "checking for GCC -Werror option... " >&6; }
  18968. have_gcc_werror=no
  18969. save_CFLAGS="$CFLAGS"
  18970. CFLAGS="$save_CFLAGS -Werror"
  18971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18972. /* end confdefs.h. */
  18973. int x = 0;
  18974. int
  18975. main (void)
  18976. {
  18977. ;
  18978. return 0;
  18979. }
  18980. _ACEOF
  18981. if ac_fn_c_try_compile "$LINENO"
  18982. then :
  18983. have_gcc_werror=yes
  18984. fi
  18985. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  18987. printf "%s\n" "$have_gcc_werror" >&6; }
  18988. CFLAGS="$save_CFLAGS"
  18989. if test x$have_gcc_werror = xyes; then
  18990. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  18991. fi
  18992. fi
  18993. }
  18994. CheckNoErrorDeprecatedDeclarationsWerror()
  18995. {
  18996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  18997. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  18998. have_gcc_no_werror_deprecated_declarations=no
  18999. save_CFLAGS="$CFLAGS"
  19000. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19002. /* end confdefs.h. */
  19003. int x = 0;
  19004. int
  19005. main (void)
  19006. {
  19007. ;
  19008. return 0;
  19009. }
  19010. _ACEOF
  19011. if ac_fn_c_try_compile "$LINENO"
  19012. then :
  19013. have_gcc_no_werror_deprecated_declarations=yes
  19014. fi
  19015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19017. printf "%s\n" "$have_gcc_werror" >&6; }
  19018. CFLAGS="$save_CFLAGS"
  19019. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19020. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19021. fi
  19022. }
  19023. CheckDeclarationAfterStatement()
  19024. {
  19025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19026. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19027. have_gcc_declaration_after_statement=no
  19028. save_CFLAGS="$CFLAGS"
  19029. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19031. /* end confdefs.h. */
  19032. int x = 0;
  19033. int
  19034. main (void)
  19035. {
  19036. ;
  19037. return 0;
  19038. }
  19039. _ACEOF
  19040. if ac_fn_c_try_compile "$LINENO"
  19041. then :
  19042. have_gcc_declaration_after_statement=yes
  19043. fi
  19044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19046. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19047. CFLAGS="$save_CFLAGS"
  19048. if test x$have_gcc_declaration_after_statement = xyes; then
  19049. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19050. fi
  19051. }
  19052. CheckWarnAll()
  19053. {
  19054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19055. printf %s "checking for GCC -Wall option... " >&6; }
  19056. have_gcc_Wall=no
  19057. save_CFLAGS="$CFLAGS"
  19058. CFLAGS="$save_CFLAGS -Wall"
  19059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19060. /* end confdefs.h. */
  19061. int x = 0;
  19062. int
  19063. main (void)
  19064. {
  19065. ;
  19066. return 0;
  19067. }
  19068. _ACEOF
  19069. if ac_fn_c_try_compile "$LINENO"
  19070. then :
  19071. have_gcc_Wall=yes
  19072. fi
  19073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19075. printf "%s\n" "$have_gcc_Wall" >&6; }
  19076. CFLAGS="$save_CFLAGS"
  19077. if test x$have_gcc_Wall = xyes; then
  19078. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19080. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19081. need_gcc_Wno_multichar=no
  19082. case "$host" in
  19083. *-*-haiku*)
  19084. need_gcc_Wno_multichar=yes
  19085. ;;
  19086. esac
  19087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19088. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19089. if test x$need_gcc_Wno_multichar = xyes; then
  19090. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19091. fi
  19092. fi
  19093. }
  19094. CheckWayland()
  19095. {
  19096. # Check whether --enable-video-wayland was given.
  19097. if test ${enable_video_wayland+y}
  19098. then :
  19099. enableval=$enable_video_wayland;
  19100. else $as_nop
  19101. enable_video_wayland=yes
  19102. fi
  19103. # Check whether --enable-video-wayland-qt-touch was given.
  19104. if test ${enable_video_wayland_qt_touch+y}
  19105. then :
  19106. enableval=$enable_video_wayland_qt_touch;
  19107. else $as_nop
  19108. enable_video_wayland_qt_touch=yes
  19109. fi
  19110. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19112. printf %s "checking for Wayland support... " >&6; }
  19113. video_wayland=no
  19114. if test x$video_opengl_egl = xyes && \
  19115. test x$video_opengles_v2 = xyes; then
  19116. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19117. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19118. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19119. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19120. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19121. then :
  19122. WAYLAND_SCANNER_CODE_MODE=private-code
  19123. else $as_nop
  19124. WAYLAND_SCANNER_CODE_MODE=code
  19125. fi
  19126. video_wayland=yes
  19127. fi
  19128. fi
  19129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19130. printf "%s\n" "$video_wayland" >&6; }
  19131. if test x$video_wayland = xyes; then
  19132. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19133. if test x$enable_video_wayland_qt_touch = xyes; then
  19134. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19135. fi
  19136. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19137. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19138. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19139. # Check whether --enable-wayland-shared was given.
  19140. if test ${enable_wayland_shared+y}
  19141. then :
  19142. enableval=$enable_wayland_shared;
  19143. else $as_nop
  19144. enable_wayland_shared=maybe
  19145. fi
  19146. case "$host" in
  19147. *)
  19148. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19149. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19150. if test x$wayland_egl_lib = x; then
  19151. # This works in Ubuntu 13.10, maybe others
  19152. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19153. fi
  19154. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19155. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19156. ;;
  19157. esac
  19158. if test x$enable_wayland_shared = xmaybe; then
  19159. enable_wayland_shared=yes
  19160. fi
  19161. if test x$have_loadso != xyes && \
  19162. test x$enable_wayland_shared = xyes; then
  19163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19164. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19165. enable_wayland_shared=no
  19166. fi
  19167. if test x$have_loadso = xyes && \
  19168. test x$enable_wayland_shared = xyes && \
  19169. test x$wayland_client_lib != x && \
  19170. test x$wayland_egl_lib != x && \
  19171. test x$wayland_cursor_lib != x && \
  19172. test x$xkbcommon_lib != x; then
  19173. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19174. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19175. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19176. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19177. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19178. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19179. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19180. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19181. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19182. else
  19183. enable_wayland_shared=no
  19184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19185. SUMMARY_video="${SUMMARY_video} wayland"
  19186. fi
  19187. have_video=yes
  19188. # Check whether --enable-libdecor was given.
  19189. if test ${enable_libdecor+y}
  19190. then :
  19191. enableval=$enable_libdecor;
  19192. else $as_nop
  19193. enable_libdecor=yes
  19194. fi
  19195. if test x$enable_libdecor = xyes; then
  19196. pkg_failed=no
  19197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19198. printf %s "checking for libdecor-0... " >&6; }
  19199. if test -n "$DECOR_CFLAGS"; then
  19200. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19201. elif test -n "$PKG_CONFIG"; then
  19202. if test -n "$PKG_CONFIG" && \
  19203. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19204. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19205. ac_status=$?
  19206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19207. test $ac_status = 0; }; then
  19208. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19209. test "x$?" != "x0" && pkg_failed=yes
  19210. else
  19211. pkg_failed=yes
  19212. fi
  19213. else
  19214. pkg_failed=untried
  19215. fi
  19216. if test -n "$DECOR_LIBS"; then
  19217. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19218. elif test -n "$PKG_CONFIG"; then
  19219. if test -n "$PKG_CONFIG" && \
  19220. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19221. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19222. ac_status=$?
  19223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19224. test $ac_status = 0; }; then
  19225. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19226. test "x$?" != "x0" && pkg_failed=yes
  19227. else
  19228. pkg_failed=yes
  19229. fi
  19230. else
  19231. pkg_failed=untried
  19232. fi
  19233. if test $pkg_failed = yes; then
  19234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19235. printf "%s\n" "no" >&6; }
  19236. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19237. _pkg_short_errors_supported=yes
  19238. else
  19239. _pkg_short_errors_supported=no
  19240. fi
  19241. if test $_pkg_short_errors_supported = yes; then
  19242. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19243. else
  19244. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19245. fi
  19246. # Put the nasty error message in config.log where it belongs
  19247. echo "$DECOR_PKG_ERRORS" >&5
  19248. video_libdecor=no
  19249. elif test $pkg_failed = untried; then
  19250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19251. printf "%s\n" "no" >&6; }
  19252. video_libdecor=no
  19253. else
  19254. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19255. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19257. printf "%s\n" "yes" >&6; }
  19258. video_libdecor=yes
  19259. fi
  19260. if test x$video_libdecor = xyes; then
  19261. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19262. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19263. # Check whether --enable-libdecor-shared was given.
  19264. if test ${enable_libdecor_shared+y}
  19265. then :
  19266. enableval=$enable_libdecor_shared;
  19267. else $as_nop
  19268. enable_libdecor_shared=yes
  19269. fi
  19270. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19271. if test x$enable_wayland_shared != xyes; then
  19272. enable_libdecor_shared=no
  19273. fi
  19274. if test x$have_loadso != xyes && \
  19275. test x$enable_libdecor_shared = xyes; then
  19276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19277. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19278. fi
  19279. if test x$have_loadso = xyes && \
  19280. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19281. echo "-- dynamic libdecor -> $decor_lib"
  19282. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19283. else
  19284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19285. fi
  19286. fi
  19287. fi
  19288. fi
  19289. fi
  19290. }
  19291. CheckNativeClient()
  19292. {
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. #if !defined(__native_client__)
  19296. #error "NO NACL"
  19297. #endif
  19298. int
  19299. main (void)
  19300. {
  19301. ;
  19302. return 0;
  19303. }
  19304. _ACEOF
  19305. if ac_fn_c_try_compile "$LINENO"
  19306. then :
  19307. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  19308. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  19309. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  19310. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  19311. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19312. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19313. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  19314. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  19315. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  19316. SUMMARY_audio="${SUMMARY_audio} nacl"
  19317. have_audio=yes
  19318. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  19319. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  19320. have_video=yes
  19321. fi
  19322. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19323. }
  19324. CheckRPI()
  19325. {
  19326. # Check whether --enable-video-rpi was given.
  19327. if test ${enable_video_rpi+y}
  19328. then :
  19329. enableval=$enable_video_rpi;
  19330. else $as_nop
  19331. enable_video_rpi=yes
  19332. fi
  19333. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19334. pkg_failed=no
  19335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19336. printf %s "checking for bcm_host brcmegl... " >&6; }
  19337. if test -n "$RPI_CFLAGS"; then
  19338. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19339. elif test -n "$PKG_CONFIG"; then
  19340. if test -n "$PKG_CONFIG" && \
  19341. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19342. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19343. ac_status=$?
  19344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19345. test $ac_status = 0; }; then
  19346. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19347. test "x$?" != "x0" && pkg_failed=yes
  19348. else
  19349. pkg_failed=yes
  19350. fi
  19351. else
  19352. pkg_failed=untried
  19353. fi
  19354. if test -n "$RPI_LIBS"; then
  19355. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19356. elif test -n "$PKG_CONFIG"; then
  19357. if test -n "$PKG_CONFIG" && \
  19358. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19359. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19360. ac_status=$?
  19361. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19362. test $ac_status = 0; }; then
  19363. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19364. test "x$?" != "x0" && pkg_failed=yes
  19365. else
  19366. pkg_failed=yes
  19367. fi
  19368. else
  19369. pkg_failed=untried
  19370. fi
  19371. if test $pkg_failed = yes; then
  19372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19373. printf "%s\n" "no" >&6; }
  19374. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19375. _pkg_short_errors_supported=yes
  19376. else
  19377. _pkg_short_errors_supported=no
  19378. fi
  19379. if test $_pkg_short_errors_supported = yes; then
  19380. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19381. else
  19382. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19383. fi
  19384. # Put the nasty error message in config.log where it belongs
  19385. echo "$RPI_PKG_ERRORS" >&5
  19386. video_rpi=no
  19387. elif test $pkg_failed = untried; then
  19388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19389. printf "%s\n" "no" >&6; }
  19390. video_rpi=no
  19391. else
  19392. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19393. RPI_LIBS=$pkg_cv_RPI_LIBS
  19394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19395. printf "%s\n" "yes" >&6; }
  19396. video_rpi=yes
  19397. fi
  19398. if test x$video_rpi = xno; then
  19399. if test x$ARCH = xnetbsd; then
  19400. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19401. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19402. else
  19403. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19404. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19405. fi
  19406. fi
  19407. # Save the original compiler flags and libraries
  19408. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19409. # Add the Raspberry Pi compiler flags and libraries
  19410. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19412. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19413. have_video_rpi=no
  19414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. /* end confdefs.h. */
  19416. #include <bcm_host.h>
  19417. #include <EGL/eglplatform.h>
  19418. int
  19419. main (void)
  19420. {
  19421. EGL_DISPMANX_WINDOW_T window;
  19422. bcm_host_init();
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. if ac_fn_c_try_link "$LINENO"
  19428. then :
  19429. have_video_rpi=yes
  19430. fi
  19431. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19432. conftest$ac_exeext conftest.$ac_ext
  19433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19434. printf "%s\n" "$have_video_rpi" >&6; }
  19435. # Restore the compiler flags and libraries
  19436. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19437. if test x$have_video_rpi = xyes; then
  19438. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19439. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19440. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19441. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19442. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19443. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19444. SUMMARY_video="${SUMMARY_video} rpi"
  19445. have_video=yes
  19446. fi
  19447. fi
  19448. }
  19449. CheckX11()
  19450. {
  19451. # Check whether --enable-video-x11 was given.
  19452. if test ${enable_video_x11+y}
  19453. then :
  19454. enableval=$enable_video_x11;
  19455. else $as_nop
  19456. enable_video_x11=yes
  19457. case "$host" in
  19458. *-*-darwin*|*-ios-*)
  19459. enable_video_x11=no
  19460. ;;
  19461. esac
  19462. fi
  19463. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19464. case "$host" in
  19465. *-*-darwin*)
  19466. # This isn't necessary for X11, but fixes GLX detection
  19467. if test "x$x_includes" = xNONE && \
  19468. test "x$x_libraries" = xNONE && \
  19469. test -d /opt/X11/include && \
  19470. test -d /opt/X11/lib; then
  19471. x_includes="/opt/X11/include"
  19472. x_libraries="/opt/X11/lib"
  19473. fi
  19474. ;;
  19475. esac
  19476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19477. printf %s "checking for X... " >&6; }
  19478. # Check whether --with-x was given.
  19479. if test ${with_x+y}
  19480. then :
  19481. withval=$with_x;
  19482. fi
  19483. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19484. if test "x$with_x" = xno; then
  19485. # The user explicitly disabled X.
  19486. have_x=disabled
  19487. else
  19488. case $x_includes,$x_libraries in #(
  19489. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19490. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19491. then :
  19492. printf %s "(cached) " >&6
  19493. else $as_nop
  19494. # One or both of the vars are not set, and there is no cached value.
  19495. ac_x_includes=no
  19496. ac_x_libraries=no
  19497. # Do we need to do anything special at all?
  19498. ac_save_LIBS=$LIBS
  19499. LIBS="-lX11 $LIBS"
  19500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19501. /* end confdefs.h. */
  19502. #include <X11/Xlib.h>
  19503. int
  19504. main (void)
  19505. {
  19506. XrmInitialize ()
  19507. ;
  19508. return 0;
  19509. }
  19510. _ACEOF
  19511. if ac_fn_c_try_link "$LINENO"
  19512. then :
  19513. # We can compile and link X programs with no special options.
  19514. ac_x_includes=
  19515. ac_x_libraries=
  19516. fi
  19517. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19518. conftest$ac_exeext conftest.$ac_ext
  19519. LIBS="$ac_save_LIBS"
  19520. # If that didn't work, only try xmkmf and file system searches
  19521. # for native compilation.
  19522. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19523. then :
  19524. rm -f -r conftest.dir
  19525. if mkdir conftest.dir; then
  19526. cd conftest.dir
  19527. cat >Imakefile <<'_ACEOF'
  19528. incroot:
  19529. @echo incroot='${INCROOT}'
  19530. usrlibdir:
  19531. @echo usrlibdir='${USRLIBDIR}'
  19532. libdir:
  19533. @echo libdir='${LIBDIR}'
  19534. _ACEOF
  19535. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19536. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19537. for ac_var in incroot usrlibdir libdir; do
  19538. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19539. done
  19540. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19541. for ac_extension in a so sl dylib la dll; do
  19542. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19543. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19544. ac_im_usrlibdir=$ac_im_libdir; break
  19545. fi
  19546. done
  19547. # Screen out bogus values from the imake configuration. They are
  19548. # bogus both because they are the default anyway, and because
  19549. # using them would break gcc on systems where it needs fixed includes.
  19550. case $ac_im_incroot in
  19551. /usr/include) ac_x_includes= ;;
  19552. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19553. esac
  19554. case $ac_im_usrlibdir in
  19555. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19556. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19557. esac
  19558. fi
  19559. cd ..
  19560. rm -f -r conftest.dir
  19561. fi
  19562. # Standard set of common directories for X headers.
  19563. # Check X11 before X11Rn because it is often a symlink to the current release.
  19564. ac_x_header_dirs='
  19565. /usr/X11/include
  19566. /usr/X11R7/include
  19567. /usr/X11R6/include
  19568. /usr/X11R5/include
  19569. /usr/X11R4/include
  19570. /usr/include/X11
  19571. /usr/include/X11R7
  19572. /usr/include/X11R6
  19573. /usr/include/X11R5
  19574. /usr/include/X11R4
  19575. /usr/local/X11/include
  19576. /usr/local/X11R7/include
  19577. /usr/local/X11R6/include
  19578. /usr/local/X11R5/include
  19579. /usr/local/X11R4/include
  19580. /usr/local/include/X11
  19581. /usr/local/include/X11R7
  19582. /usr/local/include/X11R6
  19583. /usr/local/include/X11R5
  19584. /usr/local/include/X11R4
  19585. /opt/X11/include
  19586. /usr/X386/include
  19587. /usr/x386/include
  19588. /usr/XFree86/include/X11
  19589. /usr/include
  19590. /usr/local/include
  19591. /usr/unsupported/include
  19592. /usr/athena/include
  19593. /usr/local/x11r5/include
  19594. /usr/lpp/Xamples/include
  19595. /usr/openwin/include
  19596. /usr/openwin/share/include'
  19597. if test "$ac_x_includes" = no; then
  19598. # Guess where to find include files, by looking for Xlib.h.
  19599. # First, try using that file with no special directory specified.
  19600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19601. /* end confdefs.h. */
  19602. #include <X11/Xlib.h>
  19603. _ACEOF
  19604. if ac_fn_c_try_cpp "$LINENO"
  19605. then :
  19606. # We can compile using X headers with no special include directory.
  19607. ac_x_includes=
  19608. else $as_nop
  19609. for ac_dir in $ac_x_header_dirs; do
  19610. if test -r "$ac_dir/X11/Xlib.h"; then
  19611. ac_x_includes=$ac_dir
  19612. break
  19613. fi
  19614. done
  19615. fi
  19616. rm -f conftest.err conftest.i conftest.$ac_ext
  19617. fi # $ac_x_includes = no
  19618. if test "$ac_x_libraries" = no; then
  19619. # Check for the libraries.
  19620. # See if we find them without any special options.
  19621. # Don't add to $LIBS permanently.
  19622. ac_save_LIBS=$LIBS
  19623. LIBS="-lX11 $LIBS"
  19624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19625. /* end confdefs.h. */
  19626. #include <X11/Xlib.h>
  19627. int
  19628. main (void)
  19629. {
  19630. XrmInitialize ()
  19631. ;
  19632. return 0;
  19633. }
  19634. _ACEOF
  19635. if ac_fn_c_try_link "$LINENO"
  19636. then :
  19637. LIBS=$ac_save_LIBS
  19638. # We can link X programs with no special library path.
  19639. ac_x_libraries=
  19640. else $as_nop
  19641. LIBS=$ac_save_LIBS
  19642. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19643. do
  19644. # Don't even attempt the hair of trying to link an X program!
  19645. for ac_extension in a so sl dylib la dll; do
  19646. if test -r "$ac_dir/libX11.$ac_extension"; then
  19647. ac_x_libraries=$ac_dir
  19648. break 2
  19649. fi
  19650. done
  19651. done
  19652. fi
  19653. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19654. conftest$ac_exeext conftest.$ac_ext
  19655. fi # $ac_x_libraries = no
  19656. fi
  19657. # Record the results.
  19658. case $ac_x_includes,$ac_x_libraries in #(
  19659. no,* | *,no | *\'*) :
  19660. # Didn't find X, or a directory has "'" in its name.
  19661. ac_cv_have_x="have_x=no" ;; #(
  19662. *) :
  19663. # Record where we found X for the cache.
  19664. ac_cv_have_x="have_x=yes\
  19665. ac_x_includes='$ac_x_includes'\
  19666. ac_x_libraries='$ac_x_libraries'" ;;
  19667. esac
  19668. fi
  19669. ;; #(
  19670. *) have_x=yes;;
  19671. esac
  19672. eval "$ac_cv_have_x"
  19673. fi # $with_x != no
  19674. if test "$have_x" != yes; then
  19675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19676. printf "%s\n" "$have_x" >&6; }
  19677. no_x=yes
  19678. else
  19679. # If each of the values was on the command line, it overrides each guess.
  19680. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19681. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19682. # Update the cache value to reflect the command line values.
  19683. ac_cv_have_x="have_x=yes\
  19684. ac_x_includes='$x_includes'\
  19685. ac_x_libraries='$x_libraries'"
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19687. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19688. fi
  19689. if test "$no_x" = yes; then
  19690. # Not all programs may use this symbol, but it does not hurt to define it.
  19691. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19692. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19693. else
  19694. if test -n "$x_includes"; then
  19695. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19696. fi
  19697. # It would also be nice to do this for all -L options, not just this one.
  19698. if test -n "$x_libraries"; then
  19699. X_LIBS="$X_LIBS -L$x_libraries"
  19700. # For Solaris; some versions of Sun CC require a space after -R and
  19701. # others require no space. Words are not sufficient . . . .
  19702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19703. printf %s "checking whether -R must be followed by a space... " >&6; }
  19704. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19705. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19706. ac_c_werror_flag=yes
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. int
  19710. main (void)
  19711. {
  19712. ;
  19713. return 0;
  19714. }
  19715. _ACEOF
  19716. if ac_fn_c_try_link "$LINENO"
  19717. then :
  19718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19719. printf "%s\n" "no" >&6; }
  19720. X_LIBS="$X_LIBS -R$x_libraries"
  19721. else $as_nop
  19722. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19724. /* end confdefs.h. */
  19725. int
  19726. main (void)
  19727. {
  19728. ;
  19729. return 0;
  19730. }
  19731. _ACEOF
  19732. if ac_fn_c_try_link "$LINENO"
  19733. then :
  19734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19735. printf "%s\n" "yes" >&6; }
  19736. X_LIBS="$X_LIBS -R $x_libraries"
  19737. else $as_nop
  19738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19739. printf "%s\n" "neither works" >&6; }
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19742. conftest$ac_exeext conftest.$ac_ext
  19743. fi
  19744. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19745. conftest$ac_exeext conftest.$ac_ext
  19746. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19747. LIBS=$ac_xsave_LIBS
  19748. fi
  19749. # Check for system-dependent libraries X programs must link with.
  19750. # Do this before checking for the system-independent R6 libraries
  19751. # (-lICE), since we may need -lsocket or whatever for X linking.
  19752. if test "$ISC" = yes; then
  19753. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19754. else
  19755. # Martyn Johnson says this is needed for Ultrix, if the X
  19756. # libraries were built with DECnet support. And Karl Berry says
  19757. # the Alpha needs dnet_stub (dnet does not exist).
  19758. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. /* Override any GCC internal prototype to avoid an error.
  19762. Use char because int might match the return type of a GCC
  19763. builtin and then its argument prototype would still apply. */
  19764. char XOpenDisplay ();
  19765. int
  19766. main (void)
  19767. {
  19768. return XOpenDisplay ();
  19769. ;
  19770. return 0;
  19771. }
  19772. _ACEOF
  19773. if ac_fn_c_try_link "$LINENO"
  19774. then :
  19775. else $as_nop
  19776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19777. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19778. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19779. then :
  19780. printf %s "(cached) " >&6
  19781. else $as_nop
  19782. ac_check_lib_save_LIBS=$LIBS
  19783. LIBS="-ldnet $LIBS"
  19784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19785. /* end confdefs.h. */
  19786. /* Override any GCC internal prototype to avoid an error.
  19787. Use char because int might match the return type of a GCC
  19788. builtin and then its argument prototype would still apply. */
  19789. char dnet_ntoa ();
  19790. int
  19791. main (void)
  19792. {
  19793. return dnet_ntoa ();
  19794. ;
  19795. return 0;
  19796. }
  19797. _ACEOF
  19798. if ac_fn_c_try_link "$LINENO"
  19799. then :
  19800. ac_cv_lib_dnet_dnet_ntoa=yes
  19801. else $as_nop
  19802. ac_cv_lib_dnet_dnet_ntoa=no
  19803. fi
  19804. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19805. conftest$ac_exeext conftest.$ac_ext
  19806. LIBS=$ac_check_lib_save_LIBS
  19807. fi
  19808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19809. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19810. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19811. then :
  19812. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19813. fi
  19814. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19816. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19817. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19818. then :
  19819. printf %s "(cached) " >&6
  19820. else $as_nop
  19821. ac_check_lib_save_LIBS=$LIBS
  19822. LIBS="-ldnet_stub $LIBS"
  19823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19824. /* end confdefs.h. */
  19825. /* Override any GCC internal prototype to avoid an error.
  19826. Use char because int might match the return type of a GCC
  19827. builtin and then its argument prototype would still apply. */
  19828. char dnet_ntoa ();
  19829. int
  19830. main (void)
  19831. {
  19832. return dnet_ntoa ();
  19833. ;
  19834. return 0;
  19835. }
  19836. _ACEOF
  19837. if ac_fn_c_try_link "$LINENO"
  19838. then :
  19839. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  19840. else $as_nop
  19841. ac_cv_lib_dnet_stub_dnet_ntoa=no
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19844. conftest$ac_exeext conftest.$ac_ext
  19845. LIBS=$ac_check_lib_save_LIBS
  19846. fi
  19847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  19848. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19849. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  19850. then :
  19851. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19852. fi
  19853. fi
  19854. fi
  19855. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19856. conftest$ac_exeext conftest.$ac_ext
  19857. LIBS="$ac_xsave_LIBS"
  19858. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19859. # to get the SysV transport functions.
  19860. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19861. # needs -lnsl.
  19862. # The nsl library prevents programs from opening the X display
  19863. # on Irix 5.2, according to T.E. Dickey.
  19864. # The functions gethostbyname, getservbyname, and inet_addr are
  19865. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19866. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19867. if test "x$ac_cv_func_gethostbyname" = xyes
  19868. then :
  19869. fi
  19870. if test $ac_cv_func_gethostbyname = no; then
  19871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19872. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19873. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19874. then :
  19875. printf %s "(cached) " >&6
  19876. else $as_nop
  19877. ac_check_lib_save_LIBS=$LIBS
  19878. LIBS="-lnsl $LIBS"
  19879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19880. /* end confdefs.h. */
  19881. /* Override any GCC internal prototype to avoid an error.
  19882. Use char because int might match the return type of a GCC
  19883. builtin and then its argument prototype would still apply. */
  19884. char gethostbyname ();
  19885. int
  19886. main (void)
  19887. {
  19888. return gethostbyname ();
  19889. ;
  19890. return 0;
  19891. }
  19892. _ACEOF
  19893. if ac_fn_c_try_link "$LINENO"
  19894. then :
  19895. ac_cv_lib_nsl_gethostbyname=yes
  19896. else $as_nop
  19897. ac_cv_lib_nsl_gethostbyname=no
  19898. fi
  19899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19900. conftest$ac_exeext conftest.$ac_ext
  19901. LIBS=$ac_check_lib_save_LIBS
  19902. fi
  19903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19904. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19905. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19906. then :
  19907. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19908. fi
  19909. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19911. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  19912. if test ${ac_cv_lib_bsd_gethostbyname+y}
  19913. then :
  19914. printf %s "(cached) " >&6
  19915. else $as_nop
  19916. ac_check_lib_save_LIBS=$LIBS
  19917. LIBS="-lbsd $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 gethostbyname ();
  19924. int
  19925. main (void)
  19926. {
  19927. return gethostbyname ();
  19928. ;
  19929. return 0;
  19930. }
  19931. _ACEOF
  19932. if ac_fn_c_try_link "$LINENO"
  19933. then :
  19934. ac_cv_lib_bsd_gethostbyname=yes
  19935. else $as_nop
  19936. ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
  19943. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19944. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  19945. then :
  19946. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19947. fi
  19948. fi
  19949. fi
  19950. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19951. # socket/setsockopt and other routines are undefined under SCO ODT
  19952. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19953. # on later versions), says Simon Leinen: it contains gethostby*
  19954. # variants that don't use the name server (or something). -lsocket
  19955. # must be given before -lnsl if both are needed. We assume that
  19956. # if connect needs -lnsl, so does gethostbyname.
  19957. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19958. if test "x$ac_cv_func_connect" = xyes
  19959. then :
  19960. fi
  19961. if test $ac_cv_func_connect = no; then
  19962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19963. printf %s "checking for connect in -lsocket... " >&6; }
  19964. if test ${ac_cv_lib_socket_connect+y}
  19965. then :
  19966. printf %s "(cached) " >&6
  19967. else $as_nop
  19968. ac_check_lib_save_LIBS=$LIBS
  19969. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19971. /* end confdefs.h. */
  19972. /* Override any GCC internal prototype to avoid an error.
  19973. Use char because int might match the return type of a GCC
  19974. builtin and then its argument prototype would still apply. */
  19975. char connect ();
  19976. int
  19977. main (void)
  19978. {
  19979. return connect ();
  19980. ;
  19981. return 0;
  19982. }
  19983. _ACEOF
  19984. if ac_fn_c_try_link "$LINENO"
  19985. then :
  19986. ac_cv_lib_socket_connect=yes
  19987. else $as_nop
  19988. ac_cv_lib_socket_connect=no
  19989. fi
  19990. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19991. conftest$ac_exeext conftest.$ac_ext
  19992. LIBS=$ac_check_lib_save_LIBS
  19993. fi
  19994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19995. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  19996. if test "x$ac_cv_lib_socket_connect" = xyes
  19997. then :
  19998. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19999. fi
  20000. fi
  20001. # Guillermo Gomez says -lposix is necessary on A/UX.
  20002. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20003. if test "x$ac_cv_func_remove" = xyes
  20004. then :
  20005. fi
  20006. if test $ac_cv_func_remove = no; then
  20007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20008. printf %s "checking for remove in -lposix... " >&6; }
  20009. if test ${ac_cv_lib_posix_remove+y}
  20010. then :
  20011. printf %s "(cached) " >&6
  20012. else $as_nop
  20013. ac_check_lib_save_LIBS=$LIBS
  20014. LIBS="-lposix $LIBS"
  20015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20016. /* end confdefs.h. */
  20017. /* Override any GCC internal prototype to avoid an error.
  20018. Use char because int might match the return type of a GCC
  20019. builtin and then its argument prototype would still apply. */
  20020. char remove ();
  20021. int
  20022. main (void)
  20023. {
  20024. return remove ();
  20025. ;
  20026. return 0;
  20027. }
  20028. _ACEOF
  20029. if ac_fn_c_try_link "$LINENO"
  20030. then :
  20031. ac_cv_lib_posix_remove=yes
  20032. else $as_nop
  20033. ac_cv_lib_posix_remove=no
  20034. fi
  20035. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20036. conftest$ac_exeext conftest.$ac_ext
  20037. LIBS=$ac_check_lib_save_LIBS
  20038. fi
  20039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20040. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20041. if test "x$ac_cv_lib_posix_remove" = xyes
  20042. then :
  20043. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20044. fi
  20045. fi
  20046. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20047. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20048. if test "x$ac_cv_func_shmat" = xyes
  20049. then :
  20050. fi
  20051. if test $ac_cv_func_shmat = no; then
  20052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20053. printf %s "checking for shmat in -lipc... " >&6; }
  20054. if test ${ac_cv_lib_ipc_shmat+y}
  20055. then :
  20056. printf %s "(cached) " >&6
  20057. else $as_nop
  20058. ac_check_lib_save_LIBS=$LIBS
  20059. LIBS="-lipc $LIBS"
  20060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20061. /* end confdefs.h. */
  20062. /* Override any GCC internal prototype to avoid an error.
  20063. Use char because int might match the return type of a GCC
  20064. builtin and then its argument prototype would still apply. */
  20065. char shmat ();
  20066. int
  20067. main (void)
  20068. {
  20069. return shmat ();
  20070. ;
  20071. return 0;
  20072. }
  20073. _ACEOF
  20074. if ac_fn_c_try_link "$LINENO"
  20075. then :
  20076. ac_cv_lib_ipc_shmat=yes
  20077. else $as_nop
  20078. ac_cv_lib_ipc_shmat=no
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20081. conftest$ac_exeext conftest.$ac_ext
  20082. LIBS=$ac_check_lib_save_LIBS
  20083. fi
  20084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20085. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20086. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20087. then :
  20088. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20089. fi
  20090. fi
  20091. fi
  20092. # Check for libraries that X11R6 Xt/Xaw programs need.
  20093. ac_save_LDFLAGS=$LDFLAGS
  20094. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20095. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20096. # check for ICE first), but we must link in the order -lSM -lICE or
  20097. # we get undefined symbols. So assume we have SM if we have ICE.
  20098. # These have to be linked with before -lX11, unlike the other
  20099. # libraries we check for below, so use a different variable.
  20100. # John Interrante, Karl Berry
  20101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20102. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20103. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20104. then :
  20105. printf %s "(cached) " >&6
  20106. else $as_nop
  20107. ac_check_lib_save_LIBS=$LIBS
  20108. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20110. /* end confdefs.h. */
  20111. /* Override any GCC internal prototype to avoid an error.
  20112. Use char because int might match the return type of a GCC
  20113. builtin and then its argument prototype would still apply. */
  20114. char IceConnectionNumber ();
  20115. int
  20116. main (void)
  20117. {
  20118. return IceConnectionNumber ();
  20119. ;
  20120. return 0;
  20121. }
  20122. _ACEOF
  20123. if ac_fn_c_try_link "$LINENO"
  20124. then :
  20125. ac_cv_lib_ICE_IceConnectionNumber=yes
  20126. else $as_nop
  20127. ac_cv_lib_ICE_IceConnectionNumber=no
  20128. fi
  20129. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20130. conftest$ac_exeext conftest.$ac_ext
  20131. LIBS=$ac_check_lib_save_LIBS
  20132. fi
  20133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20134. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20135. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20136. then :
  20137. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20138. fi
  20139. LDFLAGS=$ac_save_LDFLAGS
  20140. fi
  20141. if test x$have_x = xyes; then
  20142. # Check whether --enable-x11-shared was given.
  20143. if test ${enable_x11_shared+y}
  20144. then :
  20145. enableval=$enable_x11_shared;
  20146. else $as_nop
  20147. enable_x11_shared=maybe
  20148. fi
  20149. case "$host" in
  20150. *-*-darwin*)
  20151. # Apple now puts this in /opt/X11
  20152. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20153. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20154. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20155. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20156. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20157. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20158. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20159. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20160. ;;
  20161. *-*-openbsd*)
  20162. x11_lib='libX11.so'
  20163. x11ext_lib='libXext.so'
  20164. xcursor_lib='libXcursor.so'
  20165. xinput_lib='libXi.so'
  20166. xfixes_lib='libXfixes.so'
  20167. xrandr_lib='libXrandr.so'
  20168. xrender_lib='libXrender.so'
  20169. xss_lib='libXss.so'
  20170. ;;
  20171. *)
  20172. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20173. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20174. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20175. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20176. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20177. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20178. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20179. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20180. ;;
  20181. esac
  20182. if test x$ac_cv_func_shmat != xyes; then
  20183. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20184. fi
  20185. CFLAGS="$CFLAGS $X_CFLAGS"
  20186. LDFLAGS="$LDFLAGS $X_LIBS"
  20187. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20188. #include <X11/Xproto.h>
  20189. "
  20190. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20191. then :
  20192. have_xext_h_hdr=yes
  20193. else $as_nop
  20194. have_xext_h_hdr=no
  20195. fi
  20196. if test x$have_xext_h_hdr != xyes; then
  20197. as_fn_error $? "
  20198. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20199. " "$LINENO" 5
  20200. fi
  20201. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20202. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20203. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20204. # Needed so SDL applications can include SDL_syswm.h
  20205. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20206. if test x$enable_x11_shared = xmaybe; then
  20207. enable_x11_shared=yes
  20208. fi
  20209. if test x$have_loadso != xyes && \
  20210. test x$enable_x11_shared = xyes; then
  20211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20212. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20213. enable_x11_shared=no
  20214. fi
  20215. if test x$have_loadso = xyes && \
  20216. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20217. echo "-- dynamic libX11 -> $x11_lib"
  20218. echo "-- dynamic libX11ext -> $x11ext_lib"
  20219. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20220. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20221. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20222. else
  20223. enable_x11_shared=no
  20224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20225. SUMMARY_video="${SUMMARY_video} x11"
  20226. fi
  20227. have_video=yes
  20228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20229. printf %s "checking for XGenericEvent... " >&6; }
  20230. have_XGenericEvent=no
  20231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20232. /* end confdefs.h. */
  20233. #include <X11/Xlib.h>
  20234. int
  20235. main (void)
  20236. {
  20237. Display *display;
  20238. XEvent event;
  20239. XGenericEventCookie *cookie = &event.xcookie;
  20240. XNextEvent(display, &event);
  20241. XGetEventData(display, cookie);
  20242. XFreeEventData(display, cookie);
  20243. ;
  20244. return 0;
  20245. }
  20246. _ACEOF
  20247. if ac_fn_c_try_compile "$LINENO"
  20248. then :
  20249. have_XGenericEvent=yes
  20250. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20251. fi
  20252. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20254. printf "%s\n" "$have_XGenericEvent" >&6; }
  20255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20256. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20257. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20258. then :
  20259. printf %s "(cached) " >&6
  20260. else $as_nop
  20261. ac_check_lib_save_LIBS=$LIBS
  20262. LIBS="-lX11 $LIBS"
  20263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20264. /* end confdefs.h. */
  20265. /* Override any GCC internal prototype to avoid an error.
  20266. Use char because int might match the return type of a GCC
  20267. builtin and then its argument prototype would still apply. */
  20268. char XkbKeycodeToKeysym ();
  20269. int
  20270. main (void)
  20271. {
  20272. return XkbKeycodeToKeysym ();
  20273. ;
  20274. return 0;
  20275. }
  20276. _ACEOF
  20277. if ac_fn_c_try_link "$LINENO"
  20278. then :
  20279. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20280. else $as_nop
  20281. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20282. fi
  20283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20284. conftest$ac_exeext conftest.$ac_ext
  20285. LIBS=$ac_check_lib_save_LIBS
  20286. fi
  20287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20288. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20289. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20290. then :
  20291. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20292. fi
  20293. # Check whether --enable-video-x11-xcursor was given.
  20294. if test ${enable_video_x11_xcursor+y}
  20295. then :
  20296. enableval=$enable_video_x11_xcursor;
  20297. else $as_nop
  20298. enable_video_x11_xcursor=yes
  20299. fi
  20300. if test x$enable_video_x11_xcursor = xyes; then
  20301. definitely_enable_video_x11_xcursor=no
  20302. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20303. "
  20304. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20305. then :
  20306. have_xcursor_h_hdr=yes
  20307. else $as_nop
  20308. have_xcursor_h_hdr=no
  20309. fi
  20310. if test x$have_xcursor_h_hdr = xyes; then
  20311. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20312. echo "-- dynamic libXcursor -> $xcursor_lib"
  20313. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20314. definitely_enable_video_x11_xcursor=yes
  20315. else
  20316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20317. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20318. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20319. then :
  20320. printf %s "(cached) " >&6
  20321. else $as_nop
  20322. ac_check_lib_save_LIBS=$LIBS
  20323. LIBS="-lXcursor $LIBS"
  20324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20325. /* end confdefs.h. */
  20326. /* Override any GCC internal prototype to avoid an error.
  20327. Use char because int might match the return type of a GCC
  20328. builtin and then its argument prototype would still apply. */
  20329. char XcursorImageCreate ();
  20330. int
  20331. main (void)
  20332. {
  20333. return XcursorImageCreate ();
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. if ac_fn_c_try_link "$LINENO"
  20339. then :
  20340. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20341. else $as_nop
  20342. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20343. fi
  20344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20345. conftest$ac_exeext conftest.$ac_ext
  20346. LIBS=$ac_check_lib_save_LIBS
  20347. fi
  20348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20349. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20350. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20351. then :
  20352. have_xcursor_lib=yes
  20353. fi
  20354. if test x$have_xcursor_lib = xyes ; then
  20355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20356. definitely_enable_video_x11_xcursor=yes
  20357. fi
  20358. fi
  20359. fi
  20360. fi
  20361. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20362. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20363. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20364. fi
  20365. # Check whether --enable-video-x11-xdbe was given.
  20366. if test ${enable_video_x11_xdbe+y}
  20367. then :
  20368. enableval=$enable_video_x11_xdbe;
  20369. else $as_nop
  20370. enable_video_x11_xdbe=yes
  20371. fi
  20372. if test x$enable_video_x11_xdbe = xyes; then
  20373. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20374. "
  20375. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20376. then :
  20377. have_dbe_h_hdr=yes
  20378. else $as_nop
  20379. have_dbe_h_hdr=no
  20380. fi
  20381. if test x$have_dbe_h_hdr = xyes; then
  20382. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20383. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20384. fi
  20385. fi
  20386. # Check whether --enable-video-x11-xinput was given.
  20387. if test ${enable_video_x11_xinput+y}
  20388. then :
  20389. enableval=$enable_video_x11_xinput;
  20390. else $as_nop
  20391. enable_video_x11_xinput=yes
  20392. fi
  20393. if test x$enable_video_x11_xinput = xyes; then
  20394. definitely_enable_video_x11_xinput=no
  20395. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20396. "
  20397. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20398. then :
  20399. have_xinput_h_hdr=yes
  20400. else $as_nop
  20401. have_xinput_h_hdr=no
  20402. fi
  20403. if test x$have_xinput_h_hdr = xyes; then
  20404. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20405. echo "-- dynamic libXi -> $xinput_lib"
  20406. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20407. definitely_enable_video_x11_xinput=yes
  20408. else
  20409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20410. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20411. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20412. then :
  20413. printf %s "(cached) " >&6
  20414. else $as_nop
  20415. ac_check_lib_save_LIBS=$LIBS
  20416. LIBS="-lXi $LIBS"
  20417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20418. /* end confdefs.h. */
  20419. /* Override any GCC internal prototype to avoid an error.
  20420. Use char because int might match the return type of a GCC
  20421. builtin and then its argument prototype would still apply. */
  20422. char XOpenDevice ();
  20423. int
  20424. main (void)
  20425. {
  20426. return XOpenDevice ();
  20427. ;
  20428. return 0;
  20429. }
  20430. _ACEOF
  20431. if ac_fn_c_try_link "$LINENO"
  20432. then :
  20433. ac_cv_lib_Xi_XOpenDevice=yes
  20434. else $as_nop
  20435. ac_cv_lib_Xi_XOpenDevice=no
  20436. fi
  20437. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20438. conftest$ac_exeext conftest.$ac_ext
  20439. LIBS=$ac_check_lib_save_LIBS
  20440. fi
  20441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20442. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20443. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20444. then :
  20445. have_xinput_lib=yes
  20446. fi
  20447. if test x$have_xinput_lib = xyes ; then
  20448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20449. definitely_enable_video_x11_xinput=yes
  20450. fi
  20451. fi
  20452. fi
  20453. fi
  20454. if test x$definitely_enable_video_x11_xinput = xyes; then
  20455. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20456. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20458. printf %s "checking for xinput2 multitouch... " >&6; }
  20459. have_xinput2_multitouch=no
  20460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20461. /* end confdefs.h. */
  20462. #include <X11/Xlib.h>
  20463. #include <X11/Xproto.h>
  20464. #include <X11/extensions/XInput2.h>
  20465. int
  20466. main (void)
  20467. {
  20468. int event_type = XI_TouchBegin;
  20469. XITouchClassInfo *t;
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. if ac_fn_c_try_compile "$LINENO"
  20475. then :
  20476. have_xinput2_multitouch=yes
  20477. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20478. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20479. fi
  20480. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20482. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20483. fi
  20484. # Check whether --enable-video-x11-xfixes was given.
  20485. if test ${enable_video_x11_xfixes+y}
  20486. then :
  20487. enableval=$enable_video_x11_xfixes;
  20488. else $as_nop
  20489. enable_video_x11_xfixes=yes
  20490. fi
  20491. if test x$enable_video_x11_xfixes = xyes; then
  20492. definitely_enable_video_x11_xfixes=no
  20493. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20495. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20497. /* end confdefs.h. */
  20498. #include <X11/Xlib.h>
  20499. #include <X11/Xproto.h>
  20500. #include <X11/extensions/XInput2.h>
  20501. #include <X11/extensions/Xfixes.h>
  20502. int
  20503. main (void)
  20504. {
  20505. BarrierEventID b;
  20506. ;
  20507. return 0;
  20508. }
  20509. _ACEOF
  20510. if ac_fn_c_try_compile "$LINENO"
  20511. then :
  20512. have_xfixes_h_hdr=yes
  20513. else $as_nop
  20514. have_xfixes_h_hdr=no
  20515. fi
  20516. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20518. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20519. if test x$have_xfixes_h_hdr = xyes; then
  20520. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20521. echo "-- dynamic libXfixes -> $xfixes_lib"
  20522. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20523. definitely_enable_video_x11_xfixes=yes
  20524. else
  20525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20526. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20527. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20528. then :
  20529. printf %s "(cached) " >&6
  20530. else $as_nop
  20531. ac_check_lib_save_LIBS=$LIBS
  20532. LIBS="-lXfixes $LIBS"
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. /* Override any GCC internal prototype to avoid an error.
  20536. Use char because int might match the return type of a GCC
  20537. builtin and then its argument prototype would still apply. */
  20538. char XFixesCreatePointerBarrier ();
  20539. int
  20540. main (void)
  20541. {
  20542. return XFixesCreatePointerBarrier ();
  20543. ;
  20544. return 0;
  20545. }
  20546. _ACEOF
  20547. if ac_fn_c_try_link "$LINENO"
  20548. then :
  20549. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20550. else $as_nop
  20551. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20552. fi
  20553. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20554. conftest$ac_exeext conftest.$ac_ext
  20555. LIBS=$ac_check_lib_save_LIBS
  20556. fi
  20557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20558. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20559. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20560. then :
  20561. have_xfixes_lib=yes
  20562. fi
  20563. if test x$have_xfixes_lib = xyes ; then
  20564. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20565. definitely_enable_video_x11_xfixes=yes
  20566. fi
  20567. fi
  20568. fi
  20569. fi
  20570. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20571. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20572. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20573. fi
  20574. # Check whether --enable-video-x11-xrandr was given.
  20575. if test ${enable_video_x11_xrandr+y}
  20576. then :
  20577. enableval=$enable_video_x11_xrandr;
  20578. else $as_nop
  20579. enable_video_x11_xrandr=yes
  20580. fi
  20581. if test x$enable_video_x11_xrandr = xyes; then
  20582. definitely_enable_video_x11_xrandr=no
  20583. have_xrandr_h_hdr=no
  20584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20585. /* end confdefs.h. */
  20586. #include <X11/Xlib.h>
  20587. #include <X11/extensions/Xrandr.h>
  20588. int
  20589. main (void)
  20590. {
  20591. XRRScreenResources *res = NULL;
  20592. ;
  20593. return 0;
  20594. }
  20595. _ACEOF
  20596. if ac_fn_c_try_compile "$LINENO"
  20597. then :
  20598. have_xrandr_h_hdr=yes
  20599. fi
  20600. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20601. if test x$have_xrandr_h_hdr = xyes; then
  20602. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20603. echo "-- dynamic libXrandr -> $xrandr_lib"
  20604. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20605. definitely_enable_video_x11_xrandr=yes
  20606. else
  20607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20608. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20609. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20610. then :
  20611. printf %s "(cached) " >&6
  20612. else $as_nop
  20613. ac_check_lib_save_LIBS=$LIBS
  20614. LIBS="-lXrandr $LIBS"
  20615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20616. /* end confdefs.h. */
  20617. /* Override any GCC internal prototype to avoid an error.
  20618. Use char because int might match the return type of a GCC
  20619. builtin and then its argument prototype would still apply. */
  20620. char XRRQueryExtension ();
  20621. int
  20622. main (void)
  20623. {
  20624. return XRRQueryExtension ();
  20625. ;
  20626. return 0;
  20627. }
  20628. _ACEOF
  20629. if ac_fn_c_try_link "$LINENO"
  20630. then :
  20631. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20632. else $as_nop
  20633. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20634. fi
  20635. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20636. conftest$ac_exeext conftest.$ac_ext
  20637. LIBS=$ac_check_lib_save_LIBS
  20638. fi
  20639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20640. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20641. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20642. then :
  20643. have_xrandr_lib=yes
  20644. fi
  20645. if test x$have_xrandr_lib = xyes ; then
  20646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20647. definitely_enable_video_x11_xrandr=yes
  20648. fi
  20649. fi
  20650. fi
  20651. fi
  20652. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20653. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20654. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20655. fi
  20656. # Check whether --enable-video-x11-scrnsaver was given.
  20657. if test ${enable_video_x11_scrnsaver+y}
  20658. then :
  20659. enableval=$enable_video_x11_scrnsaver;
  20660. else $as_nop
  20661. enable_video_x11_scrnsaver=yes
  20662. fi
  20663. if test x$enable_video_x11_scrnsaver = xyes; then
  20664. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20665. "
  20666. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20667. then :
  20668. have_scrnsaver_h_hdr=yes
  20669. else $as_nop
  20670. have_scrnsaver_h_hdr=no
  20671. fi
  20672. if test x$have_scrnsaver_h_hdr = xyes; then
  20673. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20674. echo "-- dynamic libXss -> $xss_lib"
  20675. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20676. definitely_enable_video_x11_scrnsaver=yes
  20677. else
  20678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20679. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20680. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20681. then :
  20682. printf %s "(cached) " >&6
  20683. else $as_nop
  20684. ac_check_lib_save_LIBS=$LIBS
  20685. LIBS="-lXss $LIBS"
  20686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20687. /* end confdefs.h. */
  20688. /* Override any GCC internal prototype to avoid an error.
  20689. Use char because int might match the return type of a GCC
  20690. builtin and then its argument prototype would still apply. */
  20691. char XScreenSaverSuspend ();
  20692. int
  20693. main (void)
  20694. {
  20695. return XScreenSaverSuspend ();
  20696. ;
  20697. return 0;
  20698. }
  20699. _ACEOF
  20700. if ac_fn_c_try_link "$LINENO"
  20701. then :
  20702. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20703. else $as_nop
  20704. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20705. fi
  20706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20707. conftest$ac_exeext conftest.$ac_ext
  20708. LIBS=$ac_check_lib_save_LIBS
  20709. fi
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20711. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20712. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20713. then :
  20714. have_xss_lib=yes
  20715. fi
  20716. if test x$have_xss_lib = xyes ; then
  20717. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20718. definitely_enable_video_x11_scrnsaver=yes
  20719. fi
  20720. fi
  20721. fi
  20722. fi
  20723. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20724. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20725. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20726. fi
  20727. # Check whether --enable-video-x11-xshape was given.
  20728. if test ${enable_video_x11_xshape+y}
  20729. then :
  20730. enableval=$enable_video_x11_xshape;
  20731. else $as_nop
  20732. enable_video_x11_xshape=yes
  20733. fi
  20734. if test x$enable_video_x11_xshape = xyes; then
  20735. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20736. "
  20737. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20738. then :
  20739. have_shape_h_hdr=yes
  20740. else $as_nop
  20741. have_shape_h_hdr=no
  20742. fi
  20743. if test x$have_shape_h_hdr = xyes; then
  20744. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20745. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20746. fi
  20747. fi
  20748. fi
  20749. fi
  20750. if test x$have_x != xyes; then
  20751. # Prevent Mesa from including X11 headers
  20752. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20753. fi
  20754. }
  20755. CheckVivanteVideo()
  20756. {
  20757. # Check whether --enable-video-vivante was given.
  20758. if test ${enable_video_vivante+y}
  20759. then :
  20760. enableval=$enable_video_vivante;
  20761. else $as_nop
  20762. enable_video_vivante=yes
  20763. fi
  20764. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20766. printf %s "checking for Vivante VDK API... " >&6; }
  20767. have_vivante_vdk=no
  20768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20769. /* end confdefs.h. */
  20770. #define LINUX
  20771. #define EGL_API_FB
  20772. #include <gc_vdk.h>
  20773. int
  20774. main (void)
  20775. {
  20776. ;
  20777. return 0;
  20778. }
  20779. _ACEOF
  20780. if ac_fn_c_try_compile "$LINENO"
  20781. then :
  20782. have_vivante_vdk=yes
  20783. fi
  20784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20786. printf "%s\n" "$have_vivante_vdk" >&6; }
  20787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20788. printf %s "checking for Vivante FB API... " >&6; }
  20789. have_vivante_egl=no
  20790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20791. /* end confdefs.h. */
  20792. #define LINUX
  20793. #define EGL_API_FB
  20794. #include <EGL/eglvivante.h>
  20795. int
  20796. main (void)
  20797. {
  20798. ;
  20799. return 0;
  20800. }
  20801. _ACEOF
  20802. if ac_fn_c_try_compile "$LINENO"
  20803. then :
  20804. have_vivante_egl=yes
  20805. fi
  20806. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20808. printf "%s\n" "$have_vivante_egl" >&6; }
  20809. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20810. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20811. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20812. if test x$have_vivante_vdk = xyes; then
  20813. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20814. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20815. fi
  20816. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20817. SUMMARY_video="${SUMMARY_video} vivante"
  20818. have_video=yes
  20819. fi
  20820. fi
  20821. }
  20822. CheckHaikuVideo()
  20823. {
  20824. if test x$enable_video = xyes; then
  20825. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20826. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20827. have_video=yes
  20828. SUMMARY_video="${SUMMARY_video} haiku"
  20829. fi
  20830. }
  20831. CheckCOCOA()
  20832. {
  20833. # Check whether --enable-video-cocoa was given.
  20834. if test ${enable_video_cocoa+y}
  20835. then :
  20836. enableval=$enable_video_cocoa;
  20837. else $as_nop
  20838. enable_video_cocoa=yes
  20839. fi
  20840. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20841. save_CFLAGS="$CFLAGS"
  20842. CFLAGS="$CFLAGS -x objective-c"
  20843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20844. printf %s "checking for Cocoa framework... " >&6; }
  20845. have_cocoa=no
  20846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20847. /* end confdefs.h. */
  20848. #import <Cocoa/Cocoa.h>
  20849. int
  20850. main (void)
  20851. {
  20852. ;
  20853. return 0;
  20854. }
  20855. _ACEOF
  20856. if ac_fn_c_try_compile "$LINENO"
  20857. then :
  20858. have_cocoa=yes
  20859. fi
  20860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20862. printf "%s\n" "$have_cocoa" >&6; }
  20863. CFLAGS="$save_CFLAGS"
  20864. if test x$have_cocoa = xyes; then
  20865. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20866. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20867. SUMMARY_video="${SUMMARY_video} cocoa"
  20868. have_video=yes
  20869. fi
  20870. fi
  20871. }
  20872. CheckMETAL()
  20873. {
  20874. # Check whether --enable-video-metal was given.
  20875. if test ${enable_video_metal+y}
  20876. then :
  20877. enableval=$enable_video_metal;
  20878. else $as_nop
  20879. enable_video_metal=yes
  20880. fi
  20881. # Check whether --enable-render-metal was given.
  20882. if test ${enable_render_metal+y}
  20883. then :
  20884. enableval=$enable_render_metal;
  20885. else $as_nop
  20886. enable_render_metal=yes
  20887. fi
  20888. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  20889. save_CFLAGS="$CFLAGS"
  20890. CFLAGS="$CFLAGS -x objective-c"
  20891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  20892. printf %s "checking for Metal framework... " >&6; }
  20893. have_metal=no
  20894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20895. /* end confdefs.h. */
  20896. #import <Cocoa/Cocoa.h>
  20897. #import <Metal/Metal.h>
  20898. #import <QuartzCore/CAMetalLayer.h>
  20899. #if TARGET_CPU_X86
  20900. #error Metal doesn't work on this configuration
  20901. #endif
  20902. int
  20903. main (void)
  20904. {
  20905. ;
  20906. return 0;
  20907. }
  20908. _ACEOF
  20909. if ac_fn_c_try_compile "$LINENO"
  20910. then :
  20911. have_metal=yes
  20912. fi
  20913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20914. CFLAGS="$save_CFLAGS"
  20915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  20916. printf "%s\n" "$have_metal" >&6; }
  20917. if test x$have_metal = xyes; then
  20918. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  20919. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20920. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  20921. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  20922. fi
  20923. SUMMARY_video="${SUMMARY_video} metal"
  20924. else
  20925. enable_video_metal=no
  20926. enable_render_metal=no
  20927. fi
  20928. fi
  20929. }
  20930. CheckDirectFB()
  20931. {
  20932. # Check whether --enable-video-directfb was given.
  20933. if test ${enable_video_directfb+y}
  20934. then :
  20935. enableval=$enable_video_directfb;
  20936. else $as_nop
  20937. enable_video_directfb=no
  20938. fi
  20939. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  20940. pkg_failed=no
  20941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  20942. printf %s "checking for directfb >= 1.0.0... " >&6; }
  20943. if test -n "$DIRECTFB_CFLAGS"; then
  20944. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  20945. elif test -n "$PKG_CONFIG"; then
  20946. if test -n "$PKG_CONFIG" && \
  20947. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  20948. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  20949. ac_status=$?
  20950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20951. test $ac_status = 0; }; then
  20952. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  20953. test "x$?" != "x0" && pkg_failed=yes
  20954. else
  20955. pkg_failed=yes
  20956. fi
  20957. else
  20958. pkg_failed=untried
  20959. fi
  20960. if test -n "$DIRECTFB_LIBS"; then
  20961. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  20962. elif test -n "$PKG_CONFIG"; then
  20963. if test -n "$PKG_CONFIG" && \
  20964. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  20965. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  20966. ac_status=$?
  20967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20968. test $ac_status = 0; }; then
  20969. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  20970. test "x$?" != "x0" && pkg_failed=yes
  20971. else
  20972. pkg_failed=yes
  20973. fi
  20974. else
  20975. pkg_failed=untried
  20976. fi
  20977. if test $pkg_failed = yes; then
  20978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20979. printf "%s\n" "no" >&6; }
  20980. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20981. _pkg_short_errors_supported=yes
  20982. else
  20983. _pkg_short_errors_supported=no
  20984. fi
  20985. if test $_pkg_short_errors_supported = yes; then
  20986. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  20987. else
  20988. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  20989. fi
  20990. # Put the nasty error message in config.log where it belongs
  20991. echo "$DIRECTFB_PKG_ERRORS" >&5
  20992. video_directfb=no
  20993. elif test $pkg_failed = untried; then
  20994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20995. printf "%s\n" "no" >&6; }
  20996. video_directfb=no
  20997. else
  20998. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  20999. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21001. printf "%s\n" "yes" >&6; }
  21002. video_directfb=yes
  21003. fi
  21004. if test x$video_directfb = xyes; then
  21005. # SuSE 11.1 installs directfb-config without directfb-devel
  21006. save_CPPFLAGS="$CPPFLAGS"
  21007. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21008. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21009. if test "x$ac_cv_header_directfb_h" = xyes
  21010. then :
  21011. have_directfb_hdr=yes
  21012. else $as_nop
  21013. have_directfb_hdr=no
  21014. fi
  21015. CPPFLAGS="$save_CPPFLAGS"
  21016. video_directfb=$have_directfb_hdr
  21017. fi
  21018. if test x$video_directfb = xyes; then
  21019. # Check whether --enable-directfb-shared was given.
  21020. if test ${enable_directfb_shared+y}
  21021. then :
  21022. enableval=$enable_directfb_shared;
  21023. else $as_nop
  21024. enable_directfb_shared=yes
  21025. fi
  21026. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21027. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21028. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21029. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21030. directfb_shared=no
  21031. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21032. if test x$have_loadso != xyes && \
  21033. test x$enable_directfb_shared = xyes; then
  21034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21035. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21036. fi
  21037. if test x$have_loadso = xyes && \
  21038. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21039. directfb_shared=yes
  21040. echo "-- dynamic libdirectfb -> $directfb_lib"
  21041. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21042. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21043. else
  21044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21045. SUMMARY_video="${SUMMARY_video} directfb"
  21046. fi
  21047. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21048. have_video=yes
  21049. fi
  21050. fi
  21051. }
  21052. CheckKMSDRM()
  21053. {
  21054. # Check whether --enable-video-kmsdrm was given.
  21055. if test ${enable_video_kmsdrm+y}
  21056. then :
  21057. enableval=$enable_video_kmsdrm;
  21058. else $as_nop
  21059. enable_video_kmsdrm=yes
  21060. fi
  21061. if test x$enable_video = xyes && \
  21062. test x$enable_video_kmsdrm = xyes && \
  21063. test x$video_opengl_egl = xyes; then
  21064. video_kmsdrm=no
  21065. pkg_failed=no
  21066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21067. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21068. if test -n "$LIBDRM_CFLAGS"; then
  21069. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21070. elif test -n "$PKG_CONFIG"; then
  21071. if test -n "$PKG_CONFIG" && \
  21072. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21073. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21074. ac_status=$?
  21075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21076. test $ac_status = 0; }; then
  21077. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21078. test "x$?" != "x0" && pkg_failed=yes
  21079. else
  21080. pkg_failed=yes
  21081. fi
  21082. else
  21083. pkg_failed=untried
  21084. fi
  21085. if test -n "$LIBDRM_LIBS"; then
  21086. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21087. elif test -n "$PKG_CONFIG"; then
  21088. if test -n "$PKG_CONFIG" && \
  21089. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21090. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21091. ac_status=$?
  21092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21093. test $ac_status = 0; }; then
  21094. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21095. test "x$?" != "x0" && pkg_failed=yes
  21096. else
  21097. pkg_failed=yes
  21098. fi
  21099. else
  21100. pkg_failed=untried
  21101. fi
  21102. if test $pkg_failed = yes; then
  21103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21104. printf "%s\n" "no" >&6; }
  21105. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21106. _pkg_short_errors_supported=yes
  21107. else
  21108. _pkg_short_errors_supported=no
  21109. fi
  21110. if test $_pkg_short_errors_supported = yes; then
  21111. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21112. else
  21113. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21114. fi
  21115. # Put the nasty error message in config.log where it belongs
  21116. echo "$LIBDRM_PKG_ERRORS" >&5
  21117. libdrm_avail=no
  21118. elif test $pkg_failed = untried; then
  21119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21120. printf "%s\n" "no" >&6; }
  21121. libdrm_avail=no
  21122. else
  21123. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21124. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21126. printf "%s\n" "yes" >&6; }
  21127. libdrm_avail=yes
  21128. fi
  21129. pkg_failed=no
  21130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21131. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21132. if test -n "$LIBGBM_CFLAGS"; then
  21133. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21134. elif test -n "$PKG_CONFIG"; then
  21135. if test -n "$PKG_CONFIG" && \
  21136. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21137. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21138. ac_status=$?
  21139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21140. test $ac_status = 0; }; then
  21141. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21142. test "x$?" != "x0" && pkg_failed=yes
  21143. else
  21144. pkg_failed=yes
  21145. fi
  21146. else
  21147. pkg_failed=untried
  21148. fi
  21149. if test -n "$LIBGBM_LIBS"; then
  21150. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21151. elif test -n "$PKG_CONFIG"; then
  21152. if test -n "$PKG_CONFIG" && \
  21153. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21154. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21155. ac_status=$?
  21156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21157. test $ac_status = 0; }; then
  21158. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21159. test "x$?" != "x0" && pkg_failed=yes
  21160. else
  21161. pkg_failed=yes
  21162. fi
  21163. else
  21164. pkg_failed=untried
  21165. fi
  21166. if test $pkg_failed = yes; then
  21167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21168. printf "%s\n" "no" >&6; }
  21169. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21170. _pkg_short_errors_supported=yes
  21171. else
  21172. _pkg_short_errors_supported=no
  21173. fi
  21174. if test $_pkg_short_errors_supported = yes; then
  21175. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21176. else
  21177. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21178. fi
  21179. # Put the nasty error message in config.log where it belongs
  21180. echo "$LIBGBM_PKG_ERRORS" >&5
  21181. libgbm_avail=no
  21182. elif test $pkg_failed = untried; then
  21183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21184. printf "%s\n" "no" >&6; }
  21185. libgbm_avail=no
  21186. else
  21187. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21188. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21190. printf "%s\n" "yes" >&6; }
  21191. libgbm_avail=yes
  21192. fi
  21193. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21194. video_kmsdrm=yes
  21195. fi
  21196. if test x$video_kmsdrm = xyes; then
  21197. # Check whether --enable-kmsdrm-shared was given.
  21198. if test ${enable_kmsdrm_shared+y}
  21199. then :
  21200. enableval=$enable_kmsdrm_shared;
  21201. else $as_nop
  21202. enable_kmsdrm_shared=yes
  21203. fi
  21204. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21205. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21206. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21208. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21209. kmsdrm_shared=no
  21210. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21211. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21212. if test x$have_loadso != xyes && \
  21213. test x$enable_kmsdrm_shared = xyes; then
  21214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21215. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21216. fi
  21217. if test x$have_loadso = xyes && \
  21218. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21219. kmsdrm_shared=yes
  21220. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21221. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21222. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21223. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21224. else
  21225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21226. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21227. fi
  21228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21229. printf "%s\n" "$kmsdrm_shared" >&6; }
  21230. if test x$kmsdrm_shared = xyes; then
  21231. echo "-- dynamic libdrm -> $drm_lib"
  21232. echo "-- dynamic libgbm -> $gbm_lib"
  21233. fi
  21234. have_video=yes
  21235. fi
  21236. fi
  21237. }
  21238. CheckDummyVideo()
  21239. {
  21240. # Check whether --enable-video-dummy was given.
  21241. if test ${enable_video_dummy+y}
  21242. then :
  21243. enableval=$enable_video_dummy;
  21244. else $as_nop
  21245. enable_video_dummy=yes
  21246. fi
  21247. if test x$enable_video_dummy = xyes; then
  21248. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21249. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21250. have_video=yes
  21251. SUMMARY_video="${SUMMARY_video} dummy"
  21252. fi
  21253. }
  21254. CheckOffscreenVideo()
  21255. {
  21256. # Check whether --enable-video-offscreen was given.
  21257. if test ${enable_video_offscreen+y}
  21258. then :
  21259. enableval=$enable_video_offscreen;
  21260. else $as_nop
  21261. enable_video_offscreen=yes
  21262. fi
  21263. if test x$enable_video_offscreen = xyes; then
  21264. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21265. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21266. have_video=yes
  21267. SUMMARY_video="${SUMMARY_video} offscreen"
  21268. fi
  21269. }
  21270. CheckQNXVideo()
  21271. {
  21272. if test x$enable_video = xyes; then
  21273. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  21274. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  21275. have_video=yes
  21276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  21277. SUMMARY_video="${SUMMARY_video} qnx"
  21278. fi
  21279. }
  21280. CheckQNXAudio()
  21281. {
  21282. if test x$enable_audio = xyes; then
  21283. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  21284. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  21285. have_audio=yes
  21286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  21287. SUMMARY_audio="${SUMMARY_audio} qsa"
  21288. fi
  21289. }
  21290. # Check whether --enable-video-opengl was given.
  21291. if test ${enable_video_opengl+y}
  21292. then :
  21293. enableval=$enable_video_opengl;
  21294. else $as_nop
  21295. enable_video_opengl=yes
  21296. fi
  21297. CheckGLX()
  21298. {
  21299. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21301. printf %s "checking for GLX support... " >&6; }
  21302. video_opengl_glx=no
  21303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21304. /* end confdefs.h. */
  21305. #include <GL/glx.h>
  21306. int
  21307. main (void)
  21308. {
  21309. ;
  21310. return 0;
  21311. }
  21312. _ACEOF
  21313. if ac_fn_c_try_compile "$LINENO"
  21314. then :
  21315. video_opengl_glx=yes
  21316. fi
  21317. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21319. printf "%s\n" "$video_opengl_glx" >&6; }
  21320. if test x$video_opengl_glx = xyes; then
  21321. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21322. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21323. fi
  21324. fi
  21325. }
  21326. # Check whether --enable-video-opengles was given.
  21327. if test ${enable_video_opengles+y}
  21328. then :
  21329. enableval=$enable_video_opengles;
  21330. else $as_nop
  21331. enable_video_opengles=yes
  21332. fi
  21333. # Check whether --enable-video-opengles1 was given.
  21334. if test ${enable_video_opengles1+y}
  21335. then :
  21336. enableval=$enable_video_opengles1;
  21337. else $as_nop
  21338. enable_video_opengles1=yes
  21339. fi
  21340. # Check whether --enable-video-opengles2 was given.
  21341. if test ${enable_video_opengles2+y}
  21342. then :
  21343. enableval=$enable_video_opengles2;
  21344. else $as_nop
  21345. enable_video_opengles2=yes
  21346. fi
  21347. CheckEGL()
  21348. {
  21349. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21351. printf %s "checking for EGL support... " >&6; }
  21352. video_opengl_egl=no
  21353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21354. /* end confdefs.h. */
  21355. #define LINUX
  21356. #define EGL_API_FB
  21357. #define MESA_EGL_NO_X11_HEADERS
  21358. #define EGL_NO_X11
  21359. #include <EGL/egl.h>
  21360. #include <EGL/eglext.h>
  21361. int
  21362. main (void)
  21363. {
  21364. ;
  21365. return 0;
  21366. }
  21367. _ACEOF
  21368. if ac_fn_c_try_compile "$LINENO"
  21369. then :
  21370. video_opengl_egl=yes
  21371. fi
  21372. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21374. printf "%s\n" "$video_opengl_egl" >&6; }
  21375. if test x$video_opengl_egl = xyes; then
  21376. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21377. fi
  21378. fi
  21379. }
  21380. CheckOpenGL()
  21381. {
  21382. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21384. printf %s "checking for OpenGL headers... " >&6; }
  21385. video_opengl=no
  21386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21387. /* end confdefs.h. */
  21388. #include <GL/gl.h>
  21389. #include <GL/glext.h>
  21390. int
  21391. main (void)
  21392. {
  21393. ;
  21394. return 0;
  21395. }
  21396. _ACEOF
  21397. if ac_fn_c_try_compile "$LINENO"
  21398. then :
  21399. video_opengl=yes
  21400. fi
  21401. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21403. printf "%s\n" "$video_opengl" >&6; }
  21404. if test x$video_opengl = xyes; then
  21405. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21406. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21407. SUMMARY_video="${SUMMARY_video} opengl"
  21408. fi
  21409. fi
  21410. }
  21411. CheckOpenGLES()
  21412. {
  21413. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21414. if test x$enable_video_opengles1 = xyes; then
  21415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21416. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  21417. video_opengles_v1=no
  21418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21419. /* end confdefs.h. */
  21420. #include <GLES/gl.h>
  21421. #include <GLES/glext.h>
  21422. int
  21423. main (void)
  21424. {
  21425. ;
  21426. return 0;
  21427. }
  21428. _ACEOF
  21429. if ac_fn_c_try_compile "$LINENO"
  21430. then :
  21431. video_opengles_v1=yes
  21432. fi
  21433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21435. printf "%s\n" "$video_opengles_v1" >&6; }
  21436. if test x$video_opengles_v1 = xyes; then
  21437. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21438. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21439. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21440. fi
  21441. fi
  21442. if test x$enable_video_opengles2 = xyes; then
  21443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21444. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21445. video_opengles_v2=no
  21446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21447. /* end confdefs.h. */
  21448. #include <GLES2/gl2.h>
  21449. #include <GLES2/gl2ext.h>
  21450. int
  21451. main (void)
  21452. {
  21453. ;
  21454. return 0;
  21455. }
  21456. _ACEOF
  21457. if ac_fn_c_try_compile "$LINENO"
  21458. then :
  21459. video_opengles_v2=yes
  21460. fi
  21461. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21463. printf "%s\n" "$video_opengles_v2" >&6; }
  21464. if test x$video_opengles_v2 = xyes; then
  21465. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21466. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21467. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21468. fi
  21469. fi
  21470. fi
  21471. }
  21472. CheckWINDOWSGL()
  21473. {
  21474. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21475. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21476. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21477. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21478. SUMMARY_video="${SUMMARY_video} opengl"
  21479. fi
  21480. }
  21481. CheckWINDOWSGLES()
  21482. {
  21483. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21485. printf %s "checking for EGL support... " >&6; }
  21486. video_opengl_egl=no
  21487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21488. /* end confdefs.h. */
  21489. #include <EGL/egl.h>
  21490. int
  21491. main (void)
  21492. {
  21493. ;
  21494. return 0;
  21495. }
  21496. _ACEOF
  21497. if ac_fn_c_try_compile "$LINENO"
  21498. then :
  21499. video_opengl_egl=yes
  21500. fi
  21501. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21503. printf "%s\n" "$video_opengl_egl" >&6; }
  21504. if test x$video_opengl_egl = xyes; then
  21505. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21506. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21507. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21508. fi
  21509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21510. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21511. video_opengles_v2=no
  21512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21513. /* end confdefs.h. */
  21514. #include <GLES2/gl2.h>
  21515. #include <GLES2/gl2ext.h>
  21516. int
  21517. main (void)
  21518. {
  21519. ;
  21520. return 0;
  21521. }
  21522. _ACEOF
  21523. if ac_fn_c_try_compile "$LINENO"
  21524. then :
  21525. video_opengles_v2=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: $video_opengles_v2" >&5
  21529. printf "%s\n" "$video_opengles_v2" >&6; }
  21530. if test x$video_opengles_v2 = xyes; then
  21531. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21532. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21533. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21534. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21535. fi
  21536. fi
  21537. }
  21538. CheckHaikuGL()
  21539. {
  21540. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21541. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21542. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21543. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21545. SUMMARY_video="${SUMMARY_video} opengl"
  21546. fi
  21547. }
  21548. CheckMacGL()
  21549. {
  21550. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21551. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21552. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21553. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21554. SUMMARY_video="${SUMMARY_video} opengl"
  21555. fi
  21556. }
  21557. CheckMacGLES()
  21558. {
  21559. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21560. video_opengl_egl=yes
  21561. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21562. video_opengles_v2=yes
  21563. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21564. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21565. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21566. fi
  21567. }
  21568. CheckEmscriptenGLES()
  21569. {
  21570. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21572. printf %s "checking for EGL support... " >&6; }
  21573. video_opengl_egl=no
  21574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21575. /* end confdefs.h. */
  21576. #include <EGL/egl.h>
  21577. int
  21578. main (void)
  21579. {
  21580. ;
  21581. return 0;
  21582. }
  21583. _ACEOF
  21584. if ac_fn_c_try_compile "$LINENO"
  21585. then :
  21586. video_opengl_egl=yes
  21587. fi
  21588. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21590. printf "%s\n" "$video_opengl_egl" >&6; }
  21591. if test x$video_opengl_egl = xyes; then
  21592. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21593. fi
  21594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21595. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21596. video_opengles_v2=no
  21597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21598. /* end confdefs.h. */
  21599. #include <GLES2/gl2.h>
  21600. #include <GLES2/gl2ext.h>
  21601. int
  21602. main (void)
  21603. {
  21604. ;
  21605. return 0;
  21606. }
  21607. _ACEOF
  21608. if ac_fn_c_try_compile "$LINENO"
  21609. then :
  21610. video_opengles_v2=yes
  21611. fi
  21612. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21614. printf "%s\n" "$video_opengles_v2" >&6; }
  21615. if test x$video_opengles_v2 = xyes; then
  21616. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21617. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21618. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21619. fi
  21620. fi
  21621. }
  21622. # Check whether --enable-video-vulkan was given.
  21623. if test ${enable_video_vulkan+y}
  21624. then :
  21625. enableval=$enable_video_vulkan;
  21626. else $as_nop
  21627. enable_video_vulkan=yes
  21628. fi
  21629. CheckVulkan()
  21630. {
  21631. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21632. case "$host" in
  21633. *-*-android*)
  21634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21635. /* end confdefs.h. */
  21636. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21637. #error Vulkan doesn't work on this configuration
  21638. #endif
  21639. int
  21640. main (void)
  21641. {
  21642. ;
  21643. return 0;
  21644. }
  21645. _ACEOF
  21646. if ac_fn_c_try_compile "$LINENO"
  21647. then :
  21648. else $as_nop
  21649. enable_video_vulkan=no
  21650. fi
  21651. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21652. ;;
  21653. *-*-darwin*)
  21654. save_CFLAGS="$CFLAGS"
  21655. CFLAGS="$CFLAGS -x objective-c"
  21656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21657. /* end confdefs.h. */
  21658. #include <Cocoa/Cocoa.h>
  21659. #include <Metal/Metal.h>
  21660. #include <QuartzCore/CAMetalLayer.h>
  21661. #if TARGET_CPU_X86
  21662. #error Vulkan doesn't work on this configuration
  21663. #endif
  21664. int
  21665. main (void)
  21666. {
  21667. ;
  21668. return 0;
  21669. }
  21670. _ACEOF
  21671. if ac_fn_c_try_compile "$LINENO"
  21672. then :
  21673. else $as_nop
  21674. enable_video_vulkan=no
  21675. fi
  21676. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21677. CFLAGS="$save_CFLAGS"
  21678. ;;
  21679. *)
  21680. ;;
  21681. esac
  21682. if test x$enable_video_vulkan = xno; then
  21683. # For reasons I am totally unable to see, I get an undefined macro error if
  21684. # I put this in the AC_TRY_COMPILE.
  21685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21686. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21687. fi
  21688. fi
  21689. if test x$have_loadso != xyes; then
  21690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21691. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21692. enable_video_vulkan=no
  21693. fi
  21694. if test x$enable_video_vulkan = xyes; then
  21695. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21696. SUMMARY_video="${SUMMARY_video} vulkan"
  21697. fi
  21698. }
  21699. CheckInputEvents()
  21700. {
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21702. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21703. use_input_events=no
  21704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21705. /* end confdefs.h. */
  21706. #include <linux/input.h>
  21707. int
  21708. main (void)
  21709. {
  21710. #ifndef EVIOCGNAME
  21711. #error EVIOCGNAME() ioctl not available
  21712. #endif
  21713. ;
  21714. return 0;
  21715. }
  21716. _ACEOF
  21717. if ac_fn_c_try_compile "$LINENO"
  21718. then :
  21719. use_input_events=yes
  21720. fi
  21721. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21723. printf "%s\n" "$use_input_events" >&6; }
  21724. if test x$use_input_events = xyes; then
  21725. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21726. SUMMARY_input="${SUMMARY_input} linuxev"
  21727. fi
  21728. }
  21729. CheckInputKD()
  21730. {
  21731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21732. printf %s "checking for Linux kd.h... " >&6; }
  21733. use_input_kd=no
  21734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21735. /* end confdefs.h. */
  21736. #include <linux/kd.h>
  21737. #include <linux/keyboard.h>
  21738. #include <sys/ioctl.h>
  21739. int
  21740. main (void)
  21741. {
  21742. struct kbentry kbe;
  21743. kbe.kb_table = KG_CTRL;
  21744. ioctl(0, KDGKBENT, &kbe);
  21745. ;
  21746. return 0;
  21747. }
  21748. _ACEOF
  21749. if ac_fn_c_try_compile "$LINENO"
  21750. then :
  21751. use_input_kd=yes
  21752. fi
  21753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21755. printf "%s\n" "$use_input_kd" >&6; }
  21756. if test x$use_input_kd = xyes; then
  21757. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21758. SUMMARY_input="${SUMMARY_input} linuxkd"
  21759. fi
  21760. }
  21761. CheckInputKBIO()
  21762. {
  21763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21764. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21765. use_input_kbio=no
  21766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21767. /* end confdefs.h. */
  21768. #include <sys/kbio.h>
  21769. #include <sys/ioctl.h>
  21770. int
  21771. main (void)
  21772. {
  21773. accentmap_t accTable;
  21774. ioctl(0, KDENABIO, 1);
  21775. ;
  21776. return 0;
  21777. }
  21778. _ACEOF
  21779. if ac_fn_c_try_compile "$LINENO"
  21780. then :
  21781. use_input_kbio=yes
  21782. fi
  21783. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21785. printf "%s\n" "$use_input_kbio" >&6; }
  21786. if test x$use_input_kbio = xyes; then
  21787. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21788. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21789. fi
  21790. }
  21791. CheckInputWSCONS()
  21792. {
  21793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21794. printf %s "checking for OpenBSD wscons... " >&6; }
  21795. use_input_wscons=no
  21796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21797. /* end confdefs.h. */
  21798. #include <sys/time.h>
  21799. #include <dev/wscons/wsconsio.h>
  21800. #include <dev/wscons/wsksymdef.h>
  21801. #include <dev/wscons/wsksymvar.h>
  21802. #include <sys/ioctl.h>
  21803. int
  21804. main (void)
  21805. {
  21806. struct wskbd_map_data data;
  21807. ioctl(0, WSKBDIO_GETMAP, &data);
  21808. ;
  21809. return 0;
  21810. }
  21811. _ACEOF
  21812. if ac_fn_c_try_compile "$LINENO"
  21813. then :
  21814. use_input_wscons=yes
  21815. fi
  21816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21818. printf "%s\n" "$use_input_wscons" >&6; }
  21819. if test x$use_input_wscons = xyes; then
  21820. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21821. SUMMARY_input="${SUMMARY_input} wscons"
  21822. fi
  21823. }
  21824. CheckLibUDev()
  21825. {
  21826. # Check whether --enable-libudev was given.
  21827. if test ${enable_libudev+y}
  21828. then :
  21829. enableval=$enable_libudev;
  21830. else $as_nop
  21831. enable_libudev=yes
  21832. fi
  21833. if test x$enable_libudev = xyes; then
  21834. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21835. if test "x$ac_cv_header_libudev_h" = xyes
  21836. then :
  21837. have_libudev_h_hdr=yes
  21838. else $as_nop
  21839. have_libudev_h_hdr=no
  21840. fi
  21841. if test x$have_libudev_h_hdr = xyes; then
  21842. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21843. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21844. if test x$udev_lib != x; then
  21845. echo "-- dynamic udev -> $udev_lib"
  21846. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21847. fi
  21848. fi
  21849. fi
  21850. }
  21851. CheckDBus()
  21852. {
  21853. # Check whether --enable-dbus was given.
  21854. if test ${enable_dbus+y}
  21855. then :
  21856. enableval=$enable_dbus;
  21857. else $as_nop
  21858. enable_dbus=yes
  21859. fi
  21860. if test x$enable_dbus = xyes; then
  21861. pkg_failed=no
  21862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21863. printf %s "checking for dbus-1... " >&6; }
  21864. if test -n "$DBUS_CFLAGS"; then
  21865. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21866. elif test -n "$PKG_CONFIG"; then
  21867. if test -n "$PKG_CONFIG" && \
  21868. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21869. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21870. ac_status=$?
  21871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21872. test $ac_status = 0; }; then
  21873. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21874. test "x$?" != "x0" && pkg_failed=yes
  21875. else
  21876. pkg_failed=yes
  21877. fi
  21878. else
  21879. pkg_failed=untried
  21880. fi
  21881. if test -n "$DBUS_LIBS"; then
  21882. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21883. elif test -n "$PKG_CONFIG"; then
  21884. if test -n "$PKG_CONFIG" && \
  21885. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21886. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21887. ac_status=$?
  21888. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21889. test $ac_status = 0; }; then
  21890. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21891. test "x$?" != "x0" && pkg_failed=yes
  21892. else
  21893. pkg_failed=yes
  21894. fi
  21895. else
  21896. pkg_failed=untried
  21897. fi
  21898. if test $pkg_failed = yes; then
  21899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21900. printf "%s\n" "no" >&6; }
  21901. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21902. _pkg_short_errors_supported=yes
  21903. else
  21904. _pkg_short_errors_supported=no
  21905. fi
  21906. if test $_pkg_short_errors_supported = yes; then
  21907. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21908. else
  21909. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21910. fi
  21911. # Put the nasty error message in config.log where it belongs
  21912. echo "$DBUS_PKG_ERRORS" >&5
  21913. have_dbus=no
  21914. elif test $pkg_failed = untried; then
  21915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21916. printf "%s\n" "no" >&6; }
  21917. have_dbus=no
  21918. else
  21919. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21920. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21922. printf "%s\n" "yes" >&6; }
  21923. have_dbus=yes
  21924. fi
  21925. save_CPPFLAGS="$CPPFLAGS"
  21926. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21927. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21928. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21929. then :
  21930. have_dbus_dbus_h_hdr=yes
  21931. else $as_nop
  21932. have_dbus_dbus_h_hdr=no
  21933. fi
  21934. CPPFLAGS="$save_CPPFLAGS"
  21935. if test x$have_dbus_dbus_h_hdr = xyes; then
  21936. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21937. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21938. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21939. fi
  21940. fi
  21941. }
  21942. CheckIME()
  21943. {
  21944. # Check whether --enable-ime was given.
  21945. if test ${enable_ime+y}
  21946. then :
  21947. enableval=$enable_ime;
  21948. else $as_nop
  21949. enable_ime=yes
  21950. fi
  21951. if test x$enable_ime = xyes; then
  21952. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21953. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21954. fi
  21955. }
  21956. CheckInotify()
  21957. {
  21958. save_LIBS="$LIBS"
  21959. case "$host" in
  21960. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21961. ;;
  21962. esac
  21963. for ac_header in sys/inotify.h
  21964. do :
  21965. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21966. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21967. then :
  21968. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21969. have_inotify_inotify_h_hdr=yes
  21970. fi
  21971. done
  21972. for ac_func in inotify_init
  21973. do :
  21974. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21975. if test "x$ac_cv_func_inotify_init" = xyes
  21976. then :
  21977. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21978. have_inotify=yes
  21979. fi
  21980. done
  21981. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21982. if test "x$ac_cv_func_inotify_init1" = xyes
  21983. then :
  21984. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21985. fi
  21986. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21987. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21988. case "$host" in
  21989. *-*-freebsd*|*-*-dragonfly*)
  21990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21991. ;;
  21992. esac
  21993. fi
  21994. LIBS="$save_LIBS"
  21995. }
  21996. CheckIBus()
  21997. {
  21998. # Check whether --enable-ibus was given.
  21999. if test ${enable_ibus+y}
  22000. then :
  22001. enableval=$enable_ibus;
  22002. else $as_nop
  22003. enable_ibus=yes
  22004. fi
  22005. if test x$enable_ibus = xyes; then
  22006. pkg_failed=no
  22007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22008. printf %s "checking for ibus-1.0... " >&6; }
  22009. if test -n "$IBUS_CFLAGS"; then
  22010. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22011. elif test -n "$PKG_CONFIG"; then
  22012. if test -n "$PKG_CONFIG" && \
  22013. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22014. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22015. ac_status=$?
  22016. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22017. test $ac_status = 0; }; then
  22018. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22019. test "x$?" != "x0" && pkg_failed=yes
  22020. else
  22021. pkg_failed=yes
  22022. fi
  22023. else
  22024. pkg_failed=untried
  22025. fi
  22026. if test -n "$IBUS_LIBS"; then
  22027. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22028. elif test -n "$PKG_CONFIG"; then
  22029. if test -n "$PKG_CONFIG" && \
  22030. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22031. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22032. ac_status=$?
  22033. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22034. test $ac_status = 0; }; then
  22035. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22036. test "x$?" != "x0" && pkg_failed=yes
  22037. else
  22038. pkg_failed=yes
  22039. fi
  22040. else
  22041. pkg_failed=untried
  22042. fi
  22043. if test $pkg_failed = yes; then
  22044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22045. printf "%s\n" "no" >&6; }
  22046. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22047. _pkg_short_errors_supported=yes
  22048. else
  22049. _pkg_short_errors_supported=no
  22050. fi
  22051. if test $_pkg_short_errors_supported = yes; then
  22052. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22053. else
  22054. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22055. fi
  22056. # Put the nasty error message in config.log where it belongs
  22057. echo "$IBUS_PKG_ERRORS" >&5
  22058. have_ibus=no
  22059. elif test $pkg_failed = untried; then
  22060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22061. printf "%s\n" "no" >&6; }
  22062. have_ibus=no
  22063. else
  22064. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22065. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22067. printf "%s\n" "yes" >&6; }
  22068. have_ibus=yes
  22069. fi
  22070. save_CPPFLAGS="$CPPFLAGS"
  22071. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22072. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22073. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22074. then :
  22075. have_ibus_ibus_h_hdr=yes
  22076. else $as_nop
  22077. have_ibus_ibus_h_hdr=no
  22078. fi
  22079. CPPFLAGS="$save_CPPFLAGS"
  22080. if test x$have_ibus_ibus_h_hdr = xyes; then
  22081. if test x$enable_ime != xyes; then
  22082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22083. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22084. have_ibus_ibus_h_hdr=no
  22085. elif test x$enable_dbus != xyes; then
  22086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22087. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22088. have_ibus_ibus_h_hdr=no
  22089. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22091. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22092. have_ibus_ibus_h_hdr=no
  22093. else
  22094. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22095. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22096. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22097. fi
  22098. fi
  22099. fi
  22100. }
  22101. CheckFcitx()
  22102. {
  22103. # Check whether --enable-fcitx was given.
  22104. if test ${enable_fcitx+y}
  22105. then :
  22106. enableval=$enable_fcitx;
  22107. else $as_nop
  22108. enable_fcitx=yes
  22109. fi
  22110. if test x$enable_fcitx = xyes; then
  22111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22112. printf %s "checking for fcitx support... " >&6; }
  22113. have_fcitx=no
  22114. if test x$enable_ime != xyes; then
  22115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22116. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22117. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22119. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22120. else
  22121. have_fcitx=yes
  22122. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22123. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22124. fi
  22125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22126. printf "%s\n" "$have_fcitx" >&6; }
  22127. fi
  22128. }
  22129. CheckJoystickMFI()
  22130. {
  22131. # Check whether --enable-joystick-mfi was given.
  22132. if test ${enable_joystick_mfi+y}
  22133. then :
  22134. enableval=$enable_joystick_mfi;
  22135. else $as_nop
  22136. enable_joystick_mfi=yes
  22137. fi
  22138. if test x$enable_joystick_mfi = xyes; then
  22139. save_CFLAGS="$CFLAGS"
  22140. save_LDFLAGS="$LDFLAGS"
  22141. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22142. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22144. printf %s "checking for GameController framework... " >&6; }
  22145. enable_joystick_mfi=no
  22146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22147. /* end confdefs.h. */
  22148. #include <AvailabilityMacros.h>
  22149. #include <TargetConditionals.h>
  22150. #import <GameController/GameController.h>
  22151. int
  22152. main (void)
  22153. {
  22154. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22155. #error GameController framework doesn't work on this configuration
  22156. #endif
  22157. #if TARGET_CPU_X86
  22158. #error GameController framework doesn't work on this configuration
  22159. #endif
  22160. ;
  22161. return 0;
  22162. }
  22163. _ACEOF
  22164. if ac_fn_c_try_link "$LINENO"
  22165. then :
  22166. enable_joystick_mfi=yes
  22167. fi
  22168. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22169. conftest$ac_exeext conftest.$ac_ext
  22170. CFLAGS="$save_CFLAGS"
  22171. LDFLAGS="$save_LDFLAGS"
  22172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22173. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22174. if test x$enable_joystick_mfi = xyes; then
  22175. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22176. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22177. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22178. fi
  22179. fi
  22180. }
  22181. CheckPTHREAD()
  22182. {
  22183. case "$host" in
  22184. *-*-emscripten*)
  22185. enable_pthreads_default=no
  22186. ;;
  22187. *)
  22188. enable_pthreads_default=yes
  22189. ;;
  22190. esac
  22191. # Check whether --enable-pthreads was given.
  22192. if test ${enable_pthreads+y}
  22193. then :
  22194. enableval=$enable_pthreads;
  22195. else $as_nop
  22196. enable_pthreads=maybe
  22197. fi
  22198. # Check whether --enable-pthread-sem was given.
  22199. if test ${enable_pthread_sem+y}
  22200. then :
  22201. enableval=$enable_pthread_sem;
  22202. else $as_nop
  22203. enable_pthread_sem=maybe
  22204. fi
  22205. if test x$enable_pthreads = xmaybe; then
  22206. enable_pthreads=$enable_pthreads_default
  22207. fi
  22208. if test x$enable_pthread_sem = xmaybe; then
  22209. enable_pthread_sem=$enable_pthreads
  22210. fi
  22211. case "$host" in
  22212. *-*-android*)
  22213. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22214. pthread_lib=""
  22215. ;;
  22216. *-*-linux*|*-*-uclinux*)
  22217. pthread_cflags="-D_REENTRANT"
  22218. pthread_lib="-lpthread"
  22219. ;;
  22220. *-*-bsdi*)
  22221. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22222. pthread_lib=""
  22223. ;;
  22224. *-*-darwin*)
  22225. pthread_cflags="-D_THREAD_SAFE"
  22226. # causes Carbon.p complaints?
  22227. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22228. ;;
  22229. *-*-freebsd*|*-*-dragonfly*)
  22230. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22231. pthread_lib="-pthread"
  22232. ;;
  22233. *-*-netbsd*)
  22234. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22235. pthread_lib="-lpthread"
  22236. ;;
  22237. *-*-openbsd*)
  22238. pthread_cflags="-D_REENTRANT"
  22239. pthread_lib="-lpthread"
  22240. ;;
  22241. *-*-solaris2.9)
  22242. # From Solaris 9+, posix4's preferred name is rt.
  22243. pthread_cflags="-D_REENTRANT"
  22244. pthread_lib="-lpthread -lrt"
  22245. ;;
  22246. *-*-solaris2.10)
  22247. # Solaris 10+ merged pthread into libc.
  22248. pthread_cflags="-D_REENTRANT"
  22249. pthread_lib="-lrt"
  22250. ;;
  22251. *-*-solaris*)
  22252. # Solaris 11+ merged rt into libc.
  22253. pthread_cflags="-D_REENTRANT"
  22254. pthread_lib=""
  22255. ;;
  22256. *-*-sysv5*)
  22257. pthread_cflags="-D_REENTRANT -Kthread"
  22258. pthread_lib=""
  22259. ;;
  22260. *-*-aix*)
  22261. pthread_cflags="-D_REENTRANT -mthreads"
  22262. pthread_lib="-lpthread"
  22263. ;;
  22264. *-*-hpux11*)
  22265. pthread_cflags="-D_REENTRANT"
  22266. pthread_lib="-L/usr/lib -lpthread"
  22267. ;;
  22268. *-*-haiku*)
  22269. pthread_cflags="-D_REENTRANT"
  22270. pthread_lib=""
  22271. ;;
  22272. *-*-nto*)
  22273. pthread_cflags="-D_REENTRANT"
  22274. pthread_lib=""
  22275. ;;
  22276. *-*-emscripten*)
  22277. pthread_cflags="-D_REENTRANT -pthread"
  22278. pthread_lib="-pthread"
  22279. ;;
  22280. *)
  22281. pthread_cflags="-D_REENTRANT"
  22282. pthread_lib="-lpthread"
  22283. ;;
  22284. esac
  22285. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22286. # Save the original compiler flags and libraries
  22287. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22288. # Add the pthread compiler flags and libraries
  22289. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22290. # Check to see if we have pthread support on this system
  22291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22292. printf %s "checking for pthreads... " >&6; }
  22293. use_pthreads=no
  22294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22295. /* end confdefs.h. */
  22296. #include <pthread.h>
  22297. int
  22298. main (void)
  22299. {
  22300. pthread_attr_t type;
  22301. pthread_attr_init(&type);
  22302. ;
  22303. return 0;
  22304. }
  22305. _ACEOF
  22306. if ac_fn_c_try_link "$LINENO"
  22307. then :
  22308. use_pthreads=yes
  22309. fi
  22310. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22311. conftest$ac_exeext conftest.$ac_ext
  22312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22313. printf "%s\n" "$use_pthreads" >&6; }
  22314. # Restore the compiler flags and libraries
  22315. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22316. # Do futher testing if we have pthread support...
  22317. if test x$use_pthreads = xyes; then
  22318. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22319. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22321. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22322. # Save the original compiler flags and libraries
  22323. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22324. # Add the pthread compiler flags and libraries
  22325. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22326. # Check to see if recursive mutexes are available
  22327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22328. printf %s "checking for recursive mutexes... " >&6; }
  22329. has_recursive_mutexes=no
  22330. if test x$has_recursive_mutexes = xno; then
  22331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22332. /* end confdefs.h. */
  22333. #define _GNU_SOURCE 1
  22334. #include <pthread.h>
  22335. int
  22336. main (void)
  22337. {
  22338. pthread_mutexattr_t attr;
  22339. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. if ac_fn_c_try_link "$LINENO"
  22345. then :
  22346. has_recursive_mutexes=yes
  22347. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22348. fi
  22349. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22350. conftest$ac_exeext conftest.$ac_ext
  22351. fi
  22352. if test x$has_recursive_mutexes = xno; then
  22353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22354. /* end confdefs.h. */
  22355. #define _GNU_SOURCE 1
  22356. #include <pthread.h>
  22357. int
  22358. main (void)
  22359. {
  22360. pthread_mutexattr_t attr;
  22361. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22362. ;
  22363. return 0;
  22364. }
  22365. _ACEOF
  22366. if ac_fn_c_try_link "$LINENO"
  22367. then :
  22368. has_recursive_mutexes=yes
  22369. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22370. fi
  22371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22372. conftest$ac_exeext conftest.$ac_ext
  22373. fi
  22374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22375. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22376. # Check to see if pthread semaphore support is missing
  22377. if test x$enable_pthread_sem = xyes; then
  22378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22379. printf %s "checking for pthread semaphores... " >&6; }
  22380. have_pthread_sem=no
  22381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22382. /* end confdefs.h. */
  22383. #include <pthread.h>
  22384. #include <semaphore.h>
  22385. int
  22386. main (void)
  22387. {
  22388. ;
  22389. return 0;
  22390. }
  22391. _ACEOF
  22392. if ac_fn_c_try_compile "$LINENO"
  22393. then :
  22394. have_pthread_sem=yes
  22395. fi
  22396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22398. printf "%s\n" "$have_pthread_sem" >&6; }
  22399. fi
  22400. if test x$have_pthread_sem = xyes; then
  22401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22402. printf %s "checking for sem_timedwait... " >&6; }
  22403. have_sem_timedwait=no
  22404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22405. /* end confdefs.h. */
  22406. #include <pthread.h>
  22407. #include <semaphore.h>
  22408. int
  22409. main (void)
  22410. {
  22411. sem_timedwait(NULL, NULL);
  22412. ;
  22413. return 0;
  22414. }
  22415. _ACEOF
  22416. if ac_fn_c_try_link "$LINENO"
  22417. then :
  22418. have_sem_timedwait=yes
  22419. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22420. fi
  22421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22422. conftest$ac_exeext conftest.$ac_ext
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22424. printf "%s\n" "$have_sem_timedwait" >&6; }
  22425. fi
  22426. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22427. "
  22428. if test "x$ac_cv_header_pthread_np_h" = xyes
  22429. then :
  22430. have_pthread_np_h=yes
  22431. else $as_nop
  22432. have_pthread_np_h=no
  22433. fi
  22434. if test x$have_pthread_np_h = xyes; then
  22435. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22436. fi
  22437. # Check to see if pthread naming is available
  22438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22439. printf %s "checking for pthread_setname_np... " >&6; }
  22440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22441. /* end confdefs.h. */
  22442. /* Override any GCC internal prototype to avoid an error.
  22443. Use char because int might match the return type of a GCC
  22444. builtin and then its argument prototype would still apply. */
  22445. char pthread_setname_np ();
  22446. int
  22447. main (void)
  22448. {
  22449. return pthread_setname_np ();
  22450. ;
  22451. return 0;
  22452. }
  22453. _ACEOF
  22454. if ac_fn_c_try_link "$LINENO"
  22455. then :
  22456. has_pthread_setname_np=yes
  22457. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22458. else $as_nop
  22459. has_pthread_setname_np=no
  22460. fi
  22461. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22462. conftest$ac_exeext conftest.$ac_ext
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22464. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22466. printf %s "checking for pthread_set_name_np... " >&6; }
  22467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22468. /* end confdefs.h. */
  22469. /* Override any GCC internal prototype to avoid an error.
  22470. Use char because int might match the return type of a GCC
  22471. builtin and then its argument prototype would still apply. */
  22472. char pthread_set_name_np ();
  22473. int
  22474. main (void)
  22475. {
  22476. return pthread_set_name_np ();
  22477. ;
  22478. return 0;
  22479. }
  22480. _ACEOF
  22481. if ac_fn_c_try_link "$LINENO"
  22482. then :
  22483. has_pthread_set_name_np=yes
  22484. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22485. else $as_nop
  22486. has_pthread_set_name_np=no
  22487. fi
  22488. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22489. conftest$ac_exeext conftest.$ac_ext
  22490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22491. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22492. # Restore the compiler flags and libraries
  22493. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22494. # Basic thread creation functions
  22495. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22496. # Semaphores
  22497. # We can fake these with mutexes and condition variables if necessary
  22498. if test x$have_pthread_sem = xyes; then
  22499. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22500. else
  22501. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22502. fi
  22503. # Mutexes
  22504. # We can fake these with semaphores if necessary
  22505. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22506. # Condition variables
  22507. # We can fake these with semaphores and mutexes if necessary
  22508. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22509. # Thread local storage
  22510. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22511. have_threads=yes
  22512. fi
  22513. fi
  22514. }
  22515. CheckWINDOWS()
  22516. {
  22517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22518. printf %s "checking Windows compiler... " >&6; }
  22519. have_win32_gcc=no
  22520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22521. /* end confdefs.h. */
  22522. #include <windows.h>
  22523. int
  22524. main (void)
  22525. {
  22526. ;
  22527. return 0;
  22528. }
  22529. _ACEOF
  22530. if ac_fn_c_try_compile "$LINENO"
  22531. then :
  22532. have_win32_gcc=yes
  22533. fi
  22534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22536. printf "%s\n" "$have_win32_gcc" >&6; }
  22537. if test x$have_win32_gcc != xyes; then
  22538. as_fn_error $? "
  22539. *** Your compiler ($CC) does not produce Windows executables!
  22540. " "$LINENO" 5
  22541. fi
  22542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22543. printf %s "checking Windows CE... " >&6; }
  22544. have_wince=no
  22545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22546. /* end confdefs.h. */
  22547. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22548. #error This is not Windows CE
  22549. #endif
  22550. int
  22551. main (void)
  22552. {
  22553. ;
  22554. return 0;
  22555. }
  22556. _ACEOF
  22557. if ac_fn_c_try_compile "$LINENO"
  22558. then :
  22559. have_wince=yes
  22560. as_fn_error $? "
  22561. *** Sorry, Windows CE is no longer supported.
  22562. " "$LINENO" 5
  22563. fi
  22564. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22566. printf "%s\n" "$have_wince" >&6; }
  22567. # This fixes Windows stack alignment with newer GCC
  22568. CheckStackBoundary
  22569. # headers needed elsewhere
  22570. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22571. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22572. then :
  22573. have_tpcshrd_h=yes
  22574. fi
  22575. if test x$have_tpcshrd_h = xyes; then
  22576. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22577. fi
  22578. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22579. if test "x$ac_cv_header_roapi_h" = xyes
  22580. then :
  22581. have_roapi_h=yes
  22582. fi
  22583. if test x$have_roapi_h = xyes; then
  22584. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22585. fi
  22586. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22587. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22588. then :
  22589. have_shellscalingapi_h=yes
  22590. fi
  22591. if test x$shellscalingapi_h = xyes; then
  22592. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22593. fi
  22594. }
  22595. CheckDIRECTX()
  22596. {
  22597. # Check whether --enable-directx was given.
  22598. if test ${enable_directx+y}
  22599. then :
  22600. enableval=$enable_directx;
  22601. else $as_nop
  22602. enable_directx=yes
  22603. fi
  22604. if test x$enable_directx = xyes; then
  22605. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22606. if test "x$ac_cv_header_d3d9_h" = xyes
  22607. then :
  22608. have_d3d=yes
  22609. fi
  22610. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22611. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22612. then :
  22613. have_d3d11=yes
  22614. fi
  22615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22616. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22618. /* end confdefs.h. */
  22619. #include <winsdkver.h>
  22620. #include <sdkddkver.h>
  22621. #include <d3d12.h>
  22622. ID3D12Device1 *device;
  22623. #if WDK_NTDDI_VERSION <= 0x0A000008
  22624. asdf
  22625. #endif
  22626. int
  22627. main (void)
  22628. {
  22629. ;
  22630. return 0;
  22631. }
  22632. _ACEOF
  22633. if ac_fn_c_try_compile "$LINENO"
  22634. then :
  22635. have_d3d12=yes
  22636. else $as_nop
  22637. have_d3d12=no
  22638. fi
  22639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22641. printf "%s\n" "$have_d3d12" >&6; }
  22642. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22643. if test "x$ac_cv_header_ddraw_h" = xyes
  22644. then :
  22645. have_ddraw=yes
  22646. fi
  22647. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22648. if test "x$ac_cv_header_dsound_h" = xyes
  22649. then :
  22650. have_dsound=yes
  22651. fi
  22652. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22653. if test "x$ac_cv_header_dinput_h" = xyes
  22654. then :
  22655. have_dinput=yes
  22656. fi
  22657. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22658. if test "x$ac_cv_header_dxgi_h" = xyes
  22659. then :
  22660. have_dxgi=yes
  22661. fi
  22662. if test x$have_ddraw = xyes; then
  22663. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22664. fi
  22665. if test x$have_dinput = xyes; then
  22666. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22667. fi
  22668. if test x$have_dsound = xyes; then
  22669. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22670. fi
  22671. if test x$have_dxgi = xyes; then
  22672. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22673. fi
  22674. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22675. # FIXME: ...so force it off for now.
  22676. case "$host" in
  22677. *-*-cygwin*)
  22678. have_dinput=false
  22679. ;;
  22680. esac
  22681. fi
  22682. # Check whether --enable-xinput was given.
  22683. if test ${enable_xinput+y}
  22684. then :
  22685. enableval=$enable_xinput;
  22686. else $as_nop
  22687. enable_xinput=yes
  22688. fi
  22689. if test x$enable_xinput = xyes; then
  22690. have_xinput_gamepadex=no
  22691. have_xinput_stateex=no
  22692. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22693. if test "x$ac_cv_header_xinput_h" = xyes
  22694. then :
  22695. have_xinput=yes
  22696. fi
  22697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22698. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22700. /* end confdefs.h. */
  22701. #include <windows.h>
  22702. #include <xinput.h>
  22703. XINPUT_GAMEPAD_EX x1;
  22704. int
  22705. main (void)
  22706. {
  22707. ;
  22708. return 0;
  22709. }
  22710. _ACEOF
  22711. if ac_fn_c_try_compile "$LINENO"
  22712. then :
  22713. have_xinput_gamepadex=yes
  22714. fi
  22715. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22717. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22719. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22721. /* end confdefs.h. */
  22722. #include <windows.h>
  22723. #include <xinput.h>
  22724. XINPUT_STATE_EX s1;
  22725. int
  22726. main (void)
  22727. {
  22728. ;
  22729. return 0;
  22730. }
  22731. _ACEOF
  22732. if ac_fn_c_try_compile "$LINENO"
  22733. then :
  22734. have_xinput_stateex=yes
  22735. fi
  22736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22738. printf "%s\n" "$have_xinput_stateex" >&6; }
  22739. if test x$have_xinput = xyes; then
  22740. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22741. fi
  22742. if test x$have_xinput_gamepadex = xyes; then
  22743. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22744. fi
  22745. if test x$have_xinput_stateex = xyes; then
  22746. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22747. fi
  22748. fi
  22749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22750. printf %s "checking for windows.gaming.input.h... " >&6; }
  22751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22752. /* end confdefs.h. */
  22753. #define COBJMACROS
  22754. #include <windows.gaming.input.h>
  22755. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22756. int
  22757. main (void)
  22758. {
  22759. ;
  22760. return 0;
  22761. }
  22762. _ACEOF
  22763. if ac_fn_c_try_compile "$LINENO"
  22764. then :
  22765. have_wgi=yes
  22766. else $as_nop
  22767. have_wgi=no
  22768. fi
  22769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22771. printf "%s\n" "$have_wgi" >&6; }
  22772. if test x$have_wgi = xyes; then
  22773. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22774. fi
  22775. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22776. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22777. then :
  22778. have_wasapi=yes
  22779. fi
  22780. if test x$have_wasapi = xyes; then
  22781. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22782. fi
  22783. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22784. if test "x$ac_cv_header_audioclient_h" = xyes
  22785. then :
  22786. else $as_nop
  22787. have_wasapi=no
  22788. fi
  22789. if test x$have_wasapi = xyes; then
  22790. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22791. fi
  22792. # Check whether --enable-wasapi was given.
  22793. if test ${enable_wasapi+y}
  22794. then :
  22795. enableval=$enable_wasapi;
  22796. else $as_nop
  22797. enable_wasapi=yes
  22798. fi
  22799. }
  22800. CheckDLOPEN()
  22801. {
  22802. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22803. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22804. if test "x$ac_cv_header_dlfcn_h" = xyes
  22805. then :
  22806. have_dlfcn_h=yes
  22807. else $as_nop
  22808. have_dlfcn_h=no
  22809. fi
  22810. have_dlopen=no
  22811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22812. printf %s "checking for dlopen in -lc... " >&6; }
  22813. if test ${ac_cv_lib_c_dlopen+y}
  22814. then :
  22815. printf %s "(cached) " >&6
  22816. else $as_nop
  22817. ac_check_lib_save_LIBS=$LIBS
  22818. LIBS="-lc $LIBS"
  22819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22820. /* end confdefs.h. */
  22821. /* Override any GCC internal prototype to avoid an error.
  22822. Use char because int might match the return type of a GCC
  22823. builtin and then its argument prototype would still apply. */
  22824. char dlopen ();
  22825. int
  22826. main (void)
  22827. {
  22828. return dlopen ();
  22829. ;
  22830. return 0;
  22831. }
  22832. _ACEOF
  22833. if ac_fn_c_try_link "$LINENO"
  22834. then :
  22835. ac_cv_lib_c_dlopen=yes
  22836. else $as_nop
  22837. ac_cv_lib_c_dlopen=no
  22838. fi
  22839. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22840. conftest$ac_exeext conftest.$ac_ext
  22841. LIBS=$ac_check_lib_save_LIBS
  22842. fi
  22843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22844. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22845. if test "x$ac_cv_lib_c_dlopen" = xyes
  22846. then :
  22847. have_dlopen=yes
  22848. else $as_nop
  22849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22850. printf %s "checking for dlopen in -ldl... " >&6; }
  22851. if test ${ac_cv_lib_dl_dlopen+y}
  22852. then :
  22853. printf %s "(cached) " >&6
  22854. else $as_nop
  22855. ac_check_lib_save_LIBS=$LIBS
  22856. LIBS="-ldl $LIBS"
  22857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22858. /* end confdefs.h. */
  22859. /* Override any GCC internal prototype to avoid an error.
  22860. Use char because int might match the return type of a GCC
  22861. builtin and then its argument prototype would still apply. */
  22862. char dlopen ();
  22863. int
  22864. main (void)
  22865. {
  22866. return dlopen ();
  22867. ;
  22868. return 0;
  22869. }
  22870. _ACEOF
  22871. if ac_fn_c_try_link "$LINENO"
  22872. then :
  22873. ac_cv_lib_dl_dlopen=yes
  22874. else $as_nop
  22875. ac_cv_lib_dl_dlopen=no
  22876. fi
  22877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22878. conftest$ac_exeext conftest.$ac_ext
  22879. LIBS=$ac_check_lib_save_LIBS
  22880. fi
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22882. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22883. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22884. then :
  22885. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22886. fi
  22887. fi
  22888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22889. printf %s "checking for dlopen... " >&6; }
  22890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22891. printf "%s\n" "$have_dlopen" >&6; }
  22892. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22893. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22894. if test x$enable_loadso = xyes; then
  22895. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22897. have_loadso=yes
  22898. fi
  22899. fi
  22900. }
  22901. CheckO_CLOEXEC()
  22902. {
  22903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22904. printf %s "checking for O_CLOEXEC... " >&6; }
  22905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22906. /* end confdefs.h. */
  22907. #include <fcntl.h>
  22908. int flag = O_CLOEXEC;
  22909. int
  22910. main (void)
  22911. {
  22912. ;
  22913. return 0;
  22914. }
  22915. _ACEOF
  22916. if ac_fn_c_try_compile "$LINENO"
  22917. then :
  22918. have_o_cloexec=yes
  22919. else $as_nop
  22920. have_o_cloexec=no
  22921. fi
  22922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22924. printf "%s\n" "$have_o_cloexec" >&6; }
  22925. if test $have_o_cloexec = yes; then
  22926. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22927. fi
  22928. }
  22929. CheckUSBHID()
  22930. {
  22931. case "$host" in
  22932. *-*-*bsd*|*-*-dragonfly*)
  22933. if test x$enable_joystick = xyes; then
  22934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22935. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22936. if test ${ac_cv_lib_usbhid_hid_init+y}
  22937. then :
  22938. printf %s "(cached) " >&6
  22939. else $as_nop
  22940. ac_check_lib_save_LIBS=$LIBS
  22941. LIBS="-lusbhid $LIBS"
  22942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22943. /* end confdefs.h. */
  22944. /* Override any GCC internal prototype to avoid an error.
  22945. Use char because int might match the return type of a GCC
  22946. builtin and then its argument prototype would still apply. */
  22947. char hid_init ();
  22948. int
  22949. main (void)
  22950. {
  22951. return hid_init ();
  22952. ;
  22953. return 0;
  22954. }
  22955. _ACEOF
  22956. if ac_fn_c_try_link "$LINENO"
  22957. then :
  22958. ac_cv_lib_usbhid_hid_init=yes
  22959. else $as_nop
  22960. ac_cv_lib_usbhid_hid_init=no
  22961. fi
  22962. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22963. conftest$ac_exeext conftest.$ac_ext
  22964. LIBS=$ac_check_lib_save_LIBS
  22965. fi
  22966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22967. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22968. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22969. then :
  22970. have_libusbhid=yes
  22971. fi
  22972. if test x$have_libusbhid = xyes; then
  22973. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22974. if test "x$ac_cv_header_usbhid_h" = xyes
  22975. then :
  22976. USB_CFLAGS="-DHAVE_USBHID_H"
  22977. fi
  22978. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22979. if test "x$ac_cv_header_libusbhid_h" = xyes
  22980. then :
  22981. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22982. fi
  22983. USB_LIBS="$USB_LIBS -lusbhid"
  22984. else
  22985. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22986. if test "x$ac_cv_header_usb_h" = xyes
  22987. then :
  22988. USB_CFLAGS="-DHAVE_USB_H"
  22989. fi
  22990. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22991. if test "x$ac_cv_header_libusb_h" = xyes
  22992. then :
  22993. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22994. fi
  22995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22996. printf %s "checking for hid_init in -lusb... " >&6; }
  22997. if test ${ac_cv_lib_usb_hid_init+y}
  22998. then :
  22999. printf %s "(cached) " >&6
  23000. else $as_nop
  23001. ac_check_lib_save_LIBS=$LIBS
  23002. LIBS="-lusb $LIBS"
  23003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23004. /* end confdefs.h. */
  23005. /* Override any GCC internal prototype to avoid an error.
  23006. Use char because int might match the return type of a GCC
  23007. builtin and then its argument prototype would still apply. */
  23008. char hid_init ();
  23009. int
  23010. main (void)
  23011. {
  23012. return hid_init ();
  23013. ;
  23014. return 0;
  23015. }
  23016. _ACEOF
  23017. if ac_fn_c_try_link "$LINENO"
  23018. then :
  23019. ac_cv_lib_usb_hid_init=yes
  23020. else $as_nop
  23021. ac_cv_lib_usb_hid_init=no
  23022. fi
  23023. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23024. conftest$ac_exeext conftest.$ac_ext
  23025. LIBS=$ac_check_lib_save_LIBS
  23026. fi
  23027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23028. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23029. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23030. then :
  23031. USB_LIBS="$USB_LIBS -lusb"
  23032. fi
  23033. fi
  23034. save_CFLAGS="$CFLAGS"
  23035. CFLAGS="$CFLAGS $USB_CFLAGS"
  23036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23037. printf %s "checking for usbhid... " >&6; }
  23038. have_usbhid=no
  23039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23040. /* end confdefs.h. */
  23041. #include <sys/types.h>
  23042. #if defined(HAVE_USB_H)
  23043. #include <usb.h>
  23044. #endif
  23045. #ifdef __DragonFly__
  23046. # include <bus/u4b/usb.h>
  23047. # include <bus/u4b/usbhid.h>
  23048. #else
  23049. # include <dev/usb/usb.h>
  23050. # include <dev/usb/usbhid.h>
  23051. #endif
  23052. #if defined(HAVE_USBHID_H)
  23053. #include <usbhid.h>
  23054. #elif defined(HAVE_LIBUSB_H)
  23055. #include <libusb.h>
  23056. #elif defined(HAVE_LIBUSBHID_H)
  23057. #include <libusbhid.h>
  23058. #endif
  23059. int
  23060. main (void)
  23061. {
  23062. struct report_desc *repdesc;
  23063. struct usb_ctl_report *repbuf;
  23064. hid_kind_t hidkind;
  23065. ;
  23066. return 0;
  23067. }
  23068. _ACEOF
  23069. if ac_fn_c_try_compile "$LINENO"
  23070. then :
  23071. have_usbhid=yes
  23072. fi
  23073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23075. printf "%s\n" "$have_usbhid" >&6; }
  23076. if test x$have_usbhid = xyes; then
  23077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23078. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23079. have_usbhid_ucr_data=no
  23080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23081. /* end confdefs.h. */
  23082. #include <sys/types.h>
  23083. #if defined(HAVE_USB_H)
  23084. #include <usb.h>
  23085. #endif
  23086. #ifdef __DragonFly__
  23087. # include <bus/u4b/usb.h>
  23088. # include <bus/u4b/usbhid.h>
  23089. #else
  23090. # include <dev/usb/usb.h>
  23091. # include <dev/usb/usbhid.h>
  23092. #endif
  23093. #if defined(HAVE_USBHID_H)
  23094. #include <usbhid.h>
  23095. #elif defined(HAVE_LIBUSB_H)
  23096. #include <libusb.h>
  23097. #elif defined(HAVE_LIBUSBHID_H)
  23098. #include <libusbhid.h>
  23099. #endif
  23100. int
  23101. main (void)
  23102. {
  23103. struct usb_ctl_report buf;
  23104. if (buf.ucr_data) { }
  23105. ;
  23106. return 0;
  23107. }
  23108. _ACEOF
  23109. if ac_fn_c_try_compile "$LINENO"
  23110. then :
  23111. have_usbhid_ucr_data=yes
  23112. fi
  23113. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23114. if test x$have_usbhid_ucr_data = xyes; then
  23115. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23116. fi
  23117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23118. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23120. printf %s "checking for new usbhid API... " >&6; }
  23121. have_usbhid_new=no
  23122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23123. /* end confdefs.h. */
  23124. #include <sys/types.h>
  23125. #if defined(HAVE_USB_H)
  23126. #include <usb.h>
  23127. #endif
  23128. #ifdef __DragonFly__
  23129. #include <bus/u4b/usb.h>
  23130. #include <bus/u4b/usbhid.h>
  23131. #else
  23132. #include <dev/usb/usb.h>
  23133. #include <dev/usb/usbhid.h>
  23134. #endif
  23135. #if defined(HAVE_USBHID_H)
  23136. #include <usbhid.h>
  23137. #elif defined(HAVE_LIBUSB_H)
  23138. #include <libusb.h>
  23139. #elif defined(HAVE_LIBUSBHID_H)
  23140. #include <libusbhid.h>
  23141. #endif
  23142. int
  23143. main (void)
  23144. {
  23145. report_desc_t d;
  23146. hid_start_parse(d, 1, 1);
  23147. ;
  23148. return 0;
  23149. }
  23150. _ACEOF
  23151. if ac_fn_c_try_compile "$LINENO"
  23152. then :
  23153. have_usbhid_new=yes
  23154. fi
  23155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23156. if test x$have_usbhid_new = xyes; then
  23157. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23158. fi
  23159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23160. printf "%s\n" "$have_usbhid_new" >&6; }
  23161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23162. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23163. have_machine_joystick=no
  23164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23165. /* end confdefs.h. */
  23166. #include <machine/joystick.h>
  23167. int
  23168. main (void)
  23169. {
  23170. struct joystick t;
  23171. ;
  23172. return 0;
  23173. }
  23174. _ACEOF
  23175. if ac_fn_c_try_compile "$LINENO"
  23176. then :
  23177. have_machine_joystick=yes
  23178. fi
  23179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23180. if test x$have_machine_joystick = xyes; then
  23181. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23182. fi
  23183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23184. printf "%s\n" "$have_machine_joystick" >&6; }
  23185. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23186. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23187. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23189. have_joystick=yes
  23190. fi
  23191. CFLAGS="$save_CFLAGS"
  23192. fi
  23193. ;;
  23194. esac
  23195. }
  23196. CheckHIDAPI()
  23197. {
  23198. # Check whether --enable-hidapi-joystick was given.
  23199. if test ${enable_hidapi_joystick+y}
  23200. then :
  23201. enableval=$enable_hidapi_joystick;
  23202. else $as_nop
  23203. enable_hidapi_joystick=yes
  23204. fi
  23205. # Check whether --enable-hidapi-libusb was given.
  23206. if test ${enable_hidapi_libusb+y}
  23207. then :
  23208. enableval=$enable_hidapi_libusb;
  23209. else $as_nop
  23210. enable_hidapi_libusb=maybe
  23211. fi
  23212. if test x$enable_hidapi = xyes; then
  23213. case "$host" in
  23214. # libusb does not support iOS
  23215. *-ios-* )
  23216. enable_hidapi_libusb=no
  23217. ;;
  23218. # On the other hand, *BSD specifically uses libusb only
  23219. *-*-*bsd* )
  23220. enable_hidapi_libusb=yes
  23221. require_hidapi_libusb=yes
  23222. ;;
  23223. esac
  23224. hidapi_support=yes
  23225. if test x$enable_hidapi_libusb = xyes; then
  23226. pkg_failed=no
  23227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23228. printf %s "checking for libusb-1.0... " >&6; }
  23229. if test -n "$LIBUSB_CFLAGS"; then
  23230. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23231. elif test -n "$PKG_CONFIG"; then
  23232. if test -n "$PKG_CONFIG" && \
  23233. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23234. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23235. ac_status=$?
  23236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23237. test $ac_status = 0; }; then
  23238. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23239. test "x$?" != "x0" && pkg_failed=yes
  23240. else
  23241. pkg_failed=yes
  23242. fi
  23243. else
  23244. pkg_failed=untried
  23245. fi
  23246. if test -n "$LIBUSB_LIBS"; then
  23247. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23248. elif test -n "$PKG_CONFIG"; then
  23249. if test -n "$PKG_CONFIG" && \
  23250. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23251. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23252. ac_status=$?
  23253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23254. test $ac_status = 0; }; then
  23255. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23256. test "x$?" != "x0" && pkg_failed=yes
  23257. else
  23258. pkg_failed=yes
  23259. fi
  23260. else
  23261. pkg_failed=untried
  23262. fi
  23263. if test $pkg_failed = yes; then
  23264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23265. printf "%s\n" "no" >&6; }
  23266. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23267. _pkg_short_errors_supported=yes
  23268. else
  23269. _pkg_short_errors_supported=no
  23270. fi
  23271. if test $_pkg_short_errors_supported = yes; then
  23272. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23273. else
  23274. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23275. fi
  23276. # Put the nasty error message in config.log where it belongs
  23277. echo "$LIBUSB_PKG_ERRORS" >&5
  23278. have_libusb=no
  23279. elif test $pkg_failed = untried; then
  23280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23281. printf "%s\n" "no" >&6; }
  23282. have_libusb=no
  23283. else
  23284. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23285. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23287. printf "%s\n" "yes" >&6; }
  23288. have_libusb=yes
  23289. fi
  23290. save_CPPFLAGS="$CPPFLAGS"
  23291. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23292. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23293. if test "x$ac_cv_header_libusb_h" = xyes
  23294. then :
  23295. have_libusb_h=yes
  23296. else $as_nop
  23297. have_libusb_h=no
  23298. fi
  23299. CPPFLAGS="$save_CPPFLAGS"
  23300. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23301. hidapi_support=no
  23302. fi
  23303. fi
  23304. if test x$hidapi_support = xyes; then
  23305. if test x$have_libusb_h = xyes; then
  23306. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23307. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23308. if test x$require_hidapi_libusb = xyes; then
  23309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23310. else
  23311. if test x$have_loadso != xyes; then
  23312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23313. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23314. fi
  23315. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23316. libusb_lib=""
  23317. case "$host" in
  23318. *-*-darwin* )
  23319. libusb_lib="libusb-1.0.0.dylib"
  23320. ;;
  23321. *-*-cygwin* | *-*-mingw* )
  23322. libusb_lib="libusb-1.0.dll"
  23323. ;;
  23324. esac
  23325. if test x$libusb_lib = x; then
  23326. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23327. fi
  23328. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23329. fi
  23330. fi
  23331. fi
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23333. printf %s "checking for hidapi joystick support... " >&6; }
  23334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23335. printf "%s\n" "$hidapi_support" >&6; }
  23336. fi
  23337. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23338. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23339. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23340. fi
  23341. }
  23342. CheckClockGettime()
  23343. {
  23344. # Check whether --enable-clock_gettime was given.
  23345. if test ${enable_clock_gettime+y}
  23346. then :
  23347. enableval=$enable_clock_gettime;
  23348. else $as_nop
  23349. enable_clock_gettime=yes
  23350. fi
  23351. if test x$enable_clock_gettime = xyes; then
  23352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23353. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23354. if test ${ac_cv_lib_rt_clock_gettime+y}
  23355. then :
  23356. printf %s "(cached) " >&6
  23357. else $as_nop
  23358. ac_check_lib_save_LIBS=$LIBS
  23359. LIBS="-lrt $LIBS"
  23360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23361. /* end confdefs.h. */
  23362. /* Override any GCC internal prototype to avoid an error.
  23363. Use char because int might match the return type of a GCC
  23364. builtin and then its argument prototype would still apply. */
  23365. char clock_gettime ();
  23366. int
  23367. main (void)
  23368. {
  23369. return clock_gettime ();
  23370. ;
  23371. return 0;
  23372. }
  23373. _ACEOF
  23374. if ac_fn_c_try_link "$LINENO"
  23375. then :
  23376. ac_cv_lib_rt_clock_gettime=yes
  23377. else $as_nop
  23378. ac_cv_lib_rt_clock_gettime=no
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23381. conftest$ac_exeext conftest.$ac_ext
  23382. LIBS=$ac_check_lib_save_LIBS
  23383. fi
  23384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23385. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23386. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23387. then :
  23388. have_clock_gettime=yes
  23389. fi
  23390. if test x$have_clock_gettime = xyes; then
  23391. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23392. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23393. else
  23394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23395. printf %s "checking for clock_gettime in -lc... " >&6; }
  23396. if test ${ac_cv_lib_c_clock_gettime+y}
  23397. then :
  23398. printf %s "(cached) " >&6
  23399. else $as_nop
  23400. ac_check_lib_save_LIBS=$LIBS
  23401. LIBS="-lc $LIBS"
  23402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23403. /* end confdefs.h. */
  23404. /* Override any GCC internal prototype to avoid an error.
  23405. Use char because int might match the return type of a GCC
  23406. builtin and then its argument prototype would still apply. */
  23407. char clock_gettime ();
  23408. int
  23409. main (void)
  23410. {
  23411. return clock_gettime ();
  23412. ;
  23413. return 0;
  23414. }
  23415. _ACEOF
  23416. if ac_fn_c_try_link "$LINENO"
  23417. then :
  23418. ac_cv_lib_c_clock_gettime=yes
  23419. else $as_nop
  23420. ac_cv_lib_c_clock_gettime=no
  23421. fi
  23422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23423. conftest$ac_exeext conftest.$ac_ext
  23424. LIBS=$ac_check_lib_save_LIBS
  23425. fi
  23426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23427. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23428. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23429. then :
  23430. have_clock_gettime=yes
  23431. fi
  23432. if test x$have_clock_gettime = xyes; then
  23433. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23435. fi
  23436. fi
  23437. fi
  23438. }
  23439. CheckLinuxVersion()
  23440. {
  23441. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23442. if test "x$ac_cv_header_linux_version_h" = xyes
  23443. then :
  23444. have_linux_version_h=yes
  23445. fi
  23446. if test x$have_linux_version_h = xyes; then
  23447. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23448. fi
  23449. }
  23450. CheckRPATH()
  23451. {
  23452. # Check whether --enable-rpath was given.
  23453. if test ${enable_rpath+y}
  23454. then :
  23455. enableval=$enable_rpath;
  23456. else $as_nop
  23457. enable_rpath=yes
  23458. fi
  23459. }
  23460. CheckEventSignals()
  23461. {
  23462. # Check whether --enable-backgrounding-signal was given.
  23463. if test ${enable_backgrounding_signal+y}
  23464. then :
  23465. enableval=$enable_backgrounding_signal;
  23466. else $as_nop
  23467. enable_backgrounding_signal=no
  23468. fi
  23469. if test x$enable_backgrounding_signal != xno; then
  23470. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23471. fi
  23472. # Check whether --enable-foregrounding-signal was given.
  23473. if test ${enable_foregrounding_signal+y}
  23474. then :
  23475. enableval=$enable_foregrounding_signal;
  23476. else $as_nop
  23477. enable_foregrounding_signal=no
  23478. fi
  23479. if test x$enable_foregrounding_signal != xno; then
  23480. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23481. fi
  23482. }
  23483. CheckVirtualJoystick()
  23484. {
  23485. # Check whether --enable-joystick-virtual was given.
  23486. if test ${enable_joystick_virtual+y}
  23487. then :
  23488. enableval=$enable_joystick_virtual;
  23489. else $as_nop
  23490. enable_joystick_virtual=yes
  23491. fi
  23492. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23493. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23494. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23495. have_joystick_virtual=yes
  23496. fi
  23497. }
  23498. CheckWarnAll
  23499. CheckNoStrictAliasing
  23500. CheckEventSignals
  23501. have_locale=no
  23502. case "$host" in
  23503. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  23504. case "$host" in
  23505. *-*-android*)
  23506. # Android
  23507. ARCH=android
  23508. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23509. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23510. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23511. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23513. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23514. if test x$enable_video = xyes; then
  23515. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23516. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23517. SUMMARY_video="${SUMMARY_video} android"
  23518. have_video=yes
  23519. fi
  23520. ;;
  23521. *-*-linux*) ARCH=linux ;;
  23522. *-*-uclinux*) ARCH=linux ;;
  23523. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23524. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23525. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23526. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23527. *-*-bsdi*) ARCH=bsdi ;;
  23528. *-*-freebsd*) ARCH=freebsd ;;
  23529. *-*-dragonfly*) ARCH=freebsd ;;
  23530. *-*-netbsd*) ARCH=netbsd ;;
  23531. *-*-openbsd*) ARCH=openbsd ;;
  23532. *-*-sysv5*) ARCH=sysv5 ;;
  23533. *-*-solaris*) ARCH=solaris ;;
  23534. *-*-hpux*) ARCH=hpux ;;
  23535. *-*-aix*) ARCH=aix ;;
  23536. *-*-minix*) ARCH=minix ;;
  23537. *-*-nto*) ARCH=nto
  23538. CheckQNXVideo
  23539. ;;
  23540. esac
  23541. CheckVisibilityHidden
  23542. CheckWerror
  23543. CheckDeclarationAfterStatement
  23544. CheckDummyVideo
  23545. CheckOffscreenVideo
  23546. CheckDiskAudio
  23547. CheckDummyAudio
  23548. CheckDLOPEN
  23549. CheckARM
  23550. CheckNEON
  23551. CheckO_CLOEXEC
  23552. CheckOSS
  23553. CheckALSA
  23554. CheckPipewire
  23555. CheckPulseAudio
  23556. CheckLibSampleRate
  23557. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23558. CheckRPI
  23559. CheckX11
  23560. CheckDirectFB
  23561. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23562. CheckEGL
  23563. CheckKMSDRM
  23564. CheckGLX
  23565. CheckOpenGL
  23566. CheckOpenGLES
  23567. CheckVulkan
  23568. CheckWayland
  23569. CheckInputEvents
  23570. CheckLibUDev
  23571. CheckDBus
  23572. CheckIME
  23573. CheckInotify
  23574. CheckIBus
  23575. CheckFcitx
  23576. case $ARCH in
  23577. linux)
  23578. CheckInputKD
  23579. ;;
  23580. freebsd)
  23581. CheckInputKBIO
  23582. ;;
  23583. openbsd|netbsd)
  23584. CheckInputWSCONS
  23585. ;;
  23586. esac
  23587. CheckUSBHID
  23588. CheckHIDAPI
  23589. CheckPTHREAD
  23590. CheckClockGettime
  23591. CheckLinuxVersion
  23592. CheckRPATH
  23593. CheckVivanteVideo
  23594. # Set up files for the misc library
  23595. if test x$enable_misc = xyes; then
  23596. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23597. have_misc=yes
  23598. fi
  23599. # Set up files for the locale library
  23600. if test x$enable_locale = xyes; then
  23601. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23602. have_locale=yes
  23603. fi
  23604. # Set up files for the audio library
  23605. if test x$enable_audio = xyes; then
  23606. case $ARCH in
  23607. netbsd) # Don't use this on OpenBSD, it's busted.
  23608. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23609. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23610. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23611. have_audio=yes
  23612. ;;
  23613. android)
  23614. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23615. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23616. SUMMARY_audio="${SUMMARY_audio} android"
  23617. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23618. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23619. SUMMARY_audio="${SUMMARY_audio} openslES"
  23620. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23621. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23622. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23623. have_audio=yes
  23624. ;;
  23625. nto)
  23626. CheckQNXAudio
  23627. ;;
  23628. esac
  23629. fi
  23630. # Set up files for the joystick library
  23631. if test x$enable_joystick = xyes; then
  23632. case $ARCH in
  23633. linux)
  23634. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23635. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23636. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23637. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23638. have_joystick=yes
  23639. fi
  23640. ;;
  23641. freebsd)
  23642. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23643. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23644. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23645. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23646. have_joystick=yes
  23647. fi
  23648. ;;
  23649. android)
  23650. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23651. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23652. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23653. have_joystick=yes
  23654. ;;
  23655. esac
  23656. fi
  23657. # Set up files for the haptic library
  23658. if test x$enable_haptic = xyes; then
  23659. case $ARCH in
  23660. linux|freebsd)
  23661. if test x$use_input_events = xyes; then
  23662. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23663. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23664. have_haptic=yes
  23665. fi
  23666. ;;
  23667. android)
  23668. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23669. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23670. have_haptic=yes
  23671. ;;
  23672. esac
  23673. fi
  23674. # Set up files for the sensor library
  23675. if test x$enable_sensor = xyes; then
  23676. case $ARCH in
  23677. android)
  23678. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23679. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23680. have_sensor=yes
  23681. ;;
  23682. esac
  23683. fi
  23684. # Set up files for the power library
  23685. if test x$enable_power = xyes; then
  23686. case $ARCH in
  23687. linux)
  23688. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23689. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23690. have_power=yes
  23691. ;;
  23692. android)
  23693. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23694. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23695. have_power=yes
  23696. ;;
  23697. esac
  23698. fi
  23699. # Set up files for the filesystem library
  23700. if test x$enable_filesystem = xyes; then
  23701. case $ARCH in
  23702. android)
  23703. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23704. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23705. have_filesystem=yes
  23706. ;;
  23707. *)
  23708. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23709. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23710. have_filesystem=yes
  23711. ;;
  23712. esac
  23713. fi
  23714. # Set up files for the timer library
  23715. if test x$enable_timers = xyes; then
  23716. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23717. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23718. have_timers=yes
  23719. fi
  23720. # Set up files for udev hotplugging support
  23721. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23722. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23723. fi
  23724. # Set up files for evdev input
  23725. if test x$use_input_events = xyes; then
  23726. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23727. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23728. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23729. fi
  23730. # Set up files for wscons input
  23731. if test x$use_input_wscons = xyes; then
  23732. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23733. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23734. fi
  23735. # Set up other core UNIX files
  23736. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23737. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23738. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23739. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23740. ;;
  23741. *-*-cygwin* | *-*-mingw*)
  23742. ARCH=win32
  23743. if test "$build" != "$host"; then # cross-compiling
  23744. # Default cross-compile location
  23745. ac_default_prefix=/usr/local/cross-tools/$host
  23746. else
  23747. # Look for the location of the tools and install there
  23748. if test "$BUILD_PREFIX" != ""; then
  23749. ac_default_prefix=$BUILD_PREFIX
  23750. fi
  23751. fi
  23752. if test x$enable_loadso = xyes; then
  23753. have_loadso=yes
  23754. fi
  23755. CheckGDwarf4
  23756. CheckWerror
  23757. CheckDeclarationAfterStatement
  23758. CheckDummyVideo
  23759. CheckOffscreenVideo
  23760. CheckDiskAudio
  23761. CheckDummyAudio
  23762. CheckWINDOWS
  23763. CheckWINDOWSGL
  23764. CheckWINDOWSGLES
  23765. CheckVulkan
  23766. CheckDIRECTX
  23767. CheckHIDAPI
  23768. # Set up the core platform files
  23769. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23770. # Set up files for the misc library
  23771. if test x$enable_misc = xyes; then
  23772. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23773. have_misc=yes
  23774. fi
  23775. # Use the Windows locale APIs.
  23776. if test x$enable_locale = xyes; then
  23777. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23778. have_locale=yes
  23779. fi
  23780. # Set up files for the video library
  23781. if test x$enable_video = xyes; then
  23782. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23783. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23784. have_video=yes
  23785. # Check whether --enable-render-d3d was given.
  23786. if test ${enable_render_d3d+y}
  23787. then :
  23788. enableval=$enable_render_d3d;
  23789. else $as_nop
  23790. enable_render_d3d=yes
  23791. fi
  23792. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23793. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23794. SUMMARY_video="${SUMMARY_video} d3d9"
  23795. fi
  23796. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23797. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23798. SUMMARY_video="${SUMMARY_video} d3d11"
  23799. fi
  23800. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23801. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23802. SUMMARY_video="${SUMMARY_video} d3d12"
  23803. fi
  23804. fi
  23805. # Set up files for the audio library
  23806. if test x$enable_audio = xyes; then
  23807. if test x$have_dsound = xyes; then
  23808. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23809. SUMMARY_audio="${SUMMARY_audio} directsound"
  23810. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23811. fi
  23812. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23813. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23814. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23815. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23816. fi
  23817. have_audio=yes
  23818. fi
  23819. # Set up files for the joystick library
  23820. if test x$enable_joystick = xyes; then
  23821. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23822. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23823. if test x$have_xinput = xyes; then
  23824. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23825. fi
  23826. if test x$have_wgi = xyes; then
  23827. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23828. fi
  23829. if test x$have_dinput = xyes; then
  23830. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23831. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23832. fi
  23833. fi
  23834. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23835. have_joystick=yes
  23836. fi
  23837. if test x$enable_haptic = xyes; then
  23838. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23839. if test x$have_xinput = xyes; then
  23840. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23841. fi
  23842. if test x$have_dinput = xyes; then
  23843. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23844. fi
  23845. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23846. have_haptic=yes
  23847. fi
  23848. fi
  23849. # Set up files for the sensor library
  23850. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23851. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23852. then :
  23853. have_winsensors=yes
  23854. else $as_nop
  23855. have_winsensors=no
  23856. fi
  23857. if test x$have_winsensors = xyes; then
  23858. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23859. fi
  23860. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23861. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23862. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23863. have_sensor=yes
  23864. fi
  23865. # Set up files for the power library
  23866. if test x$enable_power = xyes; then
  23867. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23868. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23869. have_power=yes
  23870. fi
  23871. # Set up files for the filesystem library
  23872. if test x$enable_filesystem = xyes; then
  23873. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23874. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23875. have_filesystem=yes
  23876. fi
  23877. # Set up files for the thread library
  23878. if test x$enable_threads = xyes; then
  23879. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23880. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23881. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23882. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23883. have_threads=yes
  23884. fi
  23885. # Set up files for the timer library
  23886. if test x$enable_timers = xyes; then
  23887. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23888. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23889. have_timers=yes
  23890. fi
  23891. # Set up files for the shared object loading library
  23892. if test x$enable_loadso = xyes; then
  23893. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23894. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23895. fi
  23896. # Set up the system libraries we need
  23897. if test -f /lib/w32api/libuuid.a; then
  23898. LIBUUID=/lib/w32api/libuuid.a
  23899. else
  23900. LIBUUID=-luuid
  23901. fi
  23902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23903. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23904. # The Windows platform requires special setup
  23905. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23906. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23907. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23908. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23909. # Check to see if this is a mingw or cygwin build
  23910. have_mingw32=
  23911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23912. printf %s "checking for main in -lmingw32... " >&6; }
  23913. if test ${ac_cv_lib_mingw32_main+y}
  23914. then :
  23915. printf %s "(cached) " >&6
  23916. else $as_nop
  23917. ac_check_lib_save_LIBS=$LIBS
  23918. LIBS="-lmingw32 $LIBS"
  23919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23920. /* end confdefs.h. */
  23921. int
  23922. main (void)
  23923. {
  23924. return main ();
  23925. ;
  23926. return 0;
  23927. }
  23928. _ACEOF
  23929. if ac_fn_c_try_link "$LINENO"
  23930. then :
  23931. ac_cv_lib_mingw32_main=yes
  23932. else $as_nop
  23933. ac_cv_lib_mingw32_main=no
  23934. fi
  23935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23936. conftest$ac_exeext conftest.$ac_ext
  23937. LIBS=$ac_check_lib_save_LIBS
  23938. fi
  23939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23940. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23941. if test "x$ac_cv_lib_mingw32_main" = xyes
  23942. then :
  23943. have_mingw32=yes
  23944. fi
  23945. if test x$have_mingw32 = xyes; then
  23946. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23947. else
  23948. SDL_LIBS="-lcygwin $SDL_LIBS"
  23949. fi
  23950. ;;
  23951. *-*-beos*)
  23952. as_fn_error $? "
  23953. *** BeOS support has been removed as of SDL 2.0.2.
  23954. " "$LINENO" 5
  23955. ;;
  23956. *-*-haiku*)
  23957. ARCH=haiku
  23958. ac_default_prefix=/boot/system
  23959. CheckDummyVideo
  23960. CheckOffscreenVideo
  23961. CheckDiskAudio
  23962. CheckDummyAudio
  23963. CheckDLOPEN
  23964. CheckO_CLOEXEC
  23965. CheckHaikuVideo
  23966. CheckHaikuGL
  23967. CheckPTHREAD
  23968. # Set up files for the audio library
  23969. if test x$enable_audio = xyes; then
  23970. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23971. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23972. SUMMARY_audio="${SUMMARY_audio} haiku"
  23973. have_audio=yes
  23974. fi
  23975. # Set up files for the joystick library
  23976. if test x$enable_joystick = xyes; then
  23977. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23978. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23979. have_joystick=yes
  23980. fi
  23981. # Set up files for the timer library
  23982. if test x$enable_timers = xyes; then
  23983. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23984. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23985. have_timers=yes
  23986. fi
  23987. # Set up files for the system power library
  23988. if test x$enable_power = xyes; then
  23989. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23990. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23991. have_power=yes
  23992. fi
  23993. # Set up files for the system filesystem library
  23994. if test x$enable_filesystem = xyes; then
  23995. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23996. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23997. have_filesystem=yes
  23998. fi
  23999. # Set up files for the misc library
  24000. if test x$enable_misc = xyes; then
  24001. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24002. have_misc=yes
  24003. fi
  24004. # Set up files for the locale library
  24005. if test x$enable_locale = xyes; then
  24006. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24007. have_locale=yes
  24008. fi
  24009. # The Haiku platform requires special setup.
  24010. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24011. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24012. ;;
  24013. *-ios-*)
  24014. ARCH=ios
  24015. CheckVisibilityHidden
  24016. CheckWerror
  24017. CheckNoErrorDeprecatedDeclarationsWerror
  24018. CheckDeclarationAfterStatement
  24019. CheckDummyVideo
  24020. CheckOffscreenVideo
  24021. CheckDiskAudio
  24022. CheckDummyAudio
  24023. CheckDLOPEN
  24024. CheckO_CLOEXEC
  24025. CheckMETAL
  24026. CheckVulkan
  24027. CheckPTHREAD
  24028. # Set up files for the misc library
  24029. if test x$enable_misc = xyes; then
  24030. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24031. have_misc=yes
  24032. fi
  24033. # Set up files for the locale library
  24034. if test x$enable_locale = xyes; then
  24035. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24036. have_locale=yes
  24037. fi
  24038. # Set up files for the audio library
  24039. if test x$enable_audio = xyes; then
  24040. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24041. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24042. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24043. have_audio=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_MFI 1" >>confdefs.h
  24048. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24049. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24050. have_joystick=yes
  24051. else
  24052. # Need this code for accelerometer as joystick support
  24053. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24054. fi
  24055. # Set up files for the haptic library
  24056. #if test x$enable_haptic = xyes; then
  24057. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24058. # have_haptic=yes
  24059. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24060. #fi
  24061. # Set up files for the sensor library
  24062. if test x$enable_sensor = xyes; then
  24063. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24064. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24065. have_sensor=yes
  24066. fi
  24067. # Set up files for the power library
  24068. if test x$enable_power = xyes; then
  24069. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24070. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24071. have_power=yes
  24072. fi
  24073. # Set up files for the filesystem library
  24074. if test x$enable_filesystem = xyes; then
  24075. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24076. have_filesystem=yes
  24077. fi
  24078. # Set up additional files for the file library
  24079. if test x$enable_file = xyes; then
  24080. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24081. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24082. fi
  24083. # Set up files for the timer library
  24084. if test x$enable_timers = xyes; then
  24085. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24086. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24087. have_timers=yes
  24088. fi
  24089. # Set up other core UNIX files
  24090. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24091. # The iOS platform requires special setup.
  24092. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24093. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24094. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24095. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24096. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24097. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24098. SUMMARY_video="${SUMMARY_video} uikit"
  24099. have_video=yes
  24100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24101. if test x$enable_system_iconv = xyes; then
  24102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24103. fi
  24104. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24105. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24108. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24112. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24115. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24117. fi
  24118. ;;
  24119. *-*-darwin* )
  24120. # This could be either full "Mac OS X", or plain "Darwin" which is
  24121. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24122. # Next line is broken, and a few files below require Mac OS X (full)
  24123. ARCH=macosx
  24124. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24125. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24126. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24127. CheckObjectiveCARC
  24128. CheckVisibilityHidden
  24129. CheckWerror
  24130. CheckNoErrorDeprecatedDeclarationsWerror
  24131. CheckDeclarationAfterStatement
  24132. CheckDummyVideo
  24133. CheckOffscreenVideo
  24134. CheckDiskAudio
  24135. CheckDummyAudio
  24136. CheckDLOPEN
  24137. CheckO_CLOEXEC
  24138. CheckCOCOA
  24139. CheckMETAL
  24140. CheckX11
  24141. CheckMacGL
  24142. CheckMacGLES
  24143. CheckGLX
  24144. CheckOpenGL
  24145. CheckVulkan
  24146. CheckPTHREAD
  24147. CheckHIDAPI
  24148. # Set up files for the misc library
  24149. if test x$enable_misc = xyes; then
  24150. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24151. have_misc=yes
  24152. fi
  24153. # Set up files for the locale library
  24154. if test x$enable_locale = xyes; then
  24155. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24156. have_locale=yes
  24157. fi
  24158. # Set up files for the audio library
  24159. if test x$enable_audio = xyes; then
  24160. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24161. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24163. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24164. have_audio=yes
  24165. fi
  24166. # Set up files for the joystick library
  24167. if test x$enable_joystick = xyes; then
  24168. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24169. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24170. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24171. CheckJoystickMFI
  24172. have_joystick=yes
  24173. fi
  24174. # Set up files for the haptic library
  24175. if test x$enable_haptic = xyes; then
  24176. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24177. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24179. have_haptic=yes
  24180. fi
  24181. # Set up files for the power library
  24182. if test x$enable_power = xyes; then
  24183. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24184. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24185. have_power=yes
  24186. fi
  24187. # Set up files for the filesystem library
  24188. if test x$enable_filesystem = xyes; then
  24189. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24190. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24191. have_filesystem=yes
  24192. fi
  24193. # Set up files for the timer library
  24194. if test x$enable_timers = xyes; then
  24195. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24196. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24197. have_timers=yes
  24198. fi
  24199. # Set up additional files for the file library
  24200. if test x$enable_file = xyes; then
  24201. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24202. fi
  24203. # Set up other core UNIX files
  24204. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24205. # The Mac OS X platform requires special setup.
  24206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24211. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24213. fi
  24214. ;;
  24215. *-nacl|*-pnacl)
  24216. ARCH=nacl
  24217. CheckNativeClient
  24218. CheckDummyAudio
  24219. CheckDummyVideo
  24220. CheckOffscreenVideo
  24221. CheckInputEvents
  24222. CheckPTHREAD
  24223. CheckO_CLOEXEC
  24224. # Set up files for the timer library
  24225. if test x$enable_timers = xyes; then
  24226. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24227. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24228. have_timers=yes
  24229. fi
  24230. if test x$enable_filesystem = xyes; then
  24231. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  24232. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  24233. have_filesystem=yes
  24234. fi
  24235. ;;
  24236. *-*-emscripten* )
  24237. if test x$enable_video = xyes; then
  24238. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24239. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24240. have_video=yes
  24241. SUMMARY_video="${SUMMARY_video} emscripten"
  24242. fi
  24243. if test x$enable_audio = xyes; then
  24244. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24245. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24246. have_audio=yes
  24247. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24248. fi
  24249. CheckVisibilityHidden
  24250. CheckWerror
  24251. CheckDeclarationAfterStatement
  24252. CheckDummyVideo
  24253. CheckOffscreenVideo
  24254. CheckDiskAudio
  24255. CheckDummyAudio
  24256. CheckPTHREAD
  24257. CheckDLOPEN
  24258. CheckClockGettime
  24259. CheckEmscriptenGLES
  24260. # Set up files for the misc library
  24261. if test x$enable_misc = xyes; then
  24262. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24263. have_misc=yes
  24264. fi
  24265. # Set up files for the power library
  24266. if test x$enable_power = xyes; then
  24267. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24268. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24269. have_power=yes
  24270. fi
  24271. # Set up files for the joystick library
  24272. if test x$enable_joystick = xyes; then
  24273. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24274. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24275. have_joystick=yes
  24276. fi
  24277. # Set up files for the filesystem library
  24278. if test x$enable_filesystem = xyes; then
  24279. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24280. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24281. have_filesystem=yes
  24282. fi
  24283. # Set up files for the timer library
  24284. if test x$enable_timers = xyes; then
  24285. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24286. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24287. have_timers=yes
  24288. fi
  24289. # Set up files for the locale library
  24290. if test x$enable_locale = xyes; then
  24291. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24292. have_locale=yes
  24293. fi
  24294. ;;
  24295. *-*-riscos*)
  24296. ARCH=riscos
  24297. CheckVisibilityHidden
  24298. CheckWerror
  24299. CheckDeclarationAfterStatement
  24300. CheckDummyVideo
  24301. CheckOffscreenVideo
  24302. CheckDiskAudio
  24303. CheckDummyAudio
  24304. CheckDLOPEN
  24305. CheckO_CLOEXEC
  24306. CheckOSS
  24307. CheckPTHREAD
  24308. CheckClockGettime
  24309. # Set up files for the misc library
  24310. if test x$enable_misc = xyes; then
  24311. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24312. have_misc=yes
  24313. fi
  24314. # Set up files for the video library
  24315. if test x$enable_video = xyes; then
  24316. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24317. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24318. have_video=yes
  24319. SUMMARY_video="${SUMMARY_video} riscos"
  24320. fi
  24321. # Set up files for the filesystem library
  24322. if test x$enable_filesystem = xyes; then
  24323. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24324. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24325. have_filesystem=yes
  24326. fi
  24327. # Set up files for the timer library
  24328. if test x$enable_timers = xyes; then
  24329. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24330. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24331. have_timers=yes
  24332. fi
  24333. ;;
  24334. *)
  24335. as_fn_error $? "
  24336. *** Unsupported host: Please add to configure.ac
  24337. " "$LINENO" 5
  24338. ;;
  24339. esac
  24340. CheckVirtualJoystick
  24341. # Check whether to install sdl3-config
  24342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24343. printf %s "checking whether to install sdl3-config... " >&6; }
  24344. # Check whether --enable-sdl3-config was given.
  24345. if test ${enable_sdl3_config+y}
  24346. then :
  24347. enableval=$enable_sdl3_config; case "${enableval}" in
  24348. yes) enable_sdl3_config="TRUE" ;;
  24349. no) enable_sdl3_config="FALSE" ;;
  24350. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24351. esac
  24352. else $as_nop
  24353. enable_sdl3_config="TRUE"
  24354. fi
  24355. if test "$enable_sdl3_config" = "TRUE"; then
  24356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24357. printf "%s\n" "yes" >&6; }
  24358. else
  24359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24360. printf "%s\n" "no" >&6; }
  24361. fi
  24362. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24363. # Check whether --enable-vendor-info was given.
  24364. if test ${enable_vendor_info+y}
  24365. then :
  24366. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24367. else $as_nop
  24368. enable_vendor_info=
  24369. fi
  24370. if test "$enable_vendor_info" = no
  24371. then :
  24372. enable_vendor_info=
  24373. fi
  24374. SDL_VENDOR_INFO=$enable_vendor_info
  24375. # Verify that we have all the platform specific files we need
  24376. if test x$have_audio != xyes; then
  24377. if test x$enable_audio = xyes; then
  24378. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24379. fi
  24380. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24381. fi
  24382. if test x$have_video != xyes; then
  24383. if test x$enable_video = xyes; then
  24384. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24385. fi
  24386. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24387. fi
  24388. if test x$have_misc != xyes; then
  24389. if test x$enable_misc = xyes; then
  24390. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24391. fi
  24392. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24393. fi
  24394. if test x$have_locale != xyes; then
  24395. if test x$enable_locale = xyes; then
  24396. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24397. fi
  24398. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24399. fi
  24400. if test x$have_joystick != xyes; then
  24401. if test x$enable_joystick = xyes; then
  24402. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24403. fi
  24404. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24405. fi
  24406. if test x$have_haptic != xyes; then
  24407. if test x$enable_haptic = xyes; then
  24408. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24409. fi
  24410. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24411. fi
  24412. if test x$have_sensor != xyes; then
  24413. if test x$enable_sensor = xyes; then
  24414. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24415. fi
  24416. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24417. fi
  24418. if test x$have_threads != xyes; then
  24419. if test x$enable_threads = xyes; then
  24420. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24421. fi
  24422. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24423. fi
  24424. if test x$have_timers != xyes; then
  24425. if test x$enable_timers = xyes; then
  24426. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24427. fi
  24428. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24429. fi
  24430. if test x$have_filesystem != xyes; then
  24431. if test x$enable_filesystem = xyes; then
  24432. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24433. fi
  24434. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24435. fi
  24436. if test x$have_loadso != xyes; then
  24437. if test x$enable_loadso = xyes; then
  24438. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24439. fi
  24440. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24441. fi
  24442. if test x$SDLMAIN_SOURCES = x; then
  24443. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24444. fi
  24445. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24446. if test x$video_wayland = xyes; then
  24447. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24448. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24449. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24450. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24451. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24452. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24453. echo ;\
  24454. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24455. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24456. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24457. echo ;\
  24458. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24459. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24460. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24461. echo ;\
  24462. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24463. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24464. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24465. done ;\
  24466. echo ;\
  24467. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24468. fi
  24469. OBJECTS=`echo $SOURCES`
  24470. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24471. for EXT in asm cc m c S; do
  24472. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24473. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24474. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24475. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24476. done
  24477. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24478. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24479. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24480. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24481. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24482. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24483. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24484. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24485. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24486. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24487. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24488. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24489. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24490. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24491. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24492. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24493. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24494. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24495. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24496. # Set runtime shared library paths as needed
  24497. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24498. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24499. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24501. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24502. have_enable_new_dtags=no
  24503. save_LDFLAGS="$LDFLAGS"
  24504. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24506. /* end confdefs.h. */
  24507. int
  24508. main (void)
  24509. {
  24510. ;
  24511. return 0;
  24512. }
  24513. _ACEOF
  24514. if ac_fn_c_try_link "$LINENO"
  24515. then :
  24516. have_enable_new_dtags=yes
  24517. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24518. fi
  24519. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24520. conftest$ac_exeext conftest.$ac_ext
  24521. LDFLAGS="$save_LDFLAGS"
  24522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24523. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24524. fi
  24525. if test $ARCH = solaris; then
  24526. SDL_RLD_FLAGS="-R\${libdir}"
  24527. fi
  24528. else
  24529. SDL_RLD_FLAGS=""
  24530. fi
  24531. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24532. pkg_cmakedir='$libdir/cmake/SDL3'
  24533. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24534. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24535. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24536. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24537. _lcl_receval="$_lcl_from"
  24538. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24539. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24540. _lcl_receval_old=''
  24541. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24542. _lcl_receval_old="$_lcl_receval"
  24543. eval _lcl_receval="\"$_lcl_receval\""
  24544. done
  24545. echo "$_lcl_receval")`
  24546. _lcl_receval="$_lcl_to"
  24547. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24548. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24549. _lcl_receval_old=''
  24550. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24551. _lcl_receval_old="$_lcl_receval"
  24552. eval _lcl_receval="\"$_lcl_receval\""
  24553. done
  24554. echo "$_lcl_receval")`
  24555. _lcl_notation="$_lcl_from$_lcl_to"
  24556. case ":$_lcl_from:" in
  24557. # change empty paths to '.'
  24558. ::) _lcl_from='.' ;;
  24559. # strip trailing slashes
  24560. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24561. :*:) ;;
  24562. esac
  24563. # squeeze repeated slashes
  24564. case '/' in
  24565. # if the path contains any backslashes, turn slashes into backslashes
  24566. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24567. # if the path contains slashes, also turn backslashes into slashes
  24568. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24569. esac
  24570. case ":$_lcl_to:" in
  24571. # change empty paths to '.'
  24572. ::) _lcl_to='.' ;;
  24573. # strip trailing slashes
  24574. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24575. :*:) ;;
  24576. esac
  24577. # squeeze repeated slashes
  24578. case '/' in
  24579. # if the path contains any backslashes, turn slashes into backslashes
  24580. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24581. # if the path contains slashes, also turn backslashes into slashes
  24582. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24583. esac
  24584. _lcl_common_prefix=''
  24585. _lcl_second_prefix_match=''
  24586. while test "$_lcl_second_prefix_match" != 0; do
  24587. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24588. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24589. if test "$_lcl_second_prefix_match" != 0; then
  24590. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24591. _lcl_common_prefix="$_lcl_first_prefix"
  24592. else
  24593. _lcl_second_prefix_match=0
  24594. fi
  24595. fi
  24596. done
  24597. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24598. _lcl_first_rel=''
  24599. _lcl_tmp='xxx'
  24600. while test "$_lcl_tmp" != ''; do
  24601. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24602. if test "$_lcl_first_suffix" != ''; then
  24603. _lcl_first_suffix="$_lcl_tmp"
  24604. _lcl_first_rel="../$_lcl_first_rel"
  24605. fi
  24606. done
  24607. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24608. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24609. case ":$_lcl_result_tmp:" in
  24610. # change empty paths to '.'
  24611. ::) _lcl_result_tmp='.' ;;
  24612. # strip trailing slashes
  24613. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24614. :*:) ;;
  24615. esac
  24616. # squeeze repeated slashes
  24617. case "$_lcl_notation" in
  24618. # if the path contains any backslashes, turn slashes into backslashes
  24619. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24620. # if the path contains slashes, also turn backslashes into slashes
  24621. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24622. esac
  24623. eval $_lcl_result_var='$_lcl_result_tmp'
  24624. done
  24625. if test x$enable_shared = xyes; then
  24626. PKGCONFIG_LIBS_PRIV="
  24627. Libs.private:"
  24628. ENABLE_SHARED_TRUE=
  24629. ENABLE_SHARED_FALSE="#"
  24630. else
  24631. PKGCONFIG_LIBS_PRIV=
  24632. ENABLE_SHARED_TRUE="#"
  24633. ENABLE_SHARED_FALSE=
  24634. fi
  24635. if test x$enable_static = xyes; then
  24636. ENABLE_STATIC_TRUE=
  24637. ENABLE_STATIC_FALSE="#"
  24638. else
  24639. ENABLE_STATIC_TRUE="#"
  24640. ENABLE_STATIC_FALSE=
  24641. fi
  24642. cat >Makefile.rules <<__EOF__
  24643. # Build rules for objects
  24644. -include \$(OBJECTS:.lo=.d)
  24645. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24646. $srcdir/src/SDL.c: update-revision
  24647. $DEPENDS
  24648. $VERSION_DEPENDS
  24649. $SDLMAIN_DEPENDS
  24650. $SDLTEST_DEPENDS
  24651. $WAYLAND_PROTOCOLS_DEPENDS
  24652. __EOF__
  24653. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24654. ac_config_commands="$ac_config_commands sdl3_config"
  24655. SUMMARY="SDL3 Configure Summary:\n"
  24656. if test x$enable_shared = xyes; then
  24657. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24658. fi
  24659. if test x$enable_static = xyes; then
  24660. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24661. fi
  24662. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24663. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24664. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24665. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24666. if test x$have_x = xyes; then
  24667. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24668. fi
  24669. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24670. if test x$have_joystick_virtual = xyes; then
  24671. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24672. else
  24673. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24674. fi
  24675. if test x$have_samplerate_h_hdr = xyes; then
  24676. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24677. else
  24678. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24679. fi
  24680. if test x$have_libudev_h_hdr = xyes; then
  24681. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24682. else
  24683. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24684. fi
  24685. if test x$have_dbus_dbus_h_hdr = xyes; then
  24686. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24687. else
  24688. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24689. fi
  24690. if test x$enable_ime = xyes; then
  24691. SUMMARY="${SUMMARY}Using ime : YES\n"
  24692. else
  24693. SUMMARY="${SUMMARY}Using ime : NO\n"
  24694. fi
  24695. if test x$have_ibus_ibus_h_hdr = xyes; then
  24696. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24697. else
  24698. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24699. fi
  24700. if test x$have_fcitx = xyes; then
  24701. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24702. else
  24703. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24704. fi
  24705. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24706. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24707. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24708. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24709. SUMMARY="${SUMMARY}configure script with:\n"
  24710. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24711. fi
  24712. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24713. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24714. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24715. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24716. SUMMARY="${SUMMARY}configure script with:\n"
  24717. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24718. fi
  24719. ac_config_commands="$ac_config_commands summary"
  24720. cat >confcache <<\_ACEOF
  24721. # This file is a shell script that caches the results of configure
  24722. # tests run on this system so they can be shared between configure
  24723. # scripts and configure runs, see configure's option --config-cache.
  24724. # It is not useful on other systems. If it contains results you don't
  24725. # want to keep, you may remove or edit it.
  24726. #
  24727. # config.status only pays attention to the cache file if you give it
  24728. # the --recheck option to rerun configure.
  24729. #
  24730. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24731. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24732. # following values.
  24733. _ACEOF
  24734. # The following way of writing the cache mishandles newlines in values,
  24735. # but we know of no workaround that is simple, portable, and efficient.
  24736. # So, we kill variables containing newlines.
  24737. # Ultrix sh set writes to stderr and can't be redirected directly,
  24738. # and sets the high bit in the cache file unless we assign to the vars.
  24739. (
  24740. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24741. eval ac_val=\$$ac_var
  24742. case $ac_val in #(
  24743. *${as_nl}*)
  24744. case $ac_var in #(
  24745. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24746. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24747. esac
  24748. case $ac_var in #(
  24749. _ | IFS | as_nl) ;; #(
  24750. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24751. *) { eval $ac_var=; unset $ac_var;} ;;
  24752. esac ;;
  24753. esac
  24754. done
  24755. (set) 2>&1 |
  24756. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24757. *${as_nl}ac_space=\ *)
  24758. # `set' does not quote correctly, so add quotes: double-quote
  24759. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24760. sed -n \
  24761. "s/'/'\\\\''/g;
  24762. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24763. ;; #(
  24764. *)
  24765. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24766. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24767. ;;
  24768. esac |
  24769. sort
  24770. ) |
  24771. sed '
  24772. /^ac_cv_env_/b end
  24773. t clear
  24774. :clear
  24775. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24776. t end
  24777. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24778. :end' >>confcache
  24779. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24780. if test -w "$cache_file"; then
  24781. if test "x$cache_file" != "x/dev/null"; then
  24782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24783. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24784. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24785. cat confcache >"$cache_file"
  24786. else
  24787. case $cache_file in #(
  24788. */* | ?:*)
  24789. mv -f confcache "$cache_file"$$ &&
  24790. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24791. *)
  24792. mv -f confcache "$cache_file" ;;
  24793. esac
  24794. fi
  24795. fi
  24796. else
  24797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24798. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24799. fi
  24800. fi
  24801. rm -f confcache
  24802. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24803. # Let make expand exec_prefix.
  24804. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24805. DEFS=-DHAVE_CONFIG_H
  24806. ac_libobjs=
  24807. ac_ltlibobjs=
  24808. U=
  24809. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24810. # 1. Remove the extension, and $U if already installed.
  24811. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24812. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24813. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24814. # will be set to the directory where LIBOBJS objects are built.
  24815. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24816. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24817. done
  24818. LIBOBJS=$ac_libobjs
  24819. LTLIBOBJS=$ac_ltlibobjs
  24820. : "${CONFIG_STATUS=./config.status}"
  24821. ac_write_fail=0
  24822. ac_clean_files_save=$ac_clean_files
  24823. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24825. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24826. as_write_fail=0
  24827. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24828. #! $SHELL
  24829. # Generated by $as_me.
  24830. # Run this file to recreate the current configuration.
  24831. # Compiler output produced by configure, useful for debugging
  24832. # configure, is in config.log if it exists.
  24833. debug=false
  24834. ac_cs_recheck=false
  24835. ac_cs_silent=false
  24836. SHELL=\${CONFIG_SHELL-$SHELL}
  24837. export SHELL
  24838. _ASEOF
  24839. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24840. ## -------------------- ##
  24841. ## M4sh Initialization. ##
  24842. ## -------------------- ##
  24843. # Be more Bourne compatible
  24844. DUALCASE=1; export DUALCASE # for MKS sh
  24845. as_nop=:
  24846. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24847. then :
  24848. emulate sh
  24849. NULLCMD=:
  24850. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24851. # is contrary to our usage. Disable this feature.
  24852. alias -g '${1+"$@"}'='"$@"'
  24853. setopt NO_GLOB_SUBST
  24854. else $as_nop
  24855. case `(set -o) 2>/dev/null` in #(
  24856. *posix*) :
  24857. set -o posix ;; #(
  24858. *) :
  24859. ;;
  24860. esac
  24861. fi
  24862. # Reset variables that may have inherited troublesome values from
  24863. # the environment.
  24864. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24865. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24866. # side effect of setting IFS to empty, thus disabling word splitting.)
  24867. # Quoting is to prevent editors from complaining about space-tab.
  24868. as_nl='
  24869. '
  24870. export as_nl
  24871. IFS=" "" $as_nl"
  24872. PS1='$ '
  24873. PS2='> '
  24874. PS4='+ '
  24875. # Ensure predictable behavior from utilities with locale-dependent output.
  24876. LC_ALL=C
  24877. export LC_ALL
  24878. LANGUAGE=C
  24879. export LANGUAGE
  24880. # We cannot yet rely on "unset" to work, but we need these variables
  24881. # to be unset--not just set to an empty or harmless value--now, to
  24882. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24883. # also avoids known problems related to "unset" and subshell syntax
  24884. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24885. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24886. do eval test \${$as_var+y} \
  24887. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24888. done
  24889. # Ensure that fds 0, 1, and 2 are open.
  24890. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24891. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24892. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24893. # The user is always right.
  24894. if ${PATH_SEPARATOR+false} :; then
  24895. PATH_SEPARATOR=:
  24896. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24897. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24898. PATH_SEPARATOR=';'
  24899. }
  24900. fi
  24901. # Find who we are. Look in the path if we contain no directory separator.
  24902. as_myself=
  24903. case $0 in #((
  24904. *[\\/]* ) as_myself=$0 ;;
  24905. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24906. for as_dir in $PATH
  24907. do
  24908. IFS=$as_save_IFS
  24909. case $as_dir in #(((
  24910. '') as_dir=./ ;;
  24911. */) ;;
  24912. *) as_dir=$as_dir/ ;;
  24913. esac
  24914. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24915. done
  24916. IFS=$as_save_IFS
  24917. ;;
  24918. esac
  24919. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24920. # in which case we are not to be found in the path.
  24921. if test "x$as_myself" = x; then
  24922. as_myself=$0
  24923. fi
  24924. if test ! -f "$as_myself"; then
  24925. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24926. exit 1
  24927. fi
  24928. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24929. # ----------------------------------------
  24930. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24931. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24932. # script with STATUS, using 1 if that was 0.
  24933. as_fn_error ()
  24934. {
  24935. as_status=$1; test $as_status -eq 0 && as_status=1
  24936. if test "$4"; then
  24937. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24938. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24939. fi
  24940. printf "%s\n" "$as_me: error: $2" >&2
  24941. as_fn_exit $as_status
  24942. } # as_fn_error
  24943. # as_fn_set_status STATUS
  24944. # -----------------------
  24945. # Set $? to STATUS, without forking.
  24946. as_fn_set_status ()
  24947. {
  24948. return $1
  24949. } # as_fn_set_status
  24950. # as_fn_exit STATUS
  24951. # -----------------
  24952. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24953. as_fn_exit ()
  24954. {
  24955. set +e
  24956. as_fn_set_status $1
  24957. exit $1
  24958. } # as_fn_exit
  24959. # as_fn_unset VAR
  24960. # ---------------
  24961. # Portably unset VAR.
  24962. as_fn_unset ()
  24963. {
  24964. { eval $1=; unset $1;}
  24965. }
  24966. as_unset=as_fn_unset
  24967. # as_fn_append VAR VALUE
  24968. # ----------------------
  24969. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24970. # advantage of any shell optimizations that allow amortized linear growth over
  24971. # repeated appends, instead of the typical quadratic growth present in naive
  24972. # implementations.
  24973. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24974. then :
  24975. eval 'as_fn_append ()
  24976. {
  24977. eval $1+=\$2
  24978. }'
  24979. else $as_nop
  24980. as_fn_append ()
  24981. {
  24982. eval $1=\$$1\$2
  24983. }
  24984. fi # as_fn_append
  24985. # as_fn_arith ARG...
  24986. # ------------------
  24987. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24988. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24989. # must be portable across $(()) and expr.
  24990. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24991. then :
  24992. eval 'as_fn_arith ()
  24993. {
  24994. as_val=$(( $* ))
  24995. }'
  24996. else $as_nop
  24997. as_fn_arith ()
  24998. {
  24999. as_val=`expr "$@" || test $? -eq 1`
  25000. }
  25001. fi # as_fn_arith
  25002. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25003. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25004. as_expr=expr
  25005. else
  25006. as_expr=false
  25007. fi
  25008. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25009. as_basename=basename
  25010. else
  25011. as_basename=false
  25012. fi
  25013. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25014. as_dirname=dirname
  25015. else
  25016. as_dirname=false
  25017. fi
  25018. as_me=`$as_basename -- "$0" ||
  25019. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25020. X"$0" : 'X\(//\)$' \| \
  25021. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25022. printf "%s\n" X/"$0" |
  25023. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25024. s//\1/
  25025. q
  25026. }
  25027. /^X\/\(\/\/\)$/{
  25028. s//\1/
  25029. q
  25030. }
  25031. /^X\/\(\/\).*/{
  25032. s//\1/
  25033. q
  25034. }
  25035. s/.*/./; q'`
  25036. # Avoid depending upon Character Ranges.
  25037. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25038. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25039. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25040. as_cr_digits='0123456789'
  25041. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25042. # Determine whether it's possible to make 'echo' print without a newline.
  25043. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25044. # for compatibility with existing Makefiles.
  25045. ECHO_C= ECHO_N= ECHO_T=
  25046. case `echo -n x` in #(((((
  25047. -n*)
  25048. case `echo 'xy\c'` in
  25049. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25050. xy) ECHO_C='\c';;
  25051. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25052. ECHO_T=' ';;
  25053. esac;;
  25054. *)
  25055. ECHO_N='-n';;
  25056. esac
  25057. # For backward compatibility with old third-party macros, we provide
  25058. # the shell variables $as_echo and $as_echo_n. New code should use
  25059. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25060. as_echo='printf %s\n'
  25061. as_echo_n='printf %s'
  25062. rm -f conf$$ conf$$.exe conf$$.file
  25063. if test -d conf$$.dir; then
  25064. rm -f conf$$.dir/conf$$.file
  25065. else
  25066. rm -f conf$$.dir
  25067. mkdir conf$$.dir 2>/dev/null
  25068. fi
  25069. if (echo >conf$$.file) 2>/dev/null; then
  25070. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25071. as_ln_s='ln -s'
  25072. # ... but there are two gotchas:
  25073. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25074. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25075. # In both cases, we have to default to `cp -pR'.
  25076. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25077. as_ln_s='cp -pR'
  25078. elif ln conf$$.file conf$$ 2>/dev/null; then
  25079. as_ln_s=ln
  25080. else
  25081. as_ln_s='cp -pR'
  25082. fi
  25083. else
  25084. as_ln_s='cp -pR'
  25085. fi
  25086. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25087. rmdir conf$$.dir 2>/dev/null
  25088. # as_fn_mkdir_p
  25089. # -------------
  25090. # Create "$as_dir" as a directory, including parents if necessary.
  25091. as_fn_mkdir_p ()
  25092. {
  25093. case $as_dir in #(
  25094. -*) as_dir=./$as_dir;;
  25095. esac
  25096. test -d "$as_dir" || eval $as_mkdir_p || {
  25097. as_dirs=
  25098. while :; do
  25099. case $as_dir in #(
  25100. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25101. *) as_qdir=$as_dir;;
  25102. esac
  25103. as_dirs="'$as_qdir' $as_dirs"
  25104. as_dir=`$as_dirname -- "$as_dir" ||
  25105. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25106. X"$as_dir" : 'X\(//\)[^/]' \| \
  25107. X"$as_dir" : 'X\(//\)$' \| \
  25108. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25109. printf "%s\n" X"$as_dir" |
  25110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25111. s//\1/
  25112. q
  25113. }
  25114. /^X\(\/\/\)[^/].*/{
  25115. s//\1/
  25116. q
  25117. }
  25118. /^X\(\/\/\)$/{
  25119. s//\1/
  25120. q
  25121. }
  25122. /^X\(\/\).*/{
  25123. s//\1/
  25124. q
  25125. }
  25126. s/.*/./; q'`
  25127. test -d "$as_dir" && break
  25128. done
  25129. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25130. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25131. } # as_fn_mkdir_p
  25132. if mkdir -p . 2>/dev/null; then
  25133. as_mkdir_p='mkdir -p "$as_dir"'
  25134. else
  25135. test -d ./-p && rmdir ./-p
  25136. as_mkdir_p=false
  25137. fi
  25138. # as_fn_executable_p FILE
  25139. # -----------------------
  25140. # Test if FILE is an executable regular file.
  25141. as_fn_executable_p ()
  25142. {
  25143. test -f "$1" && test -x "$1"
  25144. } # as_fn_executable_p
  25145. as_test_x='test -x'
  25146. as_executable_p=as_fn_executable_p
  25147. # Sed expression to map a string onto a valid CPP name.
  25148. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25149. # Sed expression to map a string onto a valid variable name.
  25150. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25151. exec 6>&1
  25152. ## ----------------------------------- ##
  25153. ## Main body of $CONFIG_STATUS script. ##
  25154. ## ----------------------------------- ##
  25155. _ASEOF
  25156. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25158. # Save the log message, to keep $0 and so on meaningful, and to
  25159. # report actual input values of CONFIG_FILES etc. instead of their
  25160. # values after options handling.
  25161. ac_log="
  25162. This file was extended by $as_me, which was
  25163. generated by GNU Autoconf 2.71. Invocation command line was
  25164. CONFIG_FILES = $CONFIG_FILES
  25165. CONFIG_HEADERS = $CONFIG_HEADERS
  25166. CONFIG_LINKS = $CONFIG_LINKS
  25167. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25168. $ $0 $@
  25169. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25170. "
  25171. _ACEOF
  25172. case $ac_config_files in *"
  25173. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25174. esac
  25175. case $ac_config_headers in *"
  25176. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25177. esac
  25178. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25179. # Files that config.status was made for.
  25180. config_files="$ac_config_files"
  25181. config_headers="$ac_config_headers"
  25182. config_commands="$ac_config_commands"
  25183. _ACEOF
  25184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25185. ac_cs_usage="\
  25186. \`$as_me' instantiates files and other configuration actions
  25187. from templates according to the current configuration. Unless the files
  25188. and actions are specified as TAGs, all are instantiated by default.
  25189. Usage: $0 [OPTION]... [TAG]...
  25190. -h, --help print this help, then exit
  25191. -V, --version print version number and configuration settings, then exit
  25192. --config print configuration, then exit
  25193. -q, --quiet, --silent
  25194. do not print progress messages
  25195. -d, --debug don't remove temporary files
  25196. --recheck update $as_me by reconfiguring in the same conditions
  25197. --file=FILE[:TEMPLATE]
  25198. instantiate the configuration file FILE
  25199. --header=FILE[:TEMPLATE]
  25200. instantiate the configuration header FILE
  25201. Configuration files:
  25202. $config_files
  25203. Configuration headers:
  25204. $config_headers
  25205. Configuration commands:
  25206. $config_commands
  25207. Report bugs to the package provider."
  25208. _ACEOF
  25209. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25210. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25212. ac_cs_config='$ac_cs_config_escaped'
  25213. ac_cs_version="\\
  25214. config.status
  25215. configured by $0, generated by GNU Autoconf 2.71,
  25216. with options \\"\$ac_cs_config\\"
  25217. Copyright (C) 2021 Free Software Foundation, Inc.
  25218. This config.status script is free software; the Free Software Foundation
  25219. gives unlimited permission to copy, distribute and modify it."
  25220. ac_pwd='$ac_pwd'
  25221. srcdir='$srcdir'
  25222. INSTALL='$INSTALL'
  25223. AWK='$AWK'
  25224. test -n "\$AWK" || AWK=awk
  25225. _ACEOF
  25226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25227. # The default lists apply if the user does not specify any file.
  25228. ac_need_defaults=:
  25229. while test $# != 0
  25230. do
  25231. case $1 in
  25232. --*=?*)
  25233. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25234. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25235. ac_shift=:
  25236. ;;
  25237. --*=)
  25238. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25239. ac_optarg=
  25240. ac_shift=:
  25241. ;;
  25242. *)
  25243. ac_option=$1
  25244. ac_optarg=$2
  25245. ac_shift=shift
  25246. ;;
  25247. esac
  25248. case $ac_option in
  25249. # Handling of the options.
  25250. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25251. ac_cs_recheck=: ;;
  25252. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25253. printf "%s\n" "$ac_cs_version"; exit ;;
  25254. --config | --confi | --conf | --con | --co | --c )
  25255. printf "%s\n" "$ac_cs_config"; exit ;;
  25256. --debug | --debu | --deb | --de | --d | -d )
  25257. debug=: ;;
  25258. --file | --fil | --fi | --f )
  25259. $ac_shift
  25260. case $ac_optarg in
  25261. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25262. '') as_fn_error $? "missing file argument" ;;
  25263. esac
  25264. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25265. ac_need_defaults=false;;
  25266. --header | --heade | --head | --hea )
  25267. $ac_shift
  25268. case $ac_optarg in
  25269. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25270. esac
  25271. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25272. ac_need_defaults=false;;
  25273. --he | --h)
  25274. # Conflict between --help and --header
  25275. as_fn_error $? "ambiguous option: \`$1'
  25276. Try \`$0 --help' for more information.";;
  25277. --help | --hel | -h )
  25278. printf "%s\n" "$ac_cs_usage"; exit ;;
  25279. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25280. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25281. ac_cs_silent=: ;;
  25282. # This is an error.
  25283. -*) as_fn_error $? "unrecognized option: \`$1'
  25284. Try \`$0 --help' for more information." ;;
  25285. *) as_fn_append ac_config_targets " $1"
  25286. ac_need_defaults=false ;;
  25287. esac
  25288. shift
  25289. done
  25290. ac_configure_extra_args=
  25291. if $ac_cs_silent; then
  25292. exec 6>/dev/null
  25293. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25294. fi
  25295. _ACEOF
  25296. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25297. if \$ac_cs_recheck; then
  25298. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25299. shift
  25300. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25301. CONFIG_SHELL='$SHELL'
  25302. export CONFIG_SHELL
  25303. exec "\$@"
  25304. fi
  25305. _ACEOF
  25306. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25307. exec 5>>config.log
  25308. {
  25309. echo
  25310. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25311. ## Running $as_me. ##
  25312. _ASBOX
  25313. printf "%s\n" "$ac_log"
  25314. } >&5
  25315. _ACEOF
  25316. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25317. #
  25318. # INIT-COMMANDS
  25319. #
  25320. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25321. # if CDPATH is set.
  25322. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25323. sed_quote_subst='$sed_quote_subst'
  25324. double_quote_subst='$double_quote_subst'
  25325. delay_variable_subst='$delay_variable_subst'
  25326. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25327. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25328. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25329. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25330. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25331. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25332. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25333. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25334. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25335. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25336. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25337. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25338. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25339. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25340. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25341. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25342. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25343. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25344. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25345. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25346. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25347. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25348. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25349. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25350. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25351. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25352. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25353. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25354. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25355. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25356. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25357. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25358. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25359. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25360. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25361. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25362. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25363. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25364. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25365. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25366. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25367. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25368. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25369. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25370. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25371. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25372. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25373. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25374. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25375. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25376. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25377. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25378. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25379. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25380. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25381. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25382. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25383. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25384. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25385. 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"`'
  25386. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25387. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25388. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25389. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25390. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25391. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25392. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25393. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25394. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25395. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25396. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25397. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25398. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25399. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25400. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25401. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25402. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25403. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25404. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25405. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25406. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25407. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25408. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25409. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25410. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25411. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25412. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25413. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25414. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25415. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25416. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25417. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25418. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25419. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25420. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25421. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25422. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25423. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25424. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25425. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25426. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25427. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25428. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25429. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25430. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25431. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25432. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25433. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25434. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25435. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25436. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25437. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25438. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25439. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25440. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25441. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25442. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25443. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25444. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25445. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25446. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25447. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25448. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25449. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25450. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25451. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25452. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25453. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25454. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25455. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25456. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25457. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25458. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25459. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25460. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25461. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25462. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25463. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25464. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25465. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25466. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25467. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25468. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25469. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25470. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25471. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25472. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25473. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25474. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25475. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25476. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25477. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25478. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25479. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25480. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25481. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25482. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25483. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25484. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25485. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25486. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25487. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25488. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25489. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25490. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25491. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25492. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25493. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25494. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25495. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25496. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25497. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25498. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25499. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25500. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25501. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25502. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25503. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25504. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25505. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25506. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25507. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25508. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25509. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25510. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25511. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25512. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25513. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25514. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25515. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25516. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25517. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25518. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25519. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25520. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25521. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25522. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25523. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25524. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25525. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25526. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25527. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25528. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25529. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25530. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25531. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25532. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25533. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25534. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25535. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25536. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25537. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25538. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25539. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25540. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25541. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25542. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25543. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25544. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25545. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25546. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25547. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25548. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25549. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25550. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25551. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25552. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25553. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25554. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25555. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25556. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25557. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25558. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25559. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25560. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25561. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25562. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25563. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25564. LTCC='$LTCC'
  25565. LTCFLAGS='$LTCFLAGS'
  25566. compiler='$compiler_DEFAULT'
  25567. # A function that is used when there is no print builtin or printf.
  25568. func_fallback_echo ()
  25569. {
  25570. eval 'cat <<_LTECHO_EOF
  25571. \$1
  25572. _LTECHO_EOF'
  25573. }
  25574. # Quote evaled strings.
  25575. for var in AS \
  25576. DLLTOOL \
  25577. OBJDUMP \
  25578. SHELL \
  25579. ECHO \
  25580. PATH_SEPARATOR \
  25581. SED \
  25582. GREP \
  25583. EGREP \
  25584. FGREP \
  25585. LD \
  25586. NM \
  25587. LN_S \
  25588. lt_SP2NL \
  25589. lt_NL2SP \
  25590. reload_flag \
  25591. deplibs_check_method \
  25592. file_magic_cmd \
  25593. file_magic_glob \
  25594. want_nocaseglob \
  25595. sharedlib_from_linklib_cmd \
  25596. AR \
  25597. AR_FLAGS \
  25598. archiver_list_spec \
  25599. STRIP \
  25600. RANLIB \
  25601. CC \
  25602. CFLAGS \
  25603. compiler \
  25604. lt_cv_sys_global_symbol_pipe \
  25605. lt_cv_sys_global_symbol_to_cdecl \
  25606. lt_cv_sys_global_symbol_to_import \
  25607. lt_cv_sys_global_symbol_to_c_name_address \
  25608. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25609. lt_cv_nm_interface \
  25610. nm_file_list_spec \
  25611. lt_cv_truncate_bin \
  25612. lt_prog_compiler_no_builtin_flag \
  25613. lt_prog_compiler_pic \
  25614. lt_prog_compiler_wl \
  25615. lt_prog_compiler_static \
  25616. lt_cv_prog_compiler_c_o \
  25617. need_locks \
  25618. MANIFEST_TOOL \
  25619. DSYMUTIL \
  25620. NMEDIT \
  25621. LIPO \
  25622. OTOOL \
  25623. OTOOL64 \
  25624. shrext_cmds \
  25625. export_dynamic_flag_spec \
  25626. whole_archive_flag_spec \
  25627. compiler_needs_object \
  25628. with_gnu_ld \
  25629. allow_undefined_flag \
  25630. no_undefined_flag \
  25631. hardcode_libdir_flag_spec \
  25632. hardcode_libdir_separator \
  25633. exclude_expsyms \
  25634. include_expsyms \
  25635. file_list_spec \
  25636. variables_saved_for_relink \
  25637. libname_spec \
  25638. library_names_spec \
  25639. soname_spec \
  25640. install_override_mode \
  25641. finish_eval \
  25642. old_striplib \
  25643. striplib \
  25644. compiler_lib_search_dirs \
  25645. predep_objects \
  25646. postdep_objects \
  25647. predeps \
  25648. postdeps \
  25649. compiler_lib_search_path \
  25650. LD_RC \
  25651. LD_CXX \
  25652. reload_flag_RC \
  25653. reload_flag_CXX \
  25654. compiler_RC \
  25655. compiler_CXX \
  25656. lt_prog_compiler_no_builtin_flag_RC \
  25657. lt_prog_compiler_no_builtin_flag_CXX \
  25658. lt_prog_compiler_pic_RC \
  25659. lt_prog_compiler_pic_CXX \
  25660. lt_prog_compiler_wl_RC \
  25661. lt_prog_compiler_wl_CXX \
  25662. lt_prog_compiler_static_RC \
  25663. lt_prog_compiler_static_CXX \
  25664. lt_cv_prog_compiler_c_o_RC \
  25665. lt_cv_prog_compiler_c_o_CXX \
  25666. export_dynamic_flag_spec_RC \
  25667. export_dynamic_flag_spec_CXX \
  25668. whole_archive_flag_spec_RC \
  25669. whole_archive_flag_spec_CXX \
  25670. compiler_needs_object_RC \
  25671. compiler_needs_object_CXX \
  25672. with_gnu_ld_RC \
  25673. with_gnu_ld_CXX \
  25674. allow_undefined_flag_RC \
  25675. allow_undefined_flag_CXX \
  25676. no_undefined_flag_RC \
  25677. no_undefined_flag_CXX \
  25678. hardcode_libdir_flag_spec_RC \
  25679. hardcode_libdir_flag_spec_CXX \
  25680. hardcode_libdir_separator_RC \
  25681. hardcode_libdir_separator_CXX \
  25682. exclude_expsyms_RC \
  25683. exclude_expsyms_CXX \
  25684. include_expsyms_RC \
  25685. include_expsyms_CXX \
  25686. file_list_spec_RC \
  25687. file_list_spec_CXX \
  25688. compiler_lib_search_dirs_RC \
  25689. compiler_lib_search_dirs_CXX \
  25690. predep_objects_RC \
  25691. predep_objects_CXX \
  25692. postdep_objects_RC \
  25693. postdep_objects_CXX \
  25694. predeps_RC \
  25695. predeps_CXX \
  25696. postdeps_RC \
  25697. postdeps_CXX \
  25698. compiler_lib_search_path_RC \
  25699. compiler_lib_search_path_CXX; do
  25700. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25701. *[\\\\\\\`\\"\\\$]*)
  25702. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25703. ;;
  25704. *)
  25705. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25706. ;;
  25707. esac
  25708. done
  25709. # Double-quote double-evaled strings.
  25710. for var in reload_cmds \
  25711. old_postinstall_cmds \
  25712. old_postuninstall_cmds \
  25713. old_archive_cmds \
  25714. extract_expsyms_cmds \
  25715. old_archive_from_new_cmds \
  25716. old_archive_from_expsyms_cmds \
  25717. archive_cmds \
  25718. archive_expsym_cmds \
  25719. module_cmds \
  25720. module_expsym_cmds \
  25721. export_symbols_cmds \
  25722. prelink_cmds \
  25723. postlink_cmds \
  25724. postinstall_cmds \
  25725. postuninstall_cmds \
  25726. finish_cmds \
  25727. sys_lib_search_path_spec \
  25728. configure_time_dlsearch_path \
  25729. configure_time_lt_sys_library_path \
  25730. reload_cmds_RC \
  25731. reload_cmds_CXX \
  25732. old_archive_cmds_RC \
  25733. old_archive_cmds_CXX \
  25734. old_archive_from_new_cmds_RC \
  25735. old_archive_from_new_cmds_CXX \
  25736. old_archive_from_expsyms_cmds_RC \
  25737. old_archive_from_expsyms_cmds_CXX \
  25738. archive_cmds_RC \
  25739. archive_cmds_CXX \
  25740. archive_expsym_cmds_RC \
  25741. archive_expsym_cmds_CXX \
  25742. module_cmds_RC \
  25743. module_cmds_CXX \
  25744. module_expsym_cmds_RC \
  25745. module_expsym_cmds_CXX \
  25746. export_symbols_cmds_RC \
  25747. export_symbols_cmds_CXX \
  25748. prelink_cmds_RC \
  25749. prelink_cmds_CXX \
  25750. postlink_cmds_RC \
  25751. postlink_cmds_CXX; do
  25752. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25753. *[\\\\\\\`\\"\\\$]*)
  25754. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25755. ;;
  25756. *)
  25757. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25758. ;;
  25759. esac
  25760. done
  25761. ac_aux_dir='$ac_aux_dir'
  25762. # See if we are running on zsh, and set the options that allow our
  25763. # commands through without removal of \ escapes INIT.
  25764. if test -n "\${ZSH_VERSION+set}"; then
  25765. setopt NO_GLOB_SUBST
  25766. fi
  25767. PACKAGE='$PACKAGE'
  25768. VERSION='$VERSION'
  25769. RM='$RM'
  25770. ofile='$ofile'
  25771. SUMMARY="$SUMMARY"
  25772. _ACEOF
  25773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25774. # Handling of arguments.
  25775. for ac_config_target in $ac_config_targets
  25776. do
  25777. case $ac_config_target in
  25778. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25779. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25780. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25781. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25782. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25783. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25784. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25785. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25786. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25787. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25788. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25789. esac
  25790. done
  25791. # If the user did not use the arguments to specify the items to instantiate,
  25792. # then the envvar interface is used. Set only those that are not.
  25793. # We use the long form for the default assignment because of an extremely
  25794. # bizarre bug on SunOS 4.1.3.
  25795. if $ac_need_defaults; then
  25796. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25797. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25798. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25799. fi
  25800. # Have a temporary directory for convenience. Make it in the build tree
  25801. # simply because there is no reason against having it here, and in addition,
  25802. # creating and moving files from /tmp can sometimes cause problems.
  25803. # Hook for its removal unless debugging.
  25804. # Note that there is a small window in which the directory will not be cleaned:
  25805. # after its creation but before its name has been assigned to `$tmp'.
  25806. $debug ||
  25807. {
  25808. tmp= ac_tmp=
  25809. trap 'exit_status=$?
  25810. : "${ac_tmp:=$tmp}"
  25811. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25812. ' 0
  25813. trap 'as_fn_exit 1' 1 2 13 15
  25814. }
  25815. # Create a (secure) tmp directory for tmp files.
  25816. {
  25817. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25818. test -d "$tmp"
  25819. } ||
  25820. {
  25821. tmp=./conf$$-$RANDOM
  25822. (umask 077 && mkdir "$tmp")
  25823. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25824. ac_tmp=$tmp
  25825. # Set up the scripts for CONFIG_FILES section.
  25826. # No need to generate them if there are no CONFIG_FILES.
  25827. # This happens for instance with `./config.status config.h'.
  25828. if test -n "$CONFIG_FILES"; then
  25829. ac_cr=`echo X | tr X '\015'`
  25830. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25831. # But we know of no other shell where ac_cr would be empty at this
  25832. # point, so we can use a bashism as a fallback.
  25833. if test "x$ac_cr" = x; then
  25834. eval ac_cr=\$\'\\r\'
  25835. fi
  25836. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25837. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25838. ac_cs_awk_cr='\\r'
  25839. else
  25840. ac_cs_awk_cr=$ac_cr
  25841. fi
  25842. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25843. _ACEOF
  25844. {
  25845. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25846. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25847. echo "_ACEOF"
  25848. } >conf$$subs.sh ||
  25849. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25850. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25851. ac_delim='%!_!# '
  25852. for ac_last_try in false false false false false :; do
  25853. . ./conf$$subs.sh ||
  25854. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25855. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25856. if test $ac_delim_n = $ac_delim_num; then
  25857. break
  25858. elif $ac_last_try; then
  25859. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25860. else
  25861. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25862. fi
  25863. done
  25864. rm -f conf$$subs.sh
  25865. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25866. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25867. _ACEOF
  25868. sed -n '
  25869. h
  25870. s/^/S["/; s/!.*/"]=/
  25871. p
  25872. g
  25873. s/^[^!]*!//
  25874. :repl
  25875. t repl
  25876. s/'"$ac_delim"'$//
  25877. t delim
  25878. :nl
  25879. h
  25880. s/\(.\{148\}\)..*/\1/
  25881. t more1
  25882. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25883. p
  25884. n
  25885. b repl
  25886. :more1
  25887. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25888. p
  25889. g
  25890. s/.\{148\}//
  25891. t nl
  25892. :delim
  25893. h
  25894. s/\(.\{148\}\)..*/\1/
  25895. t more2
  25896. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25897. p
  25898. b
  25899. :more2
  25900. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25901. p
  25902. g
  25903. s/.\{148\}//
  25904. t delim
  25905. ' <conf$$subs.awk | sed '
  25906. /^[^""]/{
  25907. N
  25908. s/\n//
  25909. }
  25910. ' >>$CONFIG_STATUS || ac_write_fail=1
  25911. rm -f conf$$subs.awk
  25912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25913. _ACAWK
  25914. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25915. for (key in S) S_is_set[key] = 1
  25916. FS = ""
  25917. }
  25918. {
  25919. line = $ 0
  25920. nfields = split(line, field, "@")
  25921. substed = 0
  25922. len = length(field[1])
  25923. for (i = 2; i < nfields; i++) {
  25924. key = field[i]
  25925. keylen = length(key)
  25926. if (S_is_set[key]) {
  25927. value = S[key]
  25928. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25929. len += length(value) + length(field[++i])
  25930. substed = 1
  25931. } else
  25932. len += 1 + keylen
  25933. }
  25934. print line
  25935. }
  25936. _ACAWK
  25937. _ACEOF
  25938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25939. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25940. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25941. else
  25942. cat
  25943. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25944. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25945. _ACEOF
  25946. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25947. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25948. # trailing colons and then remove the whole line if VPATH becomes empty
  25949. # (actually we leave an empty line to preserve line numbers).
  25950. if test "x$srcdir" = x.; then
  25951. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25952. h
  25953. s///
  25954. s/^/:/
  25955. s/[ ]*$/:/
  25956. s/:\$(srcdir):/:/g
  25957. s/:\${srcdir}:/:/g
  25958. s/:@srcdir@:/:/g
  25959. s/^:*//
  25960. s/:*$//
  25961. x
  25962. s/\(=[ ]*\).*/\1/
  25963. G
  25964. s/\n//
  25965. s/^[^=]*=[ ]*$//
  25966. }'
  25967. fi
  25968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25969. fi # test -n "$CONFIG_FILES"
  25970. # Set up the scripts for CONFIG_HEADERS section.
  25971. # No need to generate them if there are no CONFIG_HEADERS.
  25972. # This happens for instance with `./config.status Makefile'.
  25973. if test -n "$CONFIG_HEADERS"; then
  25974. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25975. BEGIN {
  25976. _ACEOF
  25977. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25978. # here-document in config.status, that substitutes the proper values into
  25979. # config.h.in to produce config.h.
  25980. # Create a delimiter string that does not exist in confdefs.h, to ease
  25981. # handling of long lines.
  25982. ac_delim='%!_!# '
  25983. for ac_last_try in false false :; do
  25984. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25985. if test -z "$ac_tt"; then
  25986. break
  25987. elif $ac_last_try; then
  25988. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25989. else
  25990. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25991. fi
  25992. done
  25993. # For the awk script, D is an array of macro values keyed by name,
  25994. # likewise P contains macro parameters if any. Preserve backslash
  25995. # newline sequences.
  25996. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25997. sed -n '
  25998. s/.\{148\}/&'"$ac_delim"'/g
  25999. t rset
  26000. :rset
  26001. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26002. t def
  26003. d
  26004. :def
  26005. s/\\$//
  26006. t bsnl
  26007. s/["\\]/\\&/g
  26008. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26009. D["\1"]=" \3"/p
  26010. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26011. d
  26012. :bsnl
  26013. s/["\\]/\\&/g
  26014. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26015. D["\1"]=" \3\\\\\\n"\\/p
  26016. t cont
  26017. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26018. t cont
  26019. d
  26020. :cont
  26021. n
  26022. s/.\{148\}/&'"$ac_delim"'/g
  26023. t clear
  26024. :clear
  26025. s/\\$//
  26026. t bsnlc
  26027. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26028. d
  26029. :bsnlc
  26030. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26031. b cont
  26032. ' <confdefs.h | sed '
  26033. s/'"$ac_delim"'/"\\\
  26034. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26036. for (key in D) D_is_set[key] = 1
  26037. FS = ""
  26038. }
  26039. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26040. line = \$ 0
  26041. split(line, arg, " ")
  26042. if (arg[1] == "#") {
  26043. defundef = arg[2]
  26044. mac1 = arg[3]
  26045. } else {
  26046. defundef = substr(arg[1], 2)
  26047. mac1 = arg[2]
  26048. }
  26049. split(mac1, mac2, "(") #)
  26050. macro = mac2[1]
  26051. prefix = substr(line, 1, index(line, defundef) - 1)
  26052. if (D_is_set[macro]) {
  26053. # Preserve the white space surrounding the "#".
  26054. print prefix "define", macro P[macro] D[macro]
  26055. next
  26056. } else {
  26057. # Replace #undef with comments. This is necessary, for example,
  26058. # in the case of _POSIX_SOURCE, which is predefined and required
  26059. # on some systems where configure will not decide to define it.
  26060. if (defundef == "undef") {
  26061. print "/*", prefix defundef, macro, "*/"
  26062. next
  26063. }
  26064. }
  26065. }
  26066. { print }
  26067. _ACAWK
  26068. _ACEOF
  26069. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26070. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26071. fi # test -n "$CONFIG_HEADERS"
  26072. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26073. shift
  26074. for ac_tag
  26075. do
  26076. case $ac_tag in
  26077. :[FHLC]) ac_mode=$ac_tag; continue;;
  26078. esac
  26079. case $ac_mode$ac_tag in
  26080. :[FHL]*:*);;
  26081. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26082. :[FH]-) ac_tag=-:-;;
  26083. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26084. esac
  26085. ac_save_IFS=$IFS
  26086. IFS=:
  26087. set x $ac_tag
  26088. IFS=$ac_save_IFS
  26089. shift
  26090. ac_file=$1
  26091. shift
  26092. case $ac_mode in
  26093. :L) ac_source=$1;;
  26094. :[FH])
  26095. ac_file_inputs=
  26096. for ac_f
  26097. do
  26098. case $ac_f in
  26099. -) ac_f="$ac_tmp/stdin";;
  26100. *) # Look for the file first in the build tree, then in the source tree
  26101. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26102. # because $ac_f cannot contain `:'.
  26103. test -f "$ac_f" ||
  26104. case $ac_f in
  26105. [\\/$]*) false;;
  26106. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26107. esac ||
  26108. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26109. esac
  26110. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26111. as_fn_append ac_file_inputs " '$ac_f'"
  26112. done
  26113. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26114. # use $as_me), people would be surprised to read:
  26115. # /* config.h. Generated by config.status. */
  26116. configure_input='Generated from '`
  26117. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26118. `' by configure.'
  26119. if test x"$ac_file" != x-; then
  26120. configure_input="$ac_file. $configure_input"
  26121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26122. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26123. fi
  26124. # Neutralize special characters interpreted by sed in replacement strings.
  26125. case $configure_input in #(
  26126. *\&* | *\|* | *\\* )
  26127. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26128. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26129. *) ac_sed_conf_input=$configure_input;;
  26130. esac
  26131. case $ac_tag in
  26132. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26133. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26134. esac
  26135. ;;
  26136. esac
  26137. ac_dir=`$as_dirname -- "$ac_file" ||
  26138. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26139. X"$ac_file" : 'X\(//\)[^/]' \| \
  26140. X"$ac_file" : 'X\(//\)$' \| \
  26141. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26142. printf "%s\n" X"$ac_file" |
  26143. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26144. s//\1/
  26145. q
  26146. }
  26147. /^X\(\/\/\)[^/].*/{
  26148. s//\1/
  26149. q
  26150. }
  26151. /^X\(\/\/\)$/{
  26152. s//\1/
  26153. q
  26154. }
  26155. /^X\(\/\).*/{
  26156. s//\1/
  26157. q
  26158. }
  26159. s/.*/./; q'`
  26160. as_dir="$ac_dir"; as_fn_mkdir_p
  26161. ac_builddir=.
  26162. case "$ac_dir" in
  26163. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26164. *)
  26165. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26166. # A ".." for each directory in $ac_dir_suffix.
  26167. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26168. case $ac_top_builddir_sub in
  26169. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26170. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26171. esac ;;
  26172. esac
  26173. ac_abs_top_builddir=$ac_pwd
  26174. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26175. # for backward compatibility:
  26176. ac_top_builddir=$ac_top_build_prefix
  26177. case $srcdir in
  26178. .) # We are building in place.
  26179. ac_srcdir=.
  26180. ac_top_srcdir=$ac_top_builddir_sub
  26181. ac_abs_top_srcdir=$ac_pwd ;;
  26182. [\\/]* | ?:[\\/]* ) # Absolute name.
  26183. ac_srcdir=$srcdir$ac_dir_suffix;
  26184. ac_top_srcdir=$srcdir
  26185. ac_abs_top_srcdir=$srcdir ;;
  26186. *) # Relative name.
  26187. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26188. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26189. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26190. esac
  26191. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26192. case $ac_mode in
  26193. :F)
  26194. #
  26195. # CONFIG_FILE
  26196. #
  26197. case $INSTALL in
  26198. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26199. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26200. esac
  26201. _ACEOF
  26202. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26203. # If the template does not know about datarootdir, expand it.
  26204. # FIXME: This hack should be removed a few years after 2.60.
  26205. ac_datarootdir_hack=; ac_datarootdir_seen=
  26206. ac_sed_dataroot='
  26207. /datarootdir/ {
  26208. p
  26209. q
  26210. }
  26211. /@datadir@/p
  26212. /@docdir@/p
  26213. /@infodir@/p
  26214. /@localedir@/p
  26215. /@mandir@/p'
  26216. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26217. *datarootdir*) ac_datarootdir_seen=yes;;
  26218. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26220. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26221. _ACEOF
  26222. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26223. ac_datarootdir_hack='
  26224. s&@datadir@&$datadir&g
  26225. s&@docdir@&$docdir&g
  26226. s&@infodir@&$infodir&g
  26227. s&@localedir@&$localedir&g
  26228. s&@mandir@&$mandir&g
  26229. s&\\\${datarootdir}&$datarootdir&g' ;;
  26230. esac
  26231. _ACEOF
  26232. # Neutralize VPATH when `$srcdir' = `.'.
  26233. # Shell code in configure.ac might set extrasub.
  26234. # FIXME: do we really want to maintain this feature?
  26235. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26236. ac_sed_extra="$ac_vpsub
  26237. $extrasub
  26238. _ACEOF
  26239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26240. :t
  26241. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26242. s|@configure_input@|$ac_sed_conf_input|;t t
  26243. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26244. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26245. s&@srcdir@&$ac_srcdir&;t t
  26246. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26247. s&@top_srcdir@&$ac_top_srcdir&;t t
  26248. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26249. s&@builddir@&$ac_builddir&;t t
  26250. s&@abs_builddir@&$ac_abs_builddir&;t t
  26251. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26252. s&@INSTALL@&$ac_INSTALL&;t t
  26253. $ac_datarootdir_hack
  26254. "
  26255. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26256. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26257. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26258. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26259. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26260. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26262. which seems to be undefined. Please make sure it is defined" >&5
  26263. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26264. which seems to be undefined. Please make sure it is defined" >&2;}
  26265. rm -f "$ac_tmp/stdin"
  26266. case $ac_file in
  26267. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26268. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26269. esac \
  26270. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26271. ;;
  26272. :H)
  26273. #
  26274. # CONFIG_HEADER
  26275. #
  26276. if test x"$ac_file" != x-; then
  26277. {
  26278. printf "%s\n" "/* $configure_input */" >&1 \
  26279. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26280. } >"$ac_tmp/config.h" \
  26281. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26282. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26284. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26285. else
  26286. rm -f "$ac_file"
  26287. mv "$ac_tmp/config.h" "$ac_file" \
  26288. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26289. fi
  26290. else
  26291. printf "%s\n" "/* $configure_input */" >&1 \
  26292. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26293. || as_fn_error $? "could not create -" "$LINENO" 5
  26294. fi
  26295. ;;
  26296. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26297. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26298. ;;
  26299. esac
  26300. case $ac_file$ac_mode in
  26301. "libtool":C)
  26302. # See if we are running on zsh, and set the options that allow our
  26303. # commands through without removal of \ escapes.
  26304. if test -n "${ZSH_VERSION+set}"; then
  26305. setopt NO_GLOB_SUBST
  26306. fi
  26307. cfgfile=${ofile}T
  26308. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26309. $RM "$cfgfile"
  26310. cat <<_LT_EOF >> "$cfgfile"
  26311. #! $SHELL
  26312. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26313. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26314. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26315. # Provide generalized library-building support services.
  26316. # Written by Gordon Matzigkeit, 1996
  26317. # Copyright (C) 2014 Free Software Foundation, Inc.
  26318. # This is free software; see the source for copying conditions. There is NO
  26319. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26320. # GNU Libtool is free software; you can redistribute it and/or modify
  26321. # it under the terms of the GNU General Public License as published by
  26322. # the Free Software Foundation; either version 2 of of the License, or
  26323. # (at your option) any later version.
  26324. #
  26325. # As a special exception to the GNU General Public License, if you
  26326. # distribute this file as part of a program or library that is built
  26327. # using GNU Libtool, you may include this file under the same
  26328. # distribution terms that you use for the rest of that program.
  26329. #
  26330. # GNU Libtool is distributed in the hope that it will be useful, but
  26331. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26332. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26333. # GNU General Public License for more details.
  26334. #
  26335. # You should have received a copy of the GNU General Public License
  26336. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26337. # The names of the tagged configurations supported by this script.
  26338. available_tags='RC CXX '
  26339. # Configured defaults for sys_lib_dlsearch_path munging.
  26340. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26341. # ### BEGIN LIBTOOL CONFIG
  26342. # Which release of libtool.m4 was used?
  26343. macro_version=$macro_version
  26344. macro_revision=$macro_revision
  26345. # Assembler program.
  26346. AS=$lt_AS
  26347. # DLL creation program.
  26348. DLLTOOL=$lt_DLLTOOL
  26349. # Object dumper program.
  26350. OBJDUMP=$lt_OBJDUMP
  26351. # Whether or not to build shared libraries.
  26352. build_libtool_libs=$enable_shared
  26353. # Whether or not to build static libraries.
  26354. build_old_libs=$enable_static
  26355. # What type of objects to build.
  26356. pic_mode=$pic_mode
  26357. # Whether or not to optimize for fast installation.
  26358. fast_install=$enable_fast_install
  26359. # Shared archive member basename,for filename based shared library versioning on AIX.
  26360. shared_archive_member_spec=$shared_archive_member_spec
  26361. # Shell to use when invoking shell scripts.
  26362. SHELL=$lt_SHELL
  26363. # An echo program that protects backslashes.
  26364. ECHO=$lt_ECHO
  26365. # The PATH separator for the build system.
  26366. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26367. # The host system.
  26368. host_alias=$host_alias
  26369. host=$host
  26370. host_os=$host_os
  26371. # The build system.
  26372. build_alias=$build_alias
  26373. build=$build
  26374. build_os=$build_os
  26375. # A sed program that does not truncate output.
  26376. SED=$lt_SED
  26377. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26378. Xsed="\$SED -e 1s/^X//"
  26379. # A grep program that handles long lines.
  26380. GREP=$lt_GREP
  26381. # An ERE matcher.
  26382. EGREP=$lt_EGREP
  26383. # A literal string matcher.
  26384. FGREP=$lt_FGREP
  26385. # A BSD- or MS-compatible name lister.
  26386. NM=$lt_NM
  26387. # Whether we need soft or hard links.
  26388. LN_S=$lt_LN_S
  26389. # What is the maximum length of a command?
  26390. max_cmd_len=$max_cmd_len
  26391. # Object file suffix (normally "o").
  26392. objext=$ac_objext
  26393. # Executable file suffix (normally "").
  26394. exeext=$exeext
  26395. # whether the shell understands "unset".
  26396. lt_unset=$lt_unset
  26397. # turn spaces into newlines.
  26398. SP2NL=$lt_lt_SP2NL
  26399. # turn newlines into spaces.
  26400. NL2SP=$lt_lt_NL2SP
  26401. # convert \$build file names to \$host format.
  26402. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26403. # convert \$build files to toolchain format.
  26404. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26405. # Method to check whether dependent libraries are shared objects.
  26406. deplibs_check_method=$lt_deplibs_check_method
  26407. # Command to use when deplibs_check_method = "file_magic".
  26408. file_magic_cmd=$lt_file_magic_cmd
  26409. # How to find potential files when deplibs_check_method = "file_magic".
  26410. file_magic_glob=$lt_file_magic_glob
  26411. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26412. want_nocaseglob=$lt_want_nocaseglob
  26413. # Command to associate shared and link libraries.
  26414. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26415. # The archiver.
  26416. AR=$lt_AR
  26417. # Flags to create an archive.
  26418. AR_FLAGS=$lt_AR_FLAGS
  26419. # How to feed a file listing to the archiver.
  26420. archiver_list_spec=$lt_archiver_list_spec
  26421. # A symbol stripping program.
  26422. STRIP=$lt_STRIP
  26423. # Commands used to install an old-style archive.
  26424. RANLIB=$lt_RANLIB
  26425. old_postinstall_cmds=$lt_old_postinstall_cmds
  26426. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26427. # Whether to use a lock for old archive extraction.
  26428. lock_old_archive_extraction=$lock_old_archive_extraction
  26429. # A C compiler.
  26430. LTCC=$lt_CC
  26431. # LTCC compiler flags.
  26432. LTCFLAGS=$lt_CFLAGS
  26433. # Take the output of nm and produce a listing of raw symbols and C names.
  26434. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26435. # Transform the output of nm in a proper C declaration.
  26436. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26437. # Transform the output of nm into a list of symbols to manually relocate.
  26438. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26439. # Transform the output of nm in a C name address pair.
  26440. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26441. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26442. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26443. # The name lister interface.
  26444. nm_interface=$lt_lt_cv_nm_interface
  26445. # Specify filename containing input files for \$NM.
  26446. nm_file_list_spec=$lt_nm_file_list_spec
  26447. # The root where to search for dependent libraries,and where our libraries should be installed.
  26448. lt_sysroot=$lt_sysroot
  26449. # Command to truncate a binary pipe.
  26450. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26451. # The name of the directory that contains temporary libtool files.
  26452. objdir=$objdir
  26453. # Used to examine libraries when file_magic_cmd begins with "file".
  26454. MAGIC_CMD=$MAGIC_CMD
  26455. # Must we lock files when doing compilation?
  26456. need_locks=$lt_need_locks
  26457. # Manifest tool.
  26458. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26459. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26460. DSYMUTIL=$lt_DSYMUTIL
  26461. # Tool to change global to local symbols on Mac OS X.
  26462. NMEDIT=$lt_NMEDIT
  26463. # Tool to manipulate fat objects and archives on Mac OS X.
  26464. LIPO=$lt_LIPO
  26465. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26466. OTOOL=$lt_OTOOL
  26467. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26468. OTOOL64=$lt_OTOOL64
  26469. # Old archive suffix (normally "a").
  26470. libext=$libext
  26471. # Shared library suffix (normally ".so").
  26472. shrext_cmds=$lt_shrext_cmds
  26473. # The commands to extract the exported symbol list from a shared archive.
  26474. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26475. # Variables whose values should be saved in libtool wrapper scripts and
  26476. # restored at link time.
  26477. variables_saved_for_relink=$lt_variables_saved_for_relink
  26478. # Do we need the "lib" prefix for modules?
  26479. need_lib_prefix=$need_lib_prefix
  26480. # Do we need a version for libraries?
  26481. need_version=$need_version
  26482. # Library versioning type.
  26483. version_type=$version_type
  26484. # Shared library runtime path variable.
  26485. runpath_var=$runpath_var
  26486. # Shared library path variable.
  26487. shlibpath_var=$shlibpath_var
  26488. # Is shlibpath searched before the hard-coded library search path?
  26489. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26490. # Format of library name prefix.
  26491. libname_spec=$lt_libname_spec
  26492. # List of archive names. First name is the real one, the rest are links.
  26493. # The last name is the one that the linker finds with -lNAME
  26494. library_names_spec=$lt_library_names_spec
  26495. # The coded name of the library, if different from the real name.
  26496. soname_spec=$lt_soname_spec
  26497. # Permission mode override for installation of shared libraries.
  26498. install_override_mode=$lt_install_override_mode
  26499. # Command to use after installation of a shared archive.
  26500. postinstall_cmds=$lt_postinstall_cmds
  26501. # Command to use after uninstallation of a shared archive.
  26502. postuninstall_cmds=$lt_postuninstall_cmds
  26503. # Commands used to finish a libtool library installation in a directory.
  26504. finish_cmds=$lt_finish_cmds
  26505. # As "finish_cmds", except a single script fragment to be evaled but
  26506. # not shown.
  26507. finish_eval=$lt_finish_eval
  26508. # Whether we should hardcode library paths into libraries.
  26509. hardcode_into_libs=$hardcode_into_libs
  26510. # Compile-time system search path for libraries.
  26511. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26512. # Detected run-time system search path for libraries.
  26513. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26514. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26515. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26516. # Whether dlopen is supported.
  26517. dlopen_support=$enable_dlopen
  26518. # Whether dlopen of programs is supported.
  26519. dlopen_self=$enable_dlopen_self
  26520. # Whether dlopen of statically linked programs is supported.
  26521. dlopen_self_static=$enable_dlopen_self_static
  26522. # Commands to strip libraries.
  26523. old_striplib=$lt_old_striplib
  26524. striplib=$lt_striplib
  26525. # The linker used to build libraries.
  26526. LD=$lt_LD
  26527. # How to create reloadable object files.
  26528. reload_flag=$lt_reload_flag
  26529. reload_cmds=$lt_reload_cmds
  26530. # Commands used to build an old-style archive.
  26531. old_archive_cmds=$lt_old_archive_cmds
  26532. # A language specific compiler.
  26533. CC=$lt_compiler
  26534. # Is the compiler the GNU compiler?
  26535. with_gcc=$GCC
  26536. # Compiler flag to turn off builtin functions.
  26537. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26538. # Additional compiler flags for building library objects.
  26539. pic_flag=$lt_lt_prog_compiler_pic
  26540. # How to pass a linker flag through the compiler.
  26541. wl=$lt_lt_prog_compiler_wl
  26542. # Compiler flag to prevent dynamic linking.
  26543. link_static_flag=$lt_lt_prog_compiler_static
  26544. # Does compiler simultaneously support -c and -o options?
  26545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26546. # Whether or not to add -lc for building shared libraries.
  26547. build_libtool_need_lc=$archive_cmds_need_lc
  26548. # Whether or not to disallow shared libs when runtime libs are static.
  26549. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26550. # Compiler flag to allow reflexive dlopens.
  26551. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26552. # Compiler flag to generate shared objects directly from archives.
  26553. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26554. # Whether the compiler copes with passing no objects directly.
  26555. compiler_needs_object=$lt_compiler_needs_object
  26556. # Create an old-style archive from a shared archive.
  26557. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26558. # Create a temporary old-style archive to link instead of a shared archive.
  26559. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26560. # Commands used to build a shared archive.
  26561. archive_cmds=$lt_archive_cmds
  26562. archive_expsym_cmds=$lt_archive_expsym_cmds
  26563. # Commands used to build a loadable module if different from building
  26564. # a shared archive.
  26565. module_cmds=$lt_module_cmds
  26566. module_expsym_cmds=$lt_module_expsym_cmds
  26567. # Whether we are building with GNU ld or not.
  26568. with_gnu_ld=$lt_with_gnu_ld
  26569. # Flag that allows shared libraries with undefined symbols to be built.
  26570. allow_undefined_flag=$lt_allow_undefined_flag
  26571. # Flag that enforces no undefined symbols.
  26572. no_undefined_flag=$lt_no_undefined_flag
  26573. # Flag to hardcode \$libdir into a binary during linking.
  26574. # This must work even if \$libdir does not exist
  26575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26576. # Whether we need a single "-rpath" flag with a separated argument.
  26577. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26578. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26579. # DIR into the resulting binary.
  26580. hardcode_direct=$hardcode_direct
  26581. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26582. # DIR into the resulting binary and the resulting library dependency is
  26583. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26584. # library is relocated.
  26585. hardcode_direct_absolute=$hardcode_direct_absolute
  26586. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26587. # into the resulting binary.
  26588. hardcode_minus_L=$hardcode_minus_L
  26589. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26590. # into the resulting binary.
  26591. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26592. # Set to "yes" if building a shared library automatically hardcodes DIR
  26593. # into the library and all subsequent libraries and executables linked
  26594. # against it.
  26595. hardcode_automatic=$hardcode_automatic
  26596. # Set to yes if linker adds runtime paths of dependent libraries
  26597. # to runtime path list.
  26598. inherit_rpath=$inherit_rpath
  26599. # Whether libtool must link a program against all its dependency libraries.
  26600. link_all_deplibs=$link_all_deplibs
  26601. # Set to "yes" if exported symbols are required.
  26602. always_export_symbols=$always_export_symbols
  26603. # The commands to list exported symbols.
  26604. export_symbols_cmds=$lt_export_symbols_cmds
  26605. # Symbols that should not be listed in the preloaded symbols.
  26606. exclude_expsyms=$lt_exclude_expsyms
  26607. # Symbols that must always be exported.
  26608. include_expsyms=$lt_include_expsyms
  26609. # Commands necessary for linking programs (against libraries) with templates.
  26610. prelink_cmds=$lt_prelink_cmds
  26611. # Commands necessary for finishing linking programs.
  26612. postlink_cmds=$lt_postlink_cmds
  26613. # Specify filename containing input files.
  26614. file_list_spec=$lt_file_list_spec
  26615. # How to hardcode a shared library path into an executable.
  26616. hardcode_action=$hardcode_action
  26617. # The directories searched by this compiler when creating a shared library.
  26618. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26619. # Dependencies to place before and after the objects being linked to
  26620. # create a shared library.
  26621. predep_objects=$lt_predep_objects
  26622. postdep_objects=$lt_postdep_objects
  26623. predeps=$lt_predeps
  26624. postdeps=$lt_postdeps
  26625. # The library search path used internally by the compiler when linking
  26626. # a shared library.
  26627. compiler_lib_search_path=$lt_compiler_lib_search_path
  26628. # ### END LIBTOOL CONFIG
  26629. _LT_EOF
  26630. cat <<'_LT_EOF' >> "$cfgfile"
  26631. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26632. # func_munge_path_list VARIABLE PATH
  26633. # -----------------------------------
  26634. # VARIABLE is name of variable containing _space_ separated list of
  26635. # directories to be munged by the contents of PATH, which is string
  26636. # having a format:
  26637. # "DIR[:DIR]:"
  26638. # string "DIR[ DIR]" will be prepended to VARIABLE
  26639. # ":DIR[:DIR]"
  26640. # string "DIR[ DIR]" will be appended to VARIABLE
  26641. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26642. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26643. # "DIRA[ DIRA]" will be appended to VARIABLE
  26644. # "DIR[:DIR]"
  26645. # VARIABLE will be replaced by "DIR[ DIR]"
  26646. func_munge_path_list ()
  26647. {
  26648. case x$2 in
  26649. x)
  26650. ;;
  26651. *:)
  26652. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26653. ;;
  26654. x:*)
  26655. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26656. ;;
  26657. *::*)
  26658. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26659. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26660. ;;
  26661. *)
  26662. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26663. ;;
  26664. esac
  26665. }
  26666. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26667. func_cc_basename ()
  26668. {
  26669. for cc_temp in $*""; do
  26670. case $cc_temp in
  26671. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26672. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26673. \-*) ;;
  26674. *) break;;
  26675. esac
  26676. done
  26677. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26678. }
  26679. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26680. _LT_EOF
  26681. case $host_os in
  26682. aix3*)
  26683. cat <<\_LT_EOF >> "$cfgfile"
  26684. # AIX sometimes has problems with the GCC collect2 program. For some
  26685. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26686. # vanish in a puff of smoke.
  26687. if test set != "${COLLECT_NAMES+set}"; then
  26688. COLLECT_NAMES=
  26689. export COLLECT_NAMES
  26690. fi
  26691. _LT_EOF
  26692. ;;
  26693. esac
  26694. ltmain=$ac_aux_dir/ltmain.sh
  26695. # We use sed instead of cat because bash on DJGPP gets confused if
  26696. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26697. # text mode, it properly converts lines to CR/LF. This bash problem
  26698. # is reportedly fixed, but why not run on old versions too?
  26699. sed '$q' "$ltmain" >> "$cfgfile" \
  26700. || (rm -f "$cfgfile"; exit 1)
  26701. mv -f "$cfgfile" "$ofile" ||
  26702. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26703. chmod +x "$ofile"
  26704. cat <<_LT_EOF >> "$ofile"
  26705. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26706. # The linker used to build libraries.
  26707. LD=$lt_LD_RC
  26708. # How to create reloadable object files.
  26709. reload_flag=$lt_reload_flag_RC
  26710. reload_cmds=$lt_reload_cmds_RC
  26711. # Commands used to build an old-style archive.
  26712. old_archive_cmds=$lt_old_archive_cmds_RC
  26713. # A language specific compiler.
  26714. CC=$lt_compiler_RC
  26715. # Is the compiler the GNU compiler?
  26716. with_gcc=$GCC_RC
  26717. # Compiler flag to turn off builtin functions.
  26718. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26719. # Additional compiler flags for building library objects.
  26720. pic_flag=$lt_lt_prog_compiler_pic_RC
  26721. # How to pass a linker flag through the compiler.
  26722. wl=$lt_lt_prog_compiler_wl_RC
  26723. # Compiler flag to prevent dynamic linking.
  26724. link_static_flag=$lt_lt_prog_compiler_static_RC
  26725. # Does compiler simultaneously support -c and -o options?
  26726. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26727. # Whether or not to add -lc for building shared libraries.
  26728. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26729. # Whether or not to disallow shared libs when runtime libs are static.
  26730. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26731. # Compiler flag to allow reflexive dlopens.
  26732. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26733. # Compiler flag to generate shared objects directly from archives.
  26734. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26735. # Whether the compiler copes with passing no objects directly.
  26736. compiler_needs_object=$lt_compiler_needs_object_RC
  26737. # Create an old-style archive from a shared archive.
  26738. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26739. # Create a temporary old-style archive to link instead of a shared archive.
  26740. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26741. # Commands used to build a shared archive.
  26742. archive_cmds=$lt_archive_cmds_RC
  26743. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26744. # Commands used to build a loadable module if different from building
  26745. # a shared archive.
  26746. module_cmds=$lt_module_cmds_RC
  26747. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26748. # Whether we are building with GNU ld or not.
  26749. with_gnu_ld=$lt_with_gnu_ld_RC
  26750. # Flag that allows shared libraries with undefined symbols to be built.
  26751. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26752. # Flag that enforces no undefined symbols.
  26753. no_undefined_flag=$lt_no_undefined_flag_RC
  26754. # Flag to hardcode \$libdir into a binary during linking.
  26755. # This must work even if \$libdir does not exist
  26756. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26757. # Whether we need a single "-rpath" flag with a separated argument.
  26758. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26759. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26760. # DIR into the resulting binary.
  26761. hardcode_direct=$hardcode_direct_RC
  26762. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26763. # DIR into the resulting binary and the resulting library dependency is
  26764. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26765. # library is relocated.
  26766. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26767. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26768. # into the resulting binary.
  26769. hardcode_minus_L=$hardcode_minus_L_RC
  26770. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26771. # into the resulting binary.
  26772. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26773. # Set to "yes" if building a shared library automatically hardcodes DIR
  26774. # into the library and all subsequent libraries and executables linked
  26775. # against it.
  26776. hardcode_automatic=$hardcode_automatic_RC
  26777. # Set to yes if linker adds runtime paths of dependent libraries
  26778. # to runtime path list.
  26779. inherit_rpath=$inherit_rpath_RC
  26780. # Whether libtool must link a program against all its dependency libraries.
  26781. link_all_deplibs=$link_all_deplibs_RC
  26782. # Set to "yes" if exported symbols are required.
  26783. always_export_symbols=$always_export_symbols_RC
  26784. # The commands to list exported symbols.
  26785. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26786. # Symbols that should not be listed in the preloaded symbols.
  26787. exclude_expsyms=$lt_exclude_expsyms_RC
  26788. # Symbols that must always be exported.
  26789. include_expsyms=$lt_include_expsyms_RC
  26790. # Commands necessary for linking programs (against libraries) with templates.
  26791. prelink_cmds=$lt_prelink_cmds_RC
  26792. # Commands necessary for finishing linking programs.
  26793. postlink_cmds=$lt_postlink_cmds_RC
  26794. # Specify filename containing input files.
  26795. file_list_spec=$lt_file_list_spec_RC
  26796. # How to hardcode a shared library path into an executable.
  26797. hardcode_action=$hardcode_action_RC
  26798. # The directories searched by this compiler when creating a shared library.
  26799. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26800. # Dependencies to place before and after the objects being linked to
  26801. # create a shared library.
  26802. predep_objects=$lt_predep_objects_RC
  26803. postdep_objects=$lt_postdep_objects_RC
  26804. predeps=$lt_predeps_RC
  26805. postdeps=$lt_postdeps_RC
  26806. # The library search path used internally by the compiler when linking
  26807. # a shared library.
  26808. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26809. # ### END LIBTOOL TAG CONFIG: RC
  26810. _LT_EOF
  26811. cat <<_LT_EOF >> "$ofile"
  26812. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26813. # The linker used to build libraries.
  26814. LD=$lt_LD_CXX
  26815. # How to create reloadable object files.
  26816. reload_flag=$lt_reload_flag_CXX
  26817. reload_cmds=$lt_reload_cmds_CXX
  26818. # Commands used to build an old-style archive.
  26819. old_archive_cmds=$lt_old_archive_cmds_CXX
  26820. # A language specific compiler.
  26821. CC=$lt_compiler_CXX
  26822. # Is the compiler the GNU compiler?
  26823. with_gcc=$GCC_CXX
  26824. # Compiler flag to turn off builtin functions.
  26825. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26826. # Additional compiler flags for building library objects.
  26827. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26828. # How to pass a linker flag through the compiler.
  26829. wl=$lt_lt_prog_compiler_wl_CXX
  26830. # Compiler flag to prevent dynamic linking.
  26831. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26832. # Does compiler simultaneously support -c and -o options?
  26833. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26834. # Whether or not to add -lc for building shared libraries.
  26835. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26836. # Whether or not to disallow shared libs when runtime libs are static.
  26837. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26838. # Compiler flag to allow reflexive dlopens.
  26839. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26840. # Compiler flag to generate shared objects directly from archives.
  26841. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26842. # Whether the compiler copes with passing no objects directly.
  26843. compiler_needs_object=$lt_compiler_needs_object_CXX
  26844. # Create an old-style archive from a shared archive.
  26845. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26846. # Create a temporary old-style archive to link instead of a shared archive.
  26847. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26848. # Commands used to build a shared archive.
  26849. archive_cmds=$lt_archive_cmds_CXX
  26850. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26851. # Commands used to build a loadable module if different from building
  26852. # a shared archive.
  26853. module_cmds=$lt_module_cmds_CXX
  26854. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26855. # Whether we are building with GNU ld or not.
  26856. with_gnu_ld=$lt_with_gnu_ld_CXX
  26857. # Flag that allows shared libraries with undefined symbols to be built.
  26858. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26859. # Flag that enforces no undefined symbols.
  26860. no_undefined_flag=$lt_no_undefined_flag_CXX
  26861. # Flag to hardcode \$libdir into a binary during linking.
  26862. # This must work even if \$libdir does not exist
  26863. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26864. # Whether we need a single "-rpath" flag with a separated argument.
  26865. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26866. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26867. # DIR into the resulting binary.
  26868. hardcode_direct=$hardcode_direct_CXX
  26869. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26870. # DIR into the resulting binary and the resulting library dependency is
  26871. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26872. # library is relocated.
  26873. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26874. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26875. # into the resulting binary.
  26876. hardcode_minus_L=$hardcode_minus_L_CXX
  26877. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26878. # into the resulting binary.
  26879. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26880. # Set to "yes" if building a shared library automatically hardcodes DIR
  26881. # into the library and all subsequent libraries and executables linked
  26882. # against it.
  26883. hardcode_automatic=$hardcode_automatic_CXX
  26884. # Set to yes if linker adds runtime paths of dependent libraries
  26885. # to runtime path list.
  26886. inherit_rpath=$inherit_rpath_CXX
  26887. # Whether libtool must link a program against all its dependency libraries.
  26888. link_all_deplibs=$link_all_deplibs_CXX
  26889. # Set to "yes" if exported symbols are required.
  26890. always_export_symbols=$always_export_symbols_CXX
  26891. # The commands to list exported symbols.
  26892. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26893. # Symbols that should not be listed in the preloaded symbols.
  26894. exclude_expsyms=$lt_exclude_expsyms_CXX
  26895. # Symbols that must always be exported.
  26896. include_expsyms=$lt_include_expsyms_CXX
  26897. # Commands necessary for linking programs (against libraries) with templates.
  26898. prelink_cmds=$lt_prelink_cmds_CXX
  26899. # Commands necessary for finishing linking programs.
  26900. postlink_cmds=$lt_postlink_cmds_CXX
  26901. # Specify filename containing input files.
  26902. file_list_spec=$lt_file_list_spec_CXX
  26903. # How to hardcode a shared library path into an executable.
  26904. hardcode_action=$hardcode_action_CXX
  26905. # The directories searched by this compiler when creating a shared library.
  26906. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26907. # Dependencies to place before and after the objects being linked to
  26908. # create a shared library.
  26909. predep_objects=$lt_predep_objects_CXX
  26910. postdep_objects=$lt_postdep_objects_CXX
  26911. predeps=$lt_predeps_CXX
  26912. postdeps=$lt_postdeps_CXX
  26913. # The library search path used internally by the compiler when linking
  26914. # a shared library.
  26915. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26916. # ### END LIBTOOL TAG CONFIG: CXX
  26917. _LT_EOF
  26918. ;;
  26919. "sdl3_config":C) chmod a+x sdl3-config ;;
  26920. "summary":C) printf "$SUMMARY" ;;
  26921. esac
  26922. done # for ac_tag
  26923. as_fn_exit 0
  26924. _ACEOF
  26925. ac_clean_files=$ac_clean_files_save
  26926. test $ac_write_fail = 0 ||
  26927. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26928. # configure is writing to config.log, and then calls config.status.
  26929. # config.status does its own redirection, appending to config.log.
  26930. # Unfortunately, on DOS this fails, as config.log is still kept open
  26931. # by configure, so config.status won't be able to write to it; its
  26932. # output is simply discarded. So we exec the FD to /dev/null,
  26933. # effectively closing config.log, so it can be properly (re)opened and
  26934. # appended to by config.status. When coming back to configure, we
  26935. # need to make the FD available again.
  26936. if test "$no_create" != yes; then
  26937. ac_cs_success=:
  26938. ac_config_status_args=
  26939. test "$silent" = yes &&
  26940. ac_config_status_args="$ac_config_status_args --quiet"
  26941. exec 5>/dev/null
  26942. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26943. exec 5>>config.log
  26944. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26945. # would make configure fail if this is the last instruction.
  26946. $ac_cs_success || as_fn_exit 1
  26947. fi
  26948. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26950. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26951. fi