configure 915 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238
  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. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15789. case "$host" in
  15790. *-*-haiku*)
  15791. LINKER='$(CXX)'
  15792. LIBTOOLLINKERTAG='CXX'
  15793. ;;
  15794. *)
  15795. LINKER='$(CC)'
  15796. LIBTOOLLINKERTAG='CC'
  15797. ;;
  15798. esac
  15799. if test x$srcdir != x.; then
  15800. INCLUDE="-Iinclude $INCLUDE"
  15801. elif test -d .git; then
  15802. as_fn_error $? "
  15803. *** When building from a git clone you should configure and build in a
  15804. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15805. " "$LINENO" 5
  15806. fi
  15807. BASE_CFLAGS=""
  15808. BASE_LDFLAGS=""
  15809. case "$host" in
  15810. *-*-cygwin*)
  15811. # We build SDL on cygwin without the UNIX emulation layer
  15812. save_CFLAGS="$CFLAGS"
  15813. have_no_cygwin=no
  15814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15815. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15816. CFLAGS="$save_CFLAGS -mno-cygwin"
  15817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. /* end confdefs.h. */
  15819. int
  15820. main (void)
  15821. {
  15822. ;
  15823. return 0;
  15824. }
  15825. _ACEOF
  15826. if ac_fn_c_try_compile "$LINENO"
  15827. then :
  15828. have_no_cygwin=yes
  15829. fi
  15830. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15832. printf "%s\n" "$have_no_cygwin" >&6; }
  15833. CFLAGS="$save_CFLAGS"
  15834. if test x$have_no_cygwin = xyes; then
  15835. BASE_CFLAGS="-mno-cygwin"
  15836. BASE_LDFLAGS="-mno-cygwin"
  15837. fi
  15838. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15839. ;;
  15840. esac
  15841. # Uncomment the following line if you want to force SDL and applications
  15842. # built with it to be compiled for a particular architecture.
  15843. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15844. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15845. # The default optimization for SDL is -O3 (Bug #31)
  15846. if test "x$orig_CFLAGS" = x; then
  15847. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15848. fi
  15849. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15850. BUILD_LDFLAGS="$LDFLAGS"
  15851. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15852. ## These are common directories to find software packages
  15853. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15854. # if test -d $path/include; then
  15855. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15856. # fi
  15857. # if test -d $path/lib; then
  15858. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15859. # fi
  15860. #done
  15861. SDL_CFLAGS="$BASE_CFLAGS"
  15862. SDL_LIBS="-lSDL3"
  15863. if test "x$BASE_LDFLAGS" != x; then
  15864. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15865. fi
  15866. if test "x$EXTRA_CFLAGS" != x; then
  15867. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15868. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15869. fi
  15870. if test "x$EXTRA_LDFLAGS" != x; then
  15871. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15872. fi
  15873. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15874. find_lib()
  15875. {
  15876. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15877. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15878. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15879. if test "$cross_compiling" = yes; then
  15880. host_lib_path=""
  15881. else
  15882. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15883. fi
  15884. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15885. 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`
  15886. if test x$lib != x; then
  15887. echo $lib
  15888. return
  15889. fi
  15890. done
  15891. }
  15892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15893. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15894. if test ${ac_cv_c_const+y}
  15895. then :
  15896. printf %s "(cached) " >&6
  15897. else $as_nop
  15898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15899. /* end confdefs.h. */
  15900. int
  15901. main (void)
  15902. {
  15903. #ifndef __cplusplus
  15904. /* Ultrix mips cc rejects this sort of thing. */
  15905. typedef int charset[2];
  15906. const charset cs = { 0, 0 };
  15907. /* SunOS 4.1.1 cc rejects this. */
  15908. char const *const *pcpcc;
  15909. char **ppc;
  15910. /* NEC SVR4.0.2 mips cc rejects this. */
  15911. struct point {int x, y;};
  15912. static struct point const zero = {0,0};
  15913. /* IBM XL C 1.02.0.0 rejects this.
  15914. It does not let you subtract one const X* pointer from another in
  15915. an arm of an if-expression whose if-part is not a constant
  15916. expression */
  15917. const char *g = "string";
  15918. pcpcc = &g + (g ? g-g : 0);
  15919. /* HPUX 7.0 cc rejects these. */
  15920. ++pcpcc;
  15921. ppc = (char**) pcpcc;
  15922. pcpcc = (char const *const *) ppc;
  15923. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15924. char tx;
  15925. char *t = &tx;
  15926. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15927. *t++ = 0;
  15928. if (s) return 0;
  15929. }
  15930. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15931. int x[] = {25, 17};
  15932. const int *foo = &x[0];
  15933. ++foo;
  15934. }
  15935. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15936. typedef const int *iptr;
  15937. iptr p = 0;
  15938. ++p;
  15939. }
  15940. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15941. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15942. struct s { int j; const int *ap[3]; } bx;
  15943. struct s *b = &bx; b->j = 5;
  15944. }
  15945. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15946. const int foo = 10;
  15947. if (!foo) return 0;
  15948. }
  15949. return !cs[0] && !zero.x;
  15950. #endif
  15951. ;
  15952. return 0;
  15953. }
  15954. _ACEOF
  15955. if ac_fn_c_try_compile "$LINENO"
  15956. then :
  15957. ac_cv_c_const=yes
  15958. else $as_nop
  15959. ac_cv_c_const=no
  15960. fi
  15961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15962. fi
  15963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15964. printf "%s\n" "$ac_cv_c_const" >&6; }
  15965. if test $ac_cv_c_const = no; then
  15966. printf "%s\n" "#define const /**/" >>confdefs.h
  15967. fi
  15968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15969. printf %s "checking for inline... " >&6; }
  15970. if test ${ac_cv_c_inline+y}
  15971. then :
  15972. printf %s "(cached) " >&6
  15973. else $as_nop
  15974. ac_cv_c_inline=no
  15975. for ac_kw in inline __inline__ __inline; do
  15976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15977. /* end confdefs.h. */
  15978. #ifndef __cplusplus
  15979. typedef int foo_t;
  15980. static $ac_kw foo_t static_foo (void) {return 0; }
  15981. $ac_kw foo_t foo (void) {return 0; }
  15982. #endif
  15983. _ACEOF
  15984. if ac_fn_c_try_compile "$LINENO"
  15985. then :
  15986. ac_cv_c_inline=$ac_kw
  15987. fi
  15988. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15989. test "$ac_cv_c_inline" != no && break
  15990. done
  15991. fi
  15992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15993. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15994. case $ac_cv_c_inline in
  15995. inline | yes) ;;
  15996. *)
  15997. case $ac_cv_c_inline in
  15998. no) ac_val=;;
  15999. *) ac_val=$ac_cv_c_inline;;
  16000. esac
  16001. cat >>confdefs.h <<_ACEOF
  16002. #ifndef __cplusplus
  16003. #define inline $ac_val
  16004. #endif
  16005. _ACEOF
  16006. ;;
  16007. esac
  16008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16009. printf %s "checking for working volatile... " >&6; }
  16010. if test ${ac_cv_c_volatile+y}
  16011. then :
  16012. printf %s "(cached) " >&6
  16013. else $as_nop
  16014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16015. /* end confdefs.h. */
  16016. int
  16017. main (void)
  16018. {
  16019. volatile int x;
  16020. int * volatile y = (int *) 0;
  16021. return !x && !y;
  16022. ;
  16023. return 0;
  16024. }
  16025. _ACEOF
  16026. if ac_fn_c_try_compile "$LINENO"
  16027. then :
  16028. ac_cv_c_volatile=yes
  16029. else $as_nop
  16030. ac_cv_c_volatile=no
  16031. fi
  16032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16033. fi
  16034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16035. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16036. if test $ac_cv_c_volatile = no; then
  16037. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16038. fi
  16039. # Check whether --enable-assertions was given.
  16040. if test ${enable_assertions+y}
  16041. then :
  16042. enableval=$enable_assertions;
  16043. else $as_nop
  16044. enable_assertions=auto
  16045. fi
  16046. case "$enable_assertions" in
  16047. auto) # Use optimization settings to determine assertion level
  16048. ;;
  16049. disabled)
  16050. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16051. ;;
  16052. release)
  16053. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16054. ;;
  16055. enabled)
  16056. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16057. ;;
  16058. paranoid)
  16059. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16060. ;;
  16061. *)
  16062. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16063. ;;
  16064. esac
  16065. 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"
  16066. # Check whether --enable-dependency-tracking was given.
  16067. if test ${enable_dependency_tracking+y}
  16068. then :
  16069. enableval=$enable_dependency_tracking;
  16070. else $as_nop
  16071. enable_dependency_tracking=yes
  16072. fi
  16073. if test x$enable_dependency_tracking = xyes; then
  16074. have_gcc_mmd_mt=no
  16075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16076. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16078. /* end confdefs.h. */
  16079. #if !defined(__GNUC__) || __GNUC__ < 3
  16080. #error Dependency tracking requires GCC 3.0 or newer
  16081. #endif
  16082. int
  16083. main (void)
  16084. {
  16085. ;
  16086. return 0;
  16087. }
  16088. _ACEOF
  16089. if ac_fn_c_try_compile "$LINENO"
  16090. then :
  16091. have_gcc_mmd_mt=yes
  16092. fi
  16093. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16095. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16096. if test x$have_gcc_mmd_mt = xyes; then
  16097. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16098. fi
  16099. fi
  16100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16101. printf %s "checking for linker option --no-undefined... " >&6; }
  16102. have_no_undefined=no
  16103. case "$host" in
  16104. *-*-openbsd*)
  16105. ;;
  16106. *)
  16107. save_LDFLAGS="$LDFLAGS"
  16108. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16110. /* end confdefs.h. */
  16111. int
  16112. main (void)
  16113. {
  16114. ;
  16115. return 0;
  16116. }
  16117. _ACEOF
  16118. if ac_fn_c_try_link "$LINENO"
  16119. then :
  16120. have_no_undefined=yes
  16121. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16122. fi
  16123. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16124. conftest$ac_exeext conftest.$ac_ext
  16125. LDFLAGS="$save_LDFLAGS"
  16126. ;;
  16127. esac
  16128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16129. printf "%s\n" "$have_no_undefined" >&6; }
  16130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16131. printf %s "checking for linker option --dynamicbase... " >&6; }
  16132. have_dynamicbase=no
  16133. case "$host" in
  16134. *)
  16135. save_LDFLAGS="$LDFLAGS"
  16136. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16138. /* end confdefs.h. */
  16139. int
  16140. main (void)
  16141. {
  16142. ;
  16143. return 0;
  16144. }
  16145. _ACEOF
  16146. if ac_fn_c_try_link "$LINENO"
  16147. then :
  16148. have_dynamicbase=yes
  16149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16150. fi
  16151. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16152. conftest$ac_exeext conftest.$ac_ext
  16153. LDFLAGS="$save_LDFLAGS"
  16154. ;;
  16155. esac
  16156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16157. printf "%s\n" "$have_dynamicbase" >&6; }
  16158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16159. printf %s "checking for linker option --nxcompat... " >&6; }
  16160. have_nxcompat=no
  16161. case "$host" in
  16162. *)
  16163. save_LDFLAGS="$LDFLAGS"
  16164. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16166. /* end confdefs.h. */
  16167. int
  16168. main (void)
  16169. {
  16170. ;
  16171. return 0;
  16172. }
  16173. _ACEOF
  16174. if ac_fn_c_try_link "$LINENO"
  16175. then :
  16176. have_nxcompat=yes
  16177. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16178. fi
  16179. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16180. conftest$ac_exeext conftest.$ac_ext
  16181. LDFLAGS="$save_LDFLAGS"
  16182. ;;
  16183. esac
  16184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16185. printf "%s\n" "$have_nxcompat" >&6; }
  16186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16187. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16188. have_high_entropy_va=no
  16189. case "$host" in
  16190. *)
  16191. save_LDFLAGS="$LDFLAGS"
  16192. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16194. /* end confdefs.h. */
  16195. int
  16196. main (void)
  16197. {
  16198. ;
  16199. return 0;
  16200. }
  16201. _ACEOF
  16202. if ac_fn_c_try_link "$LINENO"
  16203. then :
  16204. have_high_entropy_va=yes
  16205. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16206. fi
  16207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16208. conftest$ac_exeext conftest.$ac_ext
  16209. LDFLAGS="$save_LDFLAGS"
  16210. ;;
  16211. esac
  16212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16213. printf "%s\n" "$have_high_entropy_va" >&6; }
  16214. # Check whether --enable-libc was given.
  16215. if test ${enable_libc+y}
  16216. then :
  16217. enableval=$enable_libc;
  16218. else $as_nop
  16219. enable_libc=yes
  16220. fi
  16221. # Check whether --enable-system-iconv was given.
  16222. if test ${enable_system_iconv+y}
  16223. then :
  16224. enableval=$enable_system_iconv;
  16225. else $as_nop
  16226. enable_system_iconv=yes
  16227. fi
  16228. if test x$enable_libc = xyes; then
  16229. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16230. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16231. if test "x$ac_cv_header_sys_types_h" = xyes
  16232. then :
  16233. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16234. fi
  16235. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16236. if test "x$ac_cv_header_stdio_h" = xyes
  16237. then :
  16238. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16239. fi
  16240. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16241. if test "x$ac_cv_header_stdlib_h" = xyes
  16242. then :
  16243. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16244. fi
  16245. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16246. if test "x$ac_cv_header_stddef_h" = xyes
  16247. then :
  16248. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16249. fi
  16250. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16251. if test "x$ac_cv_header_stdarg_h" = xyes
  16252. then :
  16253. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16254. fi
  16255. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16256. if test "x$ac_cv_header_malloc_h" = xyes
  16257. then :
  16258. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16259. fi
  16260. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16261. if test "x$ac_cv_header_memory_h" = xyes
  16262. then :
  16263. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16264. fi
  16265. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16266. if test "x$ac_cv_header_string_h" = xyes
  16267. then :
  16268. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16269. fi
  16270. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16271. if test "x$ac_cv_header_strings_h" = xyes
  16272. then :
  16273. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16274. fi
  16275. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16276. if test "x$ac_cv_header_wchar_h" = xyes
  16277. then :
  16278. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16279. fi
  16280. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_inttypes_h" = xyes
  16282. then :
  16283. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16284. fi
  16285. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_stdint_h" = xyes
  16287. then :
  16288. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16289. fi
  16290. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_limits_h" = xyes
  16292. then :
  16293. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16294. fi
  16295. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16296. if test "x$ac_cv_header_ctype_h" = xyes
  16297. then :
  16298. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16299. fi
  16300. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_math_h" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16304. fi
  16305. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16306. if test "x$ac_cv_header_float_h" = xyes
  16307. then :
  16308. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16309. fi
  16310. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16311. if test "x$ac_cv_header_iconv_h" = xyes
  16312. then :
  16313. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16314. fi
  16315. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16316. if test "x$ac_cv_header_signal_h" = xyes
  16317. then :
  16318. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16319. fi
  16320. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16321. if test "x$ac_cv_header_linux_input_h" = xyes
  16322. then :
  16323. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16324. fi
  16325. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16326. if test "x$ac_cv_type_size_t" = xyes
  16327. then :
  16328. else $as_nop
  16329. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16330. fi
  16331. ac_ext=c
  16332. ac_cpp='$CPP $CPPFLAGS'
  16333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16337. printf %s "checking how to run the C preprocessor... " >&6; }
  16338. # On Suns, sometimes $CPP names a directory.
  16339. if test -n "$CPP" && test -d "$CPP"; then
  16340. CPP=
  16341. fi
  16342. if test -z "$CPP"; then
  16343. if test ${ac_cv_prog_CPP+y}
  16344. then :
  16345. printf %s "(cached) " >&6
  16346. else $as_nop
  16347. # Double quotes because $CC needs to be expanded
  16348. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16349. do
  16350. ac_preproc_ok=false
  16351. for ac_c_preproc_warn_flag in '' yes
  16352. do
  16353. # Use a header file that comes with gcc, so configuring glibc
  16354. # with a fresh cross-compiler works.
  16355. # On the NeXT, cc -E runs the code through the compiler's parser,
  16356. # not just through cpp. "Syntax error" is here to catch this case.
  16357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16358. /* end confdefs.h. */
  16359. #include <limits.h>
  16360. Syntax error
  16361. _ACEOF
  16362. if ac_fn_c_try_cpp "$LINENO"
  16363. then :
  16364. else $as_nop
  16365. # Broken: fails on valid input.
  16366. continue
  16367. fi
  16368. rm -f conftest.err conftest.i conftest.$ac_ext
  16369. # OK, works on sane cases. Now check whether nonexistent headers
  16370. # can be detected and how.
  16371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16372. /* end confdefs.h. */
  16373. #include <ac_nonexistent.h>
  16374. _ACEOF
  16375. if ac_fn_c_try_cpp "$LINENO"
  16376. then :
  16377. # Broken: success on invalid input.
  16378. continue
  16379. else $as_nop
  16380. # Passes both tests.
  16381. ac_preproc_ok=:
  16382. break
  16383. fi
  16384. rm -f conftest.err conftest.i conftest.$ac_ext
  16385. done
  16386. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16387. rm -f conftest.i conftest.err conftest.$ac_ext
  16388. if $ac_preproc_ok
  16389. then :
  16390. break
  16391. fi
  16392. done
  16393. ac_cv_prog_CPP=$CPP
  16394. fi
  16395. CPP=$ac_cv_prog_CPP
  16396. else
  16397. ac_cv_prog_CPP=$CPP
  16398. fi
  16399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16400. printf "%s\n" "$CPP" >&6; }
  16401. ac_preproc_ok=false
  16402. for ac_c_preproc_warn_flag in '' yes
  16403. do
  16404. # Use a header file that comes with gcc, so configuring glibc
  16405. # with a fresh cross-compiler works.
  16406. # On the NeXT, cc -E runs the code through the compiler's parser,
  16407. # not just through cpp. "Syntax error" is here to catch this case.
  16408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16409. /* end confdefs.h. */
  16410. #include <limits.h>
  16411. Syntax error
  16412. _ACEOF
  16413. if ac_fn_c_try_cpp "$LINENO"
  16414. then :
  16415. else $as_nop
  16416. # Broken: fails on valid input.
  16417. continue
  16418. fi
  16419. rm -f conftest.err conftest.i conftest.$ac_ext
  16420. # OK, works on sane cases. Now check whether nonexistent headers
  16421. # can be detected and how.
  16422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16423. /* end confdefs.h. */
  16424. #include <ac_nonexistent.h>
  16425. _ACEOF
  16426. if ac_fn_c_try_cpp "$LINENO"
  16427. then :
  16428. # Broken: success on invalid input.
  16429. continue
  16430. else $as_nop
  16431. # Passes both tests.
  16432. ac_preproc_ok=:
  16433. break
  16434. fi
  16435. rm -f conftest.err conftest.i conftest.$ac_ext
  16436. done
  16437. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16438. rm -f conftest.i conftest.err conftest.$ac_ext
  16439. if $ac_preproc_ok
  16440. then :
  16441. else $as_nop
  16442. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16443. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16444. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16445. See \`config.log' for more details" "$LINENO" 5; }
  16446. fi
  16447. ac_ext=c
  16448. ac_cpp='$CPP $CPPFLAGS'
  16449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16453. printf %s "checking for M_PI in math.h... " >&6; }
  16454. if test ${ac_cv_define_M_PI+y}
  16455. then :
  16456. printf %s "(cached) " >&6
  16457. else $as_nop
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. #include <math.h>
  16461. #ifdef M_PI
  16462. YES_IS_DEFINED
  16463. #endif
  16464. _ACEOF
  16465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16466. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16467. then :
  16468. ac_cv_define_M_PI=yes
  16469. else $as_nop
  16470. ac_cv_define_M_PI=no
  16471. fi
  16472. rm -rf conftest*
  16473. fi
  16474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16475. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16476. if test "$ac_cv_define_M_PI" = "yes" ; then
  16477. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16478. fi
  16479. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16480. # for constant arguments. Useless!
  16481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16482. printf %s "checking for working alloca.h... " >&6; }
  16483. if test ${ac_cv_working_alloca_h+y}
  16484. then :
  16485. printf %s "(cached) " >&6
  16486. else $as_nop
  16487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16488. /* end confdefs.h. */
  16489. #include <alloca.h>
  16490. int
  16491. main (void)
  16492. {
  16493. char *p = (char *) alloca (2 * sizeof (int));
  16494. if (p) return 0;
  16495. ;
  16496. return 0;
  16497. }
  16498. _ACEOF
  16499. if ac_fn_c_try_link "$LINENO"
  16500. then :
  16501. ac_cv_working_alloca_h=yes
  16502. else $as_nop
  16503. ac_cv_working_alloca_h=no
  16504. fi
  16505. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16506. conftest$ac_exeext conftest.$ac_ext
  16507. fi
  16508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16509. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16510. if test $ac_cv_working_alloca_h = yes; then
  16511. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16512. fi
  16513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16514. printf %s "checking for alloca... " >&6; }
  16515. if test ${ac_cv_func_alloca_works+y}
  16516. then :
  16517. printf %s "(cached) " >&6
  16518. else $as_nop
  16519. if test $ac_cv_working_alloca_h = yes; then
  16520. ac_cv_func_alloca_works=yes
  16521. else
  16522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16523. /* end confdefs.h. */
  16524. #include <stdlib.h>
  16525. #include <stddef.h>
  16526. #ifndef alloca
  16527. # ifdef __GNUC__
  16528. # define alloca __builtin_alloca
  16529. # elif defined _MSC_VER
  16530. # include <malloc.h>
  16531. # define alloca _alloca
  16532. # else
  16533. # ifdef __cplusplus
  16534. extern "C"
  16535. # endif
  16536. void *alloca (size_t);
  16537. # endif
  16538. #endif
  16539. int
  16540. main (void)
  16541. {
  16542. char *p = (char *) alloca (1);
  16543. if (p) return 0;
  16544. ;
  16545. return 0;
  16546. }
  16547. _ACEOF
  16548. if ac_fn_c_try_link "$LINENO"
  16549. then :
  16550. ac_cv_func_alloca_works=yes
  16551. else $as_nop
  16552. ac_cv_func_alloca_works=no
  16553. fi
  16554. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16555. conftest$ac_exeext conftest.$ac_ext
  16556. fi
  16557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16558. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16559. fi
  16560. if test $ac_cv_func_alloca_works = yes; then
  16561. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16562. else
  16563. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16564. # that cause trouble. Some versions do not even contain alloca or
  16565. # contain a buggy version. If you still want to use their alloca,
  16566. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16567. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16568. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16570. printf %s "checking stack direction for C alloca... " >&6; }
  16571. if test ${ac_cv_c_stack_direction+y}
  16572. then :
  16573. printf %s "(cached) " >&6
  16574. else $as_nop
  16575. if test "$cross_compiling" = yes
  16576. then :
  16577. ac_cv_c_stack_direction=0
  16578. else $as_nop
  16579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16580. /* end confdefs.h. */
  16581. $ac_includes_default
  16582. int
  16583. find_stack_direction (int *addr, int depth)
  16584. {
  16585. int dir, dummy = 0;
  16586. if (! addr)
  16587. addr = &dummy;
  16588. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16589. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16590. return dir + dummy;
  16591. }
  16592. int
  16593. main (int argc, char **argv)
  16594. {
  16595. return find_stack_direction (0, argc + !argv + 20) < 0;
  16596. }
  16597. _ACEOF
  16598. if ac_fn_c_try_run "$LINENO"
  16599. then :
  16600. ac_cv_c_stack_direction=1
  16601. else $as_nop
  16602. ac_cv_c_stack_direction=-1
  16603. fi
  16604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16605. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16606. fi
  16607. fi
  16608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16609. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16610. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16611. fi
  16612. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16613. if test "x$ac_cv_func_mprotect" = xyes
  16614. then :
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. #include <sys/types.h>
  16618. #include <sys/mman.h>
  16619. int
  16620. main (void)
  16621. {
  16622. ;
  16623. return 0;
  16624. }
  16625. _ACEOF
  16626. if ac_fn_c_try_compile "$LINENO"
  16627. then :
  16628. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16629. fi
  16630. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16631. fi
  16632. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16633. if test "x$ac_cv_func_malloc" = xyes
  16634. then :
  16635. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16636. fi
  16637. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16638. if test "x$ac_cv_func_calloc" = xyes
  16639. then :
  16640. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16641. fi
  16642. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16643. if test "x$ac_cv_func_realloc" = xyes
  16644. then :
  16645. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16646. fi
  16647. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16648. if test "x$ac_cv_func_free" = xyes
  16649. then :
  16650. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16651. fi
  16652. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16653. if test "x$ac_cv_func_getenv" = xyes
  16654. then :
  16655. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16656. fi
  16657. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16658. if test "x$ac_cv_func_setenv" = xyes
  16659. then :
  16660. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16661. fi
  16662. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16663. if test "x$ac_cv_func_putenv" = xyes
  16664. then :
  16665. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16666. fi
  16667. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16668. if test "x$ac_cv_func_unsetenv" = xyes
  16669. then :
  16670. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16671. fi
  16672. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16673. if test "x$ac_cv_func_bsearch" = xyes
  16674. then :
  16675. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16676. fi
  16677. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16678. if test "x$ac_cv_func_qsort" = xyes
  16679. then :
  16680. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16681. fi
  16682. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16683. if test "x$ac_cv_func_abs" = xyes
  16684. then :
  16685. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16686. fi
  16687. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16688. if test "x$ac_cv_func_bcopy" = xyes
  16689. then :
  16690. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16691. fi
  16692. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16693. if test "x$ac_cv_func_memset" = xyes
  16694. then :
  16695. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16696. fi
  16697. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16698. if test "x$ac_cv_func_memcmp" = xyes
  16699. then :
  16700. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16701. fi
  16702. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16703. if test "x$ac_cv_func_memcpy" = xyes
  16704. then :
  16705. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16706. fi
  16707. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16708. if test "x$ac_cv_func_memmove" = xyes
  16709. then :
  16710. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16711. fi
  16712. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16713. if test "x$ac_cv_func_wcslen" = xyes
  16714. then :
  16715. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16716. fi
  16717. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16718. if test "x$ac_cv_func_wcslcpy" = xyes
  16719. then :
  16720. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16721. fi
  16722. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16723. if test "x$ac_cv_func_wcslcat" = xyes
  16724. then :
  16725. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16726. fi
  16727. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16728. if test "x$ac_cv_func__wcsdup" = xyes
  16729. then :
  16730. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16731. fi
  16732. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16733. if test "x$ac_cv_func_wcsdup" = xyes
  16734. then :
  16735. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16736. fi
  16737. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16738. if test "x$ac_cv_func_wcsstr" = xyes
  16739. then :
  16740. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16741. fi
  16742. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16743. if test "x$ac_cv_func_wcscmp" = xyes
  16744. then :
  16745. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16746. fi
  16747. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16748. if test "x$ac_cv_func_wcsncmp" = xyes
  16749. then :
  16750. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16751. fi
  16752. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16753. if test "x$ac_cv_func_wcscasecmp" = xyes
  16754. then :
  16755. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16756. fi
  16757. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16758. if test "x$ac_cv_func__wcsicmp" = xyes
  16759. then :
  16760. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16761. fi
  16762. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16763. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16764. then :
  16765. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16766. fi
  16767. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16768. if test "x$ac_cv_func__wcsnicmp" = xyes
  16769. then :
  16770. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16771. fi
  16772. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16773. if test "x$ac_cv_func_strlen" = xyes
  16774. then :
  16775. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16776. fi
  16777. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16778. if test "x$ac_cv_func_strlcpy" = xyes
  16779. then :
  16780. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16781. fi
  16782. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16783. if test "x$ac_cv_func_strlcat" = xyes
  16784. then :
  16785. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16786. fi
  16787. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16788. if test "x$ac_cv_func__strrev" = xyes
  16789. then :
  16790. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16791. fi
  16792. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16793. if test "x$ac_cv_func__strupr" = xyes
  16794. then :
  16795. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16796. fi
  16797. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16798. if test "x$ac_cv_func__strlwr" = xyes
  16799. then :
  16800. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16801. fi
  16802. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16803. if test "x$ac_cv_func_index" = xyes
  16804. then :
  16805. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16806. fi
  16807. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16808. if test "x$ac_cv_func_rindex" = xyes
  16809. then :
  16810. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16811. fi
  16812. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16813. if test "x$ac_cv_func_strchr" = xyes
  16814. then :
  16815. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16816. fi
  16817. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16818. if test "x$ac_cv_func_strrchr" = xyes
  16819. then :
  16820. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16821. fi
  16822. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16823. if test "x$ac_cv_func_strstr" = xyes
  16824. then :
  16825. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16826. fi
  16827. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16828. if test "x$ac_cv_func_strtok_r" = xyes
  16829. then :
  16830. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16831. fi
  16832. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16833. if test "x$ac_cv_func_itoa" = xyes
  16834. then :
  16835. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16836. fi
  16837. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16838. if test "x$ac_cv_func__ltoa" = xyes
  16839. then :
  16840. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16841. fi
  16842. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16843. if test "x$ac_cv_func__uitoa" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16848. if test "x$ac_cv_func__ultoa" = xyes
  16849. then :
  16850. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16851. fi
  16852. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16853. if test "x$ac_cv_func_strtod" = xyes
  16854. then :
  16855. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16856. fi
  16857. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16858. if test "x$ac_cv_func_strtol" = xyes
  16859. then :
  16860. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16861. fi
  16862. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16863. if test "x$ac_cv_func_strtoul" = xyes
  16864. then :
  16865. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16866. fi
  16867. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16868. if test "x$ac_cv_func__i64toa" = xyes
  16869. then :
  16870. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16871. fi
  16872. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16873. if test "x$ac_cv_func__ui64toa" = xyes
  16874. then :
  16875. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16876. fi
  16877. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16878. if test "x$ac_cv_func_strtoll" = xyes
  16879. then :
  16880. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16881. fi
  16882. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16883. if test "x$ac_cv_func_strtoull" = xyes
  16884. then :
  16885. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16886. fi
  16887. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16888. if test "x$ac_cv_func_atoi" = xyes
  16889. then :
  16890. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16891. fi
  16892. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16893. if test "x$ac_cv_func_atof" = xyes
  16894. then :
  16895. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16896. fi
  16897. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16898. if test "x$ac_cv_func_strcmp" = xyes
  16899. then :
  16900. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16901. fi
  16902. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16903. if test "x$ac_cv_func_strncmp" = xyes
  16904. then :
  16905. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16906. fi
  16907. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16908. if test "x$ac_cv_func__stricmp" = xyes
  16909. then :
  16910. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16911. fi
  16912. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16913. if test "x$ac_cv_func_strcasecmp" = xyes
  16914. then :
  16915. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16916. fi
  16917. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16918. if test "x$ac_cv_func__strnicmp" = xyes
  16919. then :
  16920. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16921. fi
  16922. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16923. if test "x$ac_cv_func_strncasecmp" = xyes
  16924. then :
  16925. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16926. fi
  16927. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16928. if test "x$ac_cv_func_strcasestr" = xyes
  16929. then :
  16930. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16931. fi
  16932. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16933. if test "x$ac_cv_func_vsscanf" = xyes
  16934. then :
  16935. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16936. fi
  16937. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16938. if test "x$ac_cv_func_vsnprintf" = xyes
  16939. then :
  16940. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16941. fi
  16942. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16943. if test "x$ac_cv_func_fopen64" = xyes
  16944. then :
  16945. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16946. fi
  16947. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  16948. if test "x$ac_cv_func_fseeko" = xyes
  16949. then :
  16950. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16951. fi
  16952. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  16953. if test "x$ac_cv_func_fseeko64" = xyes
  16954. then :
  16955. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  16956. fi
  16957. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16958. if test "x$ac_cv_func_sigaction" = xyes
  16959. then :
  16960. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16961. fi
  16962. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  16963. if test "x$ac_cv_func_setjmp" = xyes
  16964. then :
  16965. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  16966. fi
  16967. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  16968. if test "x$ac_cv_func_nanosleep" = xyes
  16969. then :
  16970. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  16971. fi
  16972. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  16973. if test "x$ac_cv_func_sysconf" = xyes
  16974. then :
  16975. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  16976. fi
  16977. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  16978. if test "x$ac_cv_func_sysctlbyname" = xyes
  16979. then :
  16980. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  16981. fi
  16982. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  16983. if test "x$ac_cv_func_getauxval" = xyes
  16984. then :
  16985. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  16986. fi
  16987. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  16988. if test "x$ac_cv_func_elf_aux_info" = xyes
  16989. then :
  16990. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  16991. fi
  16992. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16993. if test "x$ac_cv_func_poll" = xyes
  16994. then :
  16995. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16996. fi
  16997. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  16998. if test "x$ac_cv_func__Exit" = xyes
  16999. then :
  17000. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17001. fi
  17002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17003. printf %s "checking for pow in -lm... " >&6; }
  17004. if test ${ac_cv_lib_m_pow+y}
  17005. then :
  17006. printf %s "(cached) " >&6
  17007. else $as_nop
  17008. ac_check_lib_save_LIBS=$LIBS
  17009. LIBS="-lm $LIBS"
  17010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17011. /* end confdefs.h. */
  17012. /* Override any GCC internal prototype to avoid an error.
  17013. Use char because int might match the return type of a GCC
  17014. builtin and then its argument prototype would still apply. */
  17015. char pow ();
  17016. int
  17017. main (void)
  17018. {
  17019. return pow ();
  17020. ;
  17021. return 0;
  17022. }
  17023. _ACEOF
  17024. if ac_fn_c_try_link "$LINENO"
  17025. then :
  17026. ac_cv_lib_m_pow=yes
  17027. else $as_nop
  17028. ac_cv_lib_m_pow=no
  17029. fi
  17030. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17031. conftest$ac_exeext conftest.$ac_ext
  17032. LIBS=$ac_check_lib_save_LIBS
  17033. fi
  17034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17035. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17036. if test "x$ac_cv_lib_m_pow" = xyes
  17037. then :
  17038. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17041. if test "x$ac_cv_func_acos" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17046. if test "x$ac_cv_func_acosf" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17051. if test "x$ac_cv_func_asin" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17056. if test "x$ac_cv_func_asinf" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17061. if test "x$ac_cv_func_atan" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17066. if test "x$ac_cv_func_atanf" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17071. if test "x$ac_cv_func_atan2" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17076. if test "x$ac_cv_func_atan2f" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17081. if test "x$ac_cv_func_ceil" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17086. if test "x$ac_cv_func_ceilf" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17091. if test "x$ac_cv_func_copysign" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17096. if test "x$ac_cv_func_copysignf" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17101. if test "x$ac_cv_func_cos" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17106. if test "x$ac_cv_func_cosf" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17111. if test "x$ac_cv_func_exp" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17116. if test "x$ac_cv_func_expf" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17121. if test "x$ac_cv_func_fabs" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17126. if test "x$ac_cv_func_fabsf" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17131. if test "x$ac_cv_func_floor" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17136. if test "x$ac_cv_func_floorf" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17141. if test "x$ac_cv_func_trunc" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17146. if test "x$ac_cv_func_truncf" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17151. if test "x$ac_cv_func_fmod" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17156. if test "x$ac_cv_func_fmodf" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17161. if test "x$ac_cv_func_log" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17166. if test "x$ac_cv_func_logf" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17171. if test "x$ac_cv_func_log10" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17176. if test "x$ac_cv_func_log10f" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17181. if test "x$ac_cv_func_lround" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17186. if test "x$ac_cv_func_lroundf" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17191. if test "x$ac_cv_func_pow" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17196. if test "x$ac_cv_func_powf" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17199. fi
  17200. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17201. if test "x$ac_cv_func_round" = xyes
  17202. then :
  17203. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17204. fi
  17205. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17206. if test "x$ac_cv_func_roundf" = xyes
  17207. then :
  17208. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17209. fi
  17210. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17211. if test "x$ac_cv_func_scalbn" = xyes
  17212. then :
  17213. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17214. fi
  17215. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17216. if test "x$ac_cv_func_scalbnf" = xyes
  17217. then :
  17218. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17219. fi
  17220. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17221. if test "x$ac_cv_func_sin" = xyes
  17222. then :
  17223. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17224. fi
  17225. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17226. if test "x$ac_cv_func_sinf" = xyes
  17227. then :
  17228. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17229. fi
  17230. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17231. if test "x$ac_cv_func_sqrt" = xyes
  17232. then :
  17233. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17234. fi
  17235. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17236. if test "x$ac_cv_func_sqrtf" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17241. if test "x$ac_cv_func_tan" = xyes
  17242. then :
  17243. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17244. fi
  17245. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17246. if test "x$ac_cv_func_tanf" = xyes
  17247. then :
  17248. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17249. fi
  17250. if test x$enable_system_iconv = xyes; then
  17251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17252. printf %s "checking for iconv_open in -liconv... " >&6; }
  17253. if test ${ac_cv_lib_iconv_iconv_open+y}
  17254. then :
  17255. printf %s "(cached) " >&6
  17256. else $as_nop
  17257. ac_check_lib_save_LIBS=$LIBS
  17258. LIBS="-liconv $LIBS"
  17259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17260. /* end confdefs.h. */
  17261. /* Override any GCC internal prototype to avoid an error.
  17262. Use char because int might match the return type of a GCC
  17263. builtin and then its argument prototype would still apply. */
  17264. char iconv_open ();
  17265. int
  17266. main (void)
  17267. {
  17268. return iconv_open ();
  17269. ;
  17270. return 0;
  17271. }
  17272. _ACEOF
  17273. if ac_fn_c_try_link "$LINENO"
  17274. then :
  17275. ac_cv_lib_iconv_iconv_open=yes
  17276. else $as_nop
  17277. ac_cv_lib_iconv_iconv_open=no
  17278. fi
  17279. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17280. conftest$ac_exeext conftest.$ac_ext
  17281. LIBS=$ac_check_lib_save_LIBS
  17282. fi
  17283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17284. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17285. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17286. then :
  17287. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17290. if test "x$ac_cv_func_iconv" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17293. fi
  17294. fi
  17295. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17296. "
  17297. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17298. then :
  17299. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17300. fi
  17301. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17302. if test "x$ac_cv_header_libunwind_h" = xyes
  17303. then :
  17304. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17305. fi
  17306. fi
  17307. # Check whether --enable-gcc-atomics was given.
  17308. if test ${enable_gcc_atomics+y}
  17309. then :
  17310. enableval=$enable_gcc_atomics;
  17311. else $as_nop
  17312. enable_gcc_atomics=yes
  17313. fi
  17314. if test x$enable_gcc_atomics = xyes; then
  17315. have_gcc_atomics=no
  17316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17317. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. int
  17321. main (void)
  17322. {
  17323. int a;
  17324. void *x, *y, *z;
  17325. __sync_lock_test_and_set(&a, 4);
  17326. __sync_lock_test_and_set(&x, y);
  17327. __sync_fetch_and_add(&a, 1);
  17328. __sync_bool_compare_and_swap(&a, 5, 10);
  17329. __sync_bool_compare_and_swap(&x, y, z);
  17330. ;
  17331. return 0;
  17332. }
  17333. _ACEOF
  17334. if ac_fn_c_try_link "$LINENO"
  17335. then :
  17336. have_gcc_atomics=yes
  17337. fi
  17338. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17339. conftest$ac_exeext conftest.$ac_ext
  17340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17341. printf "%s\n" "$have_gcc_atomics" >&6; }
  17342. if test x$have_gcc_atomics = xyes; then
  17343. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17344. else
  17345. # See if we have the minimum operation needed for GCC atomics
  17346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17347. /* end confdefs.h. */
  17348. int
  17349. main (void)
  17350. {
  17351. int a;
  17352. __sync_lock_test_and_set(&a, 1);
  17353. __sync_lock_release(&a);
  17354. ;
  17355. return 0;
  17356. }
  17357. _ACEOF
  17358. if ac_fn_c_try_link "$LINENO"
  17359. then :
  17360. have_gcc_sync_lock_test_and_set=yes
  17361. fi
  17362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17363. conftest$ac_exeext conftest.$ac_ext
  17364. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17365. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17366. fi
  17367. fi
  17368. fi
  17369. # Standard C sources
  17370. SOURCES="$SOURCES $srcdir/src/*.c"
  17371. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17372. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17373. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17374. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17375. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17376. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17377. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17378. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17379. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17380. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17381. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17382. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17383. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17384. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17385. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17386. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17387. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17388. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17389. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17390. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17391. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17392. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17393. case "$host" in
  17394. *-*-emscripten*)
  17395. default_atomic=no
  17396. ;;
  17397. *)
  17398. default_atomic=yes
  17399. ;;
  17400. esac
  17401. # Check whether --enable-atomic was given.
  17402. if test ${enable_atomic+y}
  17403. then :
  17404. enableval=$enable_atomic;
  17405. else $as_nop
  17406. enable_atomic=$default_atomic
  17407. fi
  17408. if test x$enable_atomic != xyes; then
  17409. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17410. else
  17411. SUMMARY_modules="${SUMMARY_modules} atomic"
  17412. fi
  17413. # Check whether --enable-audio was given.
  17414. if test ${enable_audio+y}
  17415. then :
  17416. enableval=$enable_audio;
  17417. else $as_nop
  17418. enable_audio=yes
  17419. fi
  17420. if test x$enable_audio != xyes; then
  17421. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17422. else
  17423. SUMMARY_modules="${SUMMARY_modules} audio"
  17424. fi
  17425. # Check whether --enable-video was given.
  17426. if test ${enable_video+y}
  17427. then :
  17428. enableval=$enable_video;
  17429. else $as_nop
  17430. enable_video=yes
  17431. fi
  17432. if test x$enable_video != xyes; then
  17433. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17434. else
  17435. SUMMARY_modules="${SUMMARY_modules} video"
  17436. fi
  17437. # Check whether --enable-render was given.
  17438. if test ${enable_render+y}
  17439. then :
  17440. enableval=$enable_render;
  17441. else $as_nop
  17442. enable_render=yes
  17443. fi
  17444. if test x$enable_render != xyes; then
  17445. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17446. else
  17447. SUMMARY_modules="${SUMMARY_modules} render"
  17448. fi
  17449. # Check whether --enable-events was given.
  17450. if test ${enable_events+y}
  17451. then :
  17452. enableval=$enable_events;
  17453. else $as_nop
  17454. enable_events=yes
  17455. fi
  17456. if test x$enable_events != xyes; then
  17457. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17458. else
  17459. SUMMARY_modules="${SUMMARY_modules} events"
  17460. fi
  17461. # Check whether --enable-joystick was given.
  17462. if test ${enable_joystick+y}
  17463. then :
  17464. enableval=$enable_joystick;
  17465. else $as_nop
  17466. enable_joystick=yes
  17467. fi
  17468. if test x$enable_joystick != xyes; then
  17469. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17470. else
  17471. SUMMARY_modules="${SUMMARY_modules} joystick"
  17472. fi
  17473. # Check whether --enable-haptic was given.
  17474. if test ${enable_haptic+y}
  17475. then :
  17476. enableval=$enable_haptic;
  17477. else $as_nop
  17478. enable_haptic=yes
  17479. fi
  17480. if test x$enable_haptic != xyes; then
  17481. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17482. else
  17483. SUMMARY_modules="${SUMMARY_modules} haptic"
  17484. fi
  17485. # Check whether --enable-hidapi was given.
  17486. if test ${enable_hidapi+y}
  17487. then :
  17488. enableval=$enable_hidapi;
  17489. else $as_nop
  17490. enable_hidapi=yes
  17491. fi
  17492. if test x$enable_hidapi != xyes; then
  17493. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17494. else
  17495. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17496. fi
  17497. # Check whether --enable-sensor was given.
  17498. if test ${enable_sensor+y}
  17499. then :
  17500. enableval=$enable_sensor;
  17501. else $as_nop
  17502. enable_sensor=yes
  17503. fi
  17504. if test x$enable_sensor != xyes; then
  17505. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17506. else
  17507. SUMMARY_modules="${SUMMARY_modules} sensor"
  17508. fi
  17509. # Check whether --enable-power was given.
  17510. if test ${enable_power+y}
  17511. then :
  17512. enableval=$enable_power;
  17513. else $as_nop
  17514. enable_power=yes
  17515. fi
  17516. if test x$enable_power != xyes; then
  17517. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17518. else
  17519. SUMMARY_modules="${SUMMARY_modules} power"
  17520. fi
  17521. # Check whether --enable-filesystem was given.
  17522. if test ${enable_filesystem+y}
  17523. then :
  17524. enableval=$enable_filesystem;
  17525. else $as_nop
  17526. enable_filesystem=yes
  17527. fi
  17528. if test x$enable_filesystem != xyes; then
  17529. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17530. else
  17531. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17532. fi
  17533. # Many subsystems depend on threads, so leave them enabled by default
  17534. #AC_ARG_ENABLE(threads,
  17535. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17536. # , enable_threads=yes)
  17537. enable_threads=yes
  17538. if test x$enable_threads != xyes; then
  17539. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17540. else
  17541. SUMMARY_modules="${SUMMARY_modules} threads"
  17542. fi
  17543. # Check whether --enable-timers was given.
  17544. if test ${enable_timers+y}
  17545. then :
  17546. enableval=$enable_timers;
  17547. else $as_nop
  17548. enable_timers=yes
  17549. fi
  17550. if test x$enable_timers != xyes; then
  17551. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17552. else
  17553. SUMMARY_modules="${SUMMARY_modules} timers"
  17554. fi
  17555. # Check whether --enable-file was given.
  17556. if test ${enable_file+y}
  17557. then :
  17558. enableval=$enable_file;
  17559. else $as_nop
  17560. enable_file=yes
  17561. fi
  17562. if test x$enable_file != xyes; then
  17563. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17564. else
  17565. SUMMARY_modules="${SUMMARY_modules} file"
  17566. fi
  17567. # Check whether --enable-misc was given.
  17568. if test ${enable_misc+y}
  17569. then :
  17570. enableval=$enable_misc;
  17571. else $as_nop
  17572. enable_misc=yes
  17573. fi
  17574. if test x$enable_misc != xyes; then
  17575. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17576. else
  17577. SUMMARY_modules="${SUMMARY_modules} misc"
  17578. fi
  17579. # Check whether --enable-locale was given.
  17580. if test ${enable_locale+y}
  17581. then :
  17582. enableval=$enable_locale;
  17583. else $as_nop
  17584. enable_locale=yes
  17585. fi
  17586. if test x$enable_locale != xyes; then
  17587. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17588. else
  17589. SUMMARY_modules="${SUMMARY_modules} locale"
  17590. fi
  17591. # Check whether --enable-loadso was given.
  17592. if test ${enable_loadso+y}
  17593. then :
  17594. enableval=$enable_loadso;
  17595. else $as_nop
  17596. enable_loadso=yes
  17597. fi
  17598. if test x$enable_loadso != xyes; then
  17599. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17600. else
  17601. SUMMARY_modules="${SUMMARY_modules} loadso"
  17602. fi
  17603. # Check whether --enable-cpuinfo was given.
  17604. if test ${enable_cpuinfo+y}
  17605. then :
  17606. enableval=$enable_cpuinfo;
  17607. else $as_nop
  17608. enable_cpuinfo=yes
  17609. fi
  17610. if test x$enable_cpuinfo != xyes; then
  17611. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17612. else
  17613. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17614. fi
  17615. # Check whether --enable-assembly was given.
  17616. if test ${enable_assembly+y}
  17617. then :
  17618. enableval=$enable_assembly;
  17619. else $as_nop
  17620. enable_assembly=yes
  17621. fi
  17622. if test x$enable_assembly = xyes; then
  17623. SUMMARY_modules="${SUMMARY_modules} assembly"
  17624. # Make sure that we don't generate floating point code that would
  17625. # cause illegal instruction exceptions on older processors
  17626. case "$host" in
  17627. *-*-darwin*)
  17628. # Don't need to worry about Apple hardware, it's all SSE capable
  17629. default_ssemath=yes
  17630. ;;
  17631. *64-*-*)
  17632. # x86 64-bit architectures all have SSE instructions
  17633. default_ssemath=yes
  17634. ;;
  17635. *)
  17636. default_ssemath=no
  17637. ;;
  17638. esac
  17639. # Check whether --enable-ssemath was given.
  17640. if test ${enable_ssemath+y}
  17641. then :
  17642. enableval=$enable_ssemath;
  17643. else $as_nop
  17644. enable_ssemath=$default_ssemath
  17645. fi
  17646. if test x$enable_ssemath = xno; then
  17647. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17648. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17649. fi
  17650. fi
  17651. # Check whether --enable-mmx was given.
  17652. if test ${enable_mmx+y}
  17653. then :
  17654. enableval=$enable_mmx;
  17655. else $as_nop
  17656. enable_mmx=yes
  17657. fi
  17658. if test x$enable_mmx = xyes; then
  17659. save_CFLAGS="$CFLAGS"
  17660. have_gcc_mmx=no
  17661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17662. printf %s "checking for GCC -mmmx option... " >&6; }
  17663. mmx_CFLAGS="-mmmx"
  17664. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17666. /* end confdefs.h. */
  17667. #ifdef __MINGW32__
  17668. #include <_mingw.h>
  17669. #ifdef __MINGW64_VERSION_MAJOR
  17670. #include <intrin.h>
  17671. #else
  17672. #include <mmintrin.h>
  17673. #endif
  17674. #else
  17675. #include <mmintrin.h>
  17676. #endif
  17677. #ifndef __MMX__
  17678. #error Assembler CPP flag not enabled
  17679. #endif
  17680. int
  17681. main (void)
  17682. {
  17683. ;
  17684. return 0;
  17685. }
  17686. _ACEOF
  17687. if ac_fn_c_try_compile "$LINENO"
  17688. then :
  17689. have_gcc_mmx=yes
  17690. fi
  17691. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17693. printf "%s\n" "$have_gcc_mmx" >&6; }
  17694. CFLAGS="$save_CFLAGS"
  17695. if test x$have_gcc_mmx = xyes; then
  17696. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17697. SUMMARY_math="${SUMMARY_math} mmx"
  17698. fi
  17699. fi
  17700. # Check whether --enable-3dnow was given.
  17701. if test ${enable_3dnow+y}
  17702. then :
  17703. enableval=$enable_3dnow;
  17704. else $as_nop
  17705. enable_3dnow=yes
  17706. fi
  17707. if test x$enable_3dnow = xyes; then
  17708. save_CFLAGS="$CFLAGS"
  17709. have_gcc_3dnow=no
  17710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17711. printf %s "checking for GCC -m3dnow option... " >&6; }
  17712. amd3dnow_CFLAGS="-m3dnow"
  17713. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17715. /* end confdefs.h. */
  17716. #include <mm3dnow.h>
  17717. #ifndef __3dNOW__
  17718. #error Assembler CPP flag not enabled
  17719. #endif
  17720. int
  17721. main (void)
  17722. {
  17723. void *p = 0;
  17724. _m_prefetch(p);
  17725. ;
  17726. return 0;
  17727. }
  17728. _ACEOF
  17729. if ac_fn_c_try_link "$LINENO"
  17730. then :
  17731. have_gcc_3dnow=yes
  17732. fi
  17733. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17734. conftest$ac_exeext conftest.$ac_ext
  17735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17736. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17737. CFLAGS="$save_CFLAGS"
  17738. if test x$have_gcc_3dnow = xyes; then
  17739. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17740. SUMMARY_math="${SUMMARY_math} 3dnow"
  17741. fi
  17742. fi
  17743. # Check whether --enable-sse was given.
  17744. if test ${enable_sse+y}
  17745. then :
  17746. enableval=$enable_sse;
  17747. else $as_nop
  17748. enable_sse=yes
  17749. fi
  17750. if test x$enable_sse = xyes; then
  17751. save_CFLAGS="$CFLAGS"
  17752. have_gcc_sse=no
  17753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17754. printf %s "checking for GCC -msse option... " >&6; }
  17755. sse_CFLAGS="-msse"
  17756. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17758. /* end confdefs.h. */
  17759. #ifdef __MINGW32__
  17760. #include <_mingw.h>
  17761. #ifdef __MINGW64_VERSION_MAJOR
  17762. #include <intrin.h>
  17763. #else
  17764. #include <xmmintrin.h>
  17765. #endif
  17766. #else
  17767. #include <xmmintrin.h>
  17768. #endif
  17769. #ifndef __SSE__
  17770. #error Assembler CPP flag not enabled
  17771. #endif
  17772. int
  17773. main (void)
  17774. {
  17775. ;
  17776. return 0;
  17777. }
  17778. _ACEOF
  17779. if ac_fn_c_try_compile "$LINENO"
  17780. then :
  17781. have_gcc_sse=yes
  17782. fi
  17783. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17785. printf "%s\n" "$have_gcc_sse" >&6; }
  17786. CFLAGS="$save_CFLAGS"
  17787. if test x$have_gcc_sse = xyes; then
  17788. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17789. SUMMARY_math="${SUMMARY_math} sse"
  17790. fi
  17791. fi
  17792. # Check whether --enable-sse2 was given.
  17793. if test ${enable_sse2+y}
  17794. then :
  17795. enableval=$enable_sse2;
  17796. else $as_nop
  17797. enable_sse2=$default_ssemath
  17798. fi
  17799. if test x$enable_sse2 = xyes; then
  17800. save_CFLAGS="$CFLAGS"
  17801. have_gcc_sse2=no
  17802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17803. printf %s "checking for GCC -msse2 option... " >&6; }
  17804. sse2_CFLAGS="-msse2"
  17805. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. #ifdef __MINGW32__
  17809. #include <_mingw.h>
  17810. #ifdef __MINGW64_VERSION_MAJOR
  17811. #include <intrin.h>
  17812. #else
  17813. #include <emmintrin.h>
  17814. #endif
  17815. #else
  17816. #include <emmintrin.h>
  17817. #endif
  17818. #ifndef __SSE2__
  17819. #error Assembler CPP flag not enabled
  17820. #endif
  17821. int
  17822. main (void)
  17823. {
  17824. ;
  17825. return 0;
  17826. }
  17827. _ACEOF
  17828. if ac_fn_c_try_compile "$LINENO"
  17829. then :
  17830. have_gcc_sse2=yes
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17834. printf "%s\n" "$have_gcc_sse2" >&6; }
  17835. CFLAGS="$save_CFLAGS"
  17836. if test x$have_gcc_sse2 = xyes; then
  17837. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17838. SUMMARY_math="${SUMMARY_math} sse2"
  17839. fi
  17840. fi
  17841. # Check whether --enable-sse3 was given.
  17842. if test ${enable_sse3+y}
  17843. then :
  17844. enableval=$enable_sse3;
  17845. else $as_nop
  17846. enable_sse3=$default_ssemath
  17847. fi
  17848. if test x$enable_sse3 = xyes; then
  17849. save_CFLAGS="$CFLAGS"
  17850. have_gcc_sse3=no
  17851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17852. printf %s "checking for GCC -msse3 option... " >&6; }
  17853. sse3_CFLAGS="-msse3"
  17854. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. #ifdef __MINGW32__
  17858. #include <_mingw.h>
  17859. #ifdef __MINGW64_VERSION_MAJOR
  17860. #include <intrin.h>
  17861. #else
  17862. #include <pmmintrin.h>
  17863. #endif
  17864. #else
  17865. #include <pmmintrin.h>
  17866. #endif
  17867. #ifndef __SSE2__
  17868. #error Assembler CPP flag not enabled
  17869. #endif
  17870. int
  17871. main (void)
  17872. {
  17873. ;
  17874. return 0;
  17875. }
  17876. _ACEOF
  17877. if ac_fn_c_try_compile "$LINENO"
  17878. then :
  17879. have_gcc_sse3=yes
  17880. fi
  17881. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17883. printf "%s\n" "$have_gcc_sse3" >&6; }
  17884. CFLAGS="$save_CFLAGS"
  17885. if test x$have_gcc_sse3 = xyes; then
  17886. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17887. SUMMARY_math="${SUMMARY_math} sse3"
  17888. fi
  17889. fi
  17890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17891. printf %s "checking for immintrin.h... " >&6; }
  17892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17893. /* end confdefs.h. */
  17894. #include <immintrin.h>
  17895. int
  17896. main (void)
  17897. {
  17898. ;
  17899. return 0;
  17900. }
  17901. _ACEOF
  17902. if ac_fn_c_try_compile "$LINENO"
  17903. then :
  17904. have_immintrin_h_hdr=yes
  17905. else $as_nop
  17906. have_immintrin_h_hdr=no
  17907. fi
  17908. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17910. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17911. if test x$have_immintrin_h_hdr = xyes; then
  17912. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17913. fi
  17914. # Check whether --enable-altivec was given.
  17915. if test ${enable_altivec+y}
  17916. then :
  17917. enableval=$enable_altivec;
  17918. else $as_nop
  17919. enable_altivec=yes
  17920. fi
  17921. if test x$enable_altivec = xyes; then
  17922. save_CFLAGS="$CFLAGS"
  17923. have_gcc_altivec=no
  17924. have_altivec_h_hdr=no
  17925. altivec_CFLAGS="-maltivec"
  17926. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17928. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. #include <altivec.h>
  17932. vector unsigned int vzero() {
  17933. return vec_splat_u32(0);
  17934. }
  17935. int
  17936. main (void)
  17937. {
  17938. ;
  17939. return 0;
  17940. }
  17941. _ACEOF
  17942. if ac_fn_c_try_compile "$LINENO"
  17943. then :
  17944. have_gcc_altivec=yes
  17945. have_altivec_h_hdr=yes
  17946. fi
  17947. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17949. printf "%s\n" "$have_gcc_altivec" >&6; }
  17950. if test x$have_gcc_altivec = xno; then
  17951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  17952. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  17953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17954. /* end confdefs.h. */
  17955. vector unsigned int vzero() {
  17956. return vec_splat_u32(0);
  17957. }
  17958. int
  17959. main (void)
  17960. {
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_compile "$LINENO"
  17966. then :
  17967. have_gcc_altivec=yes
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17971. printf "%s\n" "$have_gcc_altivec" >&6; }
  17972. fi
  17973. if test x$have_gcc_altivec = xno; then
  17974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  17975. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  17976. altivec_CFLAGS="-faltivec"
  17977. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17979. /* end confdefs.h. */
  17980. #include <altivec.h>
  17981. vector unsigned int vzero() {
  17982. return vec_splat_u32(0);
  17983. }
  17984. int
  17985. main (void)
  17986. {
  17987. ;
  17988. return 0;
  17989. }
  17990. _ACEOF
  17991. if ac_fn_c_try_compile "$LINENO"
  17992. then :
  17993. have_gcc_altivec=yes
  17994. have_altivec_h_hdr=yes
  17995. fi
  17996. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  17998. printf "%s\n" "$have_gcc_altivec" >&6; }
  17999. fi
  18000. if test x$have_gcc_altivec = xno; then
  18001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18002. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18004. /* end confdefs.h. */
  18005. vector unsigned int vzero() {
  18006. return vec_splat_u32(0);
  18007. }
  18008. int
  18009. main (void)
  18010. {
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. if ac_fn_c_try_compile "$LINENO"
  18016. then :
  18017. have_gcc_altivec=yes
  18018. fi
  18019. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18021. printf "%s\n" "$have_gcc_altivec" >&6; }
  18022. fi
  18023. CFLAGS="$save_CFLAGS"
  18024. if test x$have_gcc_altivec = xyes; then
  18025. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18026. if test x$have_altivec_h_hdr = xyes; then
  18027. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18028. fi
  18029. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18030. SUMMARY_math="${SUMMARY_math} altivec"
  18031. fi
  18032. fi
  18033. fi
  18034. # Check whether --enable-lsx was given.
  18035. if test ${enable_lsx+y}
  18036. then :
  18037. enableval=$enable_lsx;
  18038. else $as_nop
  18039. enable_lsx=yes
  18040. fi
  18041. if test x$enable_lsx = xyes; then
  18042. save_CFLAGS="$CFLAGS"
  18043. have_gcc_lsx=no
  18044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18045. printf %s "checking for GCC -mlsx option... " >&6; }
  18046. lsx_CFLAGS="-mlsx"
  18047. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18049. /* end confdefs.h. */
  18050. #ifndef __loongarch_sx
  18051. #error Assembler CPP flag not enabled
  18052. #endif
  18053. int
  18054. main (void)
  18055. {
  18056. ;
  18057. return 0;
  18058. }
  18059. _ACEOF
  18060. if ac_fn_c_try_compile "$LINENO"
  18061. then :
  18062. have_gcc_lsx=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18066. printf "%s\n" "$have_gcc_lsx" >&6; }
  18067. CFLAGS="$save_CFLAGS"
  18068. if test x$have_gcc_lsx = xyes; then
  18069. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18070. SUMMARY_math="${SUMMARY_math} lsx"
  18071. fi
  18072. fi
  18073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18074. printf %s "checking for lsxintrin.h... " >&6; }
  18075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18076. /* end confdefs.h. */
  18077. #include <lsxintrin.h>
  18078. int
  18079. main (void)
  18080. {
  18081. ;
  18082. return 0;
  18083. }
  18084. _ACEOF
  18085. if ac_fn_c_try_compile "$LINENO"
  18086. then :
  18087. have_lsxintrin_h_hdr=yes
  18088. else $as_nop
  18089. have_lsxintrin_h_hdr=no
  18090. fi
  18091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18093. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18094. if test x$have_lsxintrin_h_hdr = xyes; then
  18095. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18096. fi
  18097. # Check whether --enable-lasx was given.
  18098. if test ${enable_lasx+y}
  18099. then :
  18100. enableval=$enable_lasx;
  18101. else $as_nop
  18102. enable_LASX=yes
  18103. fi
  18104. if test x$enable_LASX = xyes; then
  18105. save_CFLAGS="$CFLAGS"
  18106. have_gcc_lasx=no
  18107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18108. printf %s "checking for GCC -mlasx option... " >&6; }
  18109. lasx_CFLAGS="-mlasx"
  18110. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18112. /* end confdefs.h. */
  18113. #ifndef __loongarch_asx
  18114. #error Assembler CPP flag not enabled
  18115. #endif
  18116. int
  18117. main (void)
  18118. {
  18119. ;
  18120. return 0;
  18121. }
  18122. _ACEOF
  18123. if ac_fn_c_try_compile "$LINENO"
  18124. then :
  18125. have_gcc_lasx=yes
  18126. fi
  18127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18129. printf "%s\n" "$have_gcc_lasx" >&6; }
  18130. CFLAGS="$save_CFLAGS"
  18131. if test x$have_gcc_lasx = xyes; then
  18132. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18133. SUMMARY_math="${SUMMARY_math} lasx"
  18134. fi
  18135. fi
  18136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18137. printf %s "checking for lasxintrin.h... " >&6; }
  18138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18139. /* end confdefs.h. */
  18140. #include <lasxintrin.h>
  18141. int
  18142. main (void)
  18143. {
  18144. ;
  18145. return 0;
  18146. }
  18147. _ACEOF
  18148. if ac_fn_c_try_compile "$LINENO"
  18149. then :
  18150. have_lasxintrin_h_hdr=yes
  18151. else $as_nop
  18152. have_lasxintrin_h_hdr=no
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18156. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18157. if test x$have_lasxintrin_h_hdr = xyes; then
  18158. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18159. fi
  18160. CheckOSS()
  18161. {
  18162. # Check whether --enable-oss was given.
  18163. if test ${enable_oss+y}
  18164. then :
  18165. enableval=$enable_oss;
  18166. else $as_nop
  18167. enable_oss=maybe
  18168. fi
  18169. if test x$enable_oss = xmaybe; then
  18170. enable_oss=yes
  18171. fi
  18172. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18174. printf %s "checking for OSS audio support... " >&6; }
  18175. have_oss=no
  18176. if test x$have_oss != xyes; then
  18177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18178. /* end confdefs.h. */
  18179. #include <sys/soundcard.h>
  18180. int
  18181. main (void)
  18182. {
  18183. int arg = SNDCTL_DSP_SETFRAGMENT;
  18184. ;
  18185. return 0;
  18186. }
  18187. _ACEOF
  18188. if ac_fn_c_try_compile "$LINENO"
  18189. then :
  18190. have_oss=yes
  18191. fi
  18192. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18193. fi
  18194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18195. printf "%s\n" "$have_oss" >&6; }
  18196. if test x$have_oss = xyes; then
  18197. SUMMARY_audio="${SUMMARY_audio} oss"
  18198. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18199. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18200. have_audio=yes
  18201. # We may need to link with ossaudio emulation library
  18202. case "$host" in
  18203. *-*-netbsd*)
  18204. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18205. esac
  18206. fi
  18207. fi
  18208. }
  18209. CheckALSA()
  18210. {
  18211. # Check whether --enable-alsa was given.
  18212. if test ${enable_alsa+y}
  18213. then :
  18214. enableval=$enable_alsa;
  18215. else $as_nop
  18216. enable_alsa=yes
  18217. fi
  18218. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18219. alsa_save_CFLAGS="$CFLAGS"
  18220. alsa_save_LDFLAGS="$LDFLAGS"
  18221. alsa_save_LIBS="$LIBS"
  18222. alsa_found=yes
  18223. # Check whether --with-alsa-prefix was given.
  18224. if test ${with_alsa_prefix+y}
  18225. then :
  18226. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18227. else $as_nop
  18228. alsa_prefix=""
  18229. fi
  18230. # Check whether --with-alsa-inc-prefix was given.
  18231. if test ${with_alsa_inc_prefix+y}
  18232. then :
  18233. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18234. else $as_nop
  18235. alsa_inc_prefix=""
  18236. fi
  18237. # Check whether --enable-alsatest was given.
  18238. if test ${enable_alsatest+y}
  18239. then :
  18240. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18241. else $as_nop
  18242. enable_alsatest=yes
  18243. fi
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18245. printf %s "checking for ALSA CFLAGS... " >&6; }
  18246. if test "$alsa_inc_prefix" != "" ; then
  18247. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18248. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18249. fi
  18250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18251. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18253. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18254. if test "$alsa_prefix" != "" ; then
  18255. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18256. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18257. fi
  18258. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18259. LIBS=`echo $LIBS | sed 's/-lm//'`
  18260. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18261. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18262. LIBS=`echo $LIBS | sed 's/ //'`
  18263. LIBS="$ALSA_LIBS $LIBS"
  18264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18265. printf "%s\n" "$ALSA_LIBS" >&6; }
  18266. min_alsa_version=1.0.11
  18267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18268. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18269. no_alsa=""
  18270. alsa_min_major_version=`echo $min_alsa_version | \
  18271. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18272. alsa_min_minor_version=`echo $min_alsa_version | \
  18273. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18274. alsa_min_micro_version=`echo $min_alsa_version | \
  18275. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18276. ac_ext=c
  18277. ac_cpp='$CPP $CPPFLAGS'
  18278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18282. /* end confdefs.h. */
  18283. #include <alsa/asoundlib.h>
  18284. int
  18285. main (void)
  18286. {
  18287. /* ensure backward compatibility */
  18288. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18289. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18290. #endif
  18291. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18292. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18293. #endif
  18294. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18295. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18296. #endif
  18297. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18298. exit(0);
  18299. # else
  18300. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18301. # error not present
  18302. # endif
  18303. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18304. exit(0);
  18305. # else
  18306. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18307. # error not present
  18308. # endif
  18309. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18310. # error not present
  18311. # endif
  18312. # endif
  18313. # endif
  18314. exit(0);
  18315. ;
  18316. return 0;
  18317. }
  18318. _ACEOF
  18319. if ac_fn_c_try_compile "$LINENO"
  18320. then :
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18322. printf "%s\n" "found." >&6; }
  18323. else $as_nop
  18324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18325. printf "%s\n" "not present." >&6; }
  18326. alsa_found=no
  18327. fi
  18328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18329. ac_ext=c
  18330. ac_cpp='$CPP $CPPFLAGS'
  18331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18334. if test "x$enable_alsatest" = "xyes"; then
  18335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18336. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18337. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18338. then :
  18339. printf %s "(cached) " >&6
  18340. else $as_nop
  18341. ac_check_lib_save_LIBS=$LIBS
  18342. LIBS="-lasound $LIBS"
  18343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h. */
  18345. /* Override any GCC internal prototype to avoid an error.
  18346. Use char because int might match the return type of a GCC
  18347. builtin and then its argument prototype would still apply. */
  18348. char snd_ctl_open ();
  18349. int
  18350. main (void)
  18351. {
  18352. return snd_ctl_open ();
  18353. ;
  18354. return 0;
  18355. }
  18356. _ACEOF
  18357. if ac_fn_c_try_link "$LINENO"
  18358. then :
  18359. ac_cv_lib_asound_snd_ctl_open=yes
  18360. else $as_nop
  18361. ac_cv_lib_asound_snd_ctl_open=no
  18362. fi
  18363. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18364. conftest$ac_exeext conftest.$ac_ext
  18365. LIBS=$ac_check_lib_save_LIBS
  18366. fi
  18367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18368. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18369. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18370. then :
  18371. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18372. LIBS="-lasound $LIBS"
  18373. else $as_nop
  18374. alsa_found=no
  18375. fi
  18376. fi
  18377. if test "x$alsa_found" = "xyes" ; then
  18378. have_alsa=yes
  18379. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18380. LIBS=`echo $LIBS | sed 's/ //'`
  18381. LIBS="-lasound $LIBS"
  18382. fi
  18383. if test "x$alsa_found" = "xno" ; then
  18384. have_alsa=no
  18385. CFLAGS="$alsa_save_CFLAGS"
  18386. LDFLAGS="$alsa_save_LDFLAGS"
  18387. LIBS="$alsa_save_LIBS"
  18388. ALSA_CFLAGS=""
  18389. ALSA_LIBS=""
  18390. fi
  18391. # Restore all flags from before the ALSA detection runs
  18392. CFLAGS="$alsa_save_CFLAGS"
  18393. LDFLAGS="$alsa_save_LDFLAGS"
  18394. LIBS="$alsa_save_LIBS"
  18395. if test x$have_alsa = xyes; then
  18396. # Check whether --enable-alsa-shared was given.
  18397. if test ${enable_alsa_shared+y}
  18398. then :
  18399. enableval=$enable_alsa_shared;
  18400. else $as_nop
  18401. enable_alsa_shared=yes
  18402. fi
  18403. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18404. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18405. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18406. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18407. if test x$have_loadso != xyes && \
  18408. test x$enable_alsa_shared = xyes; then
  18409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18410. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18411. fi
  18412. if test x$have_loadso = xyes && \
  18413. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18414. echo "-- dynamic libasound -> $alsa_lib"
  18415. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18416. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18417. else
  18418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18419. SUMMARY_audio="${SUMMARY_audio} alsa"
  18420. fi
  18421. have_audio=yes
  18422. fi
  18423. fi
  18424. }
  18425. CheckPipewire()
  18426. {
  18427. # Check whether --enable-pipewire was given.
  18428. if test ${enable_pipewire+y}
  18429. then :
  18430. enableval=$enable_pipewire;
  18431. else $as_nop
  18432. enable_pipewire=yes
  18433. fi
  18434. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18435. pkg_failed=no
  18436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18437. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18438. if test -n "$PIPEWIRE_CFLAGS"; then
  18439. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18440. elif test -n "$PKG_CONFIG"; then
  18441. if test -n "$PKG_CONFIG" && \
  18442. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18443. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18444. ac_status=$?
  18445. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18446. test $ac_status = 0; }; then
  18447. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18448. test "x$?" != "x0" && pkg_failed=yes
  18449. else
  18450. pkg_failed=yes
  18451. fi
  18452. else
  18453. pkg_failed=untried
  18454. fi
  18455. if test -n "$PIPEWIRE_LIBS"; then
  18456. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18457. elif test -n "$PKG_CONFIG"; then
  18458. if test -n "$PKG_CONFIG" && \
  18459. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18460. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18461. ac_status=$?
  18462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18463. test $ac_status = 0; }; then
  18464. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18465. test "x$?" != "x0" && pkg_failed=yes
  18466. else
  18467. pkg_failed=yes
  18468. fi
  18469. else
  18470. pkg_failed=untried
  18471. fi
  18472. if test $pkg_failed = yes; then
  18473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18474. printf "%s\n" "no" >&6; }
  18475. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18476. _pkg_short_errors_supported=yes
  18477. else
  18478. _pkg_short_errors_supported=no
  18479. fi
  18480. if test $_pkg_short_errors_supported = yes; then
  18481. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18482. else
  18483. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18484. fi
  18485. # Put the nasty error message in config.log where it belongs
  18486. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18487. audio_pipewire=no
  18488. elif test $pkg_failed = untried; then
  18489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18490. printf "%s\n" "no" >&6; }
  18491. audio_pipewire=no
  18492. else
  18493. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18494. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18496. printf "%s\n" "yes" >&6; }
  18497. audio_pipewire=yes
  18498. fi
  18499. if test x$audio_pipewire = xyes; then
  18500. # Check whether --enable-pipewire-shared was given.
  18501. if test ${enable_pipewire_shared+y}
  18502. then :
  18503. enableval=$enable_pipewire_shared;
  18504. else $as_nop
  18505. enable_pipewire_shared=yes
  18506. fi
  18507. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18508. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18509. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18510. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18511. if test x$have_loadso != xyes && \
  18512. test x$enable_pipewire_shared = xyes; then
  18513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18514. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18515. fi
  18516. if test x$have_loadso = xyes && \
  18517. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18518. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18519. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18520. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18521. else
  18522. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18523. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18524. fi
  18525. have_audio=yes
  18526. fi
  18527. fi
  18528. }
  18529. CheckPulseAudio()
  18530. {
  18531. # Check whether --enable-pulseaudio was given.
  18532. if test ${enable_pulseaudio+y}
  18533. then :
  18534. enableval=$enable_pulseaudio;
  18535. else $as_nop
  18536. enable_pulseaudio=yes
  18537. fi
  18538. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18539. pkg_failed=no
  18540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18541. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18542. if test -n "$PULSEAUDIO_CFLAGS"; then
  18543. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18544. elif test -n "$PKG_CONFIG"; then
  18545. if test -n "$PKG_CONFIG" && \
  18546. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18547. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18548. ac_status=$?
  18549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18550. test $ac_status = 0; }; then
  18551. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18552. test "x$?" != "x0" && pkg_failed=yes
  18553. else
  18554. pkg_failed=yes
  18555. fi
  18556. else
  18557. pkg_failed=untried
  18558. fi
  18559. if test -n "$PULSEAUDIO_LIBS"; then
  18560. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18561. elif test -n "$PKG_CONFIG"; then
  18562. if test -n "$PKG_CONFIG" && \
  18563. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18564. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18565. ac_status=$?
  18566. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18567. test $ac_status = 0; }; then
  18568. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18569. test "x$?" != "x0" && pkg_failed=yes
  18570. else
  18571. pkg_failed=yes
  18572. fi
  18573. else
  18574. pkg_failed=untried
  18575. fi
  18576. if test $pkg_failed = yes; then
  18577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18578. printf "%s\n" "no" >&6; }
  18579. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18580. _pkg_short_errors_supported=yes
  18581. else
  18582. _pkg_short_errors_supported=no
  18583. fi
  18584. if test $_pkg_short_errors_supported = yes; then
  18585. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18586. else
  18587. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18588. fi
  18589. # Put the nasty error message in config.log where it belongs
  18590. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18591. audio_pulseaudio=no
  18592. elif test $pkg_failed = untried; then
  18593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18594. printf "%s\n" "no" >&6; }
  18595. audio_pulseaudio=no
  18596. else
  18597. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18598. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18600. printf "%s\n" "yes" >&6; }
  18601. audio_pulseaudio=yes
  18602. fi
  18603. if test x$audio_pulseaudio = xyes; then
  18604. # Check whether --enable-pulseaudio-shared was given.
  18605. if test ${enable_pulseaudio_shared+y}
  18606. then :
  18607. enableval=$enable_pulseaudio_shared;
  18608. else $as_nop
  18609. enable_pulseaudio_shared=yes
  18610. fi
  18611. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18612. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18613. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18614. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18615. if test x$have_loadso != xyes && \
  18616. test x$enable_pulseaudio_shared = xyes; then
  18617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18618. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18619. fi
  18620. if test x$have_loadso = xyes && \
  18621. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18622. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18623. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18624. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18625. case "$host" in
  18626. # On Solaris, pulseaudio must be linked deferred explicitly
  18627. # to prevent undefined symbol failures.
  18628. *-*-solaris*)
  18629. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18631. esac
  18632. else
  18633. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18634. SUMMARY_audio="${SUMMARY_audio} pulse"
  18635. fi
  18636. have_audio=yes
  18637. fi
  18638. fi
  18639. }
  18640. CheckDiskAudio()
  18641. {
  18642. # Check whether --enable-diskaudio was given.
  18643. if test ${enable_diskaudio+y}
  18644. then :
  18645. enableval=$enable_diskaudio;
  18646. else $as_nop
  18647. enable_diskaudio=yes
  18648. fi
  18649. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18650. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18651. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18652. SUMMARY_audio="${SUMMARY_audio} disk"
  18653. have_audio=yes
  18654. fi
  18655. }
  18656. CheckDummyAudio()
  18657. {
  18658. # Check whether --enable-dummyaudio was given.
  18659. if test ${enable_dummyaudio+y}
  18660. then :
  18661. enableval=$enable_dummyaudio;
  18662. else $as_nop
  18663. enable_dummyaudio=yes
  18664. fi
  18665. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18666. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18667. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18668. SUMMARY_audio="${SUMMARY_audio} dummy"
  18669. have_audio=yes
  18670. fi
  18671. }
  18672. CheckLibSampleRate()
  18673. {
  18674. # Check whether --enable-libsamplerate was given.
  18675. if test ${enable_libsamplerate+y}
  18676. then :
  18677. enableval=$enable_libsamplerate;
  18678. else $as_nop
  18679. enable_libsamplerate=yes
  18680. fi
  18681. if test x$enable_libsamplerate = xyes; then
  18682. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18683. if test "x$ac_cv_header_samplerate_h" = xyes
  18684. then :
  18685. have_samplerate_h_hdr=yes
  18686. else $as_nop
  18687. have_samplerate_h_hdr=no
  18688. fi
  18689. if test x$have_samplerate_h_hdr = xyes; then
  18690. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18691. # Check whether --enable-libsamplerate-shared was given.
  18692. if test ${enable_libsamplerate_shared+y}
  18693. then :
  18694. enableval=$enable_libsamplerate_shared;
  18695. else $as_nop
  18696. enable_libsamplerate_shared=yes
  18697. fi
  18698. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18699. if test x$have_loadso != xyes && \
  18700. test x$enable_libsamplerate_shared = xyes; then
  18701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18702. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18703. fi
  18704. if test x$have_loadso = xyes && \
  18705. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18706. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18707. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  18708. else
  18709. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  18710. fi
  18711. fi
  18712. fi
  18713. }
  18714. CheckARM()
  18715. {
  18716. # Check whether --enable-arm-simd was given.
  18717. if test ${enable_arm_simd+y}
  18718. then :
  18719. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  18720. else $as_nop
  18721. enable_arm_simd=no
  18722. fi
  18723. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  18724. save_CFLAGS="$CFLAGS"
  18725. have_arm_simd=no
  18726. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  18728. printf %s "checking for ARM SIMD... " >&6; }
  18729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18730. /* end confdefs.h. */
  18731. .text
  18732. .arch armv6
  18733. .object_arch armv4
  18734. .arm
  18735. .altmacro
  18736. #ifndef __ARM_EABI__
  18737. #error EABI is required (to be sure that calling conventions are compatible)
  18738. #endif
  18739. pld [r0]
  18740. uqadd8 r0, r0, r0
  18741. _ACEOF
  18742. if ac_fn_c_try_compile "$LINENO"
  18743. then :
  18744. have_arm_simd=yes
  18745. fi
  18746. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  18748. printf "%s\n" "$have_arm_simd" >&6; }
  18749. CFLAGS="$save_CFLAGS"
  18750. if test x$have_arm_simd = xyes; then
  18751. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  18752. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  18753. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  18754. fi
  18755. fi
  18756. }
  18757. CheckNEON()
  18758. {
  18759. # Check whether --enable-arm-neon was given.
  18760. if test ${enable_arm_neon+y}
  18761. then :
  18762. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  18763. else $as_nop
  18764. enable_arm_neon=no
  18765. fi
  18766. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  18767. save_CFLAGS="$CFLAGS"
  18768. have_arm_neon=no
  18769. CFLAGS="-x assembler-with-cpp $CFLAGS"
  18770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  18771. printf %s "checking for ARM NEON... " >&6; }
  18772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18773. /* end confdefs.h. */
  18774. .text
  18775. .fpu neon
  18776. .arch armv7a
  18777. .object_arch armv4
  18778. .eabi_attribute 10, 0
  18779. .arm
  18780. .altmacro
  18781. #ifndef __ARM_EABI__
  18782. #error EABI is required (to be sure that calling conventions are compatible)
  18783. #endif
  18784. pld [r0]
  18785. vmovn.u16 d0, q0
  18786. _ACEOF
  18787. if ac_fn_c_try_compile "$LINENO"
  18788. then :
  18789. have_arm_neon=yes
  18790. fi
  18791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  18793. printf "%s\n" "$have_arm_neon" >&6; }
  18794. CFLAGS="$save_CFLAGS"
  18795. if test x$have_arm_neon = xyes; then
  18796. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  18797. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  18798. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  18799. fi
  18800. fi
  18801. }
  18802. CheckObjectiveCARC()
  18803. {
  18804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  18805. printf %s "checking for clang -fobjc-arc option... " >&6; }
  18806. have_clang_objc_arc=no
  18807. save_CFLAGS="$CFLAGS"
  18808. CFLAGS="$save_CFLAGS -fobjc-arc"
  18809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18810. /* end confdefs.h. */
  18811. int x = 0;
  18812. int
  18813. main (void)
  18814. {
  18815. ;
  18816. return 0;
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_compile "$LINENO"
  18820. then :
  18821. have_clang_objc_arc=yes
  18822. fi
  18823. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  18825. printf "%s\n" "$have_clang_objc_arc" >&6; }
  18826. CFLAGS="$save_CFLAGS"
  18827. if test x$have_clang_objc_arc = xyes; then
  18828. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  18829. fi
  18830. }
  18831. CheckGDwarf4()
  18832. {
  18833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  18834. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  18835. have_gcc_gdwarf4=no
  18836. save_CFLAGS="$CFLAGS"
  18837. CFLAGS="$save_CFLAGS -gdwarf-4"
  18838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18839. /* end confdefs.h. */
  18840. int x = 0;
  18841. int
  18842. main (void)
  18843. {
  18844. ;
  18845. return 0;
  18846. }
  18847. _ACEOF
  18848. if ac_fn_c_try_compile "$LINENO"
  18849. then :
  18850. have_gcc_gdwarf4=yes
  18851. fi
  18852. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  18854. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  18855. CFLAGS="$save_CFLAGS"
  18856. if test x$have_gcc_gdwarf4 = xyes; then
  18857. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  18858. fi
  18859. }
  18860. CheckVisibilityHidden()
  18861. {
  18862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  18863. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  18864. have_gcc_fvisibility=no
  18865. visibility_CFLAGS="-fvisibility=hidden"
  18866. save_CFLAGS="$CFLAGS"
  18867. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  18868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18869. /* end confdefs.h. */
  18870. #if !defined(__GNUC__) || __GNUC__ < 4
  18871. #error SDL only uses visibility attributes in GCC 4 or newer
  18872. #endif
  18873. int
  18874. main (void)
  18875. {
  18876. ;
  18877. return 0;
  18878. }
  18879. _ACEOF
  18880. if ac_fn_c_try_compile "$LINENO"
  18881. then :
  18882. have_gcc_fvisibility=yes
  18883. fi
  18884. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  18886. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  18887. CFLAGS="$save_CFLAGS"
  18888. if test x$have_gcc_fvisibility = xyes; then
  18889. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  18890. fi
  18891. }
  18892. CheckNoStrictAliasing()
  18893. {
  18894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  18895. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  18896. have_gcc_no_strict_aliasing=no
  18897. save_CFLAGS="$CFLAGS"
  18898. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  18899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18900. /* end confdefs.h. */
  18901. int x = 0;
  18902. int
  18903. main (void)
  18904. {
  18905. ;
  18906. return 0;
  18907. }
  18908. _ACEOF
  18909. if ac_fn_c_try_compile "$LINENO"
  18910. then :
  18911. have_gcc_no_strict_aliasing=yes
  18912. fi
  18913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  18915. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  18916. CFLAGS="$save_CFLAGS"
  18917. if test x$have_gcc_no_strict_aliasing = xyes; then
  18918. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  18919. fi
  18920. }
  18921. CheckStackBoundary()
  18922. {
  18923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  18924. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  18925. have_gcc_preferred_stack_boundary=no
  18926. save_CFLAGS="$CFLAGS"
  18927. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  18928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18929. /* end confdefs.h. */
  18930. int x = 0;
  18931. int
  18932. main (void)
  18933. {
  18934. ;
  18935. return 0;
  18936. }
  18937. _ACEOF
  18938. if ac_fn_c_try_compile "$LINENO"
  18939. then :
  18940. have_gcc_preferred_stack_boundary=yes
  18941. fi
  18942. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  18944. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  18945. CFLAGS="$save_CFLAGS"
  18946. if test x$have_gcc_preferred_stack_boundary = xyes; then
  18947. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  18948. fi
  18949. }
  18950. CheckWerror()
  18951. {
  18952. # Check whether --enable-werror was given.
  18953. if test ${enable_werror+y}
  18954. then :
  18955. enableval=$enable_werror; enable_werror=$enableval
  18956. else $as_nop
  18957. enable_werror=no
  18958. fi
  18959. if test x$enable_werror = xyes; then
  18960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  18961. printf %s "checking for GCC -Werror option... " >&6; }
  18962. have_gcc_werror=no
  18963. save_CFLAGS="$CFLAGS"
  18964. CFLAGS="$save_CFLAGS -Werror"
  18965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18966. /* end confdefs.h. */
  18967. int x = 0;
  18968. int
  18969. main (void)
  18970. {
  18971. ;
  18972. return 0;
  18973. }
  18974. _ACEOF
  18975. if ac_fn_c_try_compile "$LINENO"
  18976. then :
  18977. have_gcc_werror=yes
  18978. fi
  18979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  18981. printf "%s\n" "$have_gcc_werror" >&6; }
  18982. CFLAGS="$save_CFLAGS"
  18983. if test x$have_gcc_werror = xyes; then
  18984. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  18985. fi
  18986. fi
  18987. }
  18988. CheckNoErrorDeprecatedDeclarationsWerror()
  18989. {
  18990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  18991. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  18992. have_gcc_no_werror_deprecated_declarations=no
  18993. save_CFLAGS="$CFLAGS"
  18994. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  18995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18996. /* end confdefs.h. */
  18997. int x = 0;
  18998. int
  18999. main (void)
  19000. {
  19001. ;
  19002. return 0;
  19003. }
  19004. _ACEOF
  19005. if ac_fn_c_try_compile "$LINENO"
  19006. then :
  19007. have_gcc_no_werror_deprecated_declarations=yes
  19008. fi
  19009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19011. printf "%s\n" "$have_gcc_werror" >&6; }
  19012. CFLAGS="$save_CFLAGS"
  19013. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19014. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19015. fi
  19016. }
  19017. CheckDeclarationAfterStatement()
  19018. {
  19019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19020. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19021. have_gcc_declaration_after_statement=no
  19022. save_CFLAGS="$CFLAGS"
  19023. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19025. /* end confdefs.h. */
  19026. int x = 0;
  19027. int
  19028. main (void)
  19029. {
  19030. ;
  19031. return 0;
  19032. }
  19033. _ACEOF
  19034. if ac_fn_c_try_compile "$LINENO"
  19035. then :
  19036. have_gcc_declaration_after_statement=yes
  19037. fi
  19038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19040. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19041. CFLAGS="$save_CFLAGS"
  19042. if test x$have_gcc_declaration_after_statement = xyes; then
  19043. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19044. fi
  19045. }
  19046. CheckWarnAll()
  19047. {
  19048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19049. printf %s "checking for GCC -Wall option... " >&6; }
  19050. have_gcc_Wall=no
  19051. save_CFLAGS="$CFLAGS"
  19052. CFLAGS="$save_CFLAGS -Wall"
  19053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19054. /* end confdefs.h. */
  19055. int x = 0;
  19056. int
  19057. main (void)
  19058. {
  19059. ;
  19060. return 0;
  19061. }
  19062. _ACEOF
  19063. if ac_fn_c_try_compile "$LINENO"
  19064. then :
  19065. have_gcc_Wall=yes
  19066. fi
  19067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19069. printf "%s\n" "$have_gcc_Wall" >&6; }
  19070. CFLAGS="$save_CFLAGS"
  19071. if test x$have_gcc_Wall = xyes; then
  19072. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19074. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19075. need_gcc_Wno_multichar=no
  19076. case "$host" in
  19077. *-*-haiku*)
  19078. need_gcc_Wno_multichar=yes
  19079. ;;
  19080. esac
  19081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19082. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19083. if test x$need_gcc_Wno_multichar = xyes; then
  19084. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19085. fi
  19086. fi
  19087. }
  19088. CheckWayland()
  19089. {
  19090. # Check whether --enable-video-wayland was given.
  19091. if test ${enable_video_wayland+y}
  19092. then :
  19093. enableval=$enable_video_wayland;
  19094. else $as_nop
  19095. enable_video_wayland=yes
  19096. fi
  19097. # Check whether --enable-video-wayland-qt-touch was given.
  19098. if test ${enable_video_wayland_qt_touch+y}
  19099. then :
  19100. enableval=$enable_video_wayland_qt_touch;
  19101. else $as_nop
  19102. enable_video_wayland_qt_touch=yes
  19103. fi
  19104. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19106. printf %s "checking for Wayland support... " >&6; }
  19107. video_wayland=no
  19108. if test x$video_opengl_egl = xyes && \
  19109. test x$video_opengles_v2 = xyes; then
  19110. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19111. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19112. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19113. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19114. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19115. then :
  19116. WAYLAND_SCANNER_CODE_MODE=private-code
  19117. else $as_nop
  19118. WAYLAND_SCANNER_CODE_MODE=code
  19119. fi
  19120. video_wayland=yes
  19121. fi
  19122. fi
  19123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19124. printf "%s\n" "$video_wayland" >&6; }
  19125. if test x$video_wayland = xyes; then
  19126. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19127. if test x$enable_video_wayland_qt_touch = xyes; then
  19128. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19129. fi
  19130. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19131. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19132. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19133. # Check whether --enable-wayland-shared was given.
  19134. if test ${enable_wayland_shared+y}
  19135. then :
  19136. enableval=$enable_wayland_shared;
  19137. else $as_nop
  19138. enable_wayland_shared=maybe
  19139. fi
  19140. case "$host" in
  19141. *)
  19142. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19143. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19144. if test x$wayland_egl_lib = x; then
  19145. # This works in Ubuntu 13.10, maybe others
  19146. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19147. fi
  19148. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19149. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19150. ;;
  19151. esac
  19152. if test x$enable_wayland_shared = xmaybe; then
  19153. enable_wayland_shared=yes
  19154. fi
  19155. if test x$have_loadso != xyes && \
  19156. test x$enable_wayland_shared = xyes; then
  19157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19158. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19159. enable_wayland_shared=no
  19160. fi
  19161. if test x$have_loadso = xyes && \
  19162. test x$enable_wayland_shared = xyes && \
  19163. test x$wayland_client_lib != x && \
  19164. test x$wayland_egl_lib != x && \
  19165. test x$wayland_cursor_lib != x && \
  19166. test x$xkbcommon_lib != x; then
  19167. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19168. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19169. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19170. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19171. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19172. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19173. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19174. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19175. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19176. else
  19177. enable_wayland_shared=no
  19178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19179. SUMMARY_video="${SUMMARY_video} wayland"
  19180. fi
  19181. have_video=yes
  19182. # Check whether --enable-libdecor was given.
  19183. if test ${enable_libdecor+y}
  19184. then :
  19185. enableval=$enable_libdecor;
  19186. else $as_nop
  19187. enable_libdecor=yes
  19188. fi
  19189. if test x$enable_libdecor = xyes; then
  19190. pkg_failed=no
  19191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19192. printf %s "checking for libdecor-0... " >&6; }
  19193. if test -n "$DECOR_CFLAGS"; then
  19194. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19195. elif test -n "$PKG_CONFIG"; then
  19196. if test -n "$PKG_CONFIG" && \
  19197. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19198. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19199. ac_status=$?
  19200. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19201. test $ac_status = 0; }; then
  19202. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19203. test "x$?" != "x0" && pkg_failed=yes
  19204. else
  19205. pkg_failed=yes
  19206. fi
  19207. else
  19208. pkg_failed=untried
  19209. fi
  19210. if test -n "$DECOR_LIBS"; then
  19211. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19212. elif test -n "$PKG_CONFIG"; then
  19213. if test -n "$PKG_CONFIG" && \
  19214. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19215. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19216. ac_status=$?
  19217. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19218. test $ac_status = 0; }; then
  19219. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19220. test "x$?" != "x0" && pkg_failed=yes
  19221. else
  19222. pkg_failed=yes
  19223. fi
  19224. else
  19225. pkg_failed=untried
  19226. fi
  19227. if test $pkg_failed = yes; then
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19229. printf "%s\n" "no" >&6; }
  19230. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19231. _pkg_short_errors_supported=yes
  19232. else
  19233. _pkg_short_errors_supported=no
  19234. fi
  19235. if test $_pkg_short_errors_supported = yes; then
  19236. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19237. else
  19238. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19239. fi
  19240. # Put the nasty error message in config.log where it belongs
  19241. echo "$DECOR_PKG_ERRORS" >&5
  19242. video_libdecor=no
  19243. elif test $pkg_failed = untried; then
  19244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19245. printf "%s\n" "no" >&6; }
  19246. video_libdecor=no
  19247. else
  19248. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19249. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19251. printf "%s\n" "yes" >&6; }
  19252. video_libdecor=yes
  19253. fi
  19254. if test x$video_libdecor = xyes; then
  19255. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19256. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19257. # Check whether --enable-libdecor-shared was given.
  19258. if test ${enable_libdecor_shared+y}
  19259. then :
  19260. enableval=$enable_libdecor_shared;
  19261. else $as_nop
  19262. enable_libdecor_shared=yes
  19263. fi
  19264. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19265. if test x$enable_wayland_shared != xyes; then
  19266. enable_libdecor_shared=no
  19267. fi
  19268. if test x$have_loadso != xyes && \
  19269. test x$enable_libdecor_shared = xyes; then
  19270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19271. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19272. fi
  19273. if test x$have_loadso = xyes && \
  19274. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19275. echo "-- dynamic libdecor -> $decor_lib"
  19276. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19277. else
  19278. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19279. fi
  19280. fi
  19281. fi
  19282. fi
  19283. fi
  19284. }
  19285. CheckRPI()
  19286. {
  19287. # Check whether --enable-video-rpi was given.
  19288. if test ${enable_video_rpi+y}
  19289. then :
  19290. enableval=$enable_video_rpi;
  19291. else $as_nop
  19292. enable_video_rpi=yes
  19293. fi
  19294. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19295. pkg_failed=no
  19296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19297. printf %s "checking for bcm_host brcmegl... " >&6; }
  19298. if test -n "$RPI_CFLAGS"; then
  19299. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19300. elif test -n "$PKG_CONFIG"; then
  19301. if test -n "$PKG_CONFIG" && \
  19302. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19303. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19304. ac_status=$?
  19305. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19306. test $ac_status = 0; }; then
  19307. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19308. test "x$?" != "x0" && pkg_failed=yes
  19309. else
  19310. pkg_failed=yes
  19311. fi
  19312. else
  19313. pkg_failed=untried
  19314. fi
  19315. if test -n "$RPI_LIBS"; then
  19316. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19317. elif test -n "$PKG_CONFIG"; then
  19318. if test -n "$PKG_CONFIG" && \
  19319. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19320. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19321. ac_status=$?
  19322. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19323. test $ac_status = 0; }; then
  19324. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19325. test "x$?" != "x0" && pkg_failed=yes
  19326. else
  19327. pkg_failed=yes
  19328. fi
  19329. else
  19330. pkg_failed=untried
  19331. fi
  19332. if test $pkg_failed = yes; then
  19333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19334. printf "%s\n" "no" >&6; }
  19335. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19336. _pkg_short_errors_supported=yes
  19337. else
  19338. _pkg_short_errors_supported=no
  19339. fi
  19340. if test $_pkg_short_errors_supported = yes; then
  19341. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19342. else
  19343. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19344. fi
  19345. # Put the nasty error message in config.log where it belongs
  19346. echo "$RPI_PKG_ERRORS" >&5
  19347. video_rpi=no
  19348. elif test $pkg_failed = untried; then
  19349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19350. printf "%s\n" "no" >&6; }
  19351. video_rpi=no
  19352. else
  19353. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19354. RPI_LIBS=$pkg_cv_RPI_LIBS
  19355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19356. printf "%s\n" "yes" >&6; }
  19357. video_rpi=yes
  19358. fi
  19359. if test x$video_rpi = xno; then
  19360. if test x$ARCH = xnetbsd; then
  19361. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19362. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19363. else
  19364. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19365. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19366. fi
  19367. fi
  19368. # Save the original compiler flags and libraries
  19369. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19370. # Add the Raspberry Pi compiler flags and libraries
  19371. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19373. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19374. have_video_rpi=no
  19375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19376. /* end confdefs.h. */
  19377. #include <bcm_host.h>
  19378. #include <EGL/eglplatform.h>
  19379. int
  19380. main (void)
  19381. {
  19382. EGL_DISPMANX_WINDOW_T window;
  19383. bcm_host_init();
  19384. ;
  19385. return 0;
  19386. }
  19387. _ACEOF
  19388. if ac_fn_c_try_link "$LINENO"
  19389. then :
  19390. have_video_rpi=yes
  19391. fi
  19392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19393. conftest$ac_exeext conftest.$ac_ext
  19394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19395. printf "%s\n" "$have_video_rpi" >&6; }
  19396. # Restore the compiler flags and libraries
  19397. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19398. if test x$have_video_rpi = xyes; then
  19399. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19400. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19401. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19403. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19404. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19405. SUMMARY_video="${SUMMARY_video} rpi"
  19406. have_video=yes
  19407. fi
  19408. fi
  19409. }
  19410. CheckX11()
  19411. {
  19412. # Check whether --enable-video-x11 was given.
  19413. if test ${enable_video_x11+y}
  19414. then :
  19415. enableval=$enable_video_x11;
  19416. else $as_nop
  19417. enable_video_x11=yes
  19418. case "$host" in
  19419. *-*-darwin*|*-ios-*)
  19420. enable_video_x11=no
  19421. ;;
  19422. esac
  19423. fi
  19424. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19425. case "$host" in
  19426. *-*-darwin*)
  19427. # This isn't necessary for X11, but fixes GLX detection
  19428. if test "x$x_includes" = xNONE && \
  19429. test "x$x_libraries" = xNONE && \
  19430. test -d /opt/X11/include && \
  19431. test -d /opt/X11/lib; then
  19432. x_includes="/opt/X11/include"
  19433. x_libraries="/opt/X11/lib"
  19434. fi
  19435. ;;
  19436. esac
  19437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19438. printf %s "checking for X... " >&6; }
  19439. # Check whether --with-x was given.
  19440. if test ${with_x+y}
  19441. then :
  19442. withval=$with_x;
  19443. fi
  19444. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19445. if test "x$with_x" = xno; then
  19446. # The user explicitly disabled X.
  19447. have_x=disabled
  19448. else
  19449. case $x_includes,$x_libraries in #(
  19450. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19451. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19452. then :
  19453. printf %s "(cached) " >&6
  19454. else $as_nop
  19455. # One or both of the vars are not set, and there is no cached value.
  19456. ac_x_includes=no
  19457. ac_x_libraries=no
  19458. # Do we need to do anything special at all?
  19459. ac_save_LIBS=$LIBS
  19460. LIBS="-lX11 $LIBS"
  19461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19462. /* end confdefs.h. */
  19463. #include <X11/Xlib.h>
  19464. int
  19465. main (void)
  19466. {
  19467. XrmInitialize ()
  19468. ;
  19469. return 0;
  19470. }
  19471. _ACEOF
  19472. if ac_fn_c_try_link "$LINENO"
  19473. then :
  19474. # We can compile and link X programs with no special options.
  19475. ac_x_includes=
  19476. ac_x_libraries=
  19477. fi
  19478. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19479. conftest$ac_exeext conftest.$ac_ext
  19480. LIBS="$ac_save_LIBS"
  19481. # If that didn't work, only try xmkmf and file system searches
  19482. # for native compilation.
  19483. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19484. then :
  19485. rm -f -r conftest.dir
  19486. if mkdir conftest.dir; then
  19487. cd conftest.dir
  19488. cat >Imakefile <<'_ACEOF'
  19489. incroot:
  19490. @echo incroot='${INCROOT}'
  19491. usrlibdir:
  19492. @echo usrlibdir='${USRLIBDIR}'
  19493. libdir:
  19494. @echo libdir='${LIBDIR}'
  19495. _ACEOF
  19496. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19497. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19498. for ac_var in incroot usrlibdir libdir; do
  19499. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19500. done
  19501. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19502. for ac_extension in a so sl dylib la dll; do
  19503. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19504. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19505. ac_im_usrlibdir=$ac_im_libdir; break
  19506. fi
  19507. done
  19508. # Screen out bogus values from the imake configuration. They are
  19509. # bogus both because they are the default anyway, and because
  19510. # using them would break gcc on systems where it needs fixed includes.
  19511. case $ac_im_incroot in
  19512. /usr/include) ac_x_includes= ;;
  19513. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19514. esac
  19515. case $ac_im_usrlibdir in
  19516. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19517. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19518. esac
  19519. fi
  19520. cd ..
  19521. rm -f -r conftest.dir
  19522. fi
  19523. # Standard set of common directories for X headers.
  19524. # Check X11 before X11Rn because it is often a symlink to the current release.
  19525. ac_x_header_dirs='
  19526. /usr/X11/include
  19527. /usr/X11R7/include
  19528. /usr/X11R6/include
  19529. /usr/X11R5/include
  19530. /usr/X11R4/include
  19531. /usr/include/X11
  19532. /usr/include/X11R7
  19533. /usr/include/X11R6
  19534. /usr/include/X11R5
  19535. /usr/include/X11R4
  19536. /usr/local/X11/include
  19537. /usr/local/X11R7/include
  19538. /usr/local/X11R6/include
  19539. /usr/local/X11R5/include
  19540. /usr/local/X11R4/include
  19541. /usr/local/include/X11
  19542. /usr/local/include/X11R7
  19543. /usr/local/include/X11R6
  19544. /usr/local/include/X11R5
  19545. /usr/local/include/X11R4
  19546. /opt/X11/include
  19547. /usr/X386/include
  19548. /usr/x386/include
  19549. /usr/XFree86/include/X11
  19550. /usr/include
  19551. /usr/local/include
  19552. /usr/unsupported/include
  19553. /usr/athena/include
  19554. /usr/local/x11r5/include
  19555. /usr/lpp/Xamples/include
  19556. /usr/openwin/include
  19557. /usr/openwin/share/include'
  19558. if test "$ac_x_includes" = no; then
  19559. # Guess where to find include files, by looking for Xlib.h.
  19560. # First, try using that file with no special directory specified.
  19561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19562. /* end confdefs.h. */
  19563. #include <X11/Xlib.h>
  19564. _ACEOF
  19565. if ac_fn_c_try_cpp "$LINENO"
  19566. then :
  19567. # We can compile using X headers with no special include directory.
  19568. ac_x_includes=
  19569. else $as_nop
  19570. for ac_dir in $ac_x_header_dirs; do
  19571. if test -r "$ac_dir/X11/Xlib.h"; then
  19572. ac_x_includes=$ac_dir
  19573. break
  19574. fi
  19575. done
  19576. fi
  19577. rm -f conftest.err conftest.i conftest.$ac_ext
  19578. fi # $ac_x_includes = no
  19579. if test "$ac_x_libraries" = no; then
  19580. # Check for the libraries.
  19581. # See if we find them without any special options.
  19582. # Don't add to $LIBS permanently.
  19583. ac_save_LIBS=$LIBS
  19584. LIBS="-lX11 $LIBS"
  19585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19586. /* end confdefs.h. */
  19587. #include <X11/Xlib.h>
  19588. int
  19589. main (void)
  19590. {
  19591. XrmInitialize ()
  19592. ;
  19593. return 0;
  19594. }
  19595. _ACEOF
  19596. if ac_fn_c_try_link "$LINENO"
  19597. then :
  19598. LIBS=$ac_save_LIBS
  19599. # We can link X programs with no special library path.
  19600. ac_x_libraries=
  19601. else $as_nop
  19602. LIBS=$ac_save_LIBS
  19603. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19604. do
  19605. # Don't even attempt the hair of trying to link an X program!
  19606. for ac_extension in a so sl dylib la dll; do
  19607. if test -r "$ac_dir/libX11.$ac_extension"; then
  19608. ac_x_libraries=$ac_dir
  19609. break 2
  19610. fi
  19611. done
  19612. done
  19613. fi
  19614. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19615. conftest$ac_exeext conftest.$ac_ext
  19616. fi # $ac_x_libraries = no
  19617. fi
  19618. # Record the results.
  19619. case $ac_x_includes,$ac_x_libraries in #(
  19620. no,* | *,no | *\'*) :
  19621. # Didn't find X, or a directory has "'" in its name.
  19622. ac_cv_have_x="have_x=no" ;; #(
  19623. *) :
  19624. # Record where we found X for the cache.
  19625. ac_cv_have_x="have_x=yes\
  19626. ac_x_includes='$ac_x_includes'\
  19627. ac_x_libraries='$ac_x_libraries'" ;;
  19628. esac
  19629. fi
  19630. ;; #(
  19631. *) have_x=yes;;
  19632. esac
  19633. eval "$ac_cv_have_x"
  19634. fi # $with_x != no
  19635. if test "$have_x" != yes; then
  19636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19637. printf "%s\n" "$have_x" >&6; }
  19638. no_x=yes
  19639. else
  19640. # If each of the values was on the command line, it overrides each guess.
  19641. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19642. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19643. # Update the cache value to reflect the command line values.
  19644. ac_cv_have_x="have_x=yes\
  19645. ac_x_includes='$x_includes'\
  19646. ac_x_libraries='$x_libraries'"
  19647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19648. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19649. fi
  19650. if test "$no_x" = yes; then
  19651. # Not all programs may use this symbol, but it does not hurt to define it.
  19652. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19653. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19654. else
  19655. if test -n "$x_includes"; then
  19656. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19657. fi
  19658. # It would also be nice to do this for all -L options, not just this one.
  19659. if test -n "$x_libraries"; then
  19660. X_LIBS="$X_LIBS -L$x_libraries"
  19661. # For Solaris; some versions of Sun CC require a space after -R and
  19662. # others require no space. Words are not sufficient . . . .
  19663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19664. printf %s "checking whether -R must be followed by a space... " >&6; }
  19665. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19666. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19667. ac_c_werror_flag=yes
  19668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19669. /* end confdefs.h. */
  19670. int
  19671. main (void)
  19672. {
  19673. ;
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. if ac_fn_c_try_link "$LINENO"
  19678. then :
  19679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19680. printf "%s\n" "no" >&6; }
  19681. X_LIBS="$X_LIBS -R$x_libraries"
  19682. else $as_nop
  19683. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. int
  19687. main (void)
  19688. {
  19689. ;
  19690. return 0;
  19691. }
  19692. _ACEOF
  19693. if ac_fn_c_try_link "$LINENO"
  19694. then :
  19695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19696. printf "%s\n" "yes" >&6; }
  19697. X_LIBS="$X_LIBS -R $x_libraries"
  19698. else $as_nop
  19699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19700. printf "%s\n" "neither works" >&6; }
  19701. fi
  19702. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19703. conftest$ac_exeext conftest.$ac_ext
  19704. fi
  19705. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19706. conftest$ac_exeext conftest.$ac_ext
  19707. ac_c_werror_flag=$ac_xsave_c_werror_flag
  19708. LIBS=$ac_xsave_LIBS
  19709. fi
  19710. # Check for system-dependent libraries X programs must link with.
  19711. # Do this before checking for the system-independent R6 libraries
  19712. # (-lICE), since we may need -lsocket or whatever for X linking.
  19713. if test "$ISC" = yes; then
  19714. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  19715. else
  19716. # Martyn Johnson says this is needed for Ultrix, if the X
  19717. # libraries were built with DECnet support. And Karl Berry says
  19718. # the Alpha needs dnet_stub (dnet does not exist).
  19719. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  19720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19721. /* end confdefs.h. */
  19722. /* Override any GCC internal prototype to avoid an error.
  19723. Use char because int might match the return type of a GCC
  19724. builtin and then its argument prototype would still apply. */
  19725. char XOpenDisplay ();
  19726. int
  19727. main (void)
  19728. {
  19729. return XOpenDisplay ();
  19730. ;
  19731. return 0;
  19732. }
  19733. _ACEOF
  19734. if ac_fn_c_try_link "$LINENO"
  19735. then :
  19736. else $as_nop
  19737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  19738. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  19739. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  19740. then :
  19741. printf %s "(cached) " >&6
  19742. else $as_nop
  19743. ac_check_lib_save_LIBS=$LIBS
  19744. LIBS="-ldnet $LIBS"
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. /* Override any GCC internal prototype to avoid an error.
  19748. Use char because int might match the return type of a GCC
  19749. builtin and then its argument prototype would still apply. */
  19750. char dnet_ntoa ();
  19751. int
  19752. main (void)
  19753. {
  19754. return dnet_ntoa ();
  19755. ;
  19756. return 0;
  19757. }
  19758. _ACEOF
  19759. if ac_fn_c_try_link "$LINENO"
  19760. then :
  19761. ac_cv_lib_dnet_dnet_ntoa=yes
  19762. else $as_nop
  19763. ac_cv_lib_dnet_dnet_ntoa=no
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19766. conftest$ac_exeext conftest.$ac_ext
  19767. LIBS=$ac_check_lib_save_LIBS
  19768. fi
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  19770. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  19771. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  19772. then :
  19773. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  19774. fi
  19775. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  19776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  19777. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  19778. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  19779. then :
  19780. printf %s "(cached) " >&6
  19781. else $as_nop
  19782. ac_check_lib_save_LIBS=$LIBS
  19783. LIBS="-ldnet_stub $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_stub_dnet_ntoa=yes
  19801. else $as_nop
  19802. ac_cv_lib_dnet_stub_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_stub_dnet_ntoa" >&5
  19809. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  19810. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  19811. then :
  19812. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  19813. fi
  19814. fi
  19815. fi
  19816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19817. conftest$ac_exeext conftest.$ac_ext
  19818. LIBS="$ac_xsave_LIBS"
  19819. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  19820. # to get the SysV transport functions.
  19821. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  19822. # needs -lnsl.
  19823. # The nsl library prevents programs from opening the X display
  19824. # on Irix 5.2, according to T.E. Dickey.
  19825. # The functions gethostbyname, getservbyname, and inet_addr are
  19826. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  19827. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  19828. if test "x$ac_cv_func_gethostbyname" = xyes
  19829. then :
  19830. fi
  19831. if test $ac_cv_func_gethostbyname = no; then
  19832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  19833. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  19834. if test ${ac_cv_lib_nsl_gethostbyname+y}
  19835. then :
  19836. printf %s "(cached) " >&6
  19837. else $as_nop
  19838. ac_check_lib_save_LIBS=$LIBS
  19839. LIBS="-lnsl $LIBS"
  19840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19841. /* end confdefs.h. */
  19842. /* Override any GCC internal prototype to avoid an error.
  19843. Use char because int might match the return type of a GCC
  19844. builtin and then its argument prototype would still apply. */
  19845. char gethostbyname ();
  19846. int
  19847. main (void)
  19848. {
  19849. return gethostbyname ();
  19850. ;
  19851. return 0;
  19852. }
  19853. _ACEOF
  19854. if ac_fn_c_try_link "$LINENO"
  19855. then :
  19856. ac_cv_lib_nsl_gethostbyname=yes
  19857. else $as_nop
  19858. ac_cv_lib_nsl_gethostbyname=no
  19859. fi
  19860. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19861. conftest$ac_exeext conftest.$ac_ext
  19862. LIBS=$ac_check_lib_save_LIBS
  19863. fi
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19865. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  19866. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  19867. then :
  19868. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19869. fi
  19870. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  19872. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  19873. if test ${ac_cv_lib_bsd_gethostbyname+y}
  19874. then :
  19875. printf %s "(cached) " >&6
  19876. else $as_nop
  19877. ac_check_lib_save_LIBS=$LIBS
  19878. LIBS="-lbsd $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_bsd_gethostbyname=yes
  19896. else $as_nop
  19897. ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
  19904. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  19905. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  19906. then :
  19907. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19908. fi
  19909. fi
  19910. fi
  19911. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19912. # socket/setsockopt and other routines are undefined under SCO ODT
  19913. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19914. # on later versions), says Simon Leinen: it contains gethostby*
  19915. # variants that don't use the name server (or something). -lsocket
  19916. # must be given before -lnsl if both are needed. We assume that
  19917. # if connect needs -lnsl, so does gethostbyname.
  19918. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  19919. if test "x$ac_cv_func_connect" = xyes
  19920. then :
  19921. fi
  19922. if test $ac_cv_func_connect = no; then
  19923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  19924. printf %s "checking for connect in -lsocket... " >&6; }
  19925. if test ${ac_cv_lib_socket_connect+y}
  19926. then :
  19927. printf %s "(cached) " >&6
  19928. else $as_nop
  19929. ac_check_lib_save_LIBS=$LIBS
  19930. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19932. /* end confdefs.h. */
  19933. /* Override any GCC internal prototype to avoid an error.
  19934. Use char because int might match the return type of a GCC
  19935. builtin and then its argument prototype would still apply. */
  19936. char connect ();
  19937. int
  19938. main (void)
  19939. {
  19940. return connect ();
  19941. ;
  19942. return 0;
  19943. }
  19944. _ACEOF
  19945. if ac_fn_c_try_link "$LINENO"
  19946. then :
  19947. ac_cv_lib_socket_connect=yes
  19948. else $as_nop
  19949. ac_cv_lib_socket_connect=no
  19950. fi
  19951. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19952. conftest$ac_exeext conftest.$ac_ext
  19953. LIBS=$ac_check_lib_save_LIBS
  19954. fi
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  19956. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  19957. if test "x$ac_cv_lib_socket_connect" = xyes
  19958. then :
  19959. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19960. fi
  19961. fi
  19962. # Guillermo Gomez says -lposix is necessary on A/UX.
  19963. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  19964. if test "x$ac_cv_func_remove" = xyes
  19965. then :
  19966. fi
  19967. if test $ac_cv_func_remove = no; then
  19968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  19969. printf %s "checking for remove in -lposix... " >&6; }
  19970. if test ${ac_cv_lib_posix_remove+y}
  19971. then :
  19972. printf %s "(cached) " >&6
  19973. else $as_nop
  19974. ac_check_lib_save_LIBS=$LIBS
  19975. LIBS="-lposix $LIBS"
  19976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19977. /* end confdefs.h. */
  19978. /* Override any GCC internal prototype to avoid an error.
  19979. Use char because int might match the return type of a GCC
  19980. builtin and then its argument prototype would still apply. */
  19981. char remove ();
  19982. int
  19983. main (void)
  19984. {
  19985. return remove ();
  19986. ;
  19987. return 0;
  19988. }
  19989. _ACEOF
  19990. if ac_fn_c_try_link "$LINENO"
  19991. then :
  19992. ac_cv_lib_posix_remove=yes
  19993. else $as_nop
  19994. ac_cv_lib_posix_remove=no
  19995. fi
  19996. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19997. conftest$ac_exeext conftest.$ac_ext
  19998. LIBS=$ac_check_lib_save_LIBS
  19999. fi
  20000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20001. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20002. if test "x$ac_cv_lib_posix_remove" = xyes
  20003. then :
  20004. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20005. fi
  20006. fi
  20007. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20008. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20009. if test "x$ac_cv_func_shmat" = xyes
  20010. then :
  20011. fi
  20012. if test $ac_cv_func_shmat = no; then
  20013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20014. printf %s "checking for shmat in -lipc... " >&6; }
  20015. if test ${ac_cv_lib_ipc_shmat+y}
  20016. then :
  20017. printf %s "(cached) " >&6
  20018. else $as_nop
  20019. ac_check_lib_save_LIBS=$LIBS
  20020. LIBS="-lipc $LIBS"
  20021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20022. /* end confdefs.h. */
  20023. /* Override any GCC internal prototype to avoid an error.
  20024. Use char because int might match the return type of a GCC
  20025. builtin and then its argument prototype would still apply. */
  20026. char shmat ();
  20027. int
  20028. main (void)
  20029. {
  20030. return shmat ();
  20031. ;
  20032. return 0;
  20033. }
  20034. _ACEOF
  20035. if ac_fn_c_try_link "$LINENO"
  20036. then :
  20037. ac_cv_lib_ipc_shmat=yes
  20038. else $as_nop
  20039. ac_cv_lib_ipc_shmat=no
  20040. fi
  20041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20042. conftest$ac_exeext conftest.$ac_ext
  20043. LIBS=$ac_check_lib_save_LIBS
  20044. fi
  20045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20046. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20047. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20048. then :
  20049. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20050. fi
  20051. fi
  20052. fi
  20053. # Check for libraries that X11R6 Xt/Xaw programs need.
  20054. ac_save_LDFLAGS=$LDFLAGS
  20055. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20056. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20057. # check for ICE first), but we must link in the order -lSM -lICE or
  20058. # we get undefined symbols. So assume we have SM if we have ICE.
  20059. # These have to be linked with before -lX11, unlike the other
  20060. # libraries we check for below, so use a different variable.
  20061. # John Interrante, Karl Berry
  20062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20063. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20064. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20065. then :
  20066. printf %s "(cached) " >&6
  20067. else $as_nop
  20068. ac_check_lib_save_LIBS=$LIBS
  20069. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20071. /* end confdefs.h. */
  20072. /* Override any GCC internal prototype to avoid an error.
  20073. Use char because int might match the return type of a GCC
  20074. builtin and then its argument prototype would still apply. */
  20075. char IceConnectionNumber ();
  20076. int
  20077. main (void)
  20078. {
  20079. return IceConnectionNumber ();
  20080. ;
  20081. return 0;
  20082. }
  20083. _ACEOF
  20084. if ac_fn_c_try_link "$LINENO"
  20085. then :
  20086. ac_cv_lib_ICE_IceConnectionNumber=yes
  20087. else $as_nop
  20088. ac_cv_lib_ICE_IceConnectionNumber=no
  20089. fi
  20090. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20091. conftest$ac_exeext conftest.$ac_ext
  20092. LIBS=$ac_check_lib_save_LIBS
  20093. fi
  20094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20095. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20096. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20097. then :
  20098. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20099. fi
  20100. LDFLAGS=$ac_save_LDFLAGS
  20101. fi
  20102. if test x$have_x = xyes; then
  20103. # Check whether --enable-x11-shared was given.
  20104. if test ${enable_x11_shared+y}
  20105. then :
  20106. enableval=$enable_x11_shared;
  20107. else $as_nop
  20108. enable_x11_shared=maybe
  20109. fi
  20110. case "$host" in
  20111. *-*-darwin*)
  20112. # Apple now puts this in /opt/X11
  20113. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20114. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20115. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20116. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20117. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20118. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20119. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20120. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20121. ;;
  20122. *-*-openbsd*)
  20123. x11_lib='libX11.so'
  20124. x11ext_lib='libXext.so'
  20125. xcursor_lib='libXcursor.so'
  20126. xinput_lib='libXi.so'
  20127. xfixes_lib='libXfixes.so'
  20128. xrandr_lib='libXrandr.so'
  20129. xrender_lib='libXrender.so'
  20130. xss_lib='libXss.so'
  20131. ;;
  20132. *)
  20133. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20134. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20135. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20136. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20137. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20138. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20139. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20140. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20141. ;;
  20142. esac
  20143. if test x$ac_cv_func_shmat != xyes; then
  20144. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20145. fi
  20146. CFLAGS="$CFLAGS $X_CFLAGS"
  20147. LDFLAGS="$LDFLAGS $X_LIBS"
  20148. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20149. #include <X11/Xproto.h>
  20150. "
  20151. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20152. then :
  20153. have_xext_h_hdr=yes
  20154. else $as_nop
  20155. have_xext_h_hdr=no
  20156. fi
  20157. if test x$have_xext_h_hdr != xyes; then
  20158. as_fn_error $? "
  20159. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20160. " "$LINENO" 5
  20161. fi
  20162. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20163. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20164. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20165. # Needed so SDL applications can include SDL_syswm.h
  20166. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20167. if test x$enable_x11_shared = xmaybe; then
  20168. enable_x11_shared=yes
  20169. fi
  20170. if test x$have_loadso != xyes && \
  20171. test x$enable_x11_shared = xyes; then
  20172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20173. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20174. enable_x11_shared=no
  20175. fi
  20176. if test x$have_loadso = xyes && \
  20177. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20178. echo "-- dynamic libX11 -> $x11_lib"
  20179. echo "-- dynamic libX11ext -> $x11ext_lib"
  20180. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20181. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20182. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20183. else
  20184. enable_x11_shared=no
  20185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20186. SUMMARY_video="${SUMMARY_video} x11"
  20187. fi
  20188. have_video=yes
  20189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20190. printf %s "checking for XGenericEvent... " >&6; }
  20191. have_XGenericEvent=no
  20192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20193. /* end confdefs.h. */
  20194. #include <X11/Xlib.h>
  20195. int
  20196. main (void)
  20197. {
  20198. Display *display;
  20199. XEvent event;
  20200. XGenericEventCookie *cookie = &event.xcookie;
  20201. XNextEvent(display, &event);
  20202. XGetEventData(display, cookie);
  20203. XFreeEventData(display, cookie);
  20204. ;
  20205. return 0;
  20206. }
  20207. _ACEOF
  20208. if ac_fn_c_try_compile "$LINENO"
  20209. then :
  20210. have_XGenericEvent=yes
  20211. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20212. fi
  20213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20215. printf "%s\n" "$have_XGenericEvent" >&6; }
  20216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20217. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20218. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20219. then :
  20220. printf %s "(cached) " >&6
  20221. else $as_nop
  20222. ac_check_lib_save_LIBS=$LIBS
  20223. LIBS="-lX11 $LIBS"
  20224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20225. /* end confdefs.h. */
  20226. /* Override any GCC internal prototype to avoid an error.
  20227. Use char because int might match the return type of a GCC
  20228. builtin and then its argument prototype would still apply. */
  20229. char XkbKeycodeToKeysym ();
  20230. int
  20231. main (void)
  20232. {
  20233. return XkbKeycodeToKeysym ();
  20234. ;
  20235. return 0;
  20236. }
  20237. _ACEOF
  20238. if ac_fn_c_try_link "$LINENO"
  20239. then :
  20240. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20241. else $as_nop
  20242. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20243. fi
  20244. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20245. conftest$ac_exeext conftest.$ac_ext
  20246. LIBS=$ac_check_lib_save_LIBS
  20247. fi
  20248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20249. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20250. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20251. then :
  20252. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20253. fi
  20254. # Check whether --enable-video-x11-xcursor was given.
  20255. if test ${enable_video_x11_xcursor+y}
  20256. then :
  20257. enableval=$enable_video_x11_xcursor;
  20258. else $as_nop
  20259. enable_video_x11_xcursor=yes
  20260. fi
  20261. if test x$enable_video_x11_xcursor = xyes; then
  20262. definitely_enable_video_x11_xcursor=no
  20263. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20264. "
  20265. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20266. then :
  20267. have_xcursor_h_hdr=yes
  20268. else $as_nop
  20269. have_xcursor_h_hdr=no
  20270. fi
  20271. if test x$have_xcursor_h_hdr = xyes; then
  20272. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20273. echo "-- dynamic libXcursor -> $xcursor_lib"
  20274. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20275. definitely_enable_video_x11_xcursor=yes
  20276. else
  20277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20278. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20279. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20280. then :
  20281. printf %s "(cached) " >&6
  20282. else $as_nop
  20283. ac_check_lib_save_LIBS=$LIBS
  20284. LIBS="-lXcursor $LIBS"
  20285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20286. /* end confdefs.h. */
  20287. /* Override any GCC internal prototype to avoid an error.
  20288. Use char because int might match the return type of a GCC
  20289. builtin and then its argument prototype would still apply. */
  20290. char XcursorImageCreate ();
  20291. int
  20292. main (void)
  20293. {
  20294. return XcursorImageCreate ();
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_link "$LINENO"
  20300. then :
  20301. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20302. else $as_nop
  20303. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20304. fi
  20305. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20306. conftest$ac_exeext conftest.$ac_ext
  20307. LIBS=$ac_check_lib_save_LIBS
  20308. fi
  20309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20310. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20311. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20312. then :
  20313. have_xcursor_lib=yes
  20314. fi
  20315. if test x$have_xcursor_lib = xyes ; then
  20316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20317. definitely_enable_video_x11_xcursor=yes
  20318. fi
  20319. fi
  20320. fi
  20321. fi
  20322. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20323. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20324. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20325. fi
  20326. # Check whether --enable-video-x11-xdbe was given.
  20327. if test ${enable_video_x11_xdbe+y}
  20328. then :
  20329. enableval=$enable_video_x11_xdbe;
  20330. else $as_nop
  20331. enable_video_x11_xdbe=yes
  20332. fi
  20333. if test x$enable_video_x11_xdbe = xyes; then
  20334. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20335. "
  20336. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20337. then :
  20338. have_dbe_h_hdr=yes
  20339. else $as_nop
  20340. have_dbe_h_hdr=no
  20341. fi
  20342. if test x$have_dbe_h_hdr = xyes; then
  20343. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20344. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20345. fi
  20346. fi
  20347. # Check whether --enable-video-x11-xinput was given.
  20348. if test ${enable_video_x11_xinput+y}
  20349. then :
  20350. enableval=$enable_video_x11_xinput;
  20351. else $as_nop
  20352. enable_video_x11_xinput=yes
  20353. fi
  20354. if test x$enable_video_x11_xinput = xyes; then
  20355. definitely_enable_video_x11_xinput=no
  20356. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20357. "
  20358. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20359. then :
  20360. have_xinput_h_hdr=yes
  20361. else $as_nop
  20362. have_xinput_h_hdr=no
  20363. fi
  20364. if test x$have_xinput_h_hdr = xyes; then
  20365. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20366. echo "-- dynamic libXi -> $xinput_lib"
  20367. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20368. definitely_enable_video_x11_xinput=yes
  20369. else
  20370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20371. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20372. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20373. then :
  20374. printf %s "(cached) " >&6
  20375. else $as_nop
  20376. ac_check_lib_save_LIBS=$LIBS
  20377. LIBS="-lXi $LIBS"
  20378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20379. /* end confdefs.h. */
  20380. /* Override any GCC internal prototype to avoid an error.
  20381. Use char because int might match the return type of a GCC
  20382. builtin and then its argument prototype would still apply. */
  20383. char XOpenDevice ();
  20384. int
  20385. main (void)
  20386. {
  20387. return XOpenDevice ();
  20388. ;
  20389. return 0;
  20390. }
  20391. _ACEOF
  20392. if ac_fn_c_try_link "$LINENO"
  20393. then :
  20394. ac_cv_lib_Xi_XOpenDevice=yes
  20395. else $as_nop
  20396. ac_cv_lib_Xi_XOpenDevice=no
  20397. fi
  20398. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20399. conftest$ac_exeext conftest.$ac_ext
  20400. LIBS=$ac_check_lib_save_LIBS
  20401. fi
  20402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20403. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20404. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20405. then :
  20406. have_xinput_lib=yes
  20407. fi
  20408. if test x$have_xinput_lib = xyes ; then
  20409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20410. definitely_enable_video_x11_xinput=yes
  20411. fi
  20412. fi
  20413. fi
  20414. fi
  20415. if test x$definitely_enable_video_x11_xinput = xyes; then
  20416. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20417. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20419. printf %s "checking for xinput2 multitouch... " >&6; }
  20420. have_xinput2_multitouch=no
  20421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20422. /* end confdefs.h. */
  20423. #include <X11/Xlib.h>
  20424. #include <X11/Xproto.h>
  20425. #include <X11/extensions/XInput2.h>
  20426. int
  20427. main (void)
  20428. {
  20429. int event_type = XI_TouchBegin;
  20430. XITouchClassInfo *t;
  20431. ;
  20432. return 0;
  20433. }
  20434. _ACEOF
  20435. if ac_fn_c_try_compile "$LINENO"
  20436. then :
  20437. have_xinput2_multitouch=yes
  20438. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20439. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20440. fi
  20441. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20443. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20444. fi
  20445. # Check whether --enable-video-x11-xfixes was given.
  20446. if test ${enable_video_x11_xfixes+y}
  20447. then :
  20448. enableval=$enable_video_x11_xfixes;
  20449. else $as_nop
  20450. enable_video_x11_xfixes=yes
  20451. fi
  20452. if test x$enable_video_x11_xfixes = xyes; then
  20453. definitely_enable_video_x11_xfixes=no
  20454. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20456. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20458. /* end confdefs.h. */
  20459. #include <X11/Xlib.h>
  20460. #include <X11/Xproto.h>
  20461. #include <X11/extensions/XInput2.h>
  20462. #include <X11/extensions/Xfixes.h>
  20463. int
  20464. main (void)
  20465. {
  20466. BarrierEventID b;
  20467. ;
  20468. return 0;
  20469. }
  20470. _ACEOF
  20471. if ac_fn_c_try_compile "$LINENO"
  20472. then :
  20473. have_xfixes_h_hdr=yes
  20474. else $as_nop
  20475. have_xfixes_h_hdr=no
  20476. fi
  20477. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20479. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20480. if test x$have_xfixes_h_hdr = xyes; then
  20481. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20482. echo "-- dynamic libXfixes -> $xfixes_lib"
  20483. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20484. definitely_enable_video_x11_xfixes=yes
  20485. else
  20486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20487. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20488. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20489. then :
  20490. printf %s "(cached) " >&6
  20491. else $as_nop
  20492. ac_check_lib_save_LIBS=$LIBS
  20493. LIBS="-lXfixes $LIBS"
  20494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20495. /* end confdefs.h. */
  20496. /* Override any GCC internal prototype to avoid an error.
  20497. Use char because int might match the return type of a GCC
  20498. builtin and then its argument prototype would still apply. */
  20499. char XFixesCreatePointerBarrier ();
  20500. int
  20501. main (void)
  20502. {
  20503. return XFixesCreatePointerBarrier ();
  20504. ;
  20505. return 0;
  20506. }
  20507. _ACEOF
  20508. if ac_fn_c_try_link "$LINENO"
  20509. then :
  20510. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20511. else $as_nop
  20512. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20513. fi
  20514. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20515. conftest$ac_exeext conftest.$ac_ext
  20516. LIBS=$ac_check_lib_save_LIBS
  20517. fi
  20518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20519. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20520. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20521. then :
  20522. have_xfixes_lib=yes
  20523. fi
  20524. if test x$have_xfixes_lib = xyes ; then
  20525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20526. definitely_enable_video_x11_xfixes=yes
  20527. fi
  20528. fi
  20529. fi
  20530. fi
  20531. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20532. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20533. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20534. fi
  20535. # Check whether --enable-video-x11-xrandr was given.
  20536. if test ${enable_video_x11_xrandr+y}
  20537. then :
  20538. enableval=$enable_video_x11_xrandr;
  20539. else $as_nop
  20540. enable_video_x11_xrandr=yes
  20541. fi
  20542. if test x$enable_video_x11_xrandr = xyes; then
  20543. definitely_enable_video_x11_xrandr=no
  20544. have_xrandr_h_hdr=no
  20545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20546. /* end confdefs.h. */
  20547. #include <X11/Xlib.h>
  20548. #include <X11/extensions/Xrandr.h>
  20549. int
  20550. main (void)
  20551. {
  20552. XRRScreenResources *res = NULL;
  20553. ;
  20554. return 0;
  20555. }
  20556. _ACEOF
  20557. if ac_fn_c_try_compile "$LINENO"
  20558. then :
  20559. have_xrandr_h_hdr=yes
  20560. fi
  20561. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20562. if test x$have_xrandr_h_hdr = xyes; then
  20563. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20564. echo "-- dynamic libXrandr -> $xrandr_lib"
  20565. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20566. definitely_enable_video_x11_xrandr=yes
  20567. else
  20568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20569. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20570. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20571. then :
  20572. printf %s "(cached) " >&6
  20573. else $as_nop
  20574. ac_check_lib_save_LIBS=$LIBS
  20575. LIBS="-lXrandr $LIBS"
  20576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20577. /* end confdefs.h. */
  20578. /* Override any GCC internal prototype to avoid an error.
  20579. Use char because int might match the return type of a GCC
  20580. builtin and then its argument prototype would still apply. */
  20581. char XRRQueryExtension ();
  20582. int
  20583. main (void)
  20584. {
  20585. return XRRQueryExtension ();
  20586. ;
  20587. return 0;
  20588. }
  20589. _ACEOF
  20590. if ac_fn_c_try_link "$LINENO"
  20591. then :
  20592. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20593. else $as_nop
  20594. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20595. fi
  20596. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20597. conftest$ac_exeext conftest.$ac_ext
  20598. LIBS=$ac_check_lib_save_LIBS
  20599. fi
  20600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20601. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20602. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20603. then :
  20604. have_xrandr_lib=yes
  20605. fi
  20606. if test x$have_xrandr_lib = xyes ; then
  20607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20608. definitely_enable_video_x11_xrandr=yes
  20609. fi
  20610. fi
  20611. fi
  20612. fi
  20613. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20614. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20615. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20616. fi
  20617. # Check whether --enable-video-x11-scrnsaver was given.
  20618. if test ${enable_video_x11_scrnsaver+y}
  20619. then :
  20620. enableval=$enable_video_x11_scrnsaver;
  20621. else $as_nop
  20622. enable_video_x11_scrnsaver=yes
  20623. fi
  20624. if test x$enable_video_x11_scrnsaver = xyes; then
  20625. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20626. "
  20627. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20628. then :
  20629. have_scrnsaver_h_hdr=yes
  20630. else $as_nop
  20631. have_scrnsaver_h_hdr=no
  20632. fi
  20633. if test x$have_scrnsaver_h_hdr = xyes; then
  20634. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20635. echo "-- dynamic libXss -> $xss_lib"
  20636. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20637. definitely_enable_video_x11_scrnsaver=yes
  20638. else
  20639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20640. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20641. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20642. then :
  20643. printf %s "(cached) " >&6
  20644. else $as_nop
  20645. ac_check_lib_save_LIBS=$LIBS
  20646. LIBS="-lXss $LIBS"
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. /* Override any GCC internal prototype to avoid an error.
  20650. Use char because int might match the return type of a GCC
  20651. builtin and then its argument prototype would still apply. */
  20652. char XScreenSaverSuspend ();
  20653. int
  20654. main (void)
  20655. {
  20656. return XScreenSaverSuspend ();
  20657. ;
  20658. return 0;
  20659. }
  20660. _ACEOF
  20661. if ac_fn_c_try_link "$LINENO"
  20662. then :
  20663. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20664. else $as_nop
  20665. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20666. fi
  20667. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20668. conftest$ac_exeext conftest.$ac_ext
  20669. LIBS=$ac_check_lib_save_LIBS
  20670. fi
  20671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20672. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20673. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20674. then :
  20675. have_xss_lib=yes
  20676. fi
  20677. if test x$have_xss_lib = xyes ; then
  20678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20679. definitely_enable_video_x11_scrnsaver=yes
  20680. fi
  20681. fi
  20682. fi
  20683. fi
  20684. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20685. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20686. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20687. fi
  20688. # Check whether --enable-video-x11-xshape was given.
  20689. if test ${enable_video_x11_xshape+y}
  20690. then :
  20691. enableval=$enable_video_x11_xshape;
  20692. else $as_nop
  20693. enable_video_x11_xshape=yes
  20694. fi
  20695. if test x$enable_video_x11_xshape = xyes; then
  20696. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20697. "
  20698. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20699. then :
  20700. have_shape_h_hdr=yes
  20701. else $as_nop
  20702. have_shape_h_hdr=no
  20703. fi
  20704. if test x$have_shape_h_hdr = xyes; then
  20705. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20706. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20707. fi
  20708. fi
  20709. fi
  20710. fi
  20711. if test x$have_x != xyes; then
  20712. # Prevent Mesa from including X11 headers
  20713. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  20714. fi
  20715. }
  20716. CheckVivanteVideo()
  20717. {
  20718. # Check whether --enable-video-vivante was given.
  20719. if test ${enable_video_vivante+y}
  20720. then :
  20721. enableval=$enable_video_vivante;
  20722. else $as_nop
  20723. enable_video_vivante=yes
  20724. fi
  20725. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  20726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  20727. printf %s "checking for Vivante VDK API... " >&6; }
  20728. have_vivante_vdk=no
  20729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20730. /* end confdefs.h. */
  20731. #define LINUX
  20732. #define EGL_API_FB
  20733. #include <gc_vdk.h>
  20734. int
  20735. main (void)
  20736. {
  20737. ;
  20738. return 0;
  20739. }
  20740. _ACEOF
  20741. if ac_fn_c_try_compile "$LINENO"
  20742. then :
  20743. have_vivante_vdk=yes
  20744. fi
  20745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  20747. printf "%s\n" "$have_vivante_vdk" >&6; }
  20748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  20749. printf %s "checking for Vivante FB API... " >&6; }
  20750. have_vivante_egl=no
  20751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20752. /* end confdefs.h. */
  20753. #define LINUX
  20754. #define EGL_API_FB
  20755. #include <EGL/eglvivante.h>
  20756. int
  20757. main (void)
  20758. {
  20759. ;
  20760. return 0;
  20761. }
  20762. _ACEOF
  20763. if ac_fn_c_try_compile "$LINENO"
  20764. then :
  20765. have_vivante_egl=yes
  20766. fi
  20767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  20769. printf "%s\n" "$have_vivante_egl" >&6; }
  20770. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  20771. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  20772. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  20773. if test x$have_vivante_vdk = xyes; then
  20774. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  20775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  20776. fi
  20777. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  20778. SUMMARY_video="${SUMMARY_video} vivante"
  20779. have_video=yes
  20780. fi
  20781. fi
  20782. }
  20783. CheckHaikuVideo()
  20784. {
  20785. if test x$enable_video = xyes; then
  20786. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  20787. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  20788. have_video=yes
  20789. SUMMARY_video="${SUMMARY_video} haiku"
  20790. fi
  20791. }
  20792. CheckCOCOA()
  20793. {
  20794. # Check whether --enable-video-cocoa was given.
  20795. if test ${enable_video_cocoa+y}
  20796. then :
  20797. enableval=$enable_video_cocoa;
  20798. else $as_nop
  20799. enable_video_cocoa=yes
  20800. fi
  20801. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  20802. save_CFLAGS="$CFLAGS"
  20803. CFLAGS="$CFLAGS -x objective-c"
  20804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  20805. printf %s "checking for Cocoa framework... " >&6; }
  20806. have_cocoa=no
  20807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20808. /* end confdefs.h. */
  20809. #import <Cocoa/Cocoa.h>
  20810. int
  20811. main (void)
  20812. {
  20813. ;
  20814. return 0;
  20815. }
  20816. _ACEOF
  20817. if ac_fn_c_try_compile "$LINENO"
  20818. then :
  20819. have_cocoa=yes
  20820. fi
  20821. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  20823. printf "%s\n" "$have_cocoa" >&6; }
  20824. CFLAGS="$save_CFLAGS"
  20825. if test x$have_cocoa = xyes; then
  20826. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  20827. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  20828. SUMMARY_video="${SUMMARY_video} cocoa"
  20829. have_video=yes
  20830. fi
  20831. fi
  20832. }
  20833. CheckMETAL()
  20834. {
  20835. # Check whether --enable-video-metal was given.
  20836. if test ${enable_video_metal+y}
  20837. then :
  20838. enableval=$enable_video_metal;
  20839. else $as_nop
  20840. enable_video_metal=yes
  20841. fi
  20842. # Check whether --enable-render-metal was given.
  20843. if test ${enable_render_metal+y}
  20844. then :
  20845. enableval=$enable_render_metal;
  20846. else $as_nop
  20847. enable_render_metal=yes
  20848. fi
  20849. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  20850. save_CFLAGS="$CFLAGS"
  20851. CFLAGS="$CFLAGS -x objective-c"
  20852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  20853. printf %s "checking for Metal framework... " >&6; }
  20854. have_metal=no
  20855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20856. /* end confdefs.h. */
  20857. #import <Cocoa/Cocoa.h>
  20858. #import <Metal/Metal.h>
  20859. #import <QuartzCore/CAMetalLayer.h>
  20860. #if TARGET_CPU_X86
  20861. #error Metal doesn't work on this configuration
  20862. #endif
  20863. int
  20864. main (void)
  20865. {
  20866. ;
  20867. return 0;
  20868. }
  20869. _ACEOF
  20870. if ac_fn_c_try_compile "$LINENO"
  20871. then :
  20872. have_metal=yes
  20873. fi
  20874. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20875. CFLAGS="$save_CFLAGS"
  20876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  20877. printf "%s\n" "$have_metal" >&6; }
  20878. if test x$have_metal = xyes; then
  20879. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  20880. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20881. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  20882. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  20883. fi
  20884. SUMMARY_video="${SUMMARY_video} metal"
  20885. else
  20886. enable_video_metal=no
  20887. enable_render_metal=no
  20888. fi
  20889. fi
  20890. }
  20891. CheckDirectFB()
  20892. {
  20893. # Check whether --enable-video-directfb was given.
  20894. if test ${enable_video_directfb+y}
  20895. then :
  20896. enableval=$enable_video_directfb;
  20897. else $as_nop
  20898. enable_video_directfb=no
  20899. fi
  20900. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  20901. pkg_failed=no
  20902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  20903. printf %s "checking for directfb >= 1.0.0... " >&6; }
  20904. if test -n "$DIRECTFB_CFLAGS"; then
  20905. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  20906. elif test -n "$PKG_CONFIG"; then
  20907. if test -n "$PKG_CONFIG" && \
  20908. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  20909. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  20910. ac_status=$?
  20911. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20912. test $ac_status = 0; }; then
  20913. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  20914. test "x$?" != "x0" && pkg_failed=yes
  20915. else
  20916. pkg_failed=yes
  20917. fi
  20918. else
  20919. pkg_failed=untried
  20920. fi
  20921. if test -n "$DIRECTFB_LIBS"; then
  20922. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  20923. elif test -n "$PKG_CONFIG"; then
  20924. if test -n "$PKG_CONFIG" && \
  20925. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  20926. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  20927. ac_status=$?
  20928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20929. test $ac_status = 0; }; then
  20930. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  20931. test "x$?" != "x0" && pkg_failed=yes
  20932. else
  20933. pkg_failed=yes
  20934. fi
  20935. else
  20936. pkg_failed=untried
  20937. fi
  20938. if test $pkg_failed = yes; then
  20939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20940. printf "%s\n" "no" >&6; }
  20941. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20942. _pkg_short_errors_supported=yes
  20943. else
  20944. _pkg_short_errors_supported=no
  20945. fi
  20946. if test $_pkg_short_errors_supported = yes; then
  20947. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  20948. else
  20949. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  20950. fi
  20951. # Put the nasty error message in config.log where it belongs
  20952. echo "$DIRECTFB_PKG_ERRORS" >&5
  20953. video_directfb=no
  20954. elif test $pkg_failed = untried; then
  20955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20956. printf "%s\n" "no" >&6; }
  20957. video_directfb=no
  20958. else
  20959. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  20960. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  20961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20962. printf "%s\n" "yes" >&6; }
  20963. video_directfb=yes
  20964. fi
  20965. if test x$video_directfb = xyes; then
  20966. # SuSE 11.1 installs directfb-config without directfb-devel
  20967. save_CPPFLAGS="$CPPFLAGS"
  20968. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  20969. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  20970. if test "x$ac_cv_header_directfb_h" = xyes
  20971. then :
  20972. have_directfb_hdr=yes
  20973. else $as_nop
  20974. have_directfb_hdr=no
  20975. fi
  20976. CPPFLAGS="$save_CPPFLAGS"
  20977. video_directfb=$have_directfb_hdr
  20978. fi
  20979. if test x$video_directfb = xyes; then
  20980. # Check whether --enable-directfb-shared was given.
  20981. if test ${enable_directfb_shared+y}
  20982. then :
  20983. enableval=$enable_directfb_shared;
  20984. else $as_nop
  20985. enable_directfb_shared=yes
  20986. fi
  20987. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  20988. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  20989. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  20990. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  20991. directfb_shared=no
  20992. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20993. if test x$have_loadso != xyes && \
  20994. test x$enable_directfb_shared = xyes; then
  20995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  20996. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  20997. fi
  20998. if test x$have_loadso = xyes && \
  20999. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21000. directfb_shared=yes
  21001. echo "-- dynamic libdirectfb -> $directfb_lib"
  21002. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21003. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21004. else
  21005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21006. SUMMARY_video="${SUMMARY_video} directfb"
  21007. fi
  21008. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21009. have_video=yes
  21010. fi
  21011. fi
  21012. }
  21013. CheckKMSDRM()
  21014. {
  21015. # Check whether --enable-video-kmsdrm was given.
  21016. if test ${enable_video_kmsdrm+y}
  21017. then :
  21018. enableval=$enable_video_kmsdrm;
  21019. else $as_nop
  21020. enable_video_kmsdrm=yes
  21021. fi
  21022. if test x$enable_video = xyes && \
  21023. test x$enable_video_kmsdrm = xyes && \
  21024. test x$video_opengl_egl = xyes; then
  21025. video_kmsdrm=no
  21026. pkg_failed=no
  21027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21028. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21029. if test -n "$LIBDRM_CFLAGS"; then
  21030. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21031. elif test -n "$PKG_CONFIG"; then
  21032. if test -n "$PKG_CONFIG" && \
  21033. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21034. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21035. ac_status=$?
  21036. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21037. test $ac_status = 0; }; then
  21038. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21039. test "x$?" != "x0" && pkg_failed=yes
  21040. else
  21041. pkg_failed=yes
  21042. fi
  21043. else
  21044. pkg_failed=untried
  21045. fi
  21046. if test -n "$LIBDRM_LIBS"; then
  21047. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21048. elif test -n "$PKG_CONFIG"; then
  21049. if test -n "$PKG_CONFIG" && \
  21050. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21051. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21052. ac_status=$?
  21053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21054. test $ac_status = 0; }; then
  21055. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21056. test "x$?" != "x0" && pkg_failed=yes
  21057. else
  21058. pkg_failed=yes
  21059. fi
  21060. else
  21061. pkg_failed=untried
  21062. fi
  21063. if test $pkg_failed = yes; then
  21064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21065. printf "%s\n" "no" >&6; }
  21066. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21067. _pkg_short_errors_supported=yes
  21068. else
  21069. _pkg_short_errors_supported=no
  21070. fi
  21071. if test $_pkg_short_errors_supported = yes; then
  21072. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21073. else
  21074. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21075. fi
  21076. # Put the nasty error message in config.log where it belongs
  21077. echo "$LIBDRM_PKG_ERRORS" >&5
  21078. libdrm_avail=no
  21079. elif test $pkg_failed = untried; then
  21080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21081. printf "%s\n" "no" >&6; }
  21082. libdrm_avail=no
  21083. else
  21084. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21085. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21087. printf "%s\n" "yes" >&6; }
  21088. libdrm_avail=yes
  21089. fi
  21090. pkg_failed=no
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21092. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21093. if test -n "$LIBGBM_CFLAGS"; then
  21094. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21095. elif test -n "$PKG_CONFIG"; then
  21096. if test -n "$PKG_CONFIG" && \
  21097. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21098. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21099. ac_status=$?
  21100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21101. test $ac_status = 0; }; then
  21102. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21103. test "x$?" != "x0" && pkg_failed=yes
  21104. else
  21105. pkg_failed=yes
  21106. fi
  21107. else
  21108. pkg_failed=untried
  21109. fi
  21110. if test -n "$LIBGBM_LIBS"; then
  21111. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21112. elif test -n "$PKG_CONFIG"; then
  21113. if test -n "$PKG_CONFIG" && \
  21114. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21115. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21116. ac_status=$?
  21117. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21118. test $ac_status = 0; }; then
  21119. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21120. test "x$?" != "x0" && pkg_failed=yes
  21121. else
  21122. pkg_failed=yes
  21123. fi
  21124. else
  21125. pkg_failed=untried
  21126. fi
  21127. if test $pkg_failed = yes; then
  21128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21129. printf "%s\n" "no" >&6; }
  21130. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21131. _pkg_short_errors_supported=yes
  21132. else
  21133. _pkg_short_errors_supported=no
  21134. fi
  21135. if test $_pkg_short_errors_supported = yes; then
  21136. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21137. else
  21138. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21139. fi
  21140. # Put the nasty error message in config.log where it belongs
  21141. echo "$LIBGBM_PKG_ERRORS" >&5
  21142. libgbm_avail=no
  21143. elif test $pkg_failed = untried; then
  21144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21145. printf "%s\n" "no" >&6; }
  21146. libgbm_avail=no
  21147. else
  21148. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21149. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21151. printf "%s\n" "yes" >&6; }
  21152. libgbm_avail=yes
  21153. fi
  21154. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21155. video_kmsdrm=yes
  21156. fi
  21157. if test x$video_kmsdrm = xyes; then
  21158. # Check whether --enable-kmsdrm-shared was given.
  21159. if test ${enable_kmsdrm_shared+y}
  21160. then :
  21161. enableval=$enable_kmsdrm_shared;
  21162. else $as_nop
  21163. enable_kmsdrm_shared=yes
  21164. fi
  21165. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21166. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21167. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21169. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21170. kmsdrm_shared=no
  21171. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21172. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21173. if test x$have_loadso != xyes && \
  21174. test x$enable_kmsdrm_shared = xyes; then
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21176. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21177. fi
  21178. if test x$have_loadso = xyes && \
  21179. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21180. kmsdrm_shared=yes
  21181. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21182. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21183. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21184. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21185. else
  21186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21187. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21188. fi
  21189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21190. printf "%s\n" "$kmsdrm_shared" >&6; }
  21191. if test x$kmsdrm_shared = xyes; then
  21192. echo "-- dynamic libdrm -> $drm_lib"
  21193. echo "-- dynamic libgbm -> $gbm_lib"
  21194. fi
  21195. have_video=yes
  21196. fi
  21197. fi
  21198. }
  21199. CheckDummyVideo()
  21200. {
  21201. # Check whether --enable-video-dummy was given.
  21202. if test ${enable_video_dummy+y}
  21203. then :
  21204. enableval=$enable_video_dummy;
  21205. else $as_nop
  21206. enable_video_dummy=yes
  21207. fi
  21208. if test x$enable_video_dummy = xyes; then
  21209. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21210. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21211. have_video=yes
  21212. SUMMARY_video="${SUMMARY_video} dummy"
  21213. fi
  21214. }
  21215. CheckOffscreenVideo()
  21216. {
  21217. # Check whether --enable-video-offscreen was given.
  21218. if test ${enable_video_offscreen+y}
  21219. then :
  21220. enableval=$enable_video_offscreen;
  21221. else $as_nop
  21222. enable_video_offscreen=yes
  21223. fi
  21224. if test x$enable_video_offscreen = xyes; then
  21225. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21226. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21227. have_video=yes
  21228. SUMMARY_video="${SUMMARY_video} offscreen"
  21229. fi
  21230. }
  21231. # Check whether --enable-video-opengl was given.
  21232. if test ${enable_video_opengl+y}
  21233. then :
  21234. enableval=$enable_video_opengl;
  21235. else $as_nop
  21236. enable_video_opengl=yes
  21237. fi
  21238. CheckGLX()
  21239. {
  21240. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21242. printf %s "checking for GLX support... " >&6; }
  21243. video_opengl_glx=no
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. #include <GL/glx.h>
  21247. int
  21248. main (void)
  21249. {
  21250. ;
  21251. return 0;
  21252. }
  21253. _ACEOF
  21254. if ac_fn_c_try_compile "$LINENO"
  21255. then :
  21256. video_opengl_glx=yes
  21257. fi
  21258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21260. printf "%s\n" "$video_opengl_glx" >&6; }
  21261. if test x$video_opengl_glx = xyes; then
  21262. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21263. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21264. fi
  21265. fi
  21266. }
  21267. # Check whether --enable-video-opengles was given.
  21268. if test ${enable_video_opengles+y}
  21269. then :
  21270. enableval=$enable_video_opengles;
  21271. else $as_nop
  21272. enable_video_opengles=yes
  21273. fi
  21274. # Check whether --enable-video-opengles1 was given.
  21275. if test ${enable_video_opengles1+y}
  21276. then :
  21277. enableval=$enable_video_opengles1;
  21278. else $as_nop
  21279. enable_video_opengles1=yes
  21280. fi
  21281. # Check whether --enable-video-opengles2 was given.
  21282. if test ${enable_video_opengles2+y}
  21283. then :
  21284. enableval=$enable_video_opengles2;
  21285. else $as_nop
  21286. enable_video_opengles2=yes
  21287. fi
  21288. CheckEGL()
  21289. {
  21290. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21292. printf %s "checking for EGL support... " >&6; }
  21293. video_opengl_egl=no
  21294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21295. /* end confdefs.h. */
  21296. #define LINUX
  21297. #define EGL_API_FB
  21298. #define MESA_EGL_NO_X11_HEADERS
  21299. #define EGL_NO_X11
  21300. #include <EGL/egl.h>
  21301. #include <EGL/eglext.h>
  21302. int
  21303. main (void)
  21304. {
  21305. ;
  21306. return 0;
  21307. }
  21308. _ACEOF
  21309. if ac_fn_c_try_compile "$LINENO"
  21310. then :
  21311. video_opengl_egl=yes
  21312. fi
  21313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21315. printf "%s\n" "$video_opengl_egl" >&6; }
  21316. if test x$video_opengl_egl = xyes; then
  21317. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21318. fi
  21319. fi
  21320. }
  21321. CheckOpenGL()
  21322. {
  21323. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21325. printf %s "checking for OpenGL headers... " >&6; }
  21326. video_opengl=no
  21327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21328. /* end confdefs.h. */
  21329. #include <GL/gl.h>
  21330. #include <GL/glext.h>
  21331. int
  21332. main (void)
  21333. {
  21334. ;
  21335. return 0;
  21336. }
  21337. _ACEOF
  21338. if ac_fn_c_try_compile "$LINENO"
  21339. then :
  21340. video_opengl=yes
  21341. fi
  21342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21344. printf "%s\n" "$video_opengl" >&6; }
  21345. if test x$video_opengl = xyes; then
  21346. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21347. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21348. SUMMARY_video="${SUMMARY_video} opengl"
  21349. fi
  21350. fi
  21351. }
  21352. CheckOpenGLES()
  21353. {
  21354. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21355. if test x$enable_video_opengles1 = xyes; then
  21356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21357. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  21358. video_opengles_v1=no
  21359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21360. /* end confdefs.h. */
  21361. #include <GLES/gl.h>
  21362. #include <GLES/glext.h>
  21363. int
  21364. main (void)
  21365. {
  21366. ;
  21367. return 0;
  21368. }
  21369. _ACEOF
  21370. if ac_fn_c_try_compile "$LINENO"
  21371. then :
  21372. video_opengles_v1=yes
  21373. fi
  21374. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21376. printf "%s\n" "$video_opengles_v1" >&6; }
  21377. if test x$video_opengles_v1 = xyes; then
  21378. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21379. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21380. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21381. fi
  21382. fi
  21383. if test x$enable_video_opengles2 = xyes; then
  21384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21385. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21386. video_opengles_v2=no
  21387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21388. /* end confdefs.h. */
  21389. #include <GLES2/gl2.h>
  21390. #include <GLES2/gl2ext.h>
  21391. int
  21392. main (void)
  21393. {
  21394. ;
  21395. return 0;
  21396. }
  21397. _ACEOF
  21398. if ac_fn_c_try_compile "$LINENO"
  21399. then :
  21400. video_opengles_v2=yes
  21401. fi
  21402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21404. printf "%s\n" "$video_opengles_v2" >&6; }
  21405. if test x$video_opengles_v2 = xyes; then
  21406. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21407. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21408. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21409. fi
  21410. fi
  21411. fi
  21412. }
  21413. CheckWINDOWSGL()
  21414. {
  21415. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21416. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21417. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21418. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21419. SUMMARY_video="${SUMMARY_video} opengl"
  21420. fi
  21421. }
  21422. CheckWINDOWSGLES()
  21423. {
  21424. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21426. printf %s "checking for EGL support... " >&6; }
  21427. video_opengl_egl=no
  21428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21429. /* end confdefs.h. */
  21430. #include <EGL/egl.h>
  21431. int
  21432. main (void)
  21433. {
  21434. ;
  21435. return 0;
  21436. }
  21437. _ACEOF
  21438. if ac_fn_c_try_compile "$LINENO"
  21439. then :
  21440. video_opengl_egl=yes
  21441. fi
  21442. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21444. printf "%s\n" "$video_opengl_egl" >&6; }
  21445. if test x$video_opengl_egl = xyes; then
  21446. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21447. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21448. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21449. fi
  21450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21451. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21452. video_opengles_v2=no
  21453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21454. /* end confdefs.h. */
  21455. #include <GLES2/gl2.h>
  21456. #include <GLES2/gl2ext.h>
  21457. int
  21458. main (void)
  21459. {
  21460. ;
  21461. return 0;
  21462. }
  21463. _ACEOF
  21464. if ac_fn_c_try_compile "$LINENO"
  21465. then :
  21466. video_opengles_v2=yes
  21467. fi
  21468. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21470. printf "%s\n" "$video_opengles_v2" >&6; }
  21471. if test x$video_opengles_v2 = xyes; then
  21472. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21473. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21474. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21475. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21476. fi
  21477. fi
  21478. }
  21479. CheckHaikuGL()
  21480. {
  21481. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21482. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21483. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21484. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21486. SUMMARY_video="${SUMMARY_video} opengl"
  21487. fi
  21488. }
  21489. CheckMacGL()
  21490. {
  21491. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21492. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21493. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21494. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21495. SUMMARY_video="${SUMMARY_video} opengl"
  21496. fi
  21497. }
  21498. CheckMacGLES()
  21499. {
  21500. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21501. video_opengl_egl=yes
  21502. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21503. video_opengles_v2=yes
  21504. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21505. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21506. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21507. fi
  21508. }
  21509. CheckEmscriptenGLES()
  21510. {
  21511. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21513. printf %s "checking for EGL support... " >&6; }
  21514. video_opengl_egl=no
  21515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21516. /* end confdefs.h. */
  21517. #include <EGL/egl.h>
  21518. int
  21519. main (void)
  21520. {
  21521. ;
  21522. return 0;
  21523. }
  21524. _ACEOF
  21525. if ac_fn_c_try_compile "$LINENO"
  21526. then :
  21527. video_opengl_egl=yes
  21528. fi
  21529. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21531. printf "%s\n" "$video_opengl_egl" >&6; }
  21532. if test x$video_opengl_egl = xyes; then
  21533. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21534. fi
  21535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21536. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21537. video_opengles_v2=no
  21538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21539. /* end confdefs.h. */
  21540. #include <GLES2/gl2.h>
  21541. #include <GLES2/gl2ext.h>
  21542. int
  21543. main (void)
  21544. {
  21545. ;
  21546. return 0;
  21547. }
  21548. _ACEOF
  21549. if ac_fn_c_try_compile "$LINENO"
  21550. then :
  21551. video_opengles_v2=yes
  21552. fi
  21553. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21555. printf "%s\n" "$video_opengles_v2" >&6; }
  21556. if test x$video_opengles_v2 = xyes; then
  21557. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21558. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21559. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21560. fi
  21561. fi
  21562. }
  21563. # Check whether --enable-video-vulkan was given.
  21564. if test ${enable_video_vulkan+y}
  21565. then :
  21566. enableval=$enable_video_vulkan;
  21567. else $as_nop
  21568. enable_video_vulkan=yes
  21569. fi
  21570. CheckVulkan()
  21571. {
  21572. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21573. case "$host" in
  21574. *-*-android*)
  21575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21576. /* end confdefs.h. */
  21577. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21578. #error Vulkan doesn't work on this configuration
  21579. #endif
  21580. int
  21581. main (void)
  21582. {
  21583. ;
  21584. return 0;
  21585. }
  21586. _ACEOF
  21587. if ac_fn_c_try_compile "$LINENO"
  21588. then :
  21589. else $as_nop
  21590. enable_video_vulkan=no
  21591. fi
  21592. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21593. ;;
  21594. *-*-darwin*)
  21595. save_CFLAGS="$CFLAGS"
  21596. CFLAGS="$CFLAGS -x objective-c"
  21597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21598. /* end confdefs.h. */
  21599. #include <Cocoa/Cocoa.h>
  21600. #include <Metal/Metal.h>
  21601. #include <QuartzCore/CAMetalLayer.h>
  21602. #if TARGET_CPU_X86
  21603. #error Vulkan doesn't work on this configuration
  21604. #endif
  21605. int
  21606. main (void)
  21607. {
  21608. ;
  21609. return 0;
  21610. }
  21611. _ACEOF
  21612. if ac_fn_c_try_compile "$LINENO"
  21613. then :
  21614. else $as_nop
  21615. enable_video_vulkan=no
  21616. fi
  21617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21618. CFLAGS="$save_CFLAGS"
  21619. ;;
  21620. *)
  21621. ;;
  21622. esac
  21623. if test x$enable_video_vulkan = xno; then
  21624. # For reasons I am totally unable to see, I get an undefined macro error if
  21625. # I put this in the AC_TRY_COMPILE.
  21626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21627. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21628. fi
  21629. fi
  21630. if test x$have_loadso != xyes; then
  21631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21632. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21633. enable_video_vulkan=no
  21634. fi
  21635. if test x$enable_video_vulkan = xyes; then
  21636. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21637. SUMMARY_video="${SUMMARY_video} vulkan"
  21638. fi
  21639. }
  21640. CheckInputEvents()
  21641. {
  21642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21643. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21644. use_input_events=no
  21645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21646. /* end confdefs.h. */
  21647. #include <linux/input.h>
  21648. int
  21649. main (void)
  21650. {
  21651. #ifndef EVIOCGNAME
  21652. #error EVIOCGNAME() ioctl not available
  21653. #endif
  21654. ;
  21655. return 0;
  21656. }
  21657. _ACEOF
  21658. if ac_fn_c_try_compile "$LINENO"
  21659. then :
  21660. use_input_events=yes
  21661. fi
  21662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21664. printf "%s\n" "$use_input_events" >&6; }
  21665. if test x$use_input_events = xyes; then
  21666. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21667. SUMMARY_input="${SUMMARY_input} linuxev"
  21668. fi
  21669. }
  21670. CheckInputKD()
  21671. {
  21672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21673. printf %s "checking for Linux kd.h... " >&6; }
  21674. use_input_kd=no
  21675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21676. /* end confdefs.h. */
  21677. #include <linux/kd.h>
  21678. #include <linux/keyboard.h>
  21679. #include <sys/ioctl.h>
  21680. int
  21681. main (void)
  21682. {
  21683. struct kbentry kbe;
  21684. kbe.kb_table = KG_CTRL;
  21685. ioctl(0, KDGKBENT, &kbe);
  21686. ;
  21687. return 0;
  21688. }
  21689. _ACEOF
  21690. if ac_fn_c_try_compile "$LINENO"
  21691. then :
  21692. use_input_kd=yes
  21693. fi
  21694. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21696. printf "%s\n" "$use_input_kd" >&6; }
  21697. if test x$use_input_kd = xyes; then
  21698. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21699. SUMMARY_input="${SUMMARY_input} linuxkd"
  21700. fi
  21701. }
  21702. CheckInputKBIO()
  21703. {
  21704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21705. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21706. use_input_kbio=no
  21707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21708. /* end confdefs.h. */
  21709. #include <sys/kbio.h>
  21710. #include <sys/ioctl.h>
  21711. int
  21712. main (void)
  21713. {
  21714. accentmap_t accTable;
  21715. ioctl(0, KDENABIO, 1);
  21716. ;
  21717. return 0;
  21718. }
  21719. _ACEOF
  21720. if ac_fn_c_try_compile "$LINENO"
  21721. then :
  21722. use_input_kbio=yes
  21723. fi
  21724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21726. printf "%s\n" "$use_input_kbio" >&6; }
  21727. if test x$use_input_kbio = xyes; then
  21728. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21729. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21730. fi
  21731. }
  21732. CheckInputWSCONS()
  21733. {
  21734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21735. printf %s "checking for OpenBSD wscons... " >&6; }
  21736. use_input_wscons=no
  21737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21738. /* end confdefs.h. */
  21739. #include <sys/time.h>
  21740. #include <dev/wscons/wsconsio.h>
  21741. #include <dev/wscons/wsksymdef.h>
  21742. #include <dev/wscons/wsksymvar.h>
  21743. #include <sys/ioctl.h>
  21744. int
  21745. main (void)
  21746. {
  21747. struct wskbd_map_data data;
  21748. ioctl(0, WSKBDIO_GETMAP, &data);
  21749. ;
  21750. return 0;
  21751. }
  21752. _ACEOF
  21753. if ac_fn_c_try_compile "$LINENO"
  21754. then :
  21755. use_input_wscons=yes
  21756. fi
  21757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21759. printf "%s\n" "$use_input_wscons" >&6; }
  21760. if test x$use_input_wscons = xyes; then
  21761. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21762. SUMMARY_input="${SUMMARY_input} wscons"
  21763. fi
  21764. }
  21765. CheckLibUDev()
  21766. {
  21767. # Check whether --enable-libudev was given.
  21768. if test ${enable_libudev+y}
  21769. then :
  21770. enableval=$enable_libudev;
  21771. else $as_nop
  21772. enable_libudev=yes
  21773. fi
  21774. if test x$enable_libudev = xyes; then
  21775. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21776. if test "x$ac_cv_header_libudev_h" = xyes
  21777. then :
  21778. have_libudev_h_hdr=yes
  21779. else $as_nop
  21780. have_libudev_h_hdr=no
  21781. fi
  21782. if test x$have_libudev_h_hdr = xyes; then
  21783. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21784. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21785. if test x$udev_lib != x; then
  21786. echo "-- dynamic udev -> $udev_lib"
  21787. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21788. fi
  21789. fi
  21790. fi
  21791. }
  21792. CheckDBus()
  21793. {
  21794. # Check whether --enable-dbus was given.
  21795. if test ${enable_dbus+y}
  21796. then :
  21797. enableval=$enable_dbus;
  21798. else $as_nop
  21799. enable_dbus=yes
  21800. fi
  21801. if test x$enable_dbus = xyes; then
  21802. pkg_failed=no
  21803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21804. printf %s "checking for dbus-1... " >&6; }
  21805. if test -n "$DBUS_CFLAGS"; then
  21806. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21807. elif test -n "$PKG_CONFIG"; then
  21808. if test -n "$PKG_CONFIG" && \
  21809. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21810. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21811. ac_status=$?
  21812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21813. test $ac_status = 0; }; then
  21814. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21815. test "x$?" != "x0" && pkg_failed=yes
  21816. else
  21817. pkg_failed=yes
  21818. fi
  21819. else
  21820. pkg_failed=untried
  21821. fi
  21822. if test -n "$DBUS_LIBS"; then
  21823. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21824. elif test -n "$PKG_CONFIG"; then
  21825. if test -n "$PKG_CONFIG" && \
  21826. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21827. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21828. ac_status=$?
  21829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21830. test $ac_status = 0; }; then
  21831. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  21832. test "x$?" != "x0" && pkg_failed=yes
  21833. else
  21834. pkg_failed=yes
  21835. fi
  21836. else
  21837. pkg_failed=untried
  21838. fi
  21839. if test $pkg_failed = yes; then
  21840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21841. printf "%s\n" "no" >&6; }
  21842. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21843. _pkg_short_errors_supported=yes
  21844. else
  21845. _pkg_short_errors_supported=no
  21846. fi
  21847. if test $_pkg_short_errors_supported = yes; then
  21848. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  21849. else
  21850. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  21851. fi
  21852. # Put the nasty error message in config.log where it belongs
  21853. echo "$DBUS_PKG_ERRORS" >&5
  21854. have_dbus=no
  21855. elif test $pkg_failed = untried; then
  21856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21857. printf "%s\n" "no" >&6; }
  21858. have_dbus=no
  21859. else
  21860. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  21861. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  21862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21863. printf "%s\n" "yes" >&6; }
  21864. have_dbus=yes
  21865. fi
  21866. save_CPPFLAGS="$CPPFLAGS"
  21867. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  21868. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  21869. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  21870. then :
  21871. have_dbus_dbus_h_hdr=yes
  21872. else $as_nop
  21873. have_dbus_dbus_h_hdr=no
  21874. fi
  21875. CPPFLAGS="$save_CPPFLAGS"
  21876. if test x$have_dbus_dbus_h_hdr = xyes; then
  21877. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  21878. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  21879. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  21880. fi
  21881. fi
  21882. }
  21883. CheckIME()
  21884. {
  21885. # Check whether --enable-ime was given.
  21886. if test ${enable_ime+y}
  21887. then :
  21888. enableval=$enable_ime;
  21889. else $as_nop
  21890. enable_ime=yes
  21891. fi
  21892. if test x$enable_ime = xyes; then
  21893. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  21894. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  21895. fi
  21896. }
  21897. CheckInotify()
  21898. {
  21899. save_LIBS="$LIBS"
  21900. case "$host" in
  21901. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  21902. ;;
  21903. esac
  21904. for ac_header in sys/inotify.h
  21905. do :
  21906. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  21907. if test "x$ac_cv_header_sys_inotify_h" = xyes
  21908. then :
  21909. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  21910. have_inotify_inotify_h_hdr=yes
  21911. fi
  21912. done
  21913. for ac_func in inotify_init
  21914. do :
  21915. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  21916. if test "x$ac_cv_func_inotify_init" = xyes
  21917. then :
  21918. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  21919. have_inotify=yes
  21920. fi
  21921. done
  21922. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  21923. if test "x$ac_cv_func_inotify_init1" = xyes
  21924. then :
  21925. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  21926. fi
  21927. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  21928. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  21929. case "$host" in
  21930. *-*-freebsd*|*-*-dragonfly*)
  21931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  21932. ;;
  21933. esac
  21934. fi
  21935. LIBS="$save_LIBS"
  21936. }
  21937. CheckIBus()
  21938. {
  21939. # Check whether --enable-ibus was given.
  21940. if test ${enable_ibus+y}
  21941. then :
  21942. enableval=$enable_ibus;
  21943. else $as_nop
  21944. enable_ibus=yes
  21945. fi
  21946. if test x$enable_ibus = xyes; then
  21947. pkg_failed=no
  21948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  21949. printf %s "checking for ibus-1.0... " >&6; }
  21950. if test -n "$IBUS_CFLAGS"; then
  21951. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  21952. elif test -n "$PKG_CONFIG"; then
  21953. if test -n "$PKG_CONFIG" && \
  21954. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21955. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21956. ac_status=$?
  21957. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21958. test $ac_status = 0; }; then
  21959. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  21960. test "x$?" != "x0" && pkg_failed=yes
  21961. else
  21962. pkg_failed=yes
  21963. fi
  21964. else
  21965. pkg_failed=untried
  21966. fi
  21967. if test -n "$IBUS_LIBS"; then
  21968. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  21969. elif test -n "$PKG_CONFIG"; then
  21970. if test -n "$PKG_CONFIG" && \
  21971. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  21972. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  21973. ac_status=$?
  21974. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21975. test $ac_status = 0; }; then
  21976. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  21977. test "x$?" != "x0" && pkg_failed=yes
  21978. else
  21979. pkg_failed=yes
  21980. fi
  21981. else
  21982. pkg_failed=untried
  21983. fi
  21984. if test $pkg_failed = yes; then
  21985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21986. printf "%s\n" "no" >&6; }
  21987. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21988. _pkg_short_errors_supported=yes
  21989. else
  21990. _pkg_short_errors_supported=no
  21991. fi
  21992. if test $_pkg_short_errors_supported = yes; then
  21993. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21994. else
  21995. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  21996. fi
  21997. # Put the nasty error message in config.log where it belongs
  21998. echo "$IBUS_PKG_ERRORS" >&5
  21999. have_ibus=no
  22000. elif test $pkg_failed = untried; then
  22001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22002. printf "%s\n" "no" >&6; }
  22003. have_ibus=no
  22004. else
  22005. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22006. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22008. printf "%s\n" "yes" >&6; }
  22009. have_ibus=yes
  22010. fi
  22011. save_CPPFLAGS="$CPPFLAGS"
  22012. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22013. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22014. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22015. then :
  22016. have_ibus_ibus_h_hdr=yes
  22017. else $as_nop
  22018. have_ibus_ibus_h_hdr=no
  22019. fi
  22020. CPPFLAGS="$save_CPPFLAGS"
  22021. if test x$have_ibus_ibus_h_hdr = xyes; then
  22022. if test x$enable_ime != xyes; then
  22023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22024. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22025. have_ibus_ibus_h_hdr=no
  22026. elif test x$enable_dbus != xyes; then
  22027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22028. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22029. have_ibus_ibus_h_hdr=no
  22030. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22032. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22033. have_ibus_ibus_h_hdr=no
  22034. else
  22035. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22036. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22037. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22038. fi
  22039. fi
  22040. fi
  22041. }
  22042. CheckFcitx()
  22043. {
  22044. # Check whether --enable-fcitx was given.
  22045. if test ${enable_fcitx+y}
  22046. then :
  22047. enableval=$enable_fcitx;
  22048. else $as_nop
  22049. enable_fcitx=yes
  22050. fi
  22051. if test x$enable_fcitx = xyes; then
  22052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22053. printf %s "checking for fcitx support... " >&6; }
  22054. have_fcitx=no
  22055. if test x$enable_ime != xyes; then
  22056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22057. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22058. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22060. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22061. else
  22062. have_fcitx=yes
  22063. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22064. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22065. fi
  22066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22067. printf "%s\n" "$have_fcitx" >&6; }
  22068. fi
  22069. }
  22070. CheckJoystickMFI()
  22071. {
  22072. # Check whether --enable-joystick-mfi was given.
  22073. if test ${enable_joystick_mfi+y}
  22074. then :
  22075. enableval=$enable_joystick_mfi;
  22076. else $as_nop
  22077. enable_joystick_mfi=yes
  22078. fi
  22079. if test x$enable_joystick_mfi = xyes; then
  22080. save_CFLAGS="$CFLAGS"
  22081. save_LDFLAGS="$LDFLAGS"
  22082. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22083. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22085. printf %s "checking for GameController framework... " >&6; }
  22086. enable_joystick_mfi=no
  22087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22088. /* end confdefs.h. */
  22089. #include <AvailabilityMacros.h>
  22090. #include <TargetConditionals.h>
  22091. #import <GameController/GameController.h>
  22092. int
  22093. main (void)
  22094. {
  22095. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22096. #error GameController framework doesn't work on this configuration
  22097. #endif
  22098. #if TARGET_CPU_X86
  22099. #error GameController framework doesn't work on this configuration
  22100. #endif
  22101. ;
  22102. return 0;
  22103. }
  22104. _ACEOF
  22105. if ac_fn_c_try_link "$LINENO"
  22106. then :
  22107. enable_joystick_mfi=yes
  22108. fi
  22109. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22110. conftest$ac_exeext conftest.$ac_ext
  22111. CFLAGS="$save_CFLAGS"
  22112. LDFLAGS="$save_LDFLAGS"
  22113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22114. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22115. if test x$enable_joystick_mfi = xyes; then
  22116. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22117. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22119. fi
  22120. fi
  22121. }
  22122. CheckPTHREAD()
  22123. {
  22124. case "$host" in
  22125. *-*-emscripten*)
  22126. enable_pthreads_default=no
  22127. ;;
  22128. *)
  22129. enable_pthreads_default=yes
  22130. ;;
  22131. esac
  22132. # Check whether --enable-pthreads was given.
  22133. if test ${enable_pthreads+y}
  22134. then :
  22135. enableval=$enable_pthreads;
  22136. else $as_nop
  22137. enable_pthreads=maybe
  22138. fi
  22139. # Check whether --enable-pthread-sem was given.
  22140. if test ${enable_pthread_sem+y}
  22141. then :
  22142. enableval=$enable_pthread_sem;
  22143. else $as_nop
  22144. enable_pthread_sem=maybe
  22145. fi
  22146. if test x$enable_pthreads = xmaybe; then
  22147. enable_pthreads=$enable_pthreads_default
  22148. fi
  22149. if test x$enable_pthread_sem = xmaybe; then
  22150. enable_pthread_sem=$enable_pthreads
  22151. fi
  22152. case "$host" in
  22153. *-*-android*)
  22154. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22155. pthread_lib=""
  22156. ;;
  22157. *-*-linux*|*-*-uclinux*)
  22158. pthread_cflags="-D_REENTRANT"
  22159. pthread_lib="-lpthread"
  22160. ;;
  22161. *-*-bsdi*)
  22162. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22163. pthread_lib=""
  22164. ;;
  22165. *-*-darwin*)
  22166. pthread_cflags="-D_THREAD_SAFE"
  22167. # causes Carbon.p complaints?
  22168. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22169. ;;
  22170. *-*-freebsd*|*-*-dragonfly*)
  22171. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22172. pthread_lib="-pthread"
  22173. ;;
  22174. *-*-netbsd*)
  22175. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22176. pthread_lib="-lpthread"
  22177. ;;
  22178. *-*-openbsd*)
  22179. pthread_cflags="-D_REENTRANT"
  22180. pthread_lib="-lpthread"
  22181. ;;
  22182. *-*-solaris2.9)
  22183. # From Solaris 9+, posix4's preferred name is rt.
  22184. pthread_cflags="-D_REENTRANT"
  22185. pthread_lib="-lpthread -lrt"
  22186. ;;
  22187. *-*-solaris2.10)
  22188. # Solaris 10+ merged pthread into libc.
  22189. pthread_cflags="-D_REENTRANT"
  22190. pthread_lib="-lrt"
  22191. ;;
  22192. *-*-solaris*)
  22193. # Solaris 11+ merged rt into libc.
  22194. pthread_cflags="-D_REENTRANT"
  22195. pthread_lib=""
  22196. ;;
  22197. *-*-sysv5*)
  22198. pthread_cflags="-D_REENTRANT -Kthread"
  22199. pthread_lib=""
  22200. ;;
  22201. *-*-aix*)
  22202. pthread_cflags="-D_REENTRANT -mthreads"
  22203. pthread_lib="-lpthread"
  22204. ;;
  22205. *-*-hpux11*)
  22206. pthread_cflags="-D_REENTRANT"
  22207. pthread_lib="-L/usr/lib -lpthread"
  22208. ;;
  22209. *-*-haiku*)
  22210. pthread_cflags="-D_REENTRANT"
  22211. pthread_lib=""
  22212. ;;
  22213. *-*-emscripten*)
  22214. pthread_cflags="-D_REENTRANT -pthread"
  22215. pthread_lib="-pthread"
  22216. ;;
  22217. *)
  22218. pthread_cflags="-D_REENTRANT"
  22219. pthread_lib="-lpthread"
  22220. ;;
  22221. esac
  22222. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22223. # Save the original compiler flags and libraries
  22224. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22225. # Add the pthread compiler flags and libraries
  22226. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22227. # Check to see if we have pthread support on this system
  22228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22229. printf %s "checking for pthreads... " >&6; }
  22230. use_pthreads=no
  22231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22232. /* end confdefs.h. */
  22233. #include <pthread.h>
  22234. int
  22235. main (void)
  22236. {
  22237. pthread_attr_t type;
  22238. pthread_attr_init(&type);
  22239. ;
  22240. return 0;
  22241. }
  22242. _ACEOF
  22243. if ac_fn_c_try_link "$LINENO"
  22244. then :
  22245. use_pthreads=yes
  22246. fi
  22247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22248. conftest$ac_exeext conftest.$ac_ext
  22249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22250. printf "%s\n" "$use_pthreads" >&6; }
  22251. # Restore the compiler flags and libraries
  22252. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22253. # Do futher testing if we have pthread support...
  22254. if test x$use_pthreads = xyes; then
  22255. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22256. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22258. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22259. # Save the original compiler flags and libraries
  22260. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22261. # Add the pthread compiler flags and libraries
  22262. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22263. # Check to see if recursive mutexes are available
  22264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22265. printf %s "checking for recursive mutexes... " >&6; }
  22266. has_recursive_mutexes=no
  22267. if test x$has_recursive_mutexes = xno; then
  22268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22269. /* end confdefs.h. */
  22270. #define _GNU_SOURCE 1
  22271. #include <pthread.h>
  22272. int
  22273. main (void)
  22274. {
  22275. pthread_mutexattr_t attr;
  22276. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22277. ;
  22278. return 0;
  22279. }
  22280. _ACEOF
  22281. if ac_fn_c_try_link "$LINENO"
  22282. then :
  22283. has_recursive_mutexes=yes
  22284. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22285. fi
  22286. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22287. conftest$ac_exeext conftest.$ac_ext
  22288. fi
  22289. if test x$has_recursive_mutexes = xno; then
  22290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22291. /* end confdefs.h. */
  22292. #define _GNU_SOURCE 1
  22293. #include <pthread.h>
  22294. int
  22295. main (void)
  22296. {
  22297. pthread_mutexattr_t attr;
  22298. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22299. ;
  22300. return 0;
  22301. }
  22302. _ACEOF
  22303. if ac_fn_c_try_link "$LINENO"
  22304. then :
  22305. has_recursive_mutexes=yes
  22306. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22307. fi
  22308. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22309. conftest$ac_exeext conftest.$ac_ext
  22310. fi
  22311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22312. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22313. # Check to see if pthread semaphore support is missing
  22314. if test x$enable_pthread_sem = xyes; then
  22315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22316. printf %s "checking for pthread semaphores... " >&6; }
  22317. have_pthread_sem=no
  22318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22319. /* end confdefs.h. */
  22320. #include <pthread.h>
  22321. #include <semaphore.h>
  22322. int
  22323. main (void)
  22324. {
  22325. ;
  22326. return 0;
  22327. }
  22328. _ACEOF
  22329. if ac_fn_c_try_compile "$LINENO"
  22330. then :
  22331. have_pthread_sem=yes
  22332. fi
  22333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22335. printf "%s\n" "$have_pthread_sem" >&6; }
  22336. fi
  22337. if test x$have_pthread_sem = xyes; then
  22338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22339. printf %s "checking for sem_timedwait... " >&6; }
  22340. have_sem_timedwait=no
  22341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22342. /* end confdefs.h. */
  22343. #include <pthread.h>
  22344. #include <semaphore.h>
  22345. int
  22346. main (void)
  22347. {
  22348. sem_timedwait(NULL, NULL);
  22349. ;
  22350. return 0;
  22351. }
  22352. _ACEOF
  22353. if ac_fn_c_try_link "$LINENO"
  22354. then :
  22355. have_sem_timedwait=yes
  22356. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22357. fi
  22358. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22359. conftest$ac_exeext conftest.$ac_ext
  22360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22361. printf "%s\n" "$have_sem_timedwait" >&6; }
  22362. fi
  22363. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22364. "
  22365. if test "x$ac_cv_header_pthread_np_h" = xyes
  22366. then :
  22367. have_pthread_np_h=yes
  22368. else $as_nop
  22369. have_pthread_np_h=no
  22370. fi
  22371. if test x$have_pthread_np_h = xyes; then
  22372. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22373. fi
  22374. # Check to see if pthread naming is available
  22375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22376. printf %s "checking for pthread_setname_np... " >&6; }
  22377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22378. /* end confdefs.h. */
  22379. /* Override any GCC internal prototype to avoid an error.
  22380. Use char because int might match the return type of a GCC
  22381. builtin and then its argument prototype would still apply. */
  22382. char pthread_setname_np ();
  22383. int
  22384. main (void)
  22385. {
  22386. return pthread_setname_np ();
  22387. ;
  22388. return 0;
  22389. }
  22390. _ACEOF
  22391. if ac_fn_c_try_link "$LINENO"
  22392. then :
  22393. has_pthread_setname_np=yes
  22394. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22395. else $as_nop
  22396. has_pthread_setname_np=no
  22397. fi
  22398. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22399. conftest$ac_exeext conftest.$ac_ext
  22400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22401. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22403. printf %s "checking for pthread_set_name_np... " >&6; }
  22404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22405. /* end confdefs.h. */
  22406. /* Override any GCC internal prototype to avoid an error.
  22407. Use char because int might match the return type of a GCC
  22408. builtin and then its argument prototype would still apply. */
  22409. char pthread_set_name_np ();
  22410. int
  22411. main (void)
  22412. {
  22413. return pthread_set_name_np ();
  22414. ;
  22415. return 0;
  22416. }
  22417. _ACEOF
  22418. if ac_fn_c_try_link "$LINENO"
  22419. then :
  22420. has_pthread_set_name_np=yes
  22421. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22422. else $as_nop
  22423. has_pthread_set_name_np=no
  22424. fi
  22425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22426. conftest$ac_exeext conftest.$ac_ext
  22427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22428. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22429. # Restore the compiler flags and libraries
  22430. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22431. # Basic thread creation functions
  22432. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22433. # Semaphores
  22434. # We can fake these with mutexes and condition variables if necessary
  22435. if test x$have_pthread_sem = xyes; then
  22436. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22437. else
  22438. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22439. fi
  22440. # Mutexes
  22441. # We can fake these with semaphores if necessary
  22442. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22443. # Condition variables
  22444. # We can fake these with semaphores and mutexes if necessary
  22445. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22446. # Thread local storage
  22447. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22448. have_threads=yes
  22449. fi
  22450. fi
  22451. }
  22452. CheckWINDOWS()
  22453. {
  22454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22455. printf %s "checking Windows compiler... " >&6; }
  22456. have_win32_gcc=no
  22457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22458. /* end confdefs.h. */
  22459. #include <windows.h>
  22460. int
  22461. main (void)
  22462. {
  22463. ;
  22464. return 0;
  22465. }
  22466. _ACEOF
  22467. if ac_fn_c_try_compile "$LINENO"
  22468. then :
  22469. have_win32_gcc=yes
  22470. fi
  22471. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22473. printf "%s\n" "$have_win32_gcc" >&6; }
  22474. if test x$have_win32_gcc != xyes; then
  22475. as_fn_error $? "
  22476. *** Your compiler ($CC) does not produce Windows executables!
  22477. " "$LINENO" 5
  22478. fi
  22479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22480. printf %s "checking Windows CE... " >&6; }
  22481. have_wince=no
  22482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22483. /* end confdefs.h. */
  22484. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22485. #error This is not Windows CE
  22486. #endif
  22487. int
  22488. main (void)
  22489. {
  22490. ;
  22491. return 0;
  22492. }
  22493. _ACEOF
  22494. if ac_fn_c_try_compile "$LINENO"
  22495. then :
  22496. have_wince=yes
  22497. as_fn_error $? "
  22498. *** Sorry, Windows CE is no longer supported.
  22499. " "$LINENO" 5
  22500. fi
  22501. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22503. printf "%s\n" "$have_wince" >&6; }
  22504. # This fixes Windows stack alignment with newer GCC
  22505. CheckStackBoundary
  22506. # headers needed elsewhere
  22507. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22508. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22509. then :
  22510. have_tpcshrd_h=yes
  22511. fi
  22512. if test x$have_tpcshrd_h = xyes; then
  22513. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22514. fi
  22515. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22516. if test "x$ac_cv_header_roapi_h" = xyes
  22517. then :
  22518. have_roapi_h=yes
  22519. fi
  22520. if test x$have_roapi_h = xyes; then
  22521. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22522. fi
  22523. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22524. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22525. then :
  22526. have_shellscalingapi_h=yes
  22527. fi
  22528. if test x$shellscalingapi_h = xyes; then
  22529. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22530. fi
  22531. }
  22532. CheckDIRECTX()
  22533. {
  22534. # Check whether --enable-directx was given.
  22535. if test ${enable_directx+y}
  22536. then :
  22537. enableval=$enable_directx;
  22538. else $as_nop
  22539. enable_directx=yes
  22540. fi
  22541. if test x$enable_directx = xyes; then
  22542. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22543. if test "x$ac_cv_header_d3d9_h" = xyes
  22544. then :
  22545. have_d3d=yes
  22546. fi
  22547. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22548. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22549. then :
  22550. have_d3d11=yes
  22551. fi
  22552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22553. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22555. /* end confdefs.h. */
  22556. #include <winsdkver.h>
  22557. #include <sdkddkver.h>
  22558. #include <d3d12.h>
  22559. ID3D12Device1 *device;
  22560. #if WDK_NTDDI_VERSION <= 0x0A000008
  22561. asdf
  22562. #endif
  22563. int
  22564. main (void)
  22565. {
  22566. ;
  22567. return 0;
  22568. }
  22569. _ACEOF
  22570. if ac_fn_c_try_compile "$LINENO"
  22571. then :
  22572. have_d3d12=yes
  22573. else $as_nop
  22574. have_d3d12=no
  22575. fi
  22576. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22578. printf "%s\n" "$have_d3d12" >&6; }
  22579. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22580. if test "x$ac_cv_header_ddraw_h" = xyes
  22581. then :
  22582. have_ddraw=yes
  22583. fi
  22584. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22585. if test "x$ac_cv_header_dsound_h" = xyes
  22586. then :
  22587. have_dsound=yes
  22588. fi
  22589. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22590. if test "x$ac_cv_header_dinput_h" = xyes
  22591. then :
  22592. have_dinput=yes
  22593. fi
  22594. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22595. if test "x$ac_cv_header_dxgi_h" = xyes
  22596. then :
  22597. have_dxgi=yes
  22598. fi
  22599. if test x$have_ddraw = xyes; then
  22600. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22601. fi
  22602. if test x$have_dinput = xyes; then
  22603. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22604. fi
  22605. if test x$have_dsound = xyes; then
  22606. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22607. fi
  22608. if test x$have_dxgi = xyes; then
  22609. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22610. fi
  22611. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22612. # FIXME: ...so force it off for now.
  22613. case "$host" in
  22614. *-*-cygwin*)
  22615. have_dinput=false
  22616. ;;
  22617. esac
  22618. fi
  22619. # Check whether --enable-xinput was given.
  22620. if test ${enable_xinput+y}
  22621. then :
  22622. enableval=$enable_xinput;
  22623. else $as_nop
  22624. enable_xinput=yes
  22625. fi
  22626. if test x$enable_xinput = xyes; then
  22627. have_xinput_gamepadex=no
  22628. have_xinput_stateex=no
  22629. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22630. if test "x$ac_cv_header_xinput_h" = xyes
  22631. then :
  22632. have_xinput=yes
  22633. fi
  22634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22635. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22637. /* end confdefs.h. */
  22638. #include <windows.h>
  22639. #include <xinput.h>
  22640. XINPUT_GAMEPAD_EX x1;
  22641. int
  22642. main (void)
  22643. {
  22644. ;
  22645. return 0;
  22646. }
  22647. _ACEOF
  22648. if ac_fn_c_try_compile "$LINENO"
  22649. then :
  22650. have_xinput_gamepadex=yes
  22651. fi
  22652. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22654. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22656. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22658. /* end confdefs.h. */
  22659. #include <windows.h>
  22660. #include <xinput.h>
  22661. XINPUT_STATE_EX s1;
  22662. int
  22663. main (void)
  22664. {
  22665. ;
  22666. return 0;
  22667. }
  22668. _ACEOF
  22669. if ac_fn_c_try_compile "$LINENO"
  22670. then :
  22671. have_xinput_stateex=yes
  22672. fi
  22673. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22675. printf "%s\n" "$have_xinput_stateex" >&6; }
  22676. if test x$have_xinput = xyes; then
  22677. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22678. fi
  22679. if test x$have_xinput_gamepadex = xyes; then
  22680. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22681. fi
  22682. if test x$have_xinput_stateex = xyes; then
  22683. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22684. fi
  22685. fi
  22686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22687. printf %s "checking for windows.gaming.input.h... " >&6; }
  22688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22689. /* end confdefs.h. */
  22690. #define COBJMACROS
  22691. #include <windows.gaming.input.h>
  22692. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22693. int
  22694. main (void)
  22695. {
  22696. ;
  22697. return 0;
  22698. }
  22699. _ACEOF
  22700. if ac_fn_c_try_compile "$LINENO"
  22701. then :
  22702. have_wgi=yes
  22703. else $as_nop
  22704. have_wgi=no
  22705. fi
  22706. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22708. printf "%s\n" "$have_wgi" >&6; }
  22709. if test x$have_wgi = xyes; then
  22710. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22711. fi
  22712. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22713. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22714. then :
  22715. have_wasapi=yes
  22716. fi
  22717. if test x$have_wasapi = xyes; then
  22718. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22719. fi
  22720. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22721. if test "x$ac_cv_header_audioclient_h" = xyes
  22722. then :
  22723. else $as_nop
  22724. have_wasapi=no
  22725. fi
  22726. if test x$have_wasapi = xyes; then
  22727. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22728. fi
  22729. # Check whether --enable-wasapi was given.
  22730. if test ${enable_wasapi+y}
  22731. then :
  22732. enableval=$enable_wasapi;
  22733. else $as_nop
  22734. enable_wasapi=yes
  22735. fi
  22736. }
  22737. CheckDLOPEN()
  22738. {
  22739. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22740. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22741. if test "x$ac_cv_header_dlfcn_h" = xyes
  22742. then :
  22743. have_dlfcn_h=yes
  22744. else $as_nop
  22745. have_dlfcn_h=no
  22746. fi
  22747. have_dlopen=no
  22748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22749. printf %s "checking for dlopen in -lc... " >&6; }
  22750. if test ${ac_cv_lib_c_dlopen+y}
  22751. then :
  22752. printf %s "(cached) " >&6
  22753. else $as_nop
  22754. ac_check_lib_save_LIBS=$LIBS
  22755. LIBS="-lc $LIBS"
  22756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22757. /* end confdefs.h. */
  22758. /* Override any GCC internal prototype to avoid an error.
  22759. Use char because int might match the return type of a GCC
  22760. builtin and then its argument prototype would still apply. */
  22761. char dlopen ();
  22762. int
  22763. main (void)
  22764. {
  22765. return dlopen ();
  22766. ;
  22767. return 0;
  22768. }
  22769. _ACEOF
  22770. if ac_fn_c_try_link "$LINENO"
  22771. then :
  22772. ac_cv_lib_c_dlopen=yes
  22773. else $as_nop
  22774. ac_cv_lib_c_dlopen=no
  22775. fi
  22776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22777. conftest$ac_exeext conftest.$ac_ext
  22778. LIBS=$ac_check_lib_save_LIBS
  22779. fi
  22780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22781. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22782. if test "x$ac_cv_lib_c_dlopen" = xyes
  22783. then :
  22784. have_dlopen=yes
  22785. else $as_nop
  22786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22787. printf %s "checking for dlopen in -ldl... " >&6; }
  22788. if test ${ac_cv_lib_dl_dlopen+y}
  22789. then :
  22790. printf %s "(cached) " >&6
  22791. else $as_nop
  22792. ac_check_lib_save_LIBS=$LIBS
  22793. LIBS="-ldl $LIBS"
  22794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22795. /* end confdefs.h. */
  22796. /* Override any GCC internal prototype to avoid an error.
  22797. Use char because int might match the return type of a GCC
  22798. builtin and then its argument prototype would still apply. */
  22799. char dlopen ();
  22800. int
  22801. main (void)
  22802. {
  22803. return dlopen ();
  22804. ;
  22805. return 0;
  22806. }
  22807. _ACEOF
  22808. if ac_fn_c_try_link "$LINENO"
  22809. then :
  22810. ac_cv_lib_dl_dlopen=yes
  22811. else $as_nop
  22812. ac_cv_lib_dl_dlopen=no
  22813. fi
  22814. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22815. conftest$ac_exeext conftest.$ac_ext
  22816. LIBS=$ac_check_lib_save_LIBS
  22817. fi
  22818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22819. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22820. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22821. then :
  22822. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22823. fi
  22824. fi
  22825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  22826. printf %s "checking for dlopen... " >&6; }
  22827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  22828. printf "%s\n" "$have_dlopen" >&6; }
  22829. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  22830. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  22831. if test x$enable_loadso = xyes; then
  22832. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  22833. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  22834. have_loadso=yes
  22835. fi
  22836. fi
  22837. }
  22838. CheckO_CLOEXEC()
  22839. {
  22840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  22841. printf %s "checking for O_CLOEXEC... " >&6; }
  22842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22843. /* end confdefs.h. */
  22844. #include <fcntl.h>
  22845. int flag = O_CLOEXEC;
  22846. int
  22847. main (void)
  22848. {
  22849. ;
  22850. return 0;
  22851. }
  22852. _ACEOF
  22853. if ac_fn_c_try_compile "$LINENO"
  22854. then :
  22855. have_o_cloexec=yes
  22856. else $as_nop
  22857. have_o_cloexec=no
  22858. fi
  22859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  22861. printf "%s\n" "$have_o_cloexec" >&6; }
  22862. if test $have_o_cloexec = yes; then
  22863. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  22864. fi
  22865. }
  22866. CheckUSBHID()
  22867. {
  22868. case "$host" in
  22869. *-*-*bsd*|*-*-dragonfly*)
  22870. if test x$enable_joystick = xyes; then
  22871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  22872. printf %s "checking for hid_init in -lusbhid... " >&6; }
  22873. if test ${ac_cv_lib_usbhid_hid_init+y}
  22874. then :
  22875. printf %s "(cached) " >&6
  22876. else $as_nop
  22877. ac_check_lib_save_LIBS=$LIBS
  22878. LIBS="-lusbhid $LIBS"
  22879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22880. /* end confdefs.h. */
  22881. /* Override any GCC internal prototype to avoid an error.
  22882. Use char because int might match the return type of a GCC
  22883. builtin and then its argument prototype would still apply. */
  22884. char hid_init ();
  22885. int
  22886. main (void)
  22887. {
  22888. return hid_init ();
  22889. ;
  22890. return 0;
  22891. }
  22892. _ACEOF
  22893. if ac_fn_c_try_link "$LINENO"
  22894. then :
  22895. ac_cv_lib_usbhid_hid_init=yes
  22896. else $as_nop
  22897. ac_cv_lib_usbhid_hid_init=no
  22898. fi
  22899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22900. conftest$ac_exeext conftest.$ac_ext
  22901. LIBS=$ac_check_lib_save_LIBS
  22902. fi
  22903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  22904. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  22905. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  22906. then :
  22907. have_libusbhid=yes
  22908. fi
  22909. if test x$have_libusbhid = xyes; then
  22910. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  22911. if test "x$ac_cv_header_usbhid_h" = xyes
  22912. then :
  22913. USB_CFLAGS="-DHAVE_USBHID_H"
  22914. fi
  22915. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  22916. if test "x$ac_cv_header_libusbhid_h" = xyes
  22917. then :
  22918. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  22919. fi
  22920. USB_LIBS="$USB_LIBS -lusbhid"
  22921. else
  22922. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  22923. if test "x$ac_cv_header_usb_h" = xyes
  22924. then :
  22925. USB_CFLAGS="-DHAVE_USB_H"
  22926. fi
  22927. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  22928. if test "x$ac_cv_header_libusb_h" = xyes
  22929. then :
  22930. USB_CFLAGS="-DHAVE_LIBUSB_H"
  22931. fi
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  22933. printf %s "checking for hid_init in -lusb... " >&6; }
  22934. if test ${ac_cv_lib_usb_hid_init+y}
  22935. then :
  22936. printf %s "(cached) " >&6
  22937. else $as_nop
  22938. ac_check_lib_save_LIBS=$LIBS
  22939. LIBS="-lusb $LIBS"
  22940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22941. /* end confdefs.h. */
  22942. /* Override any GCC internal prototype to avoid an error.
  22943. Use char because int might match the return type of a GCC
  22944. builtin and then its argument prototype would still apply. */
  22945. char hid_init ();
  22946. int
  22947. main (void)
  22948. {
  22949. return hid_init ();
  22950. ;
  22951. return 0;
  22952. }
  22953. _ACEOF
  22954. if ac_fn_c_try_link "$LINENO"
  22955. then :
  22956. ac_cv_lib_usb_hid_init=yes
  22957. else $as_nop
  22958. ac_cv_lib_usb_hid_init=no
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22961. conftest$ac_exeext conftest.$ac_ext
  22962. LIBS=$ac_check_lib_save_LIBS
  22963. fi
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  22965. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  22966. if test "x$ac_cv_lib_usb_hid_init" = xyes
  22967. then :
  22968. USB_LIBS="$USB_LIBS -lusb"
  22969. fi
  22970. fi
  22971. save_CFLAGS="$CFLAGS"
  22972. CFLAGS="$CFLAGS $USB_CFLAGS"
  22973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  22974. printf %s "checking for usbhid... " >&6; }
  22975. have_usbhid=no
  22976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22977. /* end confdefs.h. */
  22978. #include <sys/types.h>
  22979. #if defined(HAVE_USB_H)
  22980. #include <usb.h>
  22981. #endif
  22982. #ifdef __DragonFly__
  22983. # include <bus/u4b/usb.h>
  22984. # include <bus/u4b/usbhid.h>
  22985. #else
  22986. # include <dev/usb/usb.h>
  22987. # include <dev/usb/usbhid.h>
  22988. #endif
  22989. #if defined(HAVE_USBHID_H)
  22990. #include <usbhid.h>
  22991. #elif defined(HAVE_LIBUSB_H)
  22992. #include <libusb.h>
  22993. #elif defined(HAVE_LIBUSBHID_H)
  22994. #include <libusbhid.h>
  22995. #endif
  22996. int
  22997. main (void)
  22998. {
  22999. struct report_desc *repdesc;
  23000. struct usb_ctl_report *repbuf;
  23001. hid_kind_t hidkind;
  23002. ;
  23003. return 0;
  23004. }
  23005. _ACEOF
  23006. if ac_fn_c_try_compile "$LINENO"
  23007. then :
  23008. have_usbhid=yes
  23009. fi
  23010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23012. printf "%s\n" "$have_usbhid" >&6; }
  23013. if test x$have_usbhid = xyes; then
  23014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23015. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23016. have_usbhid_ucr_data=no
  23017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23018. /* end confdefs.h. */
  23019. #include <sys/types.h>
  23020. #if defined(HAVE_USB_H)
  23021. #include <usb.h>
  23022. #endif
  23023. #ifdef __DragonFly__
  23024. # include <bus/u4b/usb.h>
  23025. # include <bus/u4b/usbhid.h>
  23026. #else
  23027. # include <dev/usb/usb.h>
  23028. # include <dev/usb/usbhid.h>
  23029. #endif
  23030. #if defined(HAVE_USBHID_H)
  23031. #include <usbhid.h>
  23032. #elif defined(HAVE_LIBUSB_H)
  23033. #include <libusb.h>
  23034. #elif defined(HAVE_LIBUSBHID_H)
  23035. #include <libusbhid.h>
  23036. #endif
  23037. int
  23038. main (void)
  23039. {
  23040. struct usb_ctl_report buf;
  23041. if (buf.ucr_data) { }
  23042. ;
  23043. return 0;
  23044. }
  23045. _ACEOF
  23046. if ac_fn_c_try_compile "$LINENO"
  23047. then :
  23048. have_usbhid_ucr_data=yes
  23049. fi
  23050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23051. if test x$have_usbhid_ucr_data = xyes; then
  23052. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23053. fi
  23054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23055. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23057. printf %s "checking for new usbhid API... " >&6; }
  23058. have_usbhid_new=no
  23059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23060. /* end confdefs.h. */
  23061. #include <sys/types.h>
  23062. #if defined(HAVE_USB_H)
  23063. #include <usb.h>
  23064. #endif
  23065. #ifdef __DragonFly__
  23066. #include <bus/u4b/usb.h>
  23067. #include <bus/u4b/usbhid.h>
  23068. #else
  23069. #include <dev/usb/usb.h>
  23070. #include <dev/usb/usbhid.h>
  23071. #endif
  23072. #if defined(HAVE_USBHID_H)
  23073. #include <usbhid.h>
  23074. #elif defined(HAVE_LIBUSB_H)
  23075. #include <libusb.h>
  23076. #elif defined(HAVE_LIBUSBHID_H)
  23077. #include <libusbhid.h>
  23078. #endif
  23079. int
  23080. main (void)
  23081. {
  23082. report_desc_t d;
  23083. hid_start_parse(d, 1, 1);
  23084. ;
  23085. return 0;
  23086. }
  23087. _ACEOF
  23088. if ac_fn_c_try_compile "$LINENO"
  23089. then :
  23090. have_usbhid_new=yes
  23091. fi
  23092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23093. if test x$have_usbhid_new = xyes; then
  23094. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23095. fi
  23096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23097. printf "%s\n" "$have_usbhid_new" >&6; }
  23098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23099. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23100. have_machine_joystick=no
  23101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23102. /* end confdefs.h. */
  23103. #include <machine/joystick.h>
  23104. int
  23105. main (void)
  23106. {
  23107. struct joystick t;
  23108. ;
  23109. return 0;
  23110. }
  23111. _ACEOF
  23112. if ac_fn_c_try_compile "$LINENO"
  23113. then :
  23114. have_machine_joystick=yes
  23115. fi
  23116. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23117. if test x$have_machine_joystick = xyes; then
  23118. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23119. fi
  23120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23121. printf "%s\n" "$have_machine_joystick" >&6; }
  23122. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23123. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23124. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23126. have_joystick=yes
  23127. fi
  23128. CFLAGS="$save_CFLAGS"
  23129. fi
  23130. ;;
  23131. esac
  23132. }
  23133. CheckHIDAPI()
  23134. {
  23135. # Check whether --enable-hidapi-joystick was given.
  23136. if test ${enable_hidapi_joystick+y}
  23137. then :
  23138. enableval=$enable_hidapi_joystick;
  23139. else $as_nop
  23140. enable_hidapi_joystick=yes
  23141. fi
  23142. # Check whether --enable-hidapi-libusb was given.
  23143. if test ${enable_hidapi_libusb+y}
  23144. then :
  23145. enableval=$enable_hidapi_libusb;
  23146. else $as_nop
  23147. enable_hidapi_libusb=maybe
  23148. fi
  23149. if test x$enable_hidapi = xyes; then
  23150. case "$host" in
  23151. # libusb does not support iOS
  23152. *-ios-* )
  23153. enable_hidapi_libusb=no
  23154. ;;
  23155. # On the other hand, *BSD specifically uses libusb only
  23156. *-*-*bsd* )
  23157. enable_hidapi_libusb=yes
  23158. require_hidapi_libusb=yes
  23159. ;;
  23160. esac
  23161. hidapi_support=yes
  23162. if test x$enable_hidapi_libusb = xyes; then
  23163. pkg_failed=no
  23164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23165. printf %s "checking for libusb-1.0... " >&6; }
  23166. if test -n "$LIBUSB_CFLAGS"; then
  23167. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23168. elif test -n "$PKG_CONFIG"; then
  23169. if test -n "$PKG_CONFIG" && \
  23170. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23171. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23172. ac_status=$?
  23173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23174. test $ac_status = 0; }; then
  23175. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23176. test "x$?" != "x0" && pkg_failed=yes
  23177. else
  23178. pkg_failed=yes
  23179. fi
  23180. else
  23181. pkg_failed=untried
  23182. fi
  23183. if test -n "$LIBUSB_LIBS"; then
  23184. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23185. elif test -n "$PKG_CONFIG"; then
  23186. if test -n "$PKG_CONFIG" && \
  23187. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23188. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23189. ac_status=$?
  23190. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23191. test $ac_status = 0; }; then
  23192. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23193. test "x$?" != "x0" && pkg_failed=yes
  23194. else
  23195. pkg_failed=yes
  23196. fi
  23197. else
  23198. pkg_failed=untried
  23199. fi
  23200. if test $pkg_failed = yes; then
  23201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23202. printf "%s\n" "no" >&6; }
  23203. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23204. _pkg_short_errors_supported=yes
  23205. else
  23206. _pkg_short_errors_supported=no
  23207. fi
  23208. if test $_pkg_short_errors_supported = yes; then
  23209. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23210. else
  23211. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23212. fi
  23213. # Put the nasty error message in config.log where it belongs
  23214. echo "$LIBUSB_PKG_ERRORS" >&5
  23215. have_libusb=no
  23216. elif test $pkg_failed = untried; then
  23217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23218. printf "%s\n" "no" >&6; }
  23219. have_libusb=no
  23220. else
  23221. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23222. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23224. printf "%s\n" "yes" >&6; }
  23225. have_libusb=yes
  23226. fi
  23227. save_CPPFLAGS="$CPPFLAGS"
  23228. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23229. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23230. if test "x$ac_cv_header_libusb_h" = xyes
  23231. then :
  23232. have_libusb_h=yes
  23233. else $as_nop
  23234. have_libusb_h=no
  23235. fi
  23236. CPPFLAGS="$save_CPPFLAGS"
  23237. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23238. hidapi_support=no
  23239. fi
  23240. fi
  23241. if test x$hidapi_support = xyes; then
  23242. if test x$have_libusb_h = xyes; then
  23243. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23244. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23245. if test x$require_hidapi_libusb = xyes; then
  23246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23247. else
  23248. if test x$have_loadso != xyes; then
  23249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23250. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23251. fi
  23252. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23253. libusb_lib=""
  23254. case "$host" in
  23255. *-*-darwin* )
  23256. libusb_lib="libusb-1.0.0.dylib"
  23257. ;;
  23258. *-*-cygwin* | *-*-mingw* )
  23259. libusb_lib="libusb-1.0.dll"
  23260. ;;
  23261. esac
  23262. if test x$libusb_lib = x; then
  23263. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23264. fi
  23265. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23266. fi
  23267. fi
  23268. fi
  23269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23270. printf %s "checking for hidapi joystick support... " >&6; }
  23271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23272. printf "%s\n" "$hidapi_support" >&6; }
  23273. fi
  23274. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23275. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23276. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23277. fi
  23278. }
  23279. CheckClockGettime()
  23280. {
  23281. # Check whether --enable-clock_gettime was given.
  23282. if test ${enable_clock_gettime+y}
  23283. then :
  23284. enableval=$enable_clock_gettime;
  23285. else $as_nop
  23286. enable_clock_gettime=yes
  23287. fi
  23288. if test x$enable_clock_gettime = xyes; then
  23289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23290. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23291. if test ${ac_cv_lib_rt_clock_gettime+y}
  23292. then :
  23293. printf %s "(cached) " >&6
  23294. else $as_nop
  23295. ac_check_lib_save_LIBS=$LIBS
  23296. LIBS="-lrt $LIBS"
  23297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23298. /* end confdefs.h. */
  23299. /* Override any GCC internal prototype to avoid an error.
  23300. Use char because int might match the return type of a GCC
  23301. builtin and then its argument prototype would still apply. */
  23302. char clock_gettime ();
  23303. int
  23304. main (void)
  23305. {
  23306. return clock_gettime ();
  23307. ;
  23308. return 0;
  23309. }
  23310. _ACEOF
  23311. if ac_fn_c_try_link "$LINENO"
  23312. then :
  23313. ac_cv_lib_rt_clock_gettime=yes
  23314. else $as_nop
  23315. ac_cv_lib_rt_clock_gettime=no
  23316. fi
  23317. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23318. conftest$ac_exeext conftest.$ac_ext
  23319. LIBS=$ac_check_lib_save_LIBS
  23320. fi
  23321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23322. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23323. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23324. then :
  23325. have_clock_gettime=yes
  23326. fi
  23327. if test x$have_clock_gettime = xyes; then
  23328. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23330. else
  23331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23332. printf %s "checking for clock_gettime in -lc... " >&6; }
  23333. if test ${ac_cv_lib_c_clock_gettime+y}
  23334. then :
  23335. printf %s "(cached) " >&6
  23336. else $as_nop
  23337. ac_check_lib_save_LIBS=$LIBS
  23338. LIBS="-lc $LIBS"
  23339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23340. /* end confdefs.h. */
  23341. /* Override any GCC internal prototype to avoid an error.
  23342. Use char because int might match the return type of a GCC
  23343. builtin and then its argument prototype would still apply. */
  23344. char clock_gettime ();
  23345. int
  23346. main (void)
  23347. {
  23348. return clock_gettime ();
  23349. ;
  23350. return 0;
  23351. }
  23352. _ACEOF
  23353. if ac_fn_c_try_link "$LINENO"
  23354. then :
  23355. ac_cv_lib_c_clock_gettime=yes
  23356. else $as_nop
  23357. ac_cv_lib_c_clock_gettime=no
  23358. fi
  23359. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23360. conftest$ac_exeext conftest.$ac_ext
  23361. LIBS=$ac_check_lib_save_LIBS
  23362. fi
  23363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23364. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23365. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23366. then :
  23367. have_clock_gettime=yes
  23368. fi
  23369. if test x$have_clock_gettime = xyes; then
  23370. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23372. fi
  23373. fi
  23374. fi
  23375. }
  23376. CheckLinuxVersion()
  23377. {
  23378. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23379. if test "x$ac_cv_header_linux_version_h" = xyes
  23380. then :
  23381. have_linux_version_h=yes
  23382. fi
  23383. if test x$have_linux_version_h = xyes; then
  23384. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23385. fi
  23386. }
  23387. CheckRPATH()
  23388. {
  23389. # Check whether --enable-rpath was given.
  23390. if test ${enable_rpath+y}
  23391. then :
  23392. enableval=$enable_rpath;
  23393. else $as_nop
  23394. enable_rpath=yes
  23395. fi
  23396. }
  23397. CheckEventSignals()
  23398. {
  23399. # Check whether --enable-backgrounding-signal was given.
  23400. if test ${enable_backgrounding_signal+y}
  23401. then :
  23402. enableval=$enable_backgrounding_signal;
  23403. else $as_nop
  23404. enable_backgrounding_signal=no
  23405. fi
  23406. if test x$enable_backgrounding_signal != xno; then
  23407. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23408. fi
  23409. # Check whether --enable-foregrounding-signal was given.
  23410. if test ${enable_foregrounding_signal+y}
  23411. then :
  23412. enableval=$enable_foregrounding_signal;
  23413. else $as_nop
  23414. enable_foregrounding_signal=no
  23415. fi
  23416. if test x$enable_foregrounding_signal != xno; then
  23417. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23418. fi
  23419. }
  23420. CheckVirtualJoystick()
  23421. {
  23422. # Check whether --enable-joystick-virtual was given.
  23423. if test ${enable_joystick_virtual+y}
  23424. then :
  23425. enableval=$enable_joystick_virtual;
  23426. else $as_nop
  23427. enable_joystick_virtual=yes
  23428. fi
  23429. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23430. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23431. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23432. have_joystick_virtual=yes
  23433. fi
  23434. }
  23435. CheckWarnAll
  23436. CheckNoStrictAliasing
  23437. CheckEventSignals
  23438. have_locale=no
  23439. case "$host" in
  23440. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23441. case "$host" in
  23442. *-*-android*)
  23443. # Android
  23444. ARCH=android
  23445. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23446. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23447. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23448. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23450. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23451. if test x$enable_video = xyes; then
  23452. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23453. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23454. SUMMARY_video="${SUMMARY_video} android"
  23455. have_video=yes
  23456. fi
  23457. ;;
  23458. *-*-linux*) ARCH=linux ;;
  23459. *-*-uclinux*) ARCH=linux ;;
  23460. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23461. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23462. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23463. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23464. *-*-bsdi*) ARCH=bsdi ;;
  23465. *-*-freebsd*) ARCH=freebsd ;;
  23466. *-*-dragonfly*) ARCH=freebsd ;;
  23467. *-*-netbsd*) ARCH=netbsd ;;
  23468. *-*-openbsd*) ARCH=openbsd ;;
  23469. *-*-sysv5*) ARCH=sysv5 ;;
  23470. *-*-solaris*) ARCH=solaris ;;
  23471. *-*-hpux*) ARCH=hpux ;;
  23472. *-*-aix*) ARCH=aix ;;
  23473. *-*-minix*) ARCH=minix ;;
  23474. esac
  23475. CheckVisibilityHidden
  23476. CheckWerror
  23477. CheckDeclarationAfterStatement
  23478. CheckDummyVideo
  23479. CheckOffscreenVideo
  23480. CheckDiskAudio
  23481. CheckDummyAudio
  23482. CheckDLOPEN
  23483. CheckARM
  23484. CheckNEON
  23485. CheckO_CLOEXEC
  23486. CheckOSS
  23487. CheckALSA
  23488. CheckPipewire
  23489. CheckPulseAudio
  23490. CheckLibSampleRate
  23491. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23492. CheckRPI
  23493. CheckX11
  23494. CheckDirectFB
  23495. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  23496. CheckEGL
  23497. CheckKMSDRM
  23498. CheckGLX
  23499. CheckOpenGL
  23500. CheckOpenGLES
  23501. CheckVulkan
  23502. CheckWayland
  23503. CheckInputEvents
  23504. CheckLibUDev
  23505. CheckDBus
  23506. CheckIME
  23507. CheckInotify
  23508. CheckIBus
  23509. CheckFcitx
  23510. case $ARCH in
  23511. linux)
  23512. CheckInputKD
  23513. ;;
  23514. freebsd)
  23515. CheckInputKBIO
  23516. ;;
  23517. openbsd|netbsd)
  23518. CheckInputWSCONS
  23519. ;;
  23520. esac
  23521. CheckUSBHID
  23522. CheckHIDAPI
  23523. CheckPTHREAD
  23524. CheckClockGettime
  23525. CheckLinuxVersion
  23526. CheckRPATH
  23527. CheckVivanteVideo
  23528. # Set up files for the misc library
  23529. if test x$enable_misc = xyes; then
  23530. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23531. have_misc=yes
  23532. fi
  23533. # Set up files for the locale library
  23534. if test x$enable_locale = xyes; then
  23535. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23536. have_locale=yes
  23537. fi
  23538. # Set up files for the audio library
  23539. if test x$enable_audio = xyes; then
  23540. case $ARCH in
  23541. netbsd) # Don't use this on OpenBSD, it's busted.
  23542. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23543. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23544. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23545. have_audio=yes
  23546. ;;
  23547. android)
  23548. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23549. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23550. SUMMARY_audio="${SUMMARY_audio} android"
  23551. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23552. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23553. SUMMARY_audio="${SUMMARY_audio} openslES"
  23554. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23555. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23556. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23557. have_audio=yes
  23558. ;;
  23559. esac
  23560. fi
  23561. # Set up files for the joystick library
  23562. if test x$enable_joystick = xyes; then
  23563. case $ARCH in
  23564. linux)
  23565. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23566. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23567. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23568. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23569. have_joystick=yes
  23570. fi
  23571. ;;
  23572. freebsd)
  23573. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23574. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23575. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23576. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23577. have_joystick=yes
  23578. fi
  23579. ;;
  23580. android)
  23581. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23582. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23583. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23584. have_joystick=yes
  23585. ;;
  23586. esac
  23587. fi
  23588. # Set up files for the haptic library
  23589. if test x$enable_haptic = xyes; then
  23590. case $ARCH in
  23591. linux|freebsd)
  23592. if test x$use_input_events = xyes; then
  23593. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23594. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23595. have_haptic=yes
  23596. fi
  23597. ;;
  23598. android)
  23599. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23600. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23601. have_haptic=yes
  23602. ;;
  23603. esac
  23604. fi
  23605. # Set up files for the sensor library
  23606. if test x$enable_sensor = xyes; then
  23607. case $ARCH in
  23608. android)
  23609. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23610. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23611. have_sensor=yes
  23612. ;;
  23613. esac
  23614. fi
  23615. # Set up files for the power library
  23616. if test x$enable_power = xyes; then
  23617. case $ARCH in
  23618. linux)
  23619. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23620. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23621. have_power=yes
  23622. ;;
  23623. android)
  23624. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23625. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23626. have_power=yes
  23627. ;;
  23628. esac
  23629. fi
  23630. # Set up files for the filesystem library
  23631. if test x$enable_filesystem = xyes; then
  23632. case $ARCH in
  23633. android)
  23634. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23635. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23636. have_filesystem=yes
  23637. ;;
  23638. *)
  23639. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23640. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23641. have_filesystem=yes
  23642. ;;
  23643. esac
  23644. fi
  23645. # Set up files for the timer library
  23646. if test x$enable_timers = xyes; then
  23647. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23648. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23649. have_timers=yes
  23650. fi
  23651. # Set up files for udev hotplugging support
  23652. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23653. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23654. fi
  23655. # Set up files for evdev input
  23656. if test x$use_input_events = xyes; then
  23657. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23658. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23659. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23660. fi
  23661. # Set up files for wscons input
  23662. if test x$use_input_wscons = xyes; then
  23663. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23664. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23665. fi
  23666. # Set up other core UNIX files
  23667. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23668. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23669. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23670. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23671. ;;
  23672. *-*-cygwin* | *-*-mingw*)
  23673. ARCH=win32
  23674. if test "$build" != "$host"; then # cross-compiling
  23675. # Default cross-compile location
  23676. ac_default_prefix=/usr/local/cross-tools/$host
  23677. else
  23678. # Look for the location of the tools and install there
  23679. if test "$BUILD_PREFIX" != ""; then
  23680. ac_default_prefix=$BUILD_PREFIX
  23681. fi
  23682. fi
  23683. if test x$enable_loadso = xyes; then
  23684. have_loadso=yes
  23685. fi
  23686. CheckGDwarf4
  23687. CheckWerror
  23688. CheckDeclarationAfterStatement
  23689. CheckDummyVideo
  23690. CheckOffscreenVideo
  23691. CheckDiskAudio
  23692. CheckDummyAudio
  23693. CheckWINDOWS
  23694. CheckWINDOWSGL
  23695. CheckWINDOWSGLES
  23696. CheckVulkan
  23697. CheckDIRECTX
  23698. CheckHIDAPI
  23699. # Set up the core platform files
  23700. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23701. # Set up files for the misc library
  23702. if test x$enable_misc = xyes; then
  23703. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23704. have_misc=yes
  23705. fi
  23706. # Use the Windows locale APIs.
  23707. if test x$enable_locale = xyes; then
  23708. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23709. have_locale=yes
  23710. fi
  23711. # Set up files for the video library
  23712. if test x$enable_video = xyes; then
  23713. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23714. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23715. have_video=yes
  23716. # Check whether --enable-render-d3d was given.
  23717. if test ${enable_render_d3d+y}
  23718. then :
  23719. enableval=$enable_render_d3d;
  23720. else $as_nop
  23721. enable_render_d3d=yes
  23722. fi
  23723. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23724. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23725. SUMMARY_video="${SUMMARY_video} d3d9"
  23726. fi
  23727. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23728. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23729. SUMMARY_video="${SUMMARY_video} d3d11"
  23730. fi
  23731. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23732. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23733. SUMMARY_video="${SUMMARY_video} d3d12"
  23734. fi
  23735. fi
  23736. # Set up files for the audio library
  23737. if test x$enable_audio = xyes; then
  23738. if test x$have_dsound = xyes; then
  23739. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23740. SUMMARY_audio="${SUMMARY_audio} directsound"
  23741. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23742. fi
  23743. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23744. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23745. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23746. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23747. fi
  23748. have_audio=yes
  23749. fi
  23750. # Set up files for the joystick library
  23751. if test x$enable_joystick = xyes; then
  23752. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23753. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23754. if test x$have_xinput = xyes; then
  23755. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23756. fi
  23757. if test x$have_wgi = xyes; then
  23758. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23759. fi
  23760. if test x$have_dinput = xyes; then
  23761. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23762. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23763. fi
  23764. fi
  23765. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23766. have_joystick=yes
  23767. fi
  23768. if test x$enable_haptic = xyes; then
  23769. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23770. if test x$have_xinput = xyes; then
  23771. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23772. fi
  23773. if test x$have_dinput = xyes; then
  23774. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23775. fi
  23776. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23777. have_haptic=yes
  23778. fi
  23779. fi
  23780. # Set up files for the sensor library
  23781. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23782. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23783. then :
  23784. have_winsensors=yes
  23785. else $as_nop
  23786. have_winsensors=no
  23787. fi
  23788. if test x$have_winsensors = xyes; then
  23789. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23790. fi
  23791. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23792. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23793. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23794. have_sensor=yes
  23795. fi
  23796. # Set up files for the power library
  23797. if test x$enable_power = xyes; then
  23798. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23799. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23800. have_power=yes
  23801. fi
  23802. # Set up files for the filesystem library
  23803. if test x$enable_filesystem = xyes; then
  23804. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23805. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23806. have_filesystem=yes
  23807. fi
  23808. # Set up files for the thread library
  23809. if test x$enable_threads = xyes; then
  23810. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23811. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23812. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23813. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23814. have_threads=yes
  23815. fi
  23816. # Set up files for the timer library
  23817. if test x$enable_timers = xyes; then
  23818. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23819. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23820. have_timers=yes
  23821. fi
  23822. # Set up files for the shared object loading library
  23823. if test x$enable_loadso = xyes; then
  23824. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  23825. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  23826. fi
  23827. # Set up the system libraries we need
  23828. if test -f /lib/w32api/libuuid.a; then
  23829. LIBUUID=/lib/w32api/libuuid.a
  23830. else
  23831. LIBUUID=-luuid
  23832. fi
  23833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  23834. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  23835. # The Windows platform requires special setup
  23836. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  23837. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  23838. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  23839. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  23840. # Check to see if this is a mingw or cygwin build
  23841. have_mingw32=
  23842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  23843. printf %s "checking for main in -lmingw32... " >&6; }
  23844. if test ${ac_cv_lib_mingw32_main+y}
  23845. then :
  23846. printf %s "(cached) " >&6
  23847. else $as_nop
  23848. ac_check_lib_save_LIBS=$LIBS
  23849. LIBS="-lmingw32 $LIBS"
  23850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23851. /* end confdefs.h. */
  23852. int
  23853. main (void)
  23854. {
  23855. return main ();
  23856. ;
  23857. return 0;
  23858. }
  23859. _ACEOF
  23860. if ac_fn_c_try_link "$LINENO"
  23861. then :
  23862. ac_cv_lib_mingw32_main=yes
  23863. else $as_nop
  23864. ac_cv_lib_mingw32_main=no
  23865. fi
  23866. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23867. conftest$ac_exeext conftest.$ac_ext
  23868. LIBS=$ac_check_lib_save_LIBS
  23869. fi
  23870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  23871. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  23872. if test "x$ac_cv_lib_mingw32_main" = xyes
  23873. then :
  23874. have_mingw32=yes
  23875. fi
  23876. if test x$have_mingw32 = xyes; then
  23877. SDL_LIBS="-lmingw32 $SDL_LIBS"
  23878. else
  23879. SDL_LIBS="-lcygwin $SDL_LIBS"
  23880. fi
  23881. ;;
  23882. *-*-beos*)
  23883. as_fn_error $? "
  23884. *** BeOS support has been removed as of SDL 2.0.2.
  23885. " "$LINENO" 5
  23886. ;;
  23887. *-*-haiku*)
  23888. ARCH=haiku
  23889. ac_default_prefix=/boot/system
  23890. CheckDummyVideo
  23891. CheckOffscreenVideo
  23892. CheckDiskAudio
  23893. CheckDummyAudio
  23894. CheckDLOPEN
  23895. CheckO_CLOEXEC
  23896. CheckHaikuVideo
  23897. CheckHaikuGL
  23898. CheckPTHREAD
  23899. # Set up files for the audio library
  23900. if test x$enable_audio = xyes; then
  23901. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  23902. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  23903. SUMMARY_audio="${SUMMARY_audio} haiku"
  23904. have_audio=yes
  23905. fi
  23906. # Set up files for the joystick library
  23907. if test x$enable_joystick = xyes; then
  23908. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  23909. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  23910. have_joystick=yes
  23911. fi
  23912. # Set up files for the timer library
  23913. if test x$enable_timers = xyes; then
  23914. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  23915. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  23916. have_timers=yes
  23917. fi
  23918. # Set up files for the system power library
  23919. if test x$enable_power = xyes; then
  23920. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  23921. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  23922. have_power=yes
  23923. fi
  23924. # Set up files for the system filesystem library
  23925. if test x$enable_filesystem = xyes; then
  23926. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  23927. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  23928. have_filesystem=yes
  23929. fi
  23930. # Set up files for the misc library
  23931. if test x$enable_misc = xyes; then
  23932. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  23933. have_misc=yes
  23934. fi
  23935. # Set up files for the locale library
  23936. if test x$enable_locale = xyes; then
  23937. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  23938. have_locale=yes
  23939. fi
  23940. # The Haiku platform requires special setup.
  23941. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  23942. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  23943. ;;
  23944. *-ios-*)
  23945. ARCH=ios
  23946. CheckVisibilityHidden
  23947. CheckWerror
  23948. CheckNoErrorDeprecatedDeclarationsWerror
  23949. CheckDeclarationAfterStatement
  23950. CheckDummyVideo
  23951. CheckOffscreenVideo
  23952. CheckDiskAudio
  23953. CheckDummyAudio
  23954. CheckDLOPEN
  23955. CheckO_CLOEXEC
  23956. CheckMETAL
  23957. CheckVulkan
  23958. CheckPTHREAD
  23959. # Set up files for the misc library
  23960. if test x$enable_misc = xyes; then
  23961. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  23962. have_misc=yes
  23963. fi
  23964. # Set up files for the locale library
  23965. if test x$enable_locale = xyes; then
  23966. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  23967. have_locale=yes
  23968. fi
  23969. # Set up files for the audio library
  23970. if test x$enable_audio = xyes; then
  23971. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  23972. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  23973. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  23974. have_audio=yes
  23975. fi
  23976. # Set up files for the joystick library
  23977. if test x$enable_joystick = xyes; then
  23978. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23979. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23980. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23981. have_joystick=yes
  23982. else
  23983. # Need this code for accelerometer as joystick support
  23984. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  23985. fi
  23986. # Set up files for the haptic library
  23987. #if test x$enable_haptic = xyes; then
  23988. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  23989. # have_haptic=yes
  23990. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  23991. #fi
  23992. # Set up files for the sensor library
  23993. if test x$enable_sensor = xyes; then
  23994. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  23995. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  23996. have_sensor=yes
  23997. fi
  23998. # Set up files for the power library
  23999. if test x$enable_power = xyes; then
  24000. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24001. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24002. have_power=yes
  24003. fi
  24004. # Set up files for the filesystem library
  24005. if test x$enable_filesystem = xyes; then
  24006. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24007. have_filesystem=yes
  24008. fi
  24009. # Set up additional files for the file library
  24010. if test x$enable_file = xyes; then
  24011. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24012. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24013. fi
  24014. # Set up files for the timer library
  24015. if test x$enable_timers = xyes; then
  24016. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24017. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24018. have_timers=yes
  24019. fi
  24020. # Set up other core UNIX files
  24021. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24022. # The iOS platform requires special setup.
  24023. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24024. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24025. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24026. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24027. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24028. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24029. SUMMARY_video="${SUMMARY_video} uikit"
  24030. have_video=yes
  24031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24032. if test x$enable_system_iconv = xyes; then
  24033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24034. fi
  24035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24037. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24046. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24048. fi
  24049. ;;
  24050. *-*-darwin* )
  24051. # This could be either full "Mac OS X", or plain "Darwin" which is
  24052. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24053. # Next line is broken, and a few files below require Mac OS X (full)
  24054. ARCH=macosx
  24055. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24056. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24057. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24058. CheckObjectiveCARC
  24059. CheckVisibilityHidden
  24060. CheckWerror
  24061. CheckNoErrorDeprecatedDeclarationsWerror
  24062. CheckDeclarationAfterStatement
  24063. CheckDummyVideo
  24064. CheckOffscreenVideo
  24065. CheckDiskAudio
  24066. CheckDummyAudio
  24067. CheckDLOPEN
  24068. CheckO_CLOEXEC
  24069. CheckCOCOA
  24070. CheckMETAL
  24071. CheckX11
  24072. CheckMacGL
  24073. CheckMacGLES
  24074. CheckGLX
  24075. CheckOpenGL
  24076. CheckVulkan
  24077. CheckPTHREAD
  24078. CheckHIDAPI
  24079. # Set up files for the misc library
  24080. if test x$enable_misc = xyes; then
  24081. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24082. have_misc=yes
  24083. fi
  24084. # Set up files for the locale library
  24085. if test x$enable_locale = xyes; then
  24086. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24087. have_locale=yes
  24088. fi
  24089. # Set up files for the audio library
  24090. if test x$enable_audio = xyes; then
  24091. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24092. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24094. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24095. have_audio=yes
  24096. fi
  24097. # Set up files for the joystick library
  24098. if test x$enable_joystick = xyes; then
  24099. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24100. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24101. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24102. CheckJoystickMFI
  24103. have_joystick=yes
  24104. fi
  24105. # Set up files for the haptic library
  24106. if test x$enable_haptic = xyes; then
  24107. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24108. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24110. have_haptic=yes
  24111. fi
  24112. # Set up files for the power library
  24113. if test x$enable_power = xyes; then
  24114. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24115. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24116. have_power=yes
  24117. fi
  24118. # Set up files for the filesystem library
  24119. if test x$enable_filesystem = xyes; then
  24120. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24121. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24122. have_filesystem=yes
  24123. fi
  24124. # Set up files for the timer library
  24125. if test x$enable_timers = xyes; then
  24126. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24127. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24128. have_timers=yes
  24129. fi
  24130. # Set up additional files for the file library
  24131. if test x$enable_file = xyes; then
  24132. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24133. fi
  24134. # Set up other core UNIX files
  24135. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24136. # The Mac OS X platform requires special setup.
  24137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24141. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24142. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24144. fi
  24145. ;;
  24146. *-*-emscripten* )
  24147. if test x$enable_video = xyes; then
  24148. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24149. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24150. have_video=yes
  24151. SUMMARY_video="${SUMMARY_video} emscripten"
  24152. fi
  24153. if test x$enable_audio = xyes; then
  24154. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24155. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24156. have_audio=yes
  24157. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24158. fi
  24159. CheckVisibilityHidden
  24160. CheckWerror
  24161. CheckDeclarationAfterStatement
  24162. CheckDummyVideo
  24163. CheckOffscreenVideo
  24164. CheckDiskAudio
  24165. CheckDummyAudio
  24166. CheckPTHREAD
  24167. CheckDLOPEN
  24168. CheckClockGettime
  24169. CheckEmscriptenGLES
  24170. # Set up files for the misc library
  24171. if test x$enable_misc = xyes; then
  24172. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24173. have_misc=yes
  24174. fi
  24175. # Set up files for the power library
  24176. if test x$enable_power = xyes; then
  24177. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24178. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24179. have_power=yes
  24180. fi
  24181. # Set up files for the joystick library
  24182. if test x$enable_joystick = xyes; then
  24183. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24184. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24185. have_joystick=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_EMSCRIPTEN 1" >>confdefs.h
  24190. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  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 files for the locale library
  24200. if test x$enable_locale = xyes; then
  24201. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24202. have_locale=yes
  24203. fi
  24204. ;;
  24205. *-*-riscos*)
  24206. ARCH=riscos
  24207. CheckVisibilityHidden
  24208. CheckWerror
  24209. CheckDeclarationAfterStatement
  24210. CheckDummyVideo
  24211. CheckOffscreenVideo
  24212. CheckDiskAudio
  24213. CheckDummyAudio
  24214. CheckDLOPEN
  24215. CheckO_CLOEXEC
  24216. CheckOSS
  24217. CheckPTHREAD
  24218. CheckClockGettime
  24219. # Set up files for the misc library
  24220. if test x$enable_misc = xyes; then
  24221. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24222. have_misc=yes
  24223. fi
  24224. # Set up files for the video library
  24225. if test x$enable_video = xyes; then
  24226. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24227. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24228. have_video=yes
  24229. SUMMARY_video="${SUMMARY_video} riscos"
  24230. fi
  24231. # Set up files for the filesystem library
  24232. if test x$enable_filesystem = xyes; then
  24233. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24234. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24235. have_filesystem=yes
  24236. fi
  24237. # Set up files for the timer library
  24238. if test x$enable_timers = xyes; then
  24239. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24240. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24241. have_timers=yes
  24242. fi
  24243. ;;
  24244. *)
  24245. as_fn_error $? "
  24246. *** Unsupported host: Please add to configure.ac
  24247. " "$LINENO" 5
  24248. ;;
  24249. esac
  24250. CheckVirtualJoystick
  24251. # Check whether to install sdl3-config
  24252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24253. printf %s "checking whether to install sdl3-config... " >&6; }
  24254. # Check whether --enable-sdl3-config was given.
  24255. if test ${enable_sdl3_config+y}
  24256. then :
  24257. enableval=$enable_sdl3_config; case "${enableval}" in
  24258. yes) enable_sdl3_config="TRUE" ;;
  24259. no) enable_sdl3_config="FALSE" ;;
  24260. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24261. esac
  24262. else $as_nop
  24263. enable_sdl3_config="TRUE"
  24264. fi
  24265. if test "$enable_sdl3_config" = "TRUE"; then
  24266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24267. printf "%s\n" "yes" >&6; }
  24268. else
  24269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24270. printf "%s\n" "no" >&6; }
  24271. fi
  24272. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24273. # Check whether --enable-vendor-info was given.
  24274. if test ${enable_vendor_info+y}
  24275. then :
  24276. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24277. else $as_nop
  24278. enable_vendor_info=
  24279. fi
  24280. if test "$enable_vendor_info" = no
  24281. then :
  24282. enable_vendor_info=
  24283. fi
  24284. SDL_VENDOR_INFO=$enable_vendor_info
  24285. # Verify that we have all the platform specific files we need
  24286. if test x$have_audio != xyes; then
  24287. if test x$enable_audio = xyes; then
  24288. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24289. fi
  24290. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24291. fi
  24292. if test x$have_video != xyes; then
  24293. if test x$enable_video = xyes; then
  24294. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24295. fi
  24296. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24297. fi
  24298. if test x$have_misc != xyes; then
  24299. if test x$enable_misc = xyes; then
  24300. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24301. fi
  24302. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24303. fi
  24304. if test x$have_locale != xyes; then
  24305. if test x$enable_locale = xyes; then
  24306. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24307. fi
  24308. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24309. fi
  24310. if test x$have_joystick != xyes; then
  24311. if test x$enable_joystick = xyes; then
  24312. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24313. fi
  24314. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24315. fi
  24316. if test x$have_haptic != xyes; then
  24317. if test x$enable_haptic = xyes; then
  24318. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24319. fi
  24320. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24321. fi
  24322. if test x$have_sensor != xyes; then
  24323. if test x$enable_sensor = xyes; then
  24324. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24325. fi
  24326. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24327. fi
  24328. if test x$have_threads != xyes; then
  24329. if test x$enable_threads = xyes; then
  24330. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24331. fi
  24332. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24333. fi
  24334. if test x$have_timers != xyes; then
  24335. if test x$enable_timers = xyes; then
  24336. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24337. fi
  24338. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24339. fi
  24340. if test x$have_filesystem != xyes; then
  24341. if test x$enable_filesystem = xyes; then
  24342. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24343. fi
  24344. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24345. fi
  24346. if test x$have_loadso != xyes; then
  24347. if test x$enable_loadso = xyes; then
  24348. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24349. fi
  24350. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24351. fi
  24352. if test x$SDLMAIN_SOURCES = x; then
  24353. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24354. fi
  24355. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24356. if test x$video_wayland = xyes; then
  24357. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24358. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24359. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24360. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24361. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24362. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24363. echo ;\
  24364. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24365. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24366. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24367. echo ;\
  24368. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24369. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24370. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24371. echo ;\
  24372. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24373. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24374. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24375. done ;\
  24376. echo ;\
  24377. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24378. fi
  24379. OBJECTS=`echo $SOURCES`
  24380. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24381. for EXT in asm cc m c S; do
  24382. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24383. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24384. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24385. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24386. done
  24387. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24388. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24389. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24390. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24391. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24392. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24393. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24394. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24395. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24396. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24397. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24398. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24399. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24400. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24401. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24402. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24403. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24404. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24405. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24406. # Set runtime shared library paths as needed
  24407. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24408. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24409. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24411. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24412. have_enable_new_dtags=no
  24413. save_LDFLAGS="$LDFLAGS"
  24414. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24416. /* end confdefs.h. */
  24417. int
  24418. main (void)
  24419. {
  24420. ;
  24421. return 0;
  24422. }
  24423. _ACEOF
  24424. if ac_fn_c_try_link "$LINENO"
  24425. then :
  24426. have_enable_new_dtags=yes
  24427. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24428. fi
  24429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24430. conftest$ac_exeext conftest.$ac_ext
  24431. LDFLAGS="$save_LDFLAGS"
  24432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24433. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24434. fi
  24435. if test $ARCH = solaris; then
  24436. SDL_RLD_FLAGS="-R\${libdir}"
  24437. fi
  24438. else
  24439. SDL_RLD_FLAGS=""
  24440. fi
  24441. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24442. pkg_cmakedir='$libdir/cmake/SDL3'
  24443. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24444. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24445. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24446. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24447. _lcl_receval="$_lcl_from"
  24448. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24449. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24450. _lcl_receval_old=''
  24451. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24452. _lcl_receval_old="$_lcl_receval"
  24453. eval _lcl_receval="\"$_lcl_receval\""
  24454. done
  24455. echo "$_lcl_receval")`
  24456. _lcl_receval="$_lcl_to"
  24457. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24458. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24459. _lcl_receval_old=''
  24460. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24461. _lcl_receval_old="$_lcl_receval"
  24462. eval _lcl_receval="\"$_lcl_receval\""
  24463. done
  24464. echo "$_lcl_receval")`
  24465. _lcl_notation="$_lcl_from$_lcl_to"
  24466. case ":$_lcl_from:" in
  24467. # change empty paths to '.'
  24468. ::) _lcl_from='.' ;;
  24469. # strip trailing slashes
  24470. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24471. :*:) ;;
  24472. esac
  24473. # squeeze repeated slashes
  24474. case '/' in
  24475. # if the path contains any backslashes, turn slashes into backslashes
  24476. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24477. # if the path contains slashes, also turn backslashes into slashes
  24478. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24479. esac
  24480. case ":$_lcl_to:" in
  24481. # change empty paths to '.'
  24482. ::) _lcl_to='.' ;;
  24483. # strip trailing slashes
  24484. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24485. :*:) ;;
  24486. esac
  24487. # squeeze repeated slashes
  24488. case '/' in
  24489. # if the path contains any backslashes, turn slashes into backslashes
  24490. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24491. # if the path contains slashes, also turn backslashes into slashes
  24492. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24493. esac
  24494. _lcl_common_prefix=''
  24495. _lcl_second_prefix_match=''
  24496. while test "$_lcl_second_prefix_match" != 0; do
  24497. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24498. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24499. if test "$_lcl_second_prefix_match" != 0; then
  24500. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24501. _lcl_common_prefix="$_lcl_first_prefix"
  24502. else
  24503. _lcl_second_prefix_match=0
  24504. fi
  24505. fi
  24506. done
  24507. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24508. _lcl_first_rel=''
  24509. _lcl_tmp='xxx'
  24510. while test "$_lcl_tmp" != ''; do
  24511. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24512. if test "$_lcl_first_suffix" != ''; then
  24513. _lcl_first_suffix="$_lcl_tmp"
  24514. _lcl_first_rel="../$_lcl_first_rel"
  24515. fi
  24516. done
  24517. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24518. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24519. case ":$_lcl_result_tmp:" in
  24520. # change empty paths to '.'
  24521. ::) _lcl_result_tmp='.' ;;
  24522. # strip trailing slashes
  24523. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24524. :*:) ;;
  24525. esac
  24526. # squeeze repeated slashes
  24527. case "$_lcl_notation" in
  24528. # if the path contains any backslashes, turn slashes into backslashes
  24529. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24530. # if the path contains slashes, also turn backslashes into slashes
  24531. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24532. esac
  24533. eval $_lcl_result_var='$_lcl_result_tmp'
  24534. done
  24535. if test x$enable_shared = xyes; then
  24536. PKGCONFIG_LIBS_PRIV="
  24537. Libs.private:"
  24538. ENABLE_SHARED_TRUE=
  24539. ENABLE_SHARED_FALSE="#"
  24540. else
  24541. PKGCONFIG_LIBS_PRIV=
  24542. ENABLE_SHARED_TRUE="#"
  24543. ENABLE_SHARED_FALSE=
  24544. fi
  24545. if test x$enable_static = xyes; then
  24546. ENABLE_STATIC_TRUE=
  24547. ENABLE_STATIC_FALSE="#"
  24548. else
  24549. ENABLE_STATIC_TRUE="#"
  24550. ENABLE_STATIC_FALSE=
  24551. fi
  24552. cat >Makefile.rules <<__EOF__
  24553. # Build rules for objects
  24554. -include \$(OBJECTS:.lo=.d)
  24555. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24556. $srcdir/src/SDL.c: update-revision
  24557. $DEPENDS
  24558. $VERSION_DEPENDS
  24559. $SDLMAIN_DEPENDS
  24560. $SDLTEST_DEPENDS
  24561. $WAYLAND_PROTOCOLS_DEPENDS
  24562. __EOF__
  24563. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24564. ac_config_commands="$ac_config_commands sdl3_config"
  24565. SUMMARY="SDL3 Configure Summary:\n"
  24566. if test x$enable_shared = xyes; then
  24567. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24568. fi
  24569. if test x$enable_static = xyes; then
  24570. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24571. fi
  24572. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24573. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24574. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24575. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24576. if test x$have_x = xyes; then
  24577. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24578. fi
  24579. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24580. if test x$have_joystick_virtual = xyes; then
  24581. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24582. else
  24583. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24584. fi
  24585. if test x$have_samplerate_h_hdr = xyes; then
  24586. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24587. else
  24588. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24589. fi
  24590. if test x$have_libudev_h_hdr = xyes; then
  24591. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24592. else
  24593. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24594. fi
  24595. if test x$have_dbus_dbus_h_hdr = xyes; then
  24596. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24597. else
  24598. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24599. fi
  24600. if test x$enable_ime = xyes; then
  24601. SUMMARY="${SUMMARY}Using ime : YES\n"
  24602. else
  24603. SUMMARY="${SUMMARY}Using ime : NO\n"
  24604. fi
  24605. if test x$have_ibus_ibus_h_hdr = xyes; then
  24606. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24607. else
  24608. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24609. fi
  24610. if test x$have_fcitx = xyes; then
  24611. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24612. else
  24613. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24614. fi
  24615. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24616. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24617. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24618. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24619. SUMMARY="${SUMMARY}configure script with:\n"
  24620. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24621. fi
  24622. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24623. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24624. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24625. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24626. SUMMARY="${SUMMARY}configure script with:\n"
  24627. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24628. fi
  24629. ac_config_commands="$ac_config_commands summary"
  24630. cat >confcache <<\_ACEOF
  24631. # This file is a shell script that caches the results of configure
  24632. # tests run on this system so they can be shared between configure
  24633. # scripts and configure runs, see configure's option --config-cache.
  24634. # It is not useful on other systems. If it contains results you don't
  24635. # want to keep, you may remove or edit it.
  24636. #
  24637. # config.status only pays attention to the cache file if you give it
  24638. # the --recheck option to rerun configure.
  24639. #
  24640. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24641. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24642. # following values.
  24643. _ACEOF
  24644. # The following way of writing the cache mishandles newlines in values,
  24645. # but we know of no workaround that is simple, portable, and efficient.
  24646. # So, we kill variables containing newlines.
  24647. # Ultrix sh set writes to stderr and can't be redirected directly,
  24648. # and sets the high bit in the cache file unless we assign to the vars.
  24649. (
  24650. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24651. eval ac_val=\$$ac_var
  24652. case $ac_val in #(
  24653. *${as_nl}*)
  24654. case $ac_var in #(
  24655. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24656. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24657. esac
  24658. case $ac_var in #(
  24659. _ | IFS | as_nl) ;; #(
  24660. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24661. *) { eval $ac_var=; unset $ac_var;} ;;
  24662. esac ;;
  24663. esac
  24664. done
  24665. (set) 2>&1 |
  24666. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24667. *${as_nl}ac_space=\ *)
  24668. # `set' does not quote correctly, so add quotes: double-quote
  24669. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24670. sed -n \
  24671. "s/'/'\\\\''/g;
  24672. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24673. ;; #(
  24674. *)
  24675. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24676. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24677. ;;
  24678. esac |
  24679. sort
  24680. ) |
  24681. sed '
  24682. /^ac_cv_env_/b end
  24683. t clear
  24684. :clear
  24685. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24686. t end
  24687. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24688. :end' >>confcache
  24689. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24690. if test -w "$cache_file"; then
  24691. if test "x$cache_file" != "x/dev/null"; then
  24692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24693. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24694. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24695. cat confcache >"$cache_file"
  24696. else
  24697. case $cache_file in #(
  24698. */* | ?:*)
  24699. mv -f confcache "$cache_file"$$ &&
  24700. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24701. *)
  24702. mv -f confcache "$cache_file" ;;
  24703. esac
  24704. fi
  24705. fi
  24706. else
  24707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24708. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24709. fi
  24710. fi
  24711. rm -f confcache
  24712. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24713. # Let make expand exec_prefix.
  24714. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24715. DEFS=-DHAVE_CONFIG_H
  24716. ac_libobjs=
  24717. ac_ltlibobjs=
  24718. U=
  24719. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24720. # 1. Remove the extension, and $U if already installed.
  24721. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24722. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24723. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24724. # will be set to the directory where LIBOBJS objects are built.
  24725. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24726. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24727. done
  24728. LIBOBJS=$ac_libobjs
  24729. LTLIBOBJS=$ac_ltlibobjs
  24730. : "${CONFIG_STATUS=./config.status}"
  24731. ac_write_fail=0
  24732. ac_clean_files_save=$ac_clean_files
  24733. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24735. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24736. as_write_fail=0
  24737. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24738. #! $SHELL
  24739. # Generated by $as_me.
  24740. # Run this file to recreate the current configuration.
  24741. # Compiler output produced by configure, useful for debugging
  24742. # configure, is in config.log if it exists.
  24743. debug=false
  24744. ac_cs_recheck=false
  24745. ac_cs_silent=false
  24746. SHELL=\${CONFIG_SHELL-$SHELL}
  24747. export SHELL
  24748. _ASEOF
  24749. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24750. ## -------------------- ##
  24751. ## M4sh Initialization. ##
  24752. ## -------------------- ##
  24753. # Be more Bourne compatible
  24754. DUALCASE=1; export DUALCASE # for MKS sh
  24755. as_nop=:
  24756. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24757. then :
  24758. emulate sh
  24759. NULLCMD=:
  24760. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24761. # is contrary to our usage. Disable this feature.
  24762. alias -g '${1+"$@"}'='"$@"'
  24763. setopt NO_GLOB_SUBST
  24764. else $as_nop
  24765. case `(set -o) 2>/dev/null` in #(
  24766. *posix*) :
  24767. set -o posix ;; #(
  24768. *) :
  24769. ;;
  24770. esac
  24771. fi
  24772. # Reset variables that may have inherited troublesome values from
  24773. # the environment.
  24774. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24775. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24776. # side effect of setting IFS to empty, thus disabling word splitting.)
  24777. # Quoting is to prevent editors from complaining about space-tab.
  24778. as_nl='
  24779. '
  24780. export as_nl
  24781. IFS=" "" $as_nl"
  24782. PS1='$ '
  24783. PS2='> '
  24784. PS4='+ '
  24785. # Ensure predictable behavior from utilities with locale-dependent output.
  24786. LC_ALL=C
  24787. export LC_ALL
  24788. LANGUAGE=C
  24789. export LANGUAGE
  24790. # We cannot yet rely on "unset" to work, but we need these variables
  24791. # to be unset--not just set to an empty or harmless value--now, to
  24792. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24793. # also avoids known problems related to "unset" and subshell syntax
  24794. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24795. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24796. do eval test \${$as_var+y} \
  24797. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24798. done
  24799. # Ensure that fds 0, 1, and 2 are open.
  24800. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24801. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24802. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24803. # The user is always right.
  24804. if ${PATH_SEPARATOR+false} :; then
  24805. PATH_SEPARATOR=:
  24806. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24807. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24808. PATH_SEPARATOR=';'
  24809. }
  24810. fi
  24811. # Find who we are. Look in the path if we contain no directory separator.
  24812. as_myself=
  24813. case $0 in #((
  24814. *[\\/]* ) as_myself=$0 ;;
  24815. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24816. for as_dir in $PATH
  24817. do
  24818. IFS=$as_save_IFS
  24819. case $as_dir in #(((
  24820. '') as_dir=./ ;;
  24821. */) ;;
  24822. *) as_dir=$as_dir/ ;;
  24823. esac
  24824. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24825. done
  24826. IFS=$as_save_IFS
  24827. ;;
  24828. esac
  24829. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24830. # in which case we are not to be found in the path.
  24831. if test "x$as_myself" = x; then
  24832. as_myself=$0
  24833. fi
  24834. if test ! -f "$as_myself"; then
  24835. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24836. exit 1
  24837. fi
  24838. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  24839. # ----------------------------------------
  24840. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  24841. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  24842. # script with STATUS, using 1 if that was 0.
  24843. as_fn_error ()
  24844. {
  24845. as_status=$1; test $as_status -eq 0 && as_status=1
  24846. if test "$4"; then
  24847. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24848. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  24849. fi
  24850. printf "%s\n" "$as_me: error: $2" >&2
  24851. as_fn_exit $as_status
  24852. } # as_fn_error
  24853. # as_fn_set_status STATUS
  24854. # -----------------------
  24855. # Set $? to STATUS, without forking.
  24856. as_fn_set_status ()
  24857. {
  24858. return $1
  24859. } # as_fn_set_status
  24860. # as_fn_exit STATUS
  24861. # -----------------
  24862. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24863. as_fn_exit ()
  24864. {
  24865. set +e
  24866. as_fn_set_status $1
  24867. exit $1
  24868. } # as_fn_exit
  24869. # as_fn_unset VAR
  24870. # ---------------
  24871. # Portably unset VAR.
  24872. as_fn_unset ()
  24873. {
  24874. { eval $1=; unset $1;}
  24875. }
  24876. as_unset=as_fn_unset
  24877. # as_fn_append VAR VALUE
  24878. # ----------------------
  24879. # Append the text in VALUE to the end of the definition contained in VAR. Take
  24880. # advantage of any shell optimizations that allow amortized linear growth over
  24881. # repeated appends, instead of the typical quadratic growth present in naive
  24882. # implementations.
  24883. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  24884. then :
  24885. eval 'as_fn_append ()
  24886. {
  24887. eval $1+=\$2
  24888. }'
  24889. else $as_nop
  24890. as_fn_append ()
  24891. {
  24892. eval $1=\$$1\$2
  24893. }
  24894. fi # as_fn_append
  24895. # as_fn_arith ARG...
  24896. # ------------------
  24897. # Perform arithmetic evaluation on the ARGs, and store the result in the
  24898. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  24899. # must be portable across $(()) and expr.
  24900. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  24901. then :
  24902. eval 'as_fn_arith ()
  24903. {
  24904. as_val=$(( $* ))
  24905. }'
  24906. else $as_nop
  24907. as_fn_arith ()
  24908. {
  24909. as_val=`expr "$@" || test $? -eq 1`
  24910. }
  24911. fi # as_fn_arith
  24912. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24913. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24914. as_expr=expr
  24915. else
  24916. as_expr=false
  24917. fi
  24918. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24919. as_basename=basename
  24920. else
  24921. as_basename=false
  24922. fi
  24923. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24924. as_dirname=dirname
  24925. else
  24926. as_dirname=false
  24927. fi
  24928. as_me=`$as_basename -- "$0" ||
  24929. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24930. X"$0" : 'X\(//\)$' \| \
  24931. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24932. printf "%s\n" X/"$0" |
  24933. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24934. s//\1/
  24935. q
  24936. }
  24937. /^X\/\(\/\/\)$/{
  24938. s//\1/
  24939. q
  24940. }
  24941. /^X\/\(\/\).*/{
  24942. s//\1/
  24943. q
  24944. }
  24945. s/.*/./; q'`
  24946. # Avoid depending upon Character Ranges.
  24947. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24948. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24949. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24950. as_cr_digits='0123456789'
  24951. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24952. # Determine whether it's possible to make 'echo' print without a newline.
  24953. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  24954. # for compatibility with existing Makefiles.
  24955. ECHO_C= ECHO_N= ECHO_T=
  24956. case `echo -n x` in #(((((
  24957. -n*)
  24958. case `echo 'xy\c'` in
  24959. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24960. xy) ECHO_C='\c';;
  24961. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24962. ECHO_T=' ';;
  24963. esac;;
  24964. *)
  24965. ECHO_N='-n';;
  24966. esac
  24967. # For backward compatibility with old third-party macros, we provide
  24968. # the shell variables $as_echo and $as_echo_n. New code should use
  24969. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  24970. as_echo='printf %s\n'
  24971. as_echo_n='printf %s'
  24972. rm -f conf$$ conf$$.exe conf$$.file
  24973. if test -d conf$$.dir; then
  24974. rm -f conf$$.dir/conf$$.file
  24975. else
  24976. rm -f conf$$.dir
  24977. mkdir conf$$.dir 2>/dev/null
  24978. fi
  24979. if (echo >conf$$.file) 2>/dev/null; then
  24980. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24981. as_ln_s='ln -s'
  24982. # ... but there are two gotchas:
  24983. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24984. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24985. # In both cases, we have to default to `cp -pR'.
  24986. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24987. as_ln_s='cp -pR'
  24988. elif ln conf$$.file conf$$ 2>/dev/null; then
  24989. as_ln_s=ln
  24990. else
  24991. as_ln_s='cp -pR'
  24992. fi
  24993. else
  24994. as_ln_s='cp -pR'
  24995. fi
  24996. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24997. rmdir conf$$.dir 2>/dev/null
  24998. # as_fn_mkdir_p
  24999. # -------------
  25000. # Create "$as_dir" as a directory, including parents if necessary.
  25001. as_fn_mkdir_p ()
  25002. {
  25003. case $as_dir in #(
  25004. -*) as_dir=./$as_dir;;
  25005. esac
  25006. test -d "$as_dir" || eval $as_mkdir_p || {
  25007. as_dirs=
  25008. while :; do
  25009. case $as_dir in #(
  25010. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25011. *) as_qdir=$as_dir;;
  25012. esac
  25013. as_dirs="'$as_qdir' $as_dirs"
  25014. as_dir=`$as_dirname -- "$as_dir" ||
  25015. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25016. X"$as_dir" : 'X\(//\)[^/]' \| \
  25017. X"$as_dir" : 'X\(//\)$' \| \
  25018. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25019. printf "%s\n" X"$as_dir" |
  25020. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25021. s//\1/
  25022. q
  25023. }
  25024. /^X\(\/\/\)[^/].*/{
  25025. s//\1/
  25026. q
  25027. }
  25028. /^X\(\/\/\)$/{
  25029. s//\1/
  25030. q
  25031. }
  25032. /^X\(\/\).*/{
  25033. s//\1/
  25034. q
  25035. }
  25036. s/.*/./; q'`
  25037. test -d "$as_dir" && break
  25038. done
  25039. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25040. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25041. } # as_fn_mkdir_p
  25042. if mkdir -p . 2>/dev/null; then
  25043. as_mkdir_p='mkdir -p "$as_dir"'
  25044. else
  25045. test -d ./-p && rmdir ./-p
  25046. as_mkdir_p=false
  25047. fi
  25048. # as_fn_executable_p FILE
  25049. # -----------------------
  25050. # Test if FILE is an executable regular file.
  25051. as_fn_executable_p ()
  25052. {
  25053. test -f "$1" && test -x "$1"
  25054. } # as_fn_executable_p
  25055. as_test_x='test -x'
  25056. as_executable_p=as_fn_executable_p
  25057. # Sed expression to map a string onto a valid CPP name.
  25058. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25059. # Sed expression to map a string onto a valid variable name.
  25060. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25061. exec 6>&1
  25062. ## ----------------------------------- ##
  25063. ## Main body of $CONFIG_STATUS script. ##
  25064. ## ----------------------------------- ##
  25065. _ASEOF
  25066. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25068. # Save the log message, to keep $0 and so on meaningful, and to
  25069. # report actual input values of CONFIG_FILES etc. instead of their
  25070. # values after options handling.
  25071. ac_log="
  25072. This file was extended by $as_me, which was
  25073. generated by GNU Autoconf 2.71. Invocation command line was
  25074. CONFIG_FILES = $CONFIG_FILES
  25075. CONFIG_HEADERS = $CONFIG_HEADERS
  25076. CONFIG_LINKS = $CONFIG_LINKS
  25077. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25078. $ $0 $@
  25079. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25080. "
  25081. _ACEOF
  25082. case $ac_config_files in *"
  25083. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25084. esac
  25085. case $ac_config_headers in *"
  25086. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25087. esac
  25088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25089. # Files that config.status was made for.
  25090. config_files="$ac_config_files"
  25091. config_headers="$ac_config_headers"
  25092. config_commands="$ac_config_commands"
  25093. _ACEOF
  25094. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25095. ac_cs_usage="\
  25096. \`$as_me' instantiates files and other configuration actions
  25097. from templates according to the current configuration. Unless the files
  25098. and actions are specified as TAGs, all are instantiated by default.
  25099. Usage: $0 [OPTION]... [TAG]...
  25100. -h, --help print this help, then exit
  25101. -V, --version print version number and configuration settings, then exit
  25102. --config print configuration, then exit
  25103. -q, --quiet, --silent
  25104. do not print progress messages
  25105. -d, --debug don't remove temporary files
  25106. --recheck update $as_me by reconfiguring in the same conditions
  25107. --file=FILE[:TEMPLATE]
  25108. instantiate the configuration file FILE
  25109. --header=FILE[:TEMPLATE]
  25110. instantiate the configuration header FILE
  25111. Configuration files:
  25112. $config_files
  25113. Configuration headers:
  25114. $config_headers
  25115. Configuration commands:
  25116. $config_commands
  25117. Report bugs to the package provider."
  25118. _ACEOF
  25119. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25120. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25122. ac_cs_config='$ac_cs_config_escaped'
  25123. ac_cs_version="\\
  25124. config.status
  25125. configured by $0, generated by GNU Autoconf 2.71,
  25126. with options \\"\$ac_cs_config\\"
  25127. Copyright (C) 2021 Free Software Foundation, Inc.
  25128. This config.status script is free software; the Free Software Foundation
  25129. gives unlimited permission to copy, distribute and modify it."
  25130. ac_pwd='$ac_pwd'
  25131. srcdir='$srcdir'
  25132. INSTALL='$INSTALL'
  25133. AWK='$AWK'
  25134. test -n "\$AWK" || AWK=awk
  25135. _ACEOF
  25136. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25137. # The default lists apply if the user does not specify any file.
  25138. ac_need_defaults=:
  25139. while test $# != 0
  25140. do
  25141. case $1 in
  25142. --*=?*)
  25143. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25144. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25145. ac_shift=:
  25146. ;;
  25147. --*=)
  25148. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25149. ac_optarg=
  25150. ac_shift=:
  25151. ;;
  25152. *)
  25153. ac_option=$1
  25154. ac_optarg=$2
  25155. ac_shift=shift
  25156. ;;
  25157. esac
  25158. case $ac_option in
  25159. # Handling of the options.
  25160. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25161. ac_cs_recheck=: ;;
  25162. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25163. printf "%s\n" "$ac_cs_version"; exit ;;
  25164. --config | --confi | --conf | --con | --co | --c )
  25165. printf "%s\n" "$ac_cs_config"; exit ;;
  25166. --debug | --debu | --deb | --de | --d | -d )
  25167. debug=: ;;
  25168. --file | --fil | --fi | --f )
  25169. $ac_shift
  25170. case $ac_optarg in
  25171. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25172. '') as_fn_error $? "missing file argument" ;;
  25173. esac
  25174. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25175. ac_need_defaults=false;;
  25176. --header | --heade | --head | --hea )
  25177. $ac_shift
  25178. case $ac_optarg in
  25179. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25180. esac
  25181. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25182. ac_need_defaults=false;;
  25183. --he | --h)
  25184. # Conflict between --help and --header
  25185. as_fn_error $? "ambiguous option: \`$1'
  25186. Try \`$0 --help' for more information.";;
  25187. --help | --hel | -h )
  25188. printf "%s\n" "$ac_cs_usage"; exit ;;
  25189. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25190. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25191. ac_cs_silent=: ;;
  25192. # This is an error.
  25193. -*) as_fn_error $? "unrecognized option: \`$1'
  25194. Try \`$0 --help' for more information." ;;
  25195. *) as_fn_append ac_config_targets " $1"
  25196. ac_need_defaults=false ;;
  25197. esac
  25198. shift
  25199. done
  25200. ac_configure_extra_args=
  25201. if $ac_cs_silent; then
  25202. exec 6>/dev/null
  25203. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25204. fi
  25205. _ACEOF
  25206. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25207. if \$ac_cs_recheck; then
  25208. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25209. shift
  25210. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25211. CONFIG_SHELL='$SHELL'
  25212. export CONFIG_SHELL
  25213. exec "\$@"
  25214. fi
  25215. _ACEOF
  25216. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25217. exec 5>>config.log
  25218. {
  25219. echo
  25220. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25221. ## Running $as_me. ##
  25222. _ASBOX
  25223. printf "%s\n" "$ac_log"
  25224. } >&5
  25225. _ACEOF
  25226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25227. #
  25228. # INIT-COMMANDS
  25229. #
  25230. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25231. # if CDPATH is set.
  25232. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25233. sed_quote_subst='$sed_quote_subst'
  25234. double_quote_subst='$double_quote_subst'
  25235. delay_variable_subst='$delay_variable_subst'
  25236. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25237. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25238. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25239. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25240. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25241. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25242. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25243. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25244. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25245. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25246. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25247. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25248. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25249. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25250. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25251. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25252. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25253. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25254. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25255. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25256. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25257. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25258. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25259. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25260. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25261. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25262. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25263. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25264. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25265. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25266. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25267. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25268. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25269. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25270. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25271. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25272. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25273. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25274. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25275. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25276. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25277. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25278. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25279. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25280. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25281. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25282. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25283. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25284. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25285. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25286. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25287. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25288. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25289. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25290. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25291. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25292. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25293. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25294. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25295. 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"`'
  25296. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25297. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25298. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25299. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25300. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25301. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25302. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25303. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25304. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25305. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25306. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25307. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25308. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25309. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25310. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25311. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25312. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25313. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25314. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25315. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25316. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25317. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25318. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25319. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25320. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25321. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25322. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25323. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25324. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25325. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25326. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25327. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25328. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25329. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25330. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25331. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25332. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25333. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25334. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25335. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25336. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25337. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25338. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25339. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25340. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25341. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25342. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25343. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25344. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25345. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25346. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25347. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25348. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25349. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25350. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25351. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25352. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25353. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25354. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25355. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25356. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25357. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25358. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25359. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25360. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25361. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25362. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25363. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25364. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25365. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25366. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25367. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25368. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25369. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25370. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25371. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25372. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25373. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25374. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25375. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25376. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25377. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25378. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25379. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25380. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25381. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25382. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25383. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25384. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25385. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25386. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25387. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25388. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25389. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25390. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25391. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25392. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25393. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25394. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25395. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25396. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25397. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25398. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25399. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25400. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25401. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25402. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25403. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25404. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25405. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25406. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25407. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25408. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25409. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25410. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25411. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25412. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25413. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25414. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25415. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25416. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25417. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25418. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25419. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25420. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25421. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25422. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25423. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25424. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25425. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25426. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25427. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25428. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25429. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25430. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25431. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25432. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25433. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25434. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25435. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25436. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25437. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25438. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25439. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25440. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25441. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25442. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25443. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25444. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25445. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25446. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25447. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25448. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25449. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25450. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25451. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25452. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25453. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25454. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25455. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25456. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25457. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25458. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25459. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25460. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25461. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25462. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25463. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25464. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25465. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25466. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25467. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25468. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25469. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25470. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25471. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25472. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25473. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25474. LTCC='$LTCC'
  25475. LTCFLAGS='$LTCFLAGS'
  25476. compiler='$compiler_DEFAULT'
  25477. # A function that is used when there is no print builtin or printf.
  25478. func_fallback_echo ()
  25479. {
  25480. eval 'cat <<_LTECHO_EOF
  25481. \$1
  25482. _LTECHO_EOF'
  25483. }
  25484. # Quote evaled strings.
  25485. for var in AS \
  25486. DLLTOOL \
  25487. OBJDUMP \
  25488. SHELL \
  25489. ECHO \
  25490. PATH_SEPARATOR \
  25491. SED \
  25492. GREP \
  25493. EGREP \
  25494. FGREP \
  25495. LD \
  25496. NM \
  25497. LN_S \
  25498. lt_SP2NL \
  25499. lt_NL2SP \
  25500. reload_flag \
  25501. deplibs_check_method \
  25502. file_magic_cmd \
  25503. file_magic_glob \
  25504. want_nocaseglob \
  25505. sharedlib_from_linklib_cmd \
  25506. AR \
  25507. AR_FLAGS \
  25508. archiver_list_spec \
  25509. STRIP \
  25510. RANLIB \
  25511. CC \
  25512. CFLAGS \
  25513. compiler \
  25514. lt_cv_sys_global_symbol_pipe \
  25515. lt_cv_sys_global_symbol_to_cdecl \
  25516. lt_cv_sys_global_symbol_to_import \
  25517. lt_cv_sys_global_symbol_to_c_name_address \
  25518. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25519. lt_cv_nm_interface \
  25520. nm_file_list_spec \
  25521. lt_cv_truncate_bin \
  25522. lt_prog_compiler_no_builtin_flag \
  25523. lt_prog_compiler_pic \
  25524. lt_prog_compiler_wl \
  25525. lt_prog_compiler_static \
  25526. lt_cv_prog_compiler_c_o \
  25527. need_locks \
  25528. MANIFEST_TOOL \
  25529. DSYMUTIL \
  25530. NMEDIT \
  25531. LIPO \
  25532. OTOOL \
  25533. OTOOL64 \
  25534. shrext_cmds \
  25535. export_dynamic_flag_spec \
  25536. whole_archive_flag_spec \
  25537. compiler_needs_object \
  25538. with_gnu_ld \
  25539. allow_undefined_flag \
  25540. no_undefined_flag \
  25541. hardcode_libdir_flag_spec \
  25542. hardcode_libdir_separator \
  25543. exclude_expsyms \
  25544. include_expsyms \
  25545. file_list_spec \
  25546. variables_saved_for_relink \
  25547. libname_spec \
  25548. library_names_spec \
  25549. soname_spec \
  25550. install_override_mode \
  25551. finish_eval \
  25552. old_striplib \
  25553. striplib \
  25554. compiler_lib_search_dirs \
  25555. predep_objects \
  25556. postdep_objects \
  25557. predeps \
  25558. postdeps \
  25559. compiler_lib_search_path \
  25560. LD_RC \
  25561. LD_CXX \
  25562. reload_flag_RC \
  25563. reload_flag_CXX \
  25564. compiler_RC \
  25565. compiler_CXX \
  25566. lt_prog_compiler_no_builtin_flag_RC \
  25567. lt_prog_compiler_no_builtin_flag_CXX \
  25568. lt_prog_compiler_pic_RC \
  25569. lt_prog_compiler_pic_CXX \
  25570. lt_prog_compiler_wl_RC \
  25571. lt_prog_compiler_wl_CXX \
  25572. lt_prog_compiler_static_RC \
  25573. lt_prog_compiler_static_CXX \
  25574. lt_cv_prog_compiler_c_o_RC \
  25575. lt_cv_prog_compiler_c_o_CXX \
  25576. export_dynamic_flag_spec_RC \
  25577. export_dynamic_flag_spec_CXX \
  25578. whole_archive_flag_spec_RC \
  25579. whole_archive_flag_spec_CXX \
  25580. compiler_needs_object_RC \
  25581. compiler_needs_object_CXX \
  25582. with_gnu_ld_RC \
  25583. with_gnu_ld_CXX \
  25584. allow_undefined_flag_RC \
  25585. allow_undefined_flag_CXX \
  25586. no_undefined_flag_RC \
  25587. no_undefined_flag_CXX \
  25588. hardcode_libdir_flag_spec_RC \
  25589. hardcode_libdir_flag_spec_CXX \
  25590. hardcode_libdir_separator_RC \
  25591. hardcode_libdir_separator_CXX \
  25592. exclude_expsyms_RC \
  25593. exclude_expsyms_CXX \
  25594. include_expsyms_RC \
  25595. include_expsyms_CXX \
  25596. file_list_spec_RC \
  25597. file_list_spec_CXX \
  25598. compiler_lib_search_dirs_RC \
  25599. compiler_lib_search_dirs_CXX \
  25600. predep_objects_RC \
  25601. predep_objects_CXX \
  25602. postdep_objects_RC \
  25603. postdep_objects_CXX \
  25604. predeps_RC \
  25605. predeps_CXX \
  25606. postdeps_RC \
  25607. postdeps_CXX \
  25608. compiler_lib_search_path_RC \
  25609. compiler_lib_search_path_CXX; do
  25610. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25611. *[\\\\\\\`\\"\\\$]*)
  25612. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25613. ;;
  25614. *)
  25615. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25616. ;;
  25617. esac
  25618. done
  25619. # Double-quote double-evaled strings.
  25620. for var in reload_cmds \
  25621. old_postinstall_cmds \
  25622. old_postuninstall_cmds \
  25623. old_archive_cmds \
  25624. extract_expsyms_cmds \
  25625. old_archive_from_new_cmds \
  25626. old_archive_from_expsyms_cmds \
  25627. archive_cmds \
  25628. archive_expsym_cmds \
  25629. module_cmds \
  25630. module_expsym_cmds \
  25631. export_symbols_cmds \
  25632. prelink_cmds \
  25633. postlink_cmds \
  25634. postinstall_cmds \
  25635. postuninstall_cmds \
  25636. finish_cmds \
  25637. sys_lib_search_path_spec \
  25638. configure_time_dlsearch_path \
  25639. configure_time_lt_sys_library_path \
  25640. reload_cmds_RC \
  25641. reload_cmds_CXX \
  25642. old_archive_cmds_RC \
  25643. old_archive_cmds_CXX \
  25644. old_archive_from_new_cmds_RC \
  25645. old_archive_from_new_cmds_CXX \
  25646. old_archive_from_expsyms_cmds_RC \
  25647. old_archive_from_expsyms_cmds_CXX \
  25648. archive_cmds_RC \
  25649. archive_cmds_CXX \
  25650. archive_expsym_cmds_RC \
  25651. archive_expsym_cmds_CXX \
  25652. module_cmds_RC \
  25653. module_cmds_CXX \
  25654. module_expsym_cmds_RC \
  25655. module_expsym_cmds_CXX \
  25656. export_symbols_cmds_RC \
  25657. export_symbols_cmds_CXX \
  25658. prelink_cmds_RC \
  25659. prelink_cmds_CXX \
  25660. postlink_cmds_RC \
  25661. postlink_cmds_CXX; do
  25662. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25663. *[\\\\\\\`\\"\\\$]*)
  25664. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25665. ;;
  25666. *)
  25667. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25668. ;;
  25669. esac
  25670. done
  25671. ac_aux_dir='$ac_aux_dir'
  25672. # See if we are running on zsh, and set the options that allow our
  25673. # commands through without removal of \ escapes INIT.
  25674. if test -n "\${ZSH_VERSION+set}"; then
  25675. setopt NO_GLOB_SUBST
  25676. fi
  25677. PACKAGE='$PACKAGE'
  25678. VERSION='$VERSION'
  25679. RM='$RM'
  25680. ofile='$ofile'
  25681. SUMMARY="$SUMMARY"
  25682. _ACEOF
  25683. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25684. # Handling of arguments.
  25685. for ac_config_target in $ac_config_targets
  25686. do
  25687. case $ac_config_target in
  25688. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25689. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25690. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25691. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25692. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25693. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25694. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25695. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25696. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25697. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25698. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25699. esac
  25700. done
  25701. # If the user did not use the arguments to specify the items to instantiate,
  25702. # then the envvar interface is used. Set only those that are not.
  25703. # We use the long form for the default assignment because of an extremely
  25704. # bizarre bug on SunOS 4.1.3.
  25705. if $ac_need_defaults; then
  25706. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25707. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25708. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25709. fi
  25710. # Have a temporary directory for convenience. Make it in the build tree
  25711. # simply because there is no reason against having it here, and in addition,
  25712. # creating and moving files from /tmp can sometimes cause problems.
  25713. # Hook for its removal unless debugging.
  25714. # Note that there is a small window in which the directory will not be cleaned:
  25715. # after its creation but before its name has been assigned to `$tmp'.
  25716. $debug ||
  25717. {
  25718. tmp= ac_tmp=
  25719. trap 'exit_status=$?
  25720. : "${ac_tmp:=$tmp}"
  25721. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25722. ' 0
  25723. trap 'as_fn_exit 1' 1 2 13 15
  25724. }
  25725. # Create a (secure) tmp directory for tmp files.
  25726. {
  25727. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25728. test -d "$tmp"
  25729. } ||
  25730. {
  25731. tmp=./conf$$-$RANDOM
  25732. (umask 077 && mkdir "$tmp")
  25733. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25734. ac_tmp=$tmp
  25735. # Set up the scripts for CONFIG_FILES section.
  25736. # No need to generate them if there are no CONFIG_FILES.
  25737. # This happens for instance with `./config.status config.h'.
  25738. if test -n "$CONFIG_FILES"; then
  25739. ac_cr=`echo X | tr X '\015'`
  25740. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25741. # But we know of no other shell where ac_cr would be empty at this
  25742. # point, so we can use a bashism as a fallback.
  25743. if test "x$ac_cr" = x; then
  25744. eval ac_cr=\$\'\\r\'
  25745. fi
  25746. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25747. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25748. ac_cs_awk_cr='\\r'
  25749. else
  25750. ac_cs_awk_cr=$ac_cr
  25751. fi
  25752. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25753. _ACEOF
  25754. {
  25755. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25756. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25757. echo "_ACEOF"
  25758. } >conf$$subs.sh ||
  25759. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25760. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25761. ac_delim='%!_!# '
  25762. for ac_last_try in false false false false false :; do
  25763. . ./conf$$subs.sh ||
  25764. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25765. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25766. if test $ac_delim_n = $ac_delim_num; then
  25767. break
  25768. elif $ac_last_try; then
  25769. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25770. else
  25771. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25772. fi
  25773. done
  25774. rm -f conf$$subs.sh
  25775. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25776. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25777. _ACEOF
  25778. sed -n '
  25779. h
  25780. s/^/S["/; s/!.*/"]=/
  25781. p
  25782. g
  25783. s/^[^!]*!//
  25784. :repl
  25785. t repl
  25786. s/'"$ac_delim"'$//
  25787. t delim
  25788. :nl
  25789. h
  25790. s/\(.\{148\}\)..*/\1/
  25791. t more1
  25792. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25793. p
  25794. n
  25795. b repl
  25796. :more1
  25797. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25798. p
  25799. g
  25800. s/.\{148\}//
  25801. t nl
  25802. :delim
  25803. h
  25804. s/\(.\{148\}\)..*/\1/
  25805. t more2
  25806. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25807. p
  25808. b
  25809. :more2
  25810. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25811. p
  25812. g
  25813. s/.\{148\}//
  25814. t delim
  25815. ' <conf$$subs.awk | sed '
  25816. /^[^""]/{
  25817. N
  25818. s/\n//
  25819. }
  25820. ' >>$CONFIG_STATUS || ac_write_fail=1
  25821. rm -f conf$$subs.awk
  25822. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25823. _ACAWK
  25824. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25825. for (key in S) S_is_set[key] = 1
  25826. FS = ""
  25827. }
  25828. {
  25829. line = $ 0
  25830. nfields = split(line, field, "@")
  25831. substed = 0
  25832. len = length(field[1])
  25833. for (i = 2; i < nfields; i++) {
  25834. key = field[i]
  25835. keylen = length(key)
  25836. if (S_is_set[key]) {
  25837. value = S[key]
  25838. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25839. len += length(value) + length(field[++i])
  25840. substed = 1
  25841. } else
  25842. len += 1 + keylen
  25843. }
  25844. print line
  25845. }
  25846. _ACAWK
  25847. _ACEOF
  25848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25849. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25850. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25851. else
  25852. cat
  25853. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  25854. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  25855. _ACEOF
  25856. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  25857. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  25858. # trailing colons and then remove the whole line if VPATH becomes empty
  25859. # (actually we leave an empty line to preserve line numbers).
  25860. if test "x$srcdir" = x.; then
  25861. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  25862. h
  25863. s///
  25864. s/^/:/
  25865. s/[ ]*$/:/
  25866. s/:\$(srcdir):/:/g
  25867. s/:\${srcdir}:/:/g
  25868. s/:@srcdir@:/:/g
  25869. s/^:*//
  25870. s/:*$//
  25871. x
  25872. s/\(=[ ]*\).*/\1/
  25873. G
  25874. s/\n//
  25875. s/^[^=]*=[ ]*$//
  25876. }'
  25877. fi
  25878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25879. fi # test -n "$CONFIG_FILES"
  25880. # Set up the scripts for CONFIG_HEADERS section.
  25881. # No need to generate them if there are no CONFIG_HEADERS.
  25882. # This happens for instance with `./config.status Makefile'.
  25883. if test -n "$CONFIG_HEADERS"; then
  25884. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  25885. BEGIN {
  25886. _ACEOF
  25887. # Transform confdefs.h into an awk script `defines.awk', embedded as
  25888. # here-document in config.status, that substitutes the proper values into
  25889. # config.h.in to produce config.h.
  25890. # Create a delimiter string that does not exist in confdefs.h, to ease
  25891. # handling of long lines.
  25892. ac_delim='%!_!# '
  25893. for ac_last_try in false false :; do
  25894. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  25895. if test -z "$ac_tt"; then
  25896. break
  25897. elif $ac_last_try; then
  25898. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  25899. else
  25900. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25901. fi
  25902. done
  25903. # For the awk script, D is an array of macro values keyed by name,
  25904. # likewise P contains macro parameters if any. Preserve backslash
  25905. # newline sequences.
  25906. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25907. sed -n '
  25908. s/.\{148\}/&'"$ac_delim"'/g
  25909. t rset
  25910. :rset
  25911. s/^[ ]*#[ ]*define[ ][ ]*/ /
  25912. t def
  25913. d
  25914. :def
  25915. s/\\$//
  25916. t bsnl
  25917. s/["\\]/\\&/g
  25918. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25919. D["\1"]=" \3"/p
  25920. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25921. d
  25922. :bsnl
  25923. s/["\\]/\\&/g
  25924. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25925. D["\1"]=" \3\\\\\\n"\\/p
  25926. t cont
  25927. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25928. t cont
  25929. d
  25930. :cont
  25931. n
  25932. s/.\{148\}/&'"$ac_delim"'/g
  25933. t clear
  25934. :clear
  25935. s/\\$//
  25936. t bsnlc
  25937. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25938. d
  25939. :bsnlc
  25940. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25941. b cont
  25942. ' <confdefs.h | sed '
  25943. s/'"$ac_delim"'/"\\\
  25944. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  25945. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25946. for (key in D) D_is_set[key] = 1
  25947. FS = ""
  25948. }
  25949. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25950. line = \$ 0
  25951. split(line, arg, " ")
  25952. if (arg[1] == "#") {
  25953. defundef = arg[2]
  25954. mac1 = arg[3]
  25955. } else {
  25956. defundef = substr(arg[1], 2)
  25957. mac1 = arg[2]
  25958. }
  25959. split(mac1, mac2, "(") #)
  25960. macro = mac2[1]
  25961. prefix = substr(line, 1, index(line, defundef) - 1)
  25962. if (D_is_set[macro]) {
  25963. # Preserve the white space surrounding the "#".
  25964. print prefix "define", macro P[macro] D[macro]
  25965. next
  25966. } else {
  25967. # Replace #undef with comments. This is necessary, for example,
  25968. # in the case of _POSIX_SOURCE, which is predefined and required
  25969. # on some systems where configure will not decide to define it.
  25970. if (defundef == "undef") {
  25971. print "/*", prefix defundef, macro, "*/"
  25972. next
  25973. }
  25974. }
  25975. }
  25976. { print }
  25977. _ACAWK
  25978. _ACEOF
  25979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25980. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  25981. fi # test -n "$CONFIG_HEADERS"
  25982. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  25983. shift
  25984. for ac_tag
  25985. do
  25986. case $ac_tag in
  25987. :[FHLC]) ac_mode=$ac_tag; continue;;
  25988. esac
  25989. case $ac_mode$ac_tag in
  25990. :[FHL]*:*);;
  25991. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25992. :[FH]-) ac_tag=-:-;;
  25993. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25994. esac
  25995. ac_save_IFS=$IFS
  25996. IFS=:
  25997. set x $ac_tag
  25998. IFS=$ac_save_IFS
  25999. shift
  26000. ac_file=$1
  26001. shift
  26002. case $ac_mode in
  26003. :L) ac_source=$1;;
  26004. :[FH])
  26005. ac_file_inputs=
  26006. for ac_f
  26007. do
  26008. case $ac_f in
  26009. -) ac_f="$ac_tmp/stdin";;
  26010. *) # Look for the file first in the build tree, then in the source tree
  26011. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26012. # because $ac_f cannot contain `:'.
  26013. test -f "$ac_f" ||
  26014. case $ac_f in
  26015. [\\/$]*) false;;
  26016. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26017. esac ||
  26018. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26019. esac
  26020. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26021. as_fn_append ac_file_inputs " '$ac_f'"
  26022. done
  26023. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26024. # use $as_me), people would be surprised to read:
  26025. # /* config.h. Generated by config.status. */
  26026. configure_input='Generated from '`
  26027. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26028. `' by configure.'
  26029. if test x"$ac_file" != x-; then
  26030. configure_input="$ac_file. $configure_input"
  26031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26032. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26033. fi
  26034. # Neutralize special characters interpreted by sed in replacement strings.
  26035. case $configure_input in #(
  26036. *\&* | *\|* | *\\* )
  26037. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26038. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26039. *) ac_sed_conf_input=$configure_input;;
  26040. esac
  26041. case $ac_tag in
  26042. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26043. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26044. esac
  26045. ;;
  26046. esac
  26047. ac_dir=`$as_dirname -- "$ac_file" ||
  26048. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26049. X"$ac_file" : 'X\(//\)[^/]' \| \
  26050. X"$ac_file" : 'X\(//\)$' \| \
  26051. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26052. printf "%s\n" X"$ac_file" |
  26053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26054. s//\1/
  26055. q
  26056. }
  26057. /^X\(\/\/\)[^/].*/{
  26058. s//\1/
  26059. q
  26060. }
  26061. /^X\(\/\/\)$/{
  26062. s//\1/
  26063. q
  26064. }
  26065. /^X\(\/\).*/{
  26066. s//\1/
  26067. q
  26068. }
  26069. s/.*/./; q'`
  26070. as_dir="$ac_dir"; as_fn_mkdir_p
  26071. ac_builddir=.
  26072. case "$ac_dir" in
  26073. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26074. *)
  26075. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26076. # A ".." for each directory in $ac_dir_suffix.
  26077. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26078. case $ac_top_builddir_sub in
  26079. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26080. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26081. esac ;;
  26082. esac
  26083. ac_abs_top_builddir=$ac_pwd
  26084. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26085. # for backward compatibility:
  26086. ac_top_builddir=$ac_top_build_prefix
  26087. case $srcdir in
  26088. .) # We are building in place.
  26089. ac_srcdir=.
  26090. ac_top_srcdir=$ac_top_builddir_sub
  26091. ac_abs_top_srcdir=$ac_pwd ;;
  26092. [\\/]* | ?:[\\/]* ) # Absolute name.
  26093. ac_srcdir=$srcdir$ac_dir_suffix;
  26094. ac_top_srcdir=$srcdir
  26095. ac_abs_top_srcdir=$srcdir ;;
  26096. *) # Relative name.
  26097. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26098. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26099. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26100. esac
  26101. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26102. case $ac_mode in
  26103. :F)
  26104. #
  26105. # CONFIG_FILE
  26106. #
  26107. case $INSTALL in
  26108. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26109. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26110. esac
  26111. _ACEOF
  26112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26113. # If the template does not know about datarootdir, expand it.
  26114. # FIXME: This hack should be removed a few years after 2.60.
  26115. ac_datarootdir_hack=; ac_datarootdir_seen=
  26116. ac_sed_dataroot='
  26117. /datarootdir/ {
  26118. p
  26119. q
  26120. }
  26121. /@datadir@/p
  26122. /@docdir@/p
  26123. /@infodir@/p
  26124. /@localedir@/p
  26125. /@mandir@/p'
  26126. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26127. *datarootdir*) ac_datarootdir_seen=yes;;
  26128. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26130. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26131. _ACEOF
  26132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26133. ac_datarootdir_hack='
  26134. s&@datadir@&$datadir&g
  26135. s&@docdir@&$docdir&g
  26136. s&@infodir@&$infodir&g
  26137. s&@localedir@&$localedir&g
  26138. s&@mandir@&$mandir&g
  26139. s&\\\${datarootdir}&$datarootdir&g' ;;
  26140. esac
  26141. _ACEOF
  26142. # Neutralize VPATH when `$srcdir' = `.'.
  26143. # Shell code in configure.ac might set extrasub.
  26144. # FIXME: do we really want to maintain this feature?
  26145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26146. ac_sed_extra="$ac_vpsub
  26147. $extrasub
  26148. _ACEOF
  26149. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26150. :t
  26151. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26152. s|@configure_input@|$ac_sed_conf_input|;t t
  26153. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26154. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26155. s&@srcdir@&$ac_srcdir&;t t
  26156. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26157. s&@top_srcdir@&$ac_top_srcdir&;t t
  26158. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26159. s&@builddir@&$ac_builddir&;t t
  26160. s&@abs_builddir@&$ac_abs_builddir&;t t
  26161. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26162. s&@INSTALL@&$ac_INSTALL&;t t
  26163. $ac_datarootdir_hack
  26164. "
  26165. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26166. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26167. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26168. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26169. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26170. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26172. which seems to be undefined. Please make sure it is defined" >&5
  26173. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26174. which seems to be undefined. Please make sure it is defined" >&2;}
  26175. rm -f "$ac_tmp/stdin"
  26176. case $ac_file in
  26177. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26178. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26179. esac \
  26180. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26181. ;;
  26182. :H)
  26183. #
  26184. # CONFIG_HEADER
  26185. #
  26186. if test x"$ac_file" != x-; then
  26187. {
  26188. printf "%s\n" "/* $configure_input */" >&1 \
  26189. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26190. } >"$ac_tmp/config.h" \
  26191. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26192. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26194. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26195. else
  26196. rm -f "$ac_file"
  26197. mv "$ac_tmp/config.h" "$ac_file" \
  26198. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26199. fi
  26200. else
  26201. printf "%s\n" "/* $configure_input */" >&1 \
  26202. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26203. || as_fn_error $? "could not create -" "$LINENO" 5
  26204. fi
  26205. ;;
  26206. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26207. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26208. ;;
  26209. esac
  26210. case $ac_file$ac_mode in
  26211. "libtool":C)
  26212. # See if we are running on zsh, and set the options that allow our
  26213. # commands through without removal of \ escapes.
  26214. if test -n "${ZSH_VERSION+set}"; then
  26215. setopt NO_GLOB_SUBST
  26216. fi
  26217. cfgfile=${ofile}T
  26218. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26219. $RM "$cfgfile"
  26220. cat <<_LT_EOF >> "$cfgfile"
  26221. #! $SHELL
  26222. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26223. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26224. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26225. # Provide generalized library-building support services.
  26226. # Written by Gordon Matzigkeit, 1996
  26227. # Copyright (C) 2014 Free Software Foundation, Inc.
  26228. # This is free software; see the source for copying conditions. There is NO
  26229. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26230. # GNU Libtool is free software; you can redistribute it and/or modify
  26231. # it under the terms of the GNU General Public License as published by
  26232. # the Free Software Foundation; either version 2 of of the License, or
  26233. # (at your option) any later version.
  26234. #
  26235. # As a special exception to the GNU General Public License, if you
  26236. # distribute this file as part of a program or library that is built
  26237. # using GNU Libtool, you may include this file under the same
  26238. # distribution terms that you use for the rest of that program.
  26239. #
  26240. # GNU Libtool is distributed in the hope that it will be useful, but
  26241. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26242. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26243. # GNU General Public License for more details.
  26244. #
  26245. # You should have received a copy of the GNU General Public License
  26246. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26247. # The names of the tagged configurations supported by this script.
  26248. available_tags='RC CXX '
  26249. # Configured defaults for sys_lib_dlsearch_path munging.
  26250. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26251. # ### BEGIN LIBTOOL CONFIG
  26252. # Which release of libtool.m4 was used?
  26253. macro_version=$macro_version
  26254. macro_revision=$macro_revision
  26255. # Assembler program.
  26256. AS=$lt_AS
  26257. # DLL creation program.
  26258. DLLTOOL=$lt_DLLTOOL
  26259. # Object dumper program.
  26260. OBJDUMP=$lt_OBJDUMP
  26261. # Whether or not to build shared libraries.
  26262. build_libtool_libs=$enable_shared
  26263. # Whether or not to build static libraries.
  26264. build_old_libs=$enable_static
  26265. # What type of objects to build.
  26266. pic_mode=$pic_mode
  26267. # Whether or not to optimize for fast installation.
  26268. fast_install=$enable_fast_install
  26269. # Shared archive member basename,for filename based shared library versioning on AIX.
  26270. shared_archive_member_spec=$shared_archive_member_spec
  26271. # Shell to use when invoking shell scripts.
  26272. SHELL=$lt_SHELL
  26273. # An echo program that protects backslashes.
  26274. ECHO=$lt_ECHO
  26275. # The PATH separator for the build system.
  26276. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26277. # The host system.
  26278. host_alias=$host_alias
  26279. host=$host
  26280. host_os=$host_os
  26281. # The build system.
  26282. build_alias=$build_alias
  26283. build=$build
  26284. build_os=$build_os
  26285. # A sed program that does not truncate output.
  26286. SED=$lt_SED
  26287. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26288. Xsed="\$SED -e 1s/^X//"
  26289. # A grep program that handles long lines.
  26290. GREP=$lt_GREP
  26291. # An ERE matcher.
  26292. EGREP=$lt_EGREP
  26293. # A literal string matcher.
  26294. FGREP=$lt_FGREP
  26295. # A BSD- or MS-compatible name lister.
  26296. NM=$lt_NM
  26297. # Whether we need soft or hard links.
  26298. LN_S=$lt_LN_S
  26299. # What is the maximum length of a command?
  26300. max_cmd_len=$max_cmd_len
  26301. # Object file suffix (normally "o").
  26302. objext=$ac_objext
  26303. # Executable file suffix (normally "").
  26304. exeext=$exeext
  26305. # whether the shell understands "unset".
  26306. lt_unset=$lt_unset
  26307. # turn spaces into newlines.
  26308. SP2NL=$lt_lt_SP2NL
  26309. # turn newlines into spaces.
  26310. NL2SP=$lt_lt_NL2SP
  26311. # convert \$build file names to \$host format.
  26312. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26313. # convert \$build files to toolchain format.
  26314. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26315. # Method to check whether dependent libraries are shared objects.
  26316. deplibs_check_method=$lt_deplibs_check_method
  26317. # Command to use when deplibs_check_method = "file_magic".
  26318. file_magic_cmd=$lt_file_magic_cmd
  26319. # How to find potential files when deplibs_check_method = "file_magic".
  26320. file_magic_glob=$lt_file_magic_glob
  26321. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26322. want_nocaseglob=$lt_want_nocaseglob
  26323. # Command to associate shared and link libraries.
  26324. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26325. # The archiver.
  26326. AR=$lt_AR
  26327. # Flags to create an archive.
  26328. AR_FLAGS=$lt_AR_FLAGS
  26329. # How to feed a file listing to the archiver.
  26330. archiver_list_spec=$lt_archiver_list_spec
  26331. # A symbol stripping program.
  26332. STRIP=$lt_STRIP
  26333. # Commands used to install an old-style archive.
  26334. RANLIB=$lt_RANLIB
  26335. old_postinstall_cmds=$lt_old_postinstall_cmds
  26336. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26337. # Whether to use a lock for old archive extraction.
  26338. lock_old_archive_extraction=$lock_old_archive_extraction
  26339. # A C compiler.
  26340. LTCC=$lt_CC
  26341. # LTCC compiler flags.
  26342. LTCFLAGS=$lt_CFLAGS
  26343. # Take the output of nm and produce a listing of raw symbols and C names.
  26344. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26345. # Transform the output of nm in a proper C declaration.
  26346. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26347. # Transform the output of nm into a list of symbols to manually relocate.
  26348. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26349. # Transform the output of nm in a C name address pair.
  26350. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26351. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26352. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26353. # The name lister interface.
  26354. nm_interface=$lt_lt_cv_nm_interface
  26355. # Specify filename containing input files for \$NM.
  26356. nm_file_list_spec=$lt_nm_file_list_spec
  26357. # The root where to search for dependent libraries,and where our libraries should be installed.
  26358. lt_sysroot=$lt_sysroot
  26359. # Command to truncate a binary pipe.
  26360. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26361. # The name of the directory that contains temporary libtool files.
  26362. objdir=$objdir
  26363. # Used to examine libraries when file_magic_cmd begins with "file".
  26364. MAGIC_CMD=$MAGIC_CMD
  26365. # Must we lock files when doing compilation?
  26366. need_locks=$lt_need_locks
  26367. # Manifest tool.
  26368. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26369. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26370. DSYMUTIL=$lt_DSYMUTIL
  26371. # Tool to change global to local symbols on Mac OS X.
  26372. NMEDIT=$lt_NMEDIT
  26373. # Tool to manipulate fat objects and archives on Mac OS X.
  26374. LIPO=$lt_LIPO
  26375. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26376. OTOOL=$lt_OTOOL
  26377. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26378. OTOOL64=$lt_OTOOL64
  26379. # Old archive suffix (normally "a").
  26380. libext=$libext
  26381. # Shared library suffix (normally ".so").
  26382. shrext_cmds=$lt_shrext_cmds
  26383. # The commands to extract the exported symbol list from a shared archive.
  26384. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26385. # Variables whose values should be saved in libtool wrapper scripts and
  26386. # restored at link time.
  26387. variables_saved_for_relink=$lt_variables_saved_for_relink
  26388. # Do we need the "lib" prefix for modules?
  26389. need_lib_prefix=$need_lib_prefix
  26390. # Do we need a version for libraries?
  26391. need_version=$need_version
  26392. # Library versioning type.
  26393. version_type=$version_type
  26394. # Shared library runtime path variable.
  26395. runpath_var=$runpath_var
  26396. # Shared library path variable.
  26397. shlibpath_var=$shlibpath_var
  26398. # Is shlibpath searched before the hard-coded library search path?
  26399. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26400. # Format of library name prefix.
  26401. libname_spec=$lt_libname_spec
  26402. # List of archive names. First name is the real one, the rest are links.
  26403. # The last name is the one that the linker finds with -lNAME
  26404. library_names_spec=$lt_library_names_spec
  26405. # The coded name of the library, if different from the real name.
  26406. soname_spec=$lt_soname_spec
  26407. # Permission mode override for installation of shared libraries.
  26408. install_override_mode=$lt_install_override_mode
  26409. # Command to use after installation of a shared archive.
  26410. postinstall_cmds=$lt_postinstall_cmds
  26411. # Command to use after uninstallation of a shared archive.
  26412. postuninstall_cmds=$lt_postuninstall_cmds
  26413. # Commands used to finish a libtool library installation in a directory.
  26414. finish_cmds=$lt_finish_cmds
  26415. # As "finish_cmds", except a single script fragment to be evaled but
  26416. # not shown.
  26417. finish_eval=$lt_finish_eval
  26418. # Whether we should hardcode library paths into libraries.
  26419. hardcode_into_libs=$hardcode_into_libs
  26420. # Compile-time system search path for libraries.
  26421. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26422. # Detected run-time system search path for libraries.
  26423. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26424. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26425. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26426. # Whether dlopen is supported.
  26427. dlopen_support=$enable_dlopen
  26428. # Whether dlopen of programs is supported.
  26429. dlopen_self=$enable_dlopen_self
  26430. # Whether dlopen of statically linked programs is supported.
  26431. dlopen_self_static=$enable_dlopen_self_static
  26432. # Commands to strip libraries.
  26433. old_striplib=$lt_old_striplib
  26434. striplib=$lt_striplib
  26435. # The linker used to build libraries.
  26436. LD=$lt_LD
  26437. # How to create reloadable object files.
  26438. reload_flag=$lt_reload_flag
  26439. reload_cmds=$lt_reload_cmds
  26440. # Commands used to build an old-style archive.
  26441. old_archive_cmds=$lt_old_archive_cmds
  26442. # A language specific compiler.
  26443. CC=$lt_compiler
  26444. # Is the compiler the GNU compiler?
  26445. with_gcc=$GCC
  26446. # Compiler flag to turn off builtin functions.
  26447. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26448. # Additional compiler flags for building library objects.
  26449. pic_flag=$lt_lt_prog_compiler_pic
  26450. # How to pass a linker flag through the compiler.
  26451. wl=$lt_lt_prog_compiler_wl
  26452. # Compiler flag to prevent dynamic linking.
  26453. link_static_flag=$lt_lt_prog_compiler_static
  26454. # Does compiler simultaneously support -c and -o options?
  26455. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26456. # Whether or not to add -lc for building shared libraries.
  26457. build_libtool_need_lc=$archive_cmds_need_lc
  26458. # Whether or not to disallow shared libs when runtime libs are static.
  26459. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26460. # Compiler flag to allow reflexive dlopens.
  26461. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26462. # Compiler flag to generate shared objects directly from archives.
  26463. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26464. # Whether the compiler copes with passing no objects directly.
  26465. compiler_needs_object=$lt_compiler_needs_object
  26466. # Create an old-style archive from a shared archive.
  26467. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26468. # Create a temporary old-style archive to link instead of a shared archive.
  26469. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26470. # Commands used to build a shared archive.
  26471. archive_cmds=$lt_archive_cmds
  26472. archive_expsym_cmds=$lt_archive_expsym_cmds
  26473. # Commands used to build a loadable module if different from building
  26474. # a shared archive.
  26475. module_cmds=$lt_module_cmds
  26476. module_expsym_cmds=$lt_module_expsym_cmds
  26477. # Whether we are building with GNU ld or not.
  26478. with_gnu_ld=$lt_with_gnu_ld
  26479. # Flag that allows shared libraries with undefined symbols to be built.
  26480. allow_undefined_flag=$lt_allow_undefined_flag
  26481. # Flag that enforces no undefined symbols.
  26482. no_undefined_flag=$lt_no_undefined_flag
  26483. # Flag to hardcode \$libdir into a binary during linking.
  26484. # This must work even if \$libdir does not exist
  26485. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26486. # Whether we need a single "-rpath" flag with a separated argument.
  26487. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26488. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26489. # DIR into the resulting binary.
  26490. hardcode_direct=$hardcode_direct
  26491. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26492. # DIR into the resulting binary and the resulting library dependency is
  26493. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26494. # library is relocated.
  26495. hardcode_direct_absolute=$hardcode_direct_absolute
  26496. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26497. # into the resulting binary.
  26498. hardcode_minus_L=$hardcode_minus_L
  26499. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26500. # into the resulting binary.
  26501. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26502. # Set to "yes" if building a shared library automatically hardcodes DIR
  26503. # into the library and all subsequent libraries and executables linked
  26504. # against it.
  26505. hardcode_automatic=$hardcode_automatic
  26506. # Set to yes if linker adds runtime paths of dependent libraries
  26507. # to runtime path list.
  26508. inherit_rpath=$inherit_rpath
  26509. # Whether libtool must link a program against all its dependency libraries.
  26510. link_all_deplibs=$link_all_deplibs
  26511. # Set to "yes" if exported symbols are required.
  26512. always_export_symbols=$always_export_symbols
  26513. # The commands to list exported symbols.
  26514. export_symbols_cmds=$lt_export_symbols_cmds
  26515. # Symbols that should not be listed in the preloaded symbols.
  26516. exclude_expsyms=$lt_exclude_expsyms
  26517. # Symbols that must always be exported.
  26518. include_expsyms=$lt_include_expsyms
  26519. # Commands necessary for linking programs (against libraries) with templates.
  26520. prelink_cmds=$lt_prelink_cmds
  26521. # Commands necessary for finishing linking programs.
  26522. postlink_cmds=$lt_postlink_cmds
  26523. # Specify filename containing input files.
  26524. file_list_spec=$lt_file_list_spec
  26525. # How to hardcode a shared library path into an executable.
  26526. hardcode_action=$hardcode_action
  26527. # The directories searched by this compiler when creating a shared library.
  26528. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26529. # Dependencies to place before and after the objects being linked to
  26530. # create a shared library.
  26531. predep_objects=$lt_predep_objects
  26532. postdep_objects=$lt_postdep_objects
  26533. predeps=$lt_predeps
  26534. postdeps=$lt_postdeps
  26535. # The library search path used internally by the compiler when linking
  26536. # a shared library.
  26537. compiler_lib_search_path=$lt_compiler_lib_search_path
  26538. # ### END LIBTOOL CONFIG
  26539. _LT_EOF
  26540. cat <<'_LT_EOF' >> "$cfgfile"
  26541. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26542. # func_munge_path_list VARIABLE PATH
  26543. # -----------------------------------
  26544. # VARIABLE is name of variable containing _space_ separated list of
  26545. # directories to be munged by the contents of PATH, which is string
  26546. # having a format:
  26547. # "DIR[:DIR]:"
  26548. # string "DIR[ DIR]" will be prepended to VARIABLE
  26549. # ":DIR[:DIR]"
  26550. # string "DIR[ DIR]" will be appended to VARIABLE
  26551. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26552. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26553. # "DIRA[ DIRA]" will be appended to VARIABLE
  26554. # "DIR[:DIR]"
  26555. # VARIABLE will be replaced by "DIR[ DIR]"
  26556. func_munge_path_list ()
  26557. {
  26558. case x$2 in
  26559. x)
  26560. ;;
  26561. *:)
  26562. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26563. ;;
  26564. x:*)
  26565. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26566. ;;
  26567. *::*)
  26568. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26569. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26570. ;;
  26571. *)
  26572. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26573. ;;
  26574. esac
  26575. }
  26576. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26577. func_cc_basename ()
  26578. {
  26579. for cc_temp in $*""; do
  26580. case $cc_temp in
  26581. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26582. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26583. \-*) ;;
  26584. *) break;;
  26585. esac
  26586. done
  26587. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26588. }
  26589. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26590. _LT_EOF
  26591. case $host_os in
  26592. aix3*)
  26593. cat <<\_LT_EOF >> "$cfgfile"
  26594. # AIX sometimes has problems with the GCC collect2 program. For some
  26595. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26596. # vanish in a puff of smoke.
  26597. if test set != "${COLLECT_NAMES+set}"; then
  26598. COLLECT_NAMES=
  26599. export COLLECT_NAMES
  26600. fi
  26601. _LT_EOF
  26602. ;;
  26603. esac
  26604. ltmain=$ac_aux_dir/ltmain.sh
  26605. # We use sed instead of cat because bash on DJGPP gets confused if
  26606. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26607. # text mode, it properly converts lines to CR/LF. This bash problem
  26608. # is reportedly fixed, but why not run on old versions too?
  26609. sed '$q' "$ltmain" >> "$cfgfile" \
  26610. || (rm -f "$cfgfile"; exit 1)
  26611. mv -f "$cfgfile" "$ofile" ||
  26612. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26613. chmod +x "$ofile"
  26614. cat <<_LT_EOF >> "$ofile"
  26615. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26616. # The linker used to build libraries.
  26617. LD=$lt_LD_RC
  26618. # How to create reloadable object files.
  26619. reload_flag=$lt_reload_flag_RC
  26620. reload_cmds=$lt_reload_cmds_RC
  26621. # Commands used to build an old-style archive.
  26622. old_archive_cmds=$lt_old_archive_cmds_RC
  26623. # A language specific compiler.
  26624. CC=$lt_compiler_RC
  26625. # Is the compiler the GNU compiler?
  26626. with_gcc=$GCC_RC
  26627. # Compiler flag to turn off builtin functions.
  26628. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26629. # Additional compiler flags for building library objects.
  26630. pic_flag=$lt_lt_prog_compiler_pic_RC
  26631. # How to pass a linker flag through the compiler.
  26632. wl=$lt_lt_prog_compiler_wl_RC
  26633. # Compiler flag to prevent dynamic linking.
  26634. link_static_flag=$lt_lt_prog_compiler_static_RC
  26635. # Does compiler simultaneously support -c and -o options?
  26636. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26637. # Whether or not to add -lc for building shared libraries.
  26638. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26639. # Whether or not to disallow shared libs when runtime libs are static.
  26640. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26641. # Compiler flag to allow reflexive dlopens.
  26642. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26643. # Compiler flag to generate shared objects directly from archives.
  26644. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26645. # Whether the compiler copes with passing no objects directly.
  26646. compiler_needs_object=$lt_compiler_needs_object_RC
  26647. # Create an old-style archive from a shared archive.
  26648. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26649. # Create a temporary old-style archive to link instead of a shared archive.
  26650. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26651. # Commands used to build a shared archive.
  26652. archive_cmds=$lt_archive_cmds_RC
  26653. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26654. # Commands used to build a loadable module if different from building
  26655. # a shared archive.
  26656. module_cmds=$lt_module_cmds_RC
  26657. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26658. # Whether we are building with GNU ld or not.
  26659. with_gnu_ld=$lt_with_gnu_ld_RC
  26660. # Flag that allows shared libraries with undefined symbols to be built.
  26661. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26662. # Flag that enforces no undefined symbols.
  26663. no_undefined_flag=$lt_no_undefined_flag_RC
  26664. # Flag to hardcode \$libdir into a binary during linking.
  26665. # This must work even if \$libdir does not exist
  26666. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26667. # Whether we need a single "-rpath" flag with a separated argument.
  26668. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26669. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26670. # DIR into the resulting binary.
  26671. hardcode_direct=$hardcode_direct_RC
  26672. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26673. # DIR into the resulting binary and the resulting library dependency is
  26674. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26675. # library is relocated.
  26676. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26677. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26678. # into the resulting binary.
  26679. hardcode_minus_L=$hardcode_minus_L_RC
  26680. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26681. # into the resulting binary.
  26682. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26683. # Set to "yes" if building a shared library automatically hardcodes DIR
  26684. # into the library and all subsequent libraries and executables linked
  26685. # against it.
  26686. hardcode_automatic=$hardcode_automatic_RC
  26687. # Set to yes if linker adds runtime paths of dependent libraries
  26688. # to runtime path list.
  26689. inherit_rpath=$inherit_rpath_RC
  26690. # Whether libtool must link a program against all its dependency libraries.
  26691. link_all_deplibs=$link_all_deplibs_RC
  26692. # Set to "yes" if exported symbols are required.
  26693. always_export_symbols=$always_export_symbols_RC
  26694. # The commands to list exported symbols.
  26695. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26696. # Symbols that should not be listed in the preloaded symbols.
  26697. exclude_expsyms=$lt_exclude_expsyms_RC
  26698. # Symbols that must always be exported.
  26699. include_expsyms=$lt_include_expsyms_RC
  26700. # Commands necessary for linking programs (against libraries) with templates.
  26701. prelink_cmds=$lt_prelink_cmds_RC
  26702. # Commands necessary for finishing linking programs.
  26703. postlink_cmds=$lt_postlink_cmds_RC
  26704. # Specify filename containing input files.
  26705. file_list_spec=$lt_file_list_spec_RC
  26706. # How to hardcode a shared library path into an executable.
  26707. hardcode_action=$hardcode_action_RC
  26708. # The directories searched by this compiler when creating a shared library.
  26709. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26710. # Dependencies to place before and after the objects being linked to
  26711. # create a shared library.
  26712. predep_objects=$lt_predep_objects_RC
  26713. postdep_objects=$lt_postdep_objects_RC
  26714. predeps=$lt_predeps_RC
  26715. postdeps=$lt_postdeps_RC
  26716. # The library search path used internally by the compiler when linking
  26717. # a shared library.
  26718. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26719. # ### END LIBTOOL TAG CONFIG: RC
  26720. _LT_EOF
  26721. cat <<_LT_EOF >> "$ofile"
  26722. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26723. # The linker used to build libraries.
  26724. LD=$lt_LD_CXX
  26725. # How to create reloadable object files.
  26726. reload_flag=$lt_reload_flag_CXX
  26727. reload_cmds=$lt_reload_cmds_CXX
  26728. # Commands used to build an old-style archive.
  26729. old_archive_cmds=$lt_old_archive_cmds_CXX
  26730. # A language specific compiler.
  26731. CC=$lt_compiler_CXX
  26732. # Is the compiler the GNU compiler?
  26733. with_gcc=$GCC_CXX
  26734. # Compiler flag to turn off builtin functions.
  26735. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26736. # Additional compiler flags for building library objects.
  26737. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26738. # How to pass a linker flag through the compiler.
  26739. wl=$lt_lt_prog_compiler_wl_CXX
  26740. # Compiler flag to prevent dynamic linking.
  26741. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26742. # Does compiler simultaneously support -c and -o options?
  26743. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26744. # Whether or not to add -lc for building shared libraries.
  26745. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26746. # Whether or not to disallow shared libs when runtime libs are static.
  26747. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26748. # Compiler flag to allow reflexive dlopens.
  26749. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26750. # Compiler flag to generate shared objects directly from archives.
  26751. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26752. # Whether the compiler copes with passing no objects directly.
  26753. compiler_needs_object=$lt_compiler_needs_object_CXX
  26754. # Create an old-style archive from a shared archive.
  26755. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26756. # Create a temporary old-style archive to link instead of a shared archive.
  26757. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26758. # Commands used to build a shared archive.
  26759. archive_cmds=$lt_archive_cmds_CXX
  26760. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26761. # Commands used to build a loadable module if different from building
  26762. # a shared archive.
  26763. module_cmds=$lt_module_cmds_CXX
  26764. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26765. # Whether we are building with GNU ld or not.
  26766. with_gnu_ld=$lt_with_gnu_ld_CXX
  26767. # Flag that allows shared libraries with undefined symbols to be built.
  26768. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26769. # Flag that enforces no undefined symbols.
  26770. no_undefined_flag=$lt_no_undefined_flag_CXX
  26771. # Flag to hardcode \$libdir into a binary during linking.
  26772. # This must work even if \$libdir does not exist
  26773. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26774. # Whether we need a single "-rpath" flag with a separated argument.
  26775. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26776. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26777. # DIR into the resulting binary.
  26778. hardcode_direct=$hardcode_direct_CXX
  26779. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26780. # DIR into the resulting binary and the resulting library dependency is
  26781. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26782. # library is relocated.
  26783. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26784. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26785. # into the resulting binary.
  26786. hardcode_minus_L=$hardcode_minus_L_CXX
  26787. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26788. # into the resulting binary.
  26789. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26790. # Set to "yes" if building a shared library automatically hardcodes DIR
  26791. # into the library and all subsequent libraries and executables linked
  26792. # against it.
  26793. hardcode_automatic=$hardcode_automatic_CXX
  26794. # Set to yes if linker adds runtime paths of dependent libraries
  26795. # to runtime path list.
  26796. inherit_rpath=$inherit_rpath_CXX
  26797. # Whether libtool must link a program against all its dependency libraries.
  26798. link_all_deplibs=$link_all_deplibs_CXX
  26799. # Set to "yes" if exported symbols are required.
  26800. always_export_symbols=$always_export_symbols_CXX
  26801. # The commands to list exported symbols.
  26802. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26803. # Symbols that should not be listed in the preloaded symbols.
  26804. exclude_expsyms=$lt_exclude_expsyms_CXX
  26805. # Symbols that must always be exported.
  26806. include_expsyms=$lt_include_expsyms_CXX
  26807. # Commands necessary for linking programs (against libraries) with templates.
  26808. prelink_cmds=$lt_prelink_cmds_CXX
  26809. # Commands necessary for finishing linking programs.
  26810. postlink_cmds=$lt_postlink_cmds_CXX
  26811. # Specify filename containing input files.
  26812. file_list_spec=$lt_file_list_spec_CXX
  26813. # How to hardcode a shared library path into an executable.
  26814. hardcode_action=$hardcode_action_CXX
  26815. # The directories searched by this compiler when creating a shared library.
  26816. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26817. # Dependencies to place before and after the objects being linked to
  26818. # create a shared library.
  26819. predep_objects=$lt_predep_objects_CXX
  26820. postdep_objects=$lt_postdep_objects_CXX
  26821. predeps=$lt_predeps_CXX
  26822. postdeps=$lt_postdeps_CXX
  26823. # The library search path used internally by the compiler when linking
  26824. # a shared library.
  26825. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26826. # ### END LIBTOOL TAG CONFIG: CXX
  26827. _LT_EOF
  26828. ;;
  26829. "sdl3_config":C) chmod a+x sdl3-config ;;
  26830. "summary":C) printf "$SUMMARY" ;;
  26831. esac
  26832. done # for ac_tag
  26833. as_fn_exit 0
  26834. _ACEOF
  26835. ac_clean_files=$ac_clean_files_save
  26836. test $ac_write_fail = 0 ||
  26837. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  26838. # configure is writing to config.log, and then calls config.status.
  26839. # config.status does its own redirection, appending to config.log.
  26840. # Unfortunately, on DOS this fails, as config.log is still kept open
  26841. # by configure, so config.status won't be able to write to it; its
  26842. # output is simply discarded. So we exec the FD to /dev/null,
  26843. # effectively closing config.log, so it can be properly (re)opened and
  26844. # appended to by config.status. When coming back to configure, we
  26845. # need to make the FD available again.
  26846. if test "$no_create" != yes; then
  26847. ac_cs_success=:
  26848. ac_config_status_args=
  26849. test "$silent" = yes &&
  26850. ac_config_status_args="$ac_config_status_args --quiet"
  26851. exec 5>/dev/null
  26852. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26853. exec 5>>config.log
  26854. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26855. # would make configure fail if this is the last instruction.
  26856. $ac_cs_success || as_fn_exit 1
  26857. fi
  26858. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26860. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26861. fi